:root {
            --bg-sketch: #fbf9f5;
            --grid-pattern: radial-gradient(#d1d5db 1px, transparent 1px);
            --c-brand-green: #0a5c43;
            --c-primary: #353535;
            --c-primary-hover: #346dc8;
            --radius-card: 20px;
            --header-height: 75px;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-sketch);
            background-image: var(--grid-pattern);
            background-size: 20px 20px;
            color: var(--c-primary);
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
            overflow-x: hidden;
            transition: background-color 0.8s ease; /* Transición suave para el fondo negro */
        }

        body.bg-dark-mode {
            background-color: #0d0d0d !important;
            background-image: none !important;
        }

        /* -------------------------------------------------------------
           HEADER Y DATOS DE CONTACTO
        ------------------------------------------------------------- */
        .header-custom {
            background-color: var(--c-primary) !important;
            border-top: 10px solid #6e717d;
        }

        .logo-main img { width: 170px; }

        .header-contact-info {
            display: flex;
            align-items: center;
            gap: 16px;
            border-left: 1px solid rgba(255, 255, 255, 0.2);
            padding-left: 16px;
        }

        .header-contact-link {
            color: #e2e8f0;
            text-decoration: none;
            font-size: 0.8rem;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: color 0.2s ease;
        }

        .header-contact-link:hover { color: #ffffff; }
        .header-contact-link i { font-size: 0.9rem; color: #a1a1aa; }

        .btn-menu-toggler {
            background: transparent;
            border: none !important;
            outline: none !important;
            padding: 4px 8px;
            color: #ffffff;
            cursor: pointer;
        }

        .nav-link {
            color: #ffffff !important;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 0.5px;
            padding: 8px 12px !important;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .nav-link.active, .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .mobile-onepage-bar {
            background-color: #272727;
            overflow-x: auto;
            white-space: nowrap;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-onepage-bar a {
            color: #e2e8f0;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            padding: 8px 14px;
            display: inline-block;
            text-decoration: none;
        }

        .mobile-onepage-bar a.active {
            color: #ffffff;
            border-bottom: 2px solid var(--c-primary-hover);
            background: rgba(255,255,255,0.05);
        }

        .offcanvas-end-50 {
            width: 50vw !important;
            min-width: 280px;
            background-color: var(--c-primary) !important;
        }

        /* -------------------------------------------------------------
           IMÁGENES GIRATORIAS FIJAS
        ------------------------------------------------------------- */
        .floating-spin-item {
            position: fixed;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            padding: 0px;
            z-index: 1;
            pointer-events: none;
        }

        .floating-spin-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            animation: spinSelf 12s linear infinite;
        }

        .pos-top-right { top: 12%; right: 2%; }
        .pos-mid-left { top: 48%; left: 2%; }
        .pos-bottom-right { bottom: 12%; right: 2%; }

        @keyframes spinSelf {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @media (max-width: 991px) {
            .floating-spin-item { display: none !important; }
        }

        /* -------------------------------------------------------------
           CONTROLES NAVEGACIÓN FLOTANTE LATERAL
        ------------------------------------------------------------- */
        .vertical-nav-controls {
            position: fixed;
            right: 15px;
            bottom: 10%;
            transform: translateY(-50%);
            z-index: 990;
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: rgba(251, 249, 245, 0.9);
            padding: 10px 6px;
            border-radius: 30px;
            border: 1px solid rgba(10, 92, 67, 0.2);
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }

        .btn-nav-arrow {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 1px solid var(--c-primary);
            background: #ffffff;
            color: var(--c-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-nav-arrow:hover {
            background-color: var(--c-primary);
            color: #ffffff;
        }

        .nav-dot-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #cbd5e1;
            margin: 4px auto;
            transition: all 0.3s ease;
            display: block;
        }

        .nav-dot-indicator.active {
            background-color: var(--c-primary);
            transform: scale(1.4);
        }

        .btn-circle-rotate {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background-color: var(--c-primary);
            color: #ffffff;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-circle-rotate i { transition: transform 0.5s ease; }
        .btn-circle-rotate:hover i { transform: rotate(360deg); }

        .btn-back-to-top {
            position: fixed;
            bottom: 25px;
            right: 15px;
            z-index: 989;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .btn-back-to-top.visible {
            opacity: 1;
            pointer-events: auto;
        }

        /* -------------------------------------------------------------
           SECCIONES Y DIVIDER
        ------------------------------------------------------------- */
        .page-section {
            position: relative;
            padding: 60px 0;
            scroll-margin-top: var(--header-height);
            z-index: 2;
        }

        .white-sketch-divider {
            position: relative;
            width: 100%;
            background-color: var(--bg-sketch);
            padding: 25px 0;
            z-index: 2;
        }

        .divider-technical-line {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            border-top: 1px dashed rgba(10, 92, 67, 0.25);
            padding-top: 10px;
            font-family: monospace;
            font-size: 0.72rem;
            color: #6b7280;
            letter-spacing: 1.5px;
        }

        .divider-technical-line::before,
        .divider-technical-line::after {
            content: "";
            position: absolute;
            top: -5px;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background-color: var(--c-brand-green);
        }

        .divider-technical-line::before { left: 0; }
        .divider-technical-line::after { right: 0; }

        .btn-primary-pill {
            background-color: var(--c-primary);
            color: #ffffff !important;
            font-weight: 700;
            border-radius: 50px;
            padding: 12px 28px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 20px;
            transition: all 0.3s ease;
        }

        .btn-primary-pill:hover {
            background-color: var(--c-primary-hover);
        }

        /* -------------------------------------------------------------
           DUAL PARALLAX 
        ------------------------------------------------------------- */
        .strip-column-wrapper {
            height: 720px;
            overflow: hidden;
            position: relative;
            border-radius: var(--radius-card);
        }

        .strip-track {
            display: flex;
            flex-direction: column;
            gap: 15px;
            position: absolute;
            width: 100%;
            top: 0;
            left: 0;
            will-change: transform;
        }

        .strip-card {
            width: 100%;
            height: 620px;
            border-radius: 16px;
            object-fit: cover;
            flex-shrink: 0;
        }
        @media (max-width: 548px) {
            .strip-column-wrapper {height: 340px;}
            .strip-card {height: 320px;}
            .page-section {padding: 30px 0;}
        }

        /* -------------------------------------------------------------
           SECCIONES PEGAJOSAS (AMPLIADO A 350vh PARA MANTENER PAUSA)
        ------------------------------------------------------------- */
        .sketch-sticky-section {
            position: relative;
            height: 350vh; /* Permite una pausa prolongada en el medio */
            scroll-margin-top: var(--header-height);
            z-index: 2;
            overflow: visible; /* Punto 5: Sin cortes de margen */
        }

        .sticky-container {
            position: sticky;
            top: var(--header-height);
            height: calc(100vh - var(--header-height));
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: visible; /* Evita que las imágenes salientes se corten */
            padding-top: 20px;
            padding-bottom: 40px;
            box-sizing: border-box;
        }

        .section-bottom-info {
            position: relative;
            z-index: 20;
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Punto 5: Fondo blanco ajustado con resplandor para los títulos */
        .info-card-sketch {
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(8px);
            padding: 18px 30px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.12);
            border: 1px solid rgba(0,0,0,0.05);
            display: inline-block;
        }

        .info-card-sketch h1 { font-size: 3.2rem; font-weight: 700; line-height: 1.1; color: #353535; margin: 0; }
        .info-card-sketch h2 { font-size: 1.5rem; font-weight: 500; line-height: 1.4; color: #555; margin-top: 8px; }

        @media (max-width: 548px) {
            .info-card-sketch h1 { font-size: 2rem; }
            .info-card-sketch h2 { font-size: 1.1rem; }
            .strip-column-wrapper { height: 500px; }
            .strip-card { height: 460px; }
        }

        /* -------------------------------------------------------------
           BOTONES INTERACTIVOS + (PUNTOS CALIENTES / HOTSPOTS)
        ------------------------------------------------------------- */
        .hotspot-btn {
            position: absolute;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background-color: #ffffff;
            color: #353535;
            border: 2px solid var(--c-primary);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            display: flex;
            padding-bottom: 5px;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            font-weight: bold;
            cursor: pointer;
            z-index: 50;
            opacity: 0; /* Aparece solo cuando la escena está centrada */
            pointer-events: none;
            transition: opacity 0.5s ease, transform 0.3s ease, background-color 0.3s ease;
        }

        .hotspot-btn.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .hotspot-btn:hover {
            transform: scale(1.18);
            background-color: var(--c-primary);
            color: #ffffff;
        }

        /* Posiciones relativas para los 4 botones en Convergencia */
        .hs-conv-1 { top: 25%; left: 28%; }
        .hs-conv-2 { top: 35%; right: 26%; }
        .hs-conv-3 { bottom: 35%; left: 32%; }
        .hs-conv-4 { bottom: 20%; right: 30%; }

        /* Posiciones relativas para los 4 botones en Taller */
        .hs-tall-1 { top: 20%; left: 22%; }
        .hs-tall-2 { top: 30%; right: 26%; }
        .hs-tall-3 { bottom: 38%; left: 35%; }
        .hs-tall-4 { bottom: 22%; right: 28%; }

        /* Popover Flotante Personalizado para los Hotspots */
        .hotspot-card {
            position: absolute;
            width: 320px;
            background: #ffffff;
            color: #333333;
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.25);
            z-index: 60;
            display: none;
            border: 1px solid rgba(0,0,0,0.1);
            animation: fadeInCard 0.3s ease forwards;
        }

        .hotspot-card.active {
            display: block;
        }

        .hotspot-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            border-bottom: 1px solid #eee;
            padding-bottom: 5px;
        }

        .hotspot-card-title {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--c-primary);
            margin: 0;
        }

        .hotspot-card-close {
            background: none;
            border: none;
            font-size: 1.1rem;
            line-height: 1;
            color: #888;
            cursor: pointer;
        }

        .hotspot-card-close:hover { color: #000; }

        .hotspot-card-text {
            font-size: 0.82rem;
            color: #555;
            margin: 0;
            line-height: 1.35;
        }

        @keyframes fadeInCard {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* -------------------------------------------------------------
           EFECTO DE LUZ Y CONVERGENCIA VERTICAL EN DESKTOP
        ------------------------------------------------------------- */
        .merge-stage-v {
            position: relative;
            flex-grow: 1;
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: visible;
        }

        /* Aura de luz trasera (Backlight) */
        .merge-stage-v::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 380px;
            height: 380px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255,220,120,0.9) 0%, rgba(255,160,50,0.5) 45%, rgba(0,0,0,0) 75%);
            opacity: 0;
            filter: blur(40px);
            transition: opacity 0.6s ease, transform 0.6s ease;
            pointer-events: none;
            z-index: 0;
        }

        /* Brillo de luz frontal */
        .merge-stage-v::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 65%);
            opacity: 0;
            transition: opacity 0.5s ease;
            pointer-events: none;
            z-index: 5;
        }

        /* Clase activa para encender la luz */
        .merge-stage-v.light-on::before {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.5);
        }

        .merge-stage-v.light-on::after {
            opacity: 1;
        }

        .merge-img-v {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 100%;
            max-height: 400px;
            object-fit: contain;
            will-change: transform, filter;
            transition: filter 0.5s ease;
        }

        .merge-stage-v.light-on .v-img-4 {
            filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.7)) brightness(1.15);
        }

        @media (min-width: 992px) {
            .merge-img-v {
                max-height: 1220px;
            }
        }
        @media (max-width: 492px) {
        
        .merge-stage-v::before {width: 220px;height: 220px;}
        .hotspot-btn {padding-bottom: 0px;}
        .hotspot-card {width: 250px;}
    }

        .v-img-4 { z-index: 4; }
        .v-img-3 { z-index: 3; }
        .v-img-2 { z-index: 2; }
        .v-img-1 { z-index: 1; }

        /* -------------------------------------------------------------
           PROFUNDIDAD EN DESKTOP
        ------------------------------------------------------------- */
        .depth-stage {
            position: relative;
            flex-grow: 1;
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: visible;
        }

        .depth-layer {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 100%;
            max-height: 1000px;
            will-change: transform;
            object-fit: contain;
        }

        @media (min-width: 992px) {
            .depth-layer { max-height: 1000px; }
        }
        @media (min-width: 392px) {
            .depth-layer { max-width: 900px; }
        }
        @media (min-width: 1192px) {
            .depth-layer { max-width: 1900px; }
        }

        /* -------------------------------------------------------------
           EXPERIENCIA LOGOS - CORRECCIÓN DEFINITIVA DE CORTE
        ------------------------------------------------------------- */
        .brand-strip-container {
            display: flex;
            overflow: hidden;
            border: 1px solid #e5e7eb;
            background: #ffffff;
            border-radius: 8px;
            position: relative;
            width: 100%;
            user-select: none;
        }

        .brand-track {
            display: flex;
            flex-direction: row;
            width: max-content;
            animation: marqueeContinuous 30s linear infinite;
        }

        .brand-track-reverse {
            animation: marqueeContinuousReverse 30s linear infinite;
        }

        .brand-strip-container:hover .brand-track {
            animation-play-state: paused;
        }

        .brand-group {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .brand-item {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px 35px;
            border-right: 1px solid #e5e7eb;
            height: 90px;
            box-sizing: border-box;
        }

        .brand-item img {
            max-height: 50px;
            max-width: 250px;
            width: auto;
            height: auto;
            object-fit: contain;
            filter: grayscale(100%);
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .brand-item:hover img { 
            filter: grayscale(0%); 
            opacity: 1; 
        }

        @keyframes marqueeContinuous {
            0% { transform: translate3d(0, 0, 0); }
            100% { transform: translate3d(-50%, 0, 0); }
        }

        @keyframes marqueeContinuousReverse {
            0% { transform: translate3d(-50%, 0, 0); }
            100% { transform: translate3d(0, 0, 0); }
        }

        /* FOOTER */
        .footer-modern {
            background-color: #2e313c;
            color: #fff;
            border-top: 8px solid #797d8c;
            position: relative;
            z-index: 10;
        }

        .footer-modern a {
            color: #cbd5e1;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer-modern a:hover {
            color: #fff;
        }
        .footer-links li a:hover{color: #fff}

        .social-icon-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #ffffff !important;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        .social-icon-btn i { transition: transform 0.4s ease; }

        .social-icon-btn:hover {
            background: var(--c-primary);
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(52, 109, 200, 0.4);
        }

        .social-icon-btn:hover i { transform: rotate(360deg); }

.paginas {padding: 40px 0;}
.paginas h1 {font-size: 2rem}
.paginas h4 {font-size: 1.25rem}