/* ==========================================================================
   PALETA CORPORATIVA LT & SOLUTIONS PRO - BASADA EN TU LOGO OFICIAL
   AZUL ELÉCTRICO + DORADO/AMARILLO TECH (CERO NARANJA / MENÚS SUBRAYADOS)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    /* Tipografía Montserrat oficial */
    --font-main: 'Montserrat', sans-serif;
    
    /* Fondos */
    --bg-main: #F8FAFC;           /* Fondo gris helado claro tecnológico */
    --bg-header: #FFFFFF;         /* Header blanco pulcro */
    --text-dark: #0F172A;          /* Negro pizarra para textos principales */
    --text-muted: #64748B;         /* Gris Slate medio para descripciones */
    --border-line: #E2E8F0;       /* Líneas divisorias suaves */

    /* COLORES DE TU LOGO (AZUL + DORADO) */
    --blue-brand: #1652F0;        /* Azul Eléctrico oficial de "LT & SOLUTIONS" */
    --blue-dark: #0F3EB5;         /* Azul oscuro para hovers */
    --blue-light: #EFF6FF;        /* Fondo azul sutil para tarjetas */

    --gold-brand: #F59E0B;        /* Dorado / Amarillo Neón oficial de "PRO" */
    --gold-bright: #FBBF24;       /* Amarillo brillante */
    --gold-light: #FEF3C7;        /* Fondo amarillo suave */
    
    /* Sombras finas */
    --shadow-card: 0 10px 25px -5px rgba(22, 82, 240, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* RESET COMPLETO DE VIÑETAS Y MÁRGENES */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main) !important;
    list-style: none !important;
    list-style-type: none !important;
}

body {
    font-family: var(--font-main) !important;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease-in-out;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   1. HEADER FIJO CON LÍNEA DIVISORIA EN AZUL ELÉCTRICO DE TU LOGO
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-header);
    border-bottom: 3px solid var(--blue-brand); /* Línea inferior en Azul Eléctrico */
    box-shadow: var(--shadow-card);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo-box {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 70px; /* Tamaño destacado para tu logo */
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   2. MENÚS SUBRAYADOS (ESTILO ELEGANTE, SIN ASPECTO DE BOTÓN O CAJA)
   ========================================================================== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    border-radius: 0; /* Cero aspecto de caja/botón */
    transition: color 0.25s ease;
}

/* Línea de subrayado animada en el menú */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0%;
    height: 3px;
    background-color: var(--gold-brand); /* Subrayado en Dorado/Amarillo */
    border-radius: 4px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover {
    color: var(--blue-brand);
    background: transparent;
}

.nav-item:hover::after {
    width: 85%; /* Muestra el subrayado al pasar el ratón */
}

/* Menú Activo / Seleccionado (Permanente con Subrayado en Azul + Dorado) */
.nav-item.active {
    color: var(--blue-brand);
    font-weight: 700;
    background: transparent;
}

.nav-item.active::after {
    width: 90%;
    background-color: var(--gold-brand);
}

/* Flecha 'v' del submenú en CSS con color corporativo */
.v-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #64748B;
    border-bottom: 2px solid #64748B;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.nav-item:hover .v-arrow, .nav-item.active .v-arrow {
    transform: rotate(225deg);
    border-color: var(--blue-brand);
}

/* ==========================================================================
   3. SUBMENÚS DESPLEGABLES CON DETALLES EN AZUL ELÉCTRICO Y DORADO
   ========================================================================== */
.has-dropdown {
    position: relative;
}

.dropdown-box {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF;
    border: 1px solid var(--border-line);
    border-top: 3px solid var(--gold-brand); /* Borde superior dorado */
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
    padding: 20px;
    width: 330px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1100;
}

.has-dropdown:hover .dropdown-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--blue-brand);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    background-color: #F8FAFC;
    border: 1px solid var(--border-line);
}

.dropdown-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.dropdown-item small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dropdown-item:hover {
    background-color: var(--blue-light);
    border-color: var(--blue-brand);
}

.dropdown-item:hover strong {
    color: var(--blue-brand);
}

.mega-box {
    width: 460px;
}

.sectors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sector-item {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #F8FAFC;
    border: 1px solid var(--border-line);
}

.sector-item:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-brand);
    color: var(--text-dark);
}


/* =========================================
   MENU DESPLEGABLE - SECTORES
========================================= */

.sectors-dropdown {
    width: 540px;
    padding: 20px;
}

/* Distribución en dos columnas */
.sectors-dropdown .sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

/* Tarjetas de sectores */
.sectors-dropdown .dropdown-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 76px;
    padding: 11px;
    margin: 0;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    background: #F8FAFC;
    transition: all 0.25s ease;
}

/* Nombre */
.sectors-dropdown .dropdown-item strong {
    font-size: 13px;
    font-weight: 700;
    color: #263247;
}

/* Descripción */
.sectors-dropdown .dropdown-item small {
    font-size: 11px;
    line-height: 1.5;
    color: #8794A8;
}

/* Efecto hover */
.sectors-dropdown .dropdown-item:hover {
    background: #F1F6FF;
    border-color: #BBD0FF;
    transform: translateY(-2px);
}

.sectors-dropdown .dropdown-item:hover strong {
    color: #2457F5;
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 600px) {
    .sectors-dropdown {
        width: min(540px, calc(100vw - 30px));
    }

    .sectors-dropdown .sectors-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   MENU DESPLEGABLE - SOLUCIONES
========================================= */

.solutions-dropdown {
    width: 540px;
    padding: 20px;
}

/* Distribución en dos columnas */
.solutions-dropdown .solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

/* Tarjetas */
.solutions-dropdown .dropdown-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 76px;
    padding: 11px;
    margin: 0;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    background: #F8FAFC;
    transition: all 0.25s ease;
}

/* Nombre */
.solutions-dropdown .dropdown-item strong {
    font-size: 13px;
    font-weight: 700;
    color: #263247;
}

/* Descripción */
.solutions-dropdown .dropdown-item small {
    font-size: 11px;
    line-height: 1.5;
    color: #8794A8;
}

/* Efecto hover */
.solutions-dropdown .dropdown-item:hover {
    background: #F1F6FF;
    border-color: #BBD0FF;
    transform: translateY(-2px);
}

.solutions-dropdown .dropdown-item:hover strong {
    color: #2457F5;
}

/* Adaptación móvil */
@media (max-width: 600px) {
    .solutions-dropdown {
        width: min(540px, calc(100vw - 30px));
    }

    .solutions-dropdown .solutions-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   4. BOTÓN COTIZAR EN DORADO/AMARILLO OFICIAL CON TEXTO AZUL O BLANCO
   ========================================================================== */
.btn-yellow-action {
    background-color: var(--gold-brand);
    color: #0F172A;
    font-weight: 600;
    font-size: 0.90rem;
    padding: 11px 24px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    border: 1px solid var(--gold-bright);
}

.btn-yellow-action:hover {
    background-color: var(--blue-brand);
    color: #FFFFFF;
    border-color: var(--blue-brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22, 82, 240, 0.4);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-dark);
}

@media (max-width: 1024px) {
    .mobile-toggle { display: block; }
    .header-action { display: none; }
    .nav-container {
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        border-bottom: 2px solid var(--border-line);
        padding: 20px;
        display: none;
    }
    .nav-container.active { display: block; }
    .main-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==========================================================================
   AJUSTES FINALES PARA NAVEGACIÓN EN CELULARES Y TABLETS
   ========================================================================== */
@media (max-width: 1024px) {
    /* Menú desplegable móvil */
    .nav-container {
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        border-bottom: 3px solid var(--blue-brand);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        padding: 16px 20px;
        display: none;
        max-height: calc(100vh - 85px);
        overflow-y: auto;
    }

    .nav-container.active {
        display: block !important;
        animation: fadeInDown 0.25s ease-in-out;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-item {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
        border-bottom: 1px solid var(--border-line);
    }

    /* Submenús en Móvil (Sectores y Soluciones) */
    .dropdown-box {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid var(--gold-brand) !important;
        background-color: #F8FAFC !important;
        border-radius: 8px !important;
        margin-top: 6px;
        margin-bottom: 8px;
        padding: 14px !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Mostrar submenú cuando se toca en el celular */
    .has-dropdown.open-mobile .dropdown-box {
        display: block !important;
    }

    .has-dropdown.open-mobile .v-arrow {
        transform: rotate(225deg);
        border-color: var(--blue-brand);
    }

    .mega-box {
        width: 100% !important;
    }

    .sectors-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .mobile-toggle {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 4px 10px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   ESTILOS DE INICIO - FRANJA AZUL CORPORATIVA Y NÚMEROS DORADOS
   ========================================================================== */
.hero-section {
    padding: 50px 0 60px 0;
    background-color: var(--bg-main);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--blue-light);
    color: var(--blue-brand);
    border: 1px solid rgba(22, 82, 240, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold-brand);
    border-radius: 50%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.22;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.highlight-blue {
    color: var(--blue-brand);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-hero-primary {
    background-color: var(--gold-brand);
    color: #0F172A;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    border: 1px solid var(--gold-bright);
}

.btn-hero-primary:hover {
    background-color: var(--blue-brand);
    color: #FFFFFF;
    border-color: var(--blue-brand);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background-color: #FFFFFF;
    color: var(--blue-brand);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid var(--blue-brand);
}

.btn-hero-secondary:hover {
    background-color: var(--blue-light);
}

/* CARRUSEL DE IMÁGENES DE PORTADA */

/* CARRUSEL DE IMÁGENES DE PORTADA */
.hero-visual {
    width: 100%;
}

.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6 / 1;
    max-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(22, 82, 240, 0.15);
    border: 3px solid #FFFFFF;
    background-color: #FFFFFF;
}

/* Cada diapositiva ocupa exactamente el mismo espacio */
.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

/* Imagen que se encuentra visible */
.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Imagen dentro de cada diapositiva */
.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Respeta la preferencia de movimiento reducido del visitante */
@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        transition: none;
    }
}

.hero-main-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* FRANJA PINTADA EN AZUL ELÉCTRICO DE TU LOGO CON NÚMEROS DORADOS */
.hero-metrics-bar-painted {
    background: linear-gradient(135deg, #1652F0 0%, #0F3EB5 100%);
    border-radius: 16px;
    padding: 26px 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 12px 35px rgba(22, 82, 240, 0.25);
    border-bottom: 4px solid var(--gold-brand);
}

.metric-card-painted {
    text-align: center;
    flex: 1;
}

.metric-card-painted strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-bright); /* Dorado Neón contrastado */
    line-height: 1;
    margin-bottom: 6px;
}

.metric-card-painted span {
    font-size: 0.92rem;
    font-weight: 600;
    color: #FFFFFF; /* Texto blanco legible */
}

.metric-divider-painted {
    width: 1px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-metrics-bar-painted {
        flex-direction: column;
        gap: 20px;
    }

    .metric-divider-painted {
        width: 80%;
        height: 1px;
    }
}


/* =========================================================
   CORRECCIÓN DE DESPLAZAMIENTO HORIZONTAL
   IMPORTANTE: overflow-x: clip evita interferir con sticky.
   Conserva la protección contra desbordamiento horizontal.
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px; /* Margen interno más estrecho para móviles */
    }

    .hero-section {
        padding: 30px 0 40px 0;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
        white-space: normal; /* Permite que el badge salte de línea si es necesario */
        text-align: center;
    }

    /* Título ajustado al ancho del celular */
    .hero-title {
        font-size: 1.65rem !important; /* Reduce el tamaño para que no se corte el texto */
        line-height: 1.3 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-description {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    /* Botones apilados verticalmente al 100% de ancho */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-hero-primary, 
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.92rem;
        box-sizing: border-box;
    }

    /* Franja de métricas adaptada para pantalla pequeña */
    .hero-metrics-bar-painted {
        padding: 20px 16px;
        flex-direction: column;
        gap: 16px;
    }

    .metric-card-painted strong {
        font-size: 1.8rem;
    }

    .metric-card-painted span {
        font-size: 0.85rem;
    }

    .metric-divider-painted {
        width: 60%;
        height: 1px;
    }
}


/* ==========================================
   PIE DEL MENÚ DESPLEGABLE DE SECTORES
========================================== */

.sectors-dropdown-footer {

    display: flex;

    justify-content: flex-end;

    margin-top: 14px;

    padding-top: 12px;

    border-top: 1px solid #E2E8F0;

}


/* Botón para explorar todos los sectores */

.sectors-view-all {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 9px 15px;

    background: #EFF6FF;

    color: #1652F0;

    border: 1px solid #DBEAFE;

    border-radius: 8px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition: all 0.25s ease;

}


/* Flecha del botón */

.sectors-view-arrow {

    font-size: 17px;

    line-height: 1;

    transition: transform 0.25s ease;

}


/* Efecto al pasar el cursor */

.sectors-view-all:hover {

    background: #1652F0;

    color: #FFFFFF;

    border-color: #1652F0;

}


/* Movimiento de la flecha */

.sectors-view-all:hover .sectors-view-arrow {

    transform: translateX(4px);

}


/* =========================================================
   LT & SOLUTIONS PRO
   BOTÓN COTIZADOR EN MENÚ MÓVIL
   No modifica el botón original de escritorio.
========================================================= */

/* Ocultar el botón móvil en computadoras. */
.mobile-quote-action {
    display: none;
}

/* Mostrar el botón dentro del menú en tablets y celulares. */
@media (max-width: 1024px) {

    .mobile-quote-action {
        display: flex;
        width: 100%;
        justify-content: center;

        margin-top: 18px;
        padding-top: 16px;

        border-top: 1px solid var(--border-line);
    }

    .mobile-quote-action .btn-yellow-action {
        display: flex;
        width: 100%;
        min-height: 48px;

        justify-content: center;
        align-items: center;

        font-size: 14px;
        font-weight: 700;
        border-radius: 10px;
    }

}
