/* /assets/css/style.css */

/* --- FUENTES Y PALETA DE COLORES (Brand ELECTRONICAPCWEB) --- */
:root {
    --primary-color: #00D4FF; /* Cian vibrante */
    --secondary-color: #655AD7; /* Púrpura azulado */
    --dark-bg: #10111A; /* Azul noche */
    --light-color: #FFFFFF; /* Blanco */
    --gray-dark: #424242; /* Gris oscuro */
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    padding-top: 63px; /* Ajuste para el navbar fijo (altura real) */
    background-color: var(--dark-bg);
    color: var(--light-color);
}

h1, h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 500; /* menos pesado para mayúsculas */
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

p, li, a, label, input, textarea, small {
    font-family: var(--font-body);
    font-weight: 400; /* Montserrat 400 para párrafos */
}

.section-title {
    font-weight: 400; /* evitar negrita en títulos de sección */
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary-color);
}
a:hover {
    color: #00bfe6;
}

/* --- HERO CAROUSEL (moderno con overlay y centrado) --- */
.hero-section {
    position: relative;
}
.hero-section .carousel-item {
    position: relative;
    height: 90vh;
    background-size: cover;
    background-position: center;
}
.hero-section .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(1deg, rgb(16 17 26 / 80%), rgb(16 17 26 / 80%));
}
.hero-section .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(16, 17, 26, 0.0);
    padding: 0 1.25rem;
    width: min(80%, 1000px);
    height: max-content;
}
.hero-section .carousel-caption h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-section .carousel-caption p {
    max-width: 720px;
    margin: 0.75rem auto 1.25rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
@media (max-width: 767.98px) {
    .hero-section .carousel-caption { 
        width: 100%;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* --- SECTION HEADER GENÉRICO --- */
.section-header .title-underline {
    width: 80px;
    height: 3px;
    margin: 0.75rem auto 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* --- SERVICIOS (moderno en 4 columnas) --- */
.services-modern {
    background: radial-gradient(1000px 500px at 100% -10%, rgba(0,212,255,0.10), transparent),
                radial-gradient(1000px 500px at 0% 110%, rgba(101,90,215,0.12), transparent);
}
.services-modern .service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--dark-bg);
    border: 1px solid var(--gray-dark);
    color: var(--light-color);
}
.services-modern .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
}
.services-modern .icon-circle {
    width: 70px;
    min-width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* --- CONTACTO (MODERNO) --- */
.contact-modern {
    background: radial-gradient(1000px 500px at 10% -10%, rgba(0,212,255,0.10), transparent),
                radial-gradient(1000px 500px at 90% 120%, rgba(101,90,215,0.12), transparent);
}
.contact-modern .contact-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* --- OFFSET DE ANCLA PARA NAV FIJO --- */
:target::before {
    content: "";
    display: block;
    height: 63px; /* altura real del navbar */
    margin-top: -63px;
    visibility: hidden;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 26px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* --- reCAPTCHA (Invisible) ocultar badge globalmente --- */
.grecaptcha-badge { display: none !important; }

/* --- NAVBAR LOGO --- */
.navbar .brand-logo {
    height: 48px;
    width: auto;
}

/* --- NAVBAR & BOTONES (override Bootstrap) --- */
.navbar.navbar-dark.bg-dark {
    background-color: var(--dark-bg) !important;
    border-bottom: 1px solid var(--gray-dark);
    min-height: 75px;
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
}
.navbar-dark .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--primary-color);
}
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--light-color);
    background-color: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #00bfe6;
    border-color: #00bfe6;
    color: var(--dark-bg);
}

/* --- SECCIÓN NOSOTROS (bg-light -> secundario de marca) --- */
.bg-light {
    background-color: var(--secondary-color) !important;
    color: var(--light-color) !important;
}

/* --- SECCIÓN NOSOTROS (MODERNA) --- */
.about-modern {
    background: radial-gradient(1200px 600px at 10% -20%, rgba(0,212,255,0.12), transparent),
                radial-gradient(1200px 600px at 90% 120%, rgba(101,90,215,0.15), transparent),
                var(--dark-bg);
}
.about-modern .about-header .kicker {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.6px;
}
.about-modern .about-header .title-underline {
    width: 80px;
    height: 3px;
    margin: 0.75rem auto 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}
.about-modern .about-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.about-modern .about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,212,255,0.4);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.about-modern .icon-badge {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #00bfe6);
    color: var(--dark-bg);
    font-size: 1.5rem;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.25), 0 8px 16px rgba(0,212,255,0.25);
}
.about-modern h3.h4 {
    letter-spacing: 0.4px;
}
.about-modern p {
    color: rgba(255,255,255,0.9);
}

/* --- FORMULARIOS --- */
.form-control, .form-select, textarea.form-control {
    background-color: #141622;
    border: 1px solid var(--gray-dark);
    color: var(--light-color);
}
.form-control::placeholder {
    color: rgba(255,255,255,0.6);
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.2);
}

.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Separador bajo navbar solo en mobile */
.nav-mobile-gap {
    margin-top: 8px;
    margin-bottom: 8px;
}

.nav-mobile-gap .collapse {
    margin-top: 10px;
}