@charset "utf-8";

/* ==========================================================================
   TIPOGRAFÍA OFICIAL TORREY DLC (BundayClean Optimizada)
   ========================================================================== */

/* Light (300) */
@font-face {
    font-family: 'BundayClean';
    src: url('../fonts/BundayClean-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BundayClean';
    src: url('../fonts/BundayClean-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Regular (400) */
@font-face {
    font-family: 'BundayClean';
    src: url('../fonts/BundayClean-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium / SemiBold (600) */
@font-face {
    font-family: 'BundayClean';
    src: url('../fonts/BundayClean-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BundayClean';
    src: url('../fonts/BundayClean-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BundayClean';
    src: url('../fonts/BundayClean-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Bold (700) */
@font-face {
    font-family: 'BundayClean';
    src: url('../fonts/BundayClean-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BundayClean';
    src: url('../fonts/BundayClean-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ExtraBold (800) */
@font-face {
    font-family: 'BundayClean';
    src: url('../fonts/BundayClean-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BundayClean';
    src: url('../fonts/BundayClean-ExtraBoldItalic.woff') format('woff');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   1. VARIABLES DE MARCA Y REPORTE VISUAL (TORREY DLC)
   ========================================================================== */
:root {
    /* Paleta de Colores Torrey DLC */
    --primary-blue: #0b2d52;
    /* Azul marino profundo corporativo */
    --secondary-blue: #1c4d95;
    /* Azul de acento */
    --cta-green: #39CF7C;
    /* Verde de alto contraste para conversiones */
    --cta-green-hover: #29B366;
    /* Estado hover del botón */

    /* Neutros y Fondos */
    --text-dark: #1e293b;
    /* Color de texto principal */
    --text-muted: #64748b;
    /* Texto secundario */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    /* Gris ultra claro para secciones alternadas */
    --bg-contrast: #031222;
    /* Fondo oscuro para destacar el formulario */
    --border-color: #e2e8f0;

    /* Tipografía y Sombras */
    --font-main: 'BundayClean', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --radius: 4px;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   2. RESET Y ESTILOS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--cta-green) var(--bg-light);
}

/* ==========================================================================
    BARRA DE DESPLAZAMIENTO DEL NAVEGADOR (VERDE CTA & ULTRA DELGADA)
    ========================================================================== */

/* Motores WebKit (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
    width: 6px;
    /* Grosor delgado */
    height: 6px;
    /* Grosor en caso de scroll horizontal */
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background-color: var(--cta-green);
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--cta-green-hover);
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    /* Agrega estas 2 líneas para la transición de página: */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Clases de control que activará tu JS: */
body.page-loaded {
    opacity: 1;
}

body.page-fading-out {
    opacity: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-blue);
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.85rem;
    margin: 1rem 0rem 2rem 0rem;
    ;
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   ESTILOS DE SELECCIÓN DE TEXTO (BRANDED SELECTION)
   ========================================================================== */
::-moz-selection {
    background-color: var(--cta-green);
    color: var(--bg-white);
}

::selection {
    background-color: var(--cta-green);
    color: var(--bg-white);
}

/* ==========================================================================
   EFECTOS DE ENTRADA AL HACER SCROLL (SCROLL REVEAL)
   ========================================================================== */

/* Clase base: Oculta el elemento antes de ser visto */
.reveal {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Variante 1: Aparece subiendo desde abajo (El más elegante) */
.reveal-up {
    transform: translateY(40px);
}

/* Variante 2: Aparece desde la izquierda */
.reveal-left {
    transform: translateX(-40px);
}

/* Variante 3: Aparece desde la derecha */
.reveal-right {
    transform: translateX(40px);
}

/* Variante 4: Zoom suave */
.reveal-zoom {
    transform: scale(0.92);
}

/* Estado Activo: Cuando el JS detecta que el usuario llegó con el scroll */
.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Opcional: Retardos en cascada para listas o rejillas (Cards) */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   3. LAYOUT, CONTENEDORES Y REJILLAS (GRID SYSTEM)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 100px 0px 100px 0px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-contrast {
    background-color: var(--bg-contrast);
    color: var(--bg-white);
}

.bg-contrast h2,
.bg-contrast p {
    color: var(--bg-white);
}

/* Sistema Grids Responsive */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* ==========================================================================
   4. BOTONES Y LLAMADOS A LA ACCIÓN (CTA)
   ========================================================================== */
.btn {
    display: inline-block;
    font-weight: 700;
    text-align: center;
    font-family: var(--font-main);
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary,
.btn-submit,
.btn-large {
    background-color: var(--cta-green);
    color: var(--bg-white);
    padding: 13px 20px 10px 20px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(57, 207, 124, 0.35);
}

.btn-primary:hover,
.btn-submit:hover,
.btn-large:hover {
    background-color: var(--cta-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 179, 102, 0.45);
}

.btn-large {
    font-size: 1.15rem;
    padding: 13px 20px 10px 20px;
    margin-top: 20px;
}

.btn-submit {
    width: 100%;
    border: none;
    margin-top: 1rem;
}

/* Botón Secundario (Outline Verde) */
.btn-secondary {
    background-color: transparent;
    border-color: var(--cta-green);
    color: var(--cta-green);
    padding: 13px 20px 10px 20px;
    /* Mismo padding que .btn-primary */
    font-size: 1rem;
    /* Misma escala que .btn-primary */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Alineación y espacio perfecto con el icono de play */
}

.btn-secondary:hover {
    background-color: var(--cta-green);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 179, 102, 0.45);
}

.btn-secondary i {
    font-size: 0.85em;
    /* Ajuste óptico sutil para el icono de play */
}


/* ==========================================================================
   5. NAVEGACIÓN (HEADER STICKY: HEADER Y LOGOTIPOS (RESPONSIVO)
   ========================================================================== */
.header-sticky {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(3, 18, 34, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-full {
    display: block;
    max-height: 52px;
    width: auto;
}

.logo-iso {
    display: none;
    /* Oculto por defecto en escritorio */
    max-height: 38px;
    width: auto;
}

/* Estilo base para el botón del Header */
.btn-header {
    background: var(--cta-green);
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
    /* Evita saltos de línea extraños */
}

.btn-header:hover {
    background-color: var(--cta-green-hover);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   AJUSTES EXCLUSIVOS PARA MÓVILES (Pantallas menores a 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .header-sticky {
        padding: 1rem 0;
        /* Header más delgado */
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Intercambio de imágenes: Ocultar logo escrito, mostrar isotipo */
    .logo-full {
        display: none !important;
    }

    .logo-iso {
        display: block !important;
    }

    /* Botón compacto y elegante para celular */
    .btn-header {
        padding: 0.75rem 0.95rem;
        font-size: 0.85rem;
        letter-spacing: 0;
        line-height: 1;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(57, 207, 124, 0.3);
    }
}

/* ==========================================================================
   6. SECCIÓN HERO (WALLPAPER DE FONDO FIJO)
   ========================================================================== */
.hero-section {
    position: relative;
    /* Capa 1: Filtro semitransparente para legibilidad / Capa 2: Imagen de fondo */
    background-image:
        linear-gradient(135deg, rgba(218, 230, 243, 0.2) 10%, rgba(208, 228, 255, 0.75) 90%),
        url('../../assets/img/content/hero-laptop-dashboard.webp');
    background-size: cover;
    background-position: center right;
    background-attachment: fixed;
    /* Mantiene la imagen fija al hacer scroll */
    padding: 200px 0px 200px 0px;
    border-bottom: 1px solid var(--border-color);
}

.hero-section h1 {
    font-size: 2.75rem;
    color: var(--primary-blue);
    max-width: 900px;
    margin: 0 auto 1.25rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-section h2 {
    font-size: 1.35rem;
    color: var(--secondary-blue);
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 750px;
    margin: 0 auto 1.75rem;
}

.hero-section small {
    display: inline-block;
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Corrección para navegadores móviles (iOS deshabilita background-attachment: fixed) */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        background-image:
            linear-gradient(135deg, rgba(199, 216, 236, 0.4) 10%, rgba(208, 228, 255, 0.95) 90%),
            url('../../assets/img/content/hero-laptop-dashboard-movil copia.webp');
        background-position: center top;
        max-height: 720px;
        height: 720px;
    }

    .hero-section h1 {
        padding-top: 2.5rem;
        font-size: 2rem;
    }
}

/* ==========================================================================
   SECCIÓN ¿QUIÉNES SOMOS? (GRID DE 2 COLUMNAS CON VIDEO)
   ========================================================================== */
.about-section {
    padding: 4.5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.about-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* Contenedor de botones alineado */
.about-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-video-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-contrast);
}

.about-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md, 8px);
}

/* Adaptación para pantallas móviles */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   REPRODUCTOR MINIMALISTA Y CENTRADO PERFECTO
   ========================================================================== */
.about-video-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md, 6px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-contrast);
}

.about-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Capa de superposición con flexbox totalmente centrado */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 18, 34, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, opacity 0.15s ease;
}

/* Marco minimalista centrado */
.overlay-frame {
    border: 1px solid rgba(255, 255, 255, 0.7);
    width: 86%;
    height: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    /* Separación limpia entre texto y botón */
    border-radius: 4px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.overlay-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Botón Play Minimalista y Prominente */
/* Botón Play Minimalista (Sin círculo de fondo) */
.play-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.play-icon {
    color: #ffffff;
    font-size: 3.7rem;
    /* Tamaño mayor para compensar la falta de círculo */
    margin-left: 6px;
    /* Centrado óptico de la flecha */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    /* Sombra para resaltar sobre el fondo */
    transition: color 0.2s ease;
}

/* Hover Sutil */
.video-overlay:hover .overlay-frame {
    border-color: var(--cta-green, #39CF7C);
}

.video-overlay:hover .play-button-wrapper {
    transform: scale(1.15);
}

.video-overlay:hover .play-icon {
    color: var(--cta-green, #39CF7C);
    /* El triángulo se ilumina en verde al pasar el cursor */
}

.video-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   MODAL / EFECTO DE CRECIMIENTO INSTANTÁNEO (ZOOM-IN)
   ========================================================================== */
.about-video-container.is-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background-color: rgba(3, 18, 34, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    /* Animación ultrarrápida y fluida de escalado */
    animation: modalZoomIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-video-container.is-expanded .about-video {
    max-width: 88vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    animation: videoGrow 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-video-container.is-expanded .video-close-btn {
    display: flex;
}

/* Animación de expansión progresiva */
@keyframes modalZoomIn {
    from {
        opacity: 0;
        background-color: rgba(3, 18, 34, 0);
    }

    to {
        opacity: 1;
        background-color: rgba(3, 18, 34, 0.94);
    }
}

@keyframes videoGrow {
    from {
        transform: scale(0.85);
    }

    to {
        transform: scale(1);
    }
}

/* Ocultar por completo el botón de cierre en estado normal */
.video-close-btn {
    display: none !important;
}

/* Posicionamiento en pantalla completa cuando el video está expandido */
.about-video-container.is-expanded .video-close-btn {
    display: flex !important;
    position: fixed;
    top: 25px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 2rem;
    font-family: Arial, sans-serif;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Efecto hover minimalista */
.about-video-container.is-expanded .video-close-btn:hover {
    background: var(--cta-green, #39CF7C);
    border-color: var(--cta-green, #39CF7C);
    color: #ffffff;
    transform: scale(1.1) rotate(90deg);
}

/* ==========================================================================
   BANNERS DE IMPACTO / CONTROL (ESTRUCTURA Y ESTILOS COMPARTIDOS)
   ========================================================================== */
.cta-banner-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8.5rem 0;
    min-height: 480px;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-banner-section h2 {
    color: var(--bg-white) !important;
    font-size: 2.25rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 0 1.25rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    line-height: 1.25;
}

.cta-banner-section p {
    font-size: 1.15rem;
    color: var(--border-color);
    max-width: 650px;
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
}

/* ==========================================================================
   IMÁGENES INDIVIDUALES POR BANNER (POR ID)
   ========================================================================== */

/* Banner 1: Toma el control de tu negocio */
#banner-control {
    background-image:
        linear-gradient(rgba(3, 18, 34, 0.85), rgba(3, 18, 34, 0.92)),
        url('../img/content/toma-el-control-de-tu-negocio-con-torreydlc-erp.jpg');
}

/* Banner 2: Demo personalizada */
#banner-demo {
    background-image:
        linear-gradient(rgba(3, 18, 34, 0.85), rgba(3, 18, 34, 0.92)),
        url('../img/content/videollamada-torreydlc-demo.jpg');
}

/* Adaptación responsiva para móviles */
@media (max-width: 768px) {
    .cta-banner-section {
        background-attachment: scroll;
        padding: 5rem 0;
        min-height: auto;
        height: 720px;
    }

    .cta-banner-section h2 {
        font-size: 1.85rem;
    }

    .cta-banner-section p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   TAG / BADGE PARA BANNERS DE IMPACTO
   ========================================================================== */
.banner-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: color-mix(in srgb, var(--cta-green) 15%, transparent);
    color: var(--cta-green);
    border: 1px solid var(--cta-green);
    padding: 10px 16px 7px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 50px;
    line-height: 1;
}

/* ==========================================================================
   7. TARJETAS Y DOLORES DEL CLIENTE
   ========================================================================== */
.card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-blue);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.highlight-text {
    font-size: 1.25rem;
    color: var(--secondary-blue);
    margin-top: 2.5rem;
}

/* ==========================================================================
   ESTILOS PARA ÍCONOS DE TARJETAS (DOLORES DEL CLIENTE)
   ========================================================================== */
.card-icon {
    width: 54px;
    height: 54px;
    background-color: #e0f2fe;
    /* Azul claro sutil de fondo */
    color: var(--primary-blue);
    /* Azul corporativo */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

/* Efecto hover sobre el ícono al pasar el ratón por la tarjeta */
.card:hover .card-icon {
    background-color: var(--cta-green);
    /* Cambia al verde de conversión */
    color: #042037;
    /* Texto oscuro para legibilidad */
    transform: scale(1.05);
}


/* ============================================
   Estilos para el Banner Multi-dispositivo (Fondo Completo)
   ============================================ */
.mockup-showcase-section {
    padding: 240px 20px;
    background-image: url('../../assets/img/content/torreydlc-multidevice-showcase-large.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
}

.mockup-content-wrapper {
    max-width: 520px;
    /* Limita el texto a la izquierda sobre el espacio limpio de la foto */
    text-align: left;
}

.mockup-content-wrapper .triptych-desc {
    margin-top: 15px;
    margin-bottom: 0;
}

/* Adaptación para Celulares y Tablets */
@media (max-width: 992px) {
    .mockup-showcase-section {
        padding: 100px 20px;
        background-position: center center;
        background-image: url('../../assets/img/content/torreydlc-multidevice-showcase.png');
    }

    .mockup-content-wrapper {
        max-width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        /* Legibilidad del texto al colapsar en pantallas chicas */
        padding: 30px;
        border-radius: var(--radius);
        backdrop-filter: blur(10px);
    }

    .mockup-content-wrapper .triptych-tag {
        margin: 0 auto 10px;
    }
}

/* ==========================================================================
   SECCIÓN TRÍPTICO FULL WIDTH (3 COLUMNAS CON HOVER ELEGANTE)
   ========================================================================== */
.triptych-section {
    width: 100%;
    padding: 20px 20px;
    /* Mantiene el gap de 20px respecto a los bordes de la pantalla */
    box-sizing: border-box;
}

.triptych-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* Base de las columnas */
.triptych-col {
    min-height: 440px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* --- COLUMNAS LATERALES (CON IMAGEN DE FONDO) --- */
.triptych-media {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Capa oscura superior con texto que se desvanece */
.triptych-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 45, 82, 0.72);
    /* Azul corporativo semitransparente */
    backdrop-filter: blur(8px);
    /* Desenfoque estándar para navegadores modernos */
    -webkit-backdrop-filter: blur(8px);
    /* Soporte obligatorio para Safari en macOS y iOS */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.triptych-media-title {
    color: var(--bg-white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 10px;
    line-height: 1.25;
}

/* EFECTO HOVER ELEGANTE: Desvanecimiento de texto + leve zoom en imagen */
.triptych-media:hover {
    transform: scale(1.015);
    box-shadow: var(--shadow-lg);
}

.triptych-media:hover .triptych-overlay {
    opacity: 0;
    visibility: hidden;
}

/* --- COLUMNA CENTRAL (INFORMACIÓN + CTA) --- */
.triptych-content {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2.5rem;
    box-sizing: border-box;
}

.triptych-main-title {
    color: var(--primary-blue);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 12px 0 16px 0;
}

.triptych-desc {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- TAGS / ETIQUETAS --- */
.triptych-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cta-green);
}

.triptych-tag.tag-accent {
    color: var(--secondary-blue);
}

/* Centrado de etiquetas superiores */
.tag-center {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* --- ADAPTACIÓN RESPONSIVA (TABLETS Y MÓVILES) --- */
@media (max-width: 991px) {
    .triptych-grid {
        grid-template-columns: 1fr;
        /* Colapsa a 1 columna en pantallas reducidas */
        gap: 20px;
    }

    .triptych-col {
        min-height: 360px;
    }

    .triptych-content {
        order: -1;
        /* Mantiene el texto descriptivo al inicio en celulares */
    }
}

/* --- AJUSTES PARA FILAS INVERTIDAS Y ESPACIAMIENTO --- */
.triptych-section+.triptych-section {
    margin-bottom: 0px;
    padding-top: 0px;
    /* Mantiene la separación constante de 20px entre filas de trípticos */
}

@media (max-width: 991px) {

    /* Mantiene el orden de lectura natural (Texto 1 -> Imagen -> Texto 2) en móviles */
    .triptych-grid.inverted .triptych-content {
        order: initial;
    }
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 45, 82, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--cta-green);
}

/* ==========================================================================
   8. FORMULARIOS DE CAPTURA
   ========================================================================== */
.form-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    border: solid 1px var(--primary-blue);
}

/* Modificador exclusivo para el primer formulario con Imagen de Fondo */
.form-section.form-img-bg {
    background-image: url('../../assets/img/content/background-torrey.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* Video de fondo */
.form-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Capa de contraste azul corporativo (#0b2d52) con desenfoque */
.form-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 45, 82, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
}

/* Eleva el formulario y títulos por encima del video */
.form-section .container {
    position: relative;
    z-index: 3;
}

.lead-form {
    max-width: 580px;
    margin: 2rem auto 0;
    background-color: rgba(3, 18, 34, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.lead-form p small {
    display: block;
    text-align: center;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Ocultar campo Honeypot */
.lead-field-verify {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Posicionamiento relativo para anclar el mensaje de error */
.form-group {
    position: relative;
    margin-bottom: 1.4rem;
}

/* Mensaje de error flotante sobre el campo */
.field-error-msg {
    display: none;
    font-size: 0.75rem;
    color: #ff4d4f;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: left;
    transition: opacity 0.2s ease-in-out;
}

/* Borde rojo preventivo en el campo con error */
.form-group.has-error input,
.form-group.has-error select {
    border-color: #ff4d4f !important;
    background-color: rgba(255, 77, 79, 0.05);
}

.form-group.has-error .field-error-msg {
    display: block;
}

/* Estilo para botón bloqueado */
/* --- Nuevo enfoque para botón SEND bloqueado pero llamativo --- */

/* 1. Mantenemos el estilo llamativo original en todo momento */
.btn-submit {
    transition: all 0.3s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Evitar fondos o sombras parásitas en textos e íconos internos */
.btn-submit * {
    background: transparent !important;
    box-shadow: none !important;
}

/* 2. Definimos la clase de estado inactivo */
.btn-submit.is-inactive {
    cursor: not-allowed !important;
    pointer-events: none;
    filter: brightness(95%);
    box-shadow: none !important;
    transform: none !important;
}

/* 3. Evitamos que el estilo de hover original se aplique si está inactivo */
.btn-submit.is-inactive:hover {
    background-color: inherit;
    box-shadow: none !important;
    transform: none !important;
}

/* ==========================================================================
   9. TABLA DE COMPARACIÓN (ANTES VS DESPUÉS) Y PASOS
   ========================================================================== */
.steps-list {
    list-style: none;
}

.steps-list li {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--cta-green);
    box-shadow: var(--shadow-sm);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    font-size: 1.05rem;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.comparison-table td:first-child {
    color: #c53030;
    /* Texto rojizo leve para el ANTES */
    font-weight: 500;
}

.comparison-table td:last-child {
    color: #2f855a;
    /* Texto verdoso leve para el DESPUÉS */
    font-weight: 600;
}

/* ==========================================================================
   10. BENEFICIOS Y CARACTERÍSTICAS
   ========================================================================== */
.features-list {
    list-style: none;
}

.features-list li {
    background-color: #e0f2fe;
    color: var(--primary-blue);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.benefit-card h4 {
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   SECCIÓN CLIENTES / GALERÍA DE LOGOTIPOS
   ========================================================================== */
.clients-section {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
    margin-top: 2.5rem;
}

/* Tarjeta individual del logotipo */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 170px;
    height: 100px;
}

/* Ajuste de imagen y efecto de grises corporativo */
.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: var(--transition);
}

/* Estado Hover: Cobra color y se eleva sutilmente */
.client-logo:hover {
    border-color: var(--secondary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Adaptación para pantallas móviles */
@media (max-width: 768px) {
    .logo-grid {
        gap: 1.25rem;
    }

    .client-logo {
        width: 135px;
        height: 65px;
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   11. PREGUNTAS FRECUENTES (FAQ ACORDEÓN)
   ========================================================================== */
.accordion {
    max-width: 800px;
    margin: 2rem auto 0;
}

details {
    background: var(--bg-white);
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

summary {
    padding: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
    list-style: none;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--secondary-blue);
}

details[open] summary::after {
    content: '−';
}

details p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-dark);
}

/* ==========================================================================
   12. FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.footer {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 50px 0px 50px 0px;
    font-size: 15px;
}

.footer a {
    color: #93c5fd;
    margin: 0 0.5rem;
    font-size: 13px;
}

.footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   ESTILOS DEL LOGO EN FOOTER
   ========================================================================== */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 120px;
    height: auto;
    display: inline-block;
}


/* ==========================================================================
   13. ADAPTABILIDAD A DISPOSITIVOS MÓVILES (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 3.5rem 0 2.5rem;
    }

    .lead-form {
        padding: 1.5rem;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   WIDGET FLOTANTE DE WHATSAPP (CON OPCIONES)
   ========================================================================== */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    /* Estado inicial: Oculto abajo */
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

/* Se activa con JavaScript al hacer scroll */
.wa-widget.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* El botón verde principal */
.wa-button {
    background-color: #25D366;
    /* Verde oficial WhatsApp */
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(142, 255, 90, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 9px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* La Ventana Emergente (Popup de Opciones) */
.wa-popup {
    background-color: white;
    width: 320px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);

    /* Estado inicial oculto (animación que sale del botón) */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estado Activo del Popup */
.wa-widget.popup-active .wa-popup {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* Encabezado Corporativo */
.wa-popup-header {
    background-color: var(--primary-blue);
    /* Tu azul corporativo */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.wa-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
}

.wa-close:hover {
    opacity: 0.8;
}

/* Cuerpo con el fondo típico de chat de WhatsApp */
.wa-popup-body {
    padding: 20px;
    background-color: #efeae2;
    /* Fondo beige de WhatsApp */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wa-welcome-text {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-align: center;
    font-weight: 600;
}

/* Botones / Burbujas de Chat */
.wa-option {
    background-color: white;
    color: var(--text-dark);
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;

    /* Para darle forma de burbuja de chat */
    border-bottom-left-radius: 4px;
}

.wa-option:hover {
    background-color: #dcf8c6;
    /* Verde clarito de mensaje enviado */
    color: #075e54;
    /* Verde oscuro texto WA */
}

/* Media Query para ocultar el botón general en celulares muy pequeños y no estorbar la lectura */
@media (max-width: 480px) {
    .wa-widget {
        bottom: 20px;
        right: 20px;
    }

    .wa-popup {
        width: 290px;
    }
}

/* ==========================================================================
   DESBLOQUEO DE CLICS - WIDGET WHATSAPP
   ========================================================================== */
#wa-widget,
.wa-widget {
    pointer-events: none !important;
    /* Los clics traspasan la zona transparente */
}

/* Reactiva los clics únicamente en el botón verde y elementos activos */
#wa-widget .wa-button,
#wa-widget .wa-popup,
#wa-widget button,
#wa-widget a,
#wa-widget i {
    pointer-events: auto;
}

/* ==========================================================================
   SECCIÓN SIGUE LA CONVERSACIÓN (REDES SOCIALES EN GRACIAS.HTML)
   ========================================================================== */
.social-follow {
    margin-top: 2.25rem;
}

.social-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.85rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--secondary-blue);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-size: 1.15rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--cta-green);
    color: var(--bg-white);
    border-color: var(--cta-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   PÁGINA PERSONALIZADA DE ERROR 404
   ========================================================================== */
.error-page-container {
    min-height: calc(85vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.error-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(57, 207, 124, 0.12);
    color: var(--cta-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.error-code {
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin: 0;
    letter-spacing: -2px;
}

.error-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-dark);
    font-weight: 700;
    margin: 1rem 0 0.8rem 0;
}

.error-desc {
    max-width: 520px;
    margin: 0 auto 2.2rem auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}