        /* =========================================================
           DISEÑO Chapulines VTC — concepto "carretera"
           Paleta original conservada:
             --rojo-principal   #D90429  (luz de freno / stop)
             --amarillo-acento  #FBC531  (raya de carril)
             --blanco-fondo     #F5F5F5  (concreto)
             --negro-texto      #1C1C1C  (asfalto)
           Tipografía: Oswald (condensada, tipo señalética de
           carretera) para títulos + Montserrat para texto.
           Elemento firma: divisores tipo "raya de carril" con
           marcadores de kilometraje entre secciones — la página
           se recorre como una ruta.
           ========================================================= */

        :root {
            --rojo-principal: #D90429;
            --amarillo-acento: #FBC531;
            --blanco-fondo: #F5F5F5;
            --negro-texto: #1C1C1C;
            --asfalto-2: #2B2B2B;
            --header-h: 96px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background-color: var(--blanco-fondo);
            color: var(--negro-texto);
            overflow-x: hidden;
        }

        h1, h2, h3, .cta-button, .main-nav a, .logo-text {
            font-family: 'Oswald', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 5%;
        }

        img { max-width: 100%; }

        a { -webkit-tap-highlight-color: transparent; }

        /* ---- accesibilidad: foco visible ---- */
        a:focus-visible,
        button:focus-visible {
            outline: 3px solid var(--rojo-principal);
            outline-offset: 3px;
            border-radius: 4px;
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* ===================== CARGA ===================== */
        #loader-container {
            position: fixed;
            inset: 0;
            background-color: var(--negro-texto);
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        #loader-container img {
            width: 64px;
            height: 64px;
            border-radius: 10px;
            opacity: 0.9;
            animation: pulseLogo 1.4s ease-in-out infinite;
        }

        #loader-spinner {
            width: 46px;
            height: 46px;
            border: 4px solid rgba(251, 197, 49, 0.25);
            border-top: 4px solid var(--amarillo-acento);
            border-radius: 50%;
            animation: spin 0.9s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        @keyframes pulseLogo {
            0%, 100% { transform: scale(1); opacity: 0.85; }
            50% { transform: scale(1.08); opacity: 1; }
        }

        #content {
            display: none;
            opacity: 0;
            transition: opacity 0.6s ease;
        }

        /* ===================== SCROLL REVEAL ===================== */
        .hidden {
            opacity: 0;
            transform: translateY(30px);
        }

        .visible {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        .icon-grid.visible .icon-item:nth-child(1) { transition-delay: 0.05s; }
        .icon-grid.visible .icon-item:nth-child(2) { transition-delay: 0.2s; }
        .icon-grid.visible .icon-item:nth-child(3) { transition-delay: 0.35s; }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ===================== HEADER ===================== */
        .main-header {
            background-color: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 5%;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: box-shadow 0.3s ease, padding 0.3s ease;
        }

        .main-header.scrolled {
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
            padding: 0.5rem 5%;
        }

        .logo-container a {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            text-decoration: none;
        }

        .logo {
            height: 64px;
            width: 64px;
            object-fit: cover;
            border-radius: 8px;
            transition: height 0.3s ease, width 0.3s ease;
        }

        .logo-text {
            display: none;
            color: var(--negro-texto);
            font-size: 1.15rem;
            font-weight: 700;
        }

        @media (min-width: 640px) {
            .logo-text { display: inline; }
        }

        /* ---- botón hamburguesa (3 "carriles") ---- */
        .menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            width: 42px;
            height: 42px;
            background: none;
            border: none;
            cursor: pointer;
            align-items: center;
        }

        .menu-toggle span {
            display: block;
            width: 26px;
            height: 3px;
            background-color: var(--negro-texto);
            border-radius: 2px;
            transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
        }

        .menu-toggle span:nth-child(2) { background-color: var(--amarillo-acento); width: 26px; }

        .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
        .menu-toggle.open span:nth-child(2) { opacity: 0; }
        .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--negro-texto); }

        /* ---- nav ---- */
        .main-nav ul {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin: 0;
        }

        .main-nav ul li {
            margin: 0 0.9rem;
        }

        .main-nav ul li a {
            position: relative;
            text-decoration: none;
            color: var(--negro-texto);
            font-weight: 600;
            font-size: 0.95rem;
            padding: 0.35rem 0.1rem;
            transition: color 0.3s ease;
        }

        .main-nav ul li a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 0;
            height: 3px;
            background-color: var(--rojo-principal);
            transition: width 0.3s ease;
        }

        .main-nav ul li a:hover {
            color: var(--rojo-principal);
        }

        .main-nav ul li a:hover::after,
        .main-nav ul li a.active::after {
            width: 100%;
        }

        .main-nav ul li a.active {
            color: var(--rojo-principal);
        }

        /* ---- CTA ---- */
        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background-color: var(--amarillo-acento);
            color: var(--negro-texto);
            text-decoration: none;
            font-weight: 700;
            font-size: 0.9rem;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
        }

        .cta-button i {
            transition: transform 0.3s ease;
        }

        .cta-button:hover {
            transform: translateY(-3px) scale(1.04);
            background-color: #ffd35e;
            box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
        }

        .cta-button:hover i {
            transform: translateX(4px);
        }

        /* ===================== HERO ===================== */
        .hero-section {
            position: relative;
            height: 90vh;
            min-height: 520px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: #fff;
            z-index: 1;
            overflow: hidden;
            scroll-margin-top: var(--header-h);
        }

        .hero-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('hero.png') no-repeat center center/cover;
            filter: blur(8px) brightness(0.75);
            transform: scale(1.05);
            z-index: -2;
        }

        .hero-section::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 60%, rgba(28,28,28,0.85) 100%);
            z-index: -1;
        }

        .hero-content h1, .hero-content p, .hero-content .cta-button {
            animation: fadeInDown 1.2s ease-in-out;
        }

        .hero-content h1 {
            font-size: clamp(2.5rem, 6vw, 4.25rem);
            margin-bottom: 0.75rem;
            text-shadow: 0 4px 18px rgba(0,0,0,0.4);
        }

        .hero-content .subrayado {
            color: var(--amarillo-acento);
        }

        .hero-content p {
            font-family: 'Montserrat', sans-serif;
            text-transform: none;
            letter-spacing: normal;
            font-size: clamp(1rem, 2vw, 1.25rem);
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .scroll-cue {
            position: absolute;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%);
            color: #fff;
            opacity: 0.85;
            font-size: 1.4rem;
            animation: bounce 2s ease-in-out infinite;
            text-decoration: none;
        }

        @keyframes bounce {
            0%, 100% { transform: translate(-50%, 0); }
            50% { transform: translate(-50%, 10px); }
        }

        /* ===================== DIVISOR DE CARRETERA ===================== */
        .road-divider {
            position: relative;
            height: 64px;
            background: linear-gradient(180deg, var(--asfalto-2) 0%, var(--negro-texto) 50%, var(--asfalto-2) 100%);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .road-divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 6px;
            transform: translateY(-50%);
            background-image: repeating-linear-gradient(90deg, var(--amarillo-acento) 0, var(--amarillo-acento) 38px, transparent 38px, transparent 78px);
            background-size: 78px 6px;
            animation: dash-move 1.6s linear infinite;
            opacity: 0.95;
        }

        @keyframes dash-move {
            to { background-position: 78px 0; }
        }

        .km-marker {
            position: relative;
            z-index: 2;
            background: var(--blanco-fondo);
            color: var(--negro-texto);
            font-family: 'Oswald', sans-serif;
            font-weight: 700;
            padding: 0.4rem 1rem;
            border-radius: 4px;
            border: 3px solid var(--amarillo-acento);
            letter-spacing: 0.05em;
            font-size: clamp(0.75rem, 1.6vw, 0.95rem);
            box-shadow: 0 4px 10px rgba(0,0,0,0.35);
            white-space: nowrap;
        }

        /* ===================== SECTION GENERAL ===================== */
        .section {
            padding: 4.5rem 0;
            text-align: center;
        }

        .section .eyebrow {
            display: inline-block;
            font-family: 'Oswald', sans-serif;
            color: var(--rojo-principal);
            font-weight: 600;
            letter-spacing: 0.15em;
            font-size: 0.8rem;
            margin-bottom: 0.5rem;
        }

        .section h2 {
            font-size: clamp(2rem, 4vw, 3rem);
            margin-bottom: 1rem;
            color: var(--negro-texto);
        }

        .section h2 .subrayado {
            color: var(--rojo-principal);
        }

        /* ===================== NOSOTROS ===================== */
        .nosotros-section {
            background-color: #fff;
            scroll-margin-top: var(--header-h);
        }

        .nosotros-section > .container > p.intro {
            max-width: 750px;
            margin: 0 auto 3rem auto;
            font-size: 1.05rem;
            color: #444;
        }

        .icon-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.75rem;
            margin-top: 1rem;
        }

        .icon-item {
            flex: 1 1 280px;
            max-width: 320px;
            padding: 2rem 1.5rem;
            border-radius: 14px;
            background: var(--blanco-fondo);
            border: 1px solid rgba(0,0,0,0.06);
            text-align: left;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .icon-item:hover {
            transform: translateY(-6px);
            box-shadow: 0 14px 28px rgba(0,0,0,0.12);
            border-color: var(--amarillo-acento);
        }

        .icon-item .icon-badge {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--negro-texto);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.1rem;
        }

        .icon-item .icon-badge .fas {
            font-size: 1.4rem;
            color: var(--amarillo-acento);
            margin: 0;
        }

        .icon-item h3 {
            margin-bottom: 0.6rem;
            color: var(--rojo-principal);
            font-size: 1.15rem;
        }

        .icon-item p {
            color: #444;
            font-size: 0.95rem;
            line-height: 1.55;
        }

        /* ===================== GALERÍA ===================== */
        .galeria-section {
            background-color: var(--blanco-fondo);
            scroll-margin-top: var(--header-h);
        }

        .carousel-container {
            position: relative;
            max-width: 800px;
            margin: 2rem auto 1.25rem auto;
            overflow: hidden;
            box-shadow: 0 10px 24px rgba(0,0,0,0.15);
            border-radius: 16px;
            border: 4px solid #fff;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }

        .carousel-item {
            min-width: 100%;
            box-sizing: border-box;
            position: relative;
        }

        .carousel-item img {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            display: block;
        }

        .carousel-title {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
            color: #fff;
            padding: 2.25rem 1.25rem 1rem;
            font-family: 'Oswald', sans-serif;
            font-size: 1.15rem;
            font-weight: 600;
            text-align: left;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        .carousel-item.active .carousel-title {
            opacity: 1;
        }

        .carousel-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(28, 28, 28, 0.55);
            color: white;
            border: none;
            width: 44px;
            height: 44px;
            cursor: pointer;
            z-index: 10;
            transition: background-color 0.3s ease, transform 0.2s ease;
            border-radius: 50%;
        }

        .carousel-button:hover {
            background-color: var(--rojo-principal);
            transform: translateY(-50%) scale(1.08);
        }

        #prev-btn { left: 12px; }
        #next-btn { right: 12px; }

        .carousel-dots {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .carousel-dot {
            width: 11px;
            height: 11px;
            border-radius: 50%;
            border: 2px solid var(--negro-texto);
            background: transparent;
            padding: 0;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .carousel-dot.active {
            background-color: var(--rojo-principal);
            border-color: var(--rojo-principal);
            transform: scale(1.15);
        }

        /* ===================== REQUISITOS ===================== */
        .requisitos-section {
            background-color: #fff;
            scroll-margin-top: var(--header-h);
        }

        .requisitos-section .container {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .requisitos-section > .container > p {
            max-width: 600px;
        }

        .requisitos-list {
            list-style: none;
            text-align: left;
            max-width: 600px;
            width: 100%;
            margin: 2rem auto;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        .requisitos-list li {
            font-size: 1.02rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background: var(--blanco-fondo);
            padding: 0.85rem 1.1rem;
            border-radius: 10px;
            border-left: 4px solid var(--amarillo-acento);
            transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
        }

        .requisitos-list li:hover {
            transform: translateX(6px);
            border-left-color: var(--rojo-principal);
            background-color: #fff;
            box-shadow: 0 6px 16px rgba(0,0,0,0.08);
        }

        .requisitos-list .fas {
            color: var(--rojo-principal);
            font-size: 1.15rem;
            flex-shrink: 0;
        }

        /* ===================== FOOTER ===================== */
        .main-footer {
            background-color: var(--negro-texto);
            color: #fff;
            text-align: center;
            padding: 2.5rem 5% 2rem;
        }

        .main-footer p {
            margin-bottom: 1rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1.25rem;
        }

        .social-links a {
            color: #fff;
            font-size: 1.5rem;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .social-links a:hover {
            color: var(--amarillo-acento);
            transform: scale(1.2) translateY(-2px);
        }

        .footer-links {
            display: flex;
            gap: 1rem;
            justify-content: center;
            align-items: center;
            margin-top: 0.5rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: #bbb;
            text-decoration: none;
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            font-weight: 700;
            font-size: 0.85rem;
            transition: all 0.18s ease;
        }

        .footer-links a:hover {
            background-color: rgba(255,255,255,0.08);
            color: #fff;
        }

        .credit {
            color: #888;
            font-size: 0.85rem;
        }

        .credit a { color: #999; }

        /* ===================== BACK TO TOP ===================== */
        #back-to-top {
            position: fixed;
            right: 1.25rem;
            bottom: 1.25rem;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--negro-texto);
            border: 3px solid var(--amarillo-acento);
            color: #fff;
            font-size: 1.1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 16px rgba(0,0,0,0.3);
            opacity: 0;
            pointer-events: none;
            transform: translateY(12px);
            transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
            z-index: 900;
        }

        #back-to-top.show {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        #back-to-top:hover {
            background-color: var(--rojo-principal);
        }

        /* ===================== RESPONSIVE ===================== */
        @media (max-width: 900px) {
            .main-nav {
                order: 3;
                width: 100%;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.35s ease;
            }

            .main-nav.open {
                max-height: 320px;
            }

            .main-nav ul {
                flex-direction: column;
                align-items: center;
                padding: 1rem 0 0.5rem;
            }

            .main-nav ul li {
                margin: 0.5rem 0;
            }

            .menu-toggle {
                display: flex;
            }

            .header-action {
                display: none;
            }

            .main-header {
                flex-wrap: wrap;
            }
        }

        @media (max-width: 768px) {
            .logo { height: 52px; width: 52px; }
            .requisitos-list li { font-size: 0.95rem; }
        }