
        /* ===== CSS VARIABLES ===== */
        :root {
            --azul-primario: #1B6BA0;
            --azul-oscuro: #0E3D5C;
            --azul-profundo: #0A2A3F;
            --gris-corporativo: #3D4F5F;
            --gris-claro: #F4F6F8;
            --gris-medio: #E2E6EA;
            --blanco: #FFFFFF;
            --acento-dorado: #C8953C;
            --acento-teal: #1A8A7D;
            --texto-oscuro: #1A2530;
            --texto-medio: #4A5568;
            --sombra-suave: 0 4px 30px rgba(11, 43, 67, 0.08);
            --sombra-media: 0 8px 40px rgba(11, 43, 67, 0.12);
            --sombra-fuerte: 0 12px 50px rgba(11, 43, 67, 0.18);
            --transicion: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --radio: 12px;
        }

        /* ===== RESET & BASE ===== */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: 'DM Sans', sans-serif;
            color: var(--texto-oscuro);
            background: var(--blanco);
            overflow-x: hidden;
            line-height: 1.7;
        }

        /* ===== SCROLLBAR ===== */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--gris-claro); }
        ::-webkit-scrollbar-thumb { background: var(--azul-primario); border-radius: 4px; }

        /* ===== HEADER / NAV ===== */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            transition: var(--transicion);
            padding: 1rem 0;
        }

        .header.scrolled {
            background: rgba(10, 42, 63, 0.97);
            backdrop-filter: blur(20px);
            padding: 0.6rem 0;
            box-shadow: 0 2px 30px rgba(0,0,0,0.2);
        }

        .header-inner {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo img {
            height: auto;
            width: 170px;
            transition: var(--transicion);
            display: block;
            filter: brightness(0) invert(1);
        }

        .header.scrolled .logo img {
            width: 140px;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 0.5rem;
        }

        .nav-menu a {
            color: rgba(255,255,255,0.9);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            padding: 0.6rem 1rem;
            border-radius: 8px;
            transition: var(--transicion);
            position: relative;
            letter-spacing: 0.02em;
        }

        .nav-menu a:hover,
        .nav-menu a.active {
            background: rgba(255,255,255,0.12);
            color: #fff;
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: var(--acento-dorado);
            transition: width 0.3s ease;
        }

        .nav-menu a:hover::after,
        .nav-menu a.active::after {
            width: 60%;
        }

        /* Mobile menu */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
            z-index: 1001;
        }

        .hamburger span {
            width: 28px;
            height: 2px;
            background: #fff;
            transition: var(--transicion);
            border-radius: 2px;
        }

        .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
        .hamburger.active span:nth-child(2) { opacity: 0; }
        .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

        /* ===== HERO CAROUSEL ===== */
        .hero {
            position: relative;
            height: 100vh;
            min-height: 700px;
            overflow: hidden;
        }

        .carousel {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .carousel-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1.2s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-slide.active {
            opacity: 1;
        }

        .carousel-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            filter: blur(2px) brightness(0.4);
            transform: scale(1.05);
            transition: transform 8s ease-out;
        }

        .carousel-slide.active .carousel-bg {
            transform: scale(1);
        }

        .carousel-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                135deg,
                rgba(10, 42, 63, 0.85) 0%,
                rgba(27, 107, 160, 0.6) 50%,
                rgba(10, 42, 63, 0.8) 100%
            );
        }

        .carousel-content {
            position: relative;
            z-index: 2;
            max-width: 900px;
            padding: 0 2rem;
            text-align: center;
            color: #fff;
        }

        .carousel-content .tag {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--acento-dorado);
            border: 1px solid rgba(200, 149, 60, 0.4);
            padding: 0.4rem 1.2rem;
            border-radius: 50px;
            margin-bottom: 1.5rem;
        }

        .carousel-content h1 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 600;
            line-height: 1.2;
            margin-bottom: 1.5rem;
            text-shadow: 0 2px 20px rgba(0,0,0,0.3);
        }

        .carousel-content p {
            font-size: clamp(0.95rem, 1.8vw, 1.1rem);
            line-height: 1.8;
            opacity: 0.9;
            max-width: 750px;
            margin: 0 auto 2rem;
        }

        .carousel-content .btn-hero {
            display: inline-block;
            background: var(--acento-dorado);
            color: #fff;
            padding: 0.9rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            letter-spacing: 0.05em;
            transition: var(--transicion);
            box-shadow: 0 4px 20px rgba(200, 149, 60, 0.3);
        }

        .carousel-content .btn-hero:hover {
            background: #D9A64A;
            transform: translateY(-2px);
            box-shadow: 0 6px 30px rgba(200, 149, 60, 0.4);
        }

        /* Carousel indicators */
        .carousel-indicators {
            position: absolute;
            bottom: 3rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
            z-index: 10;
        }

        .carousel-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            border: 2px solid rgba(255,255,255,0.5);
            cursor: pointer;
            transition: var(--transicion);
        }

        .carousel-dot.active {
            background: var(--acento-dorado);
            border-color: var(--acento-dorado);
            transform: scale(1.2);
        }

        /* Carousel arrows */
        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
            color: #fff;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transicion);
        }

        .carousel-arrow:hover {
            background: rgba(255,255,255,0.2);
        }

        .carousel-arrow.prev { left: 2rem; }
        .carousel-arrow.next { right: 2rem; }

        /* ===== SECTIONS GENERAL ===== */
        .section {
            padding: 6rem 2rem;
        }

        .section-inner {
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-header .overline {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--azul-primario);
            margin-bottom: 0.8rem;
            display: block;
        }

        .section-header h2 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.8rem, 4vw, 2.8rem);
            color: var(--azul-profundo);
            line-height: 1.3;
            margin-bottom: 1rem;
        }

        .section-header p {
            font-size: 1.05rem;
            color: var(--texto-medio);
            max-width: 700px;
            margin: 0 auto;
        }

        .divider-line {
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--azul-primario), var(--acento-dorado));
            margin: 1.5rem auto 0;
            border-radius: 2px;
        }

        /* ===== PAGE SECTIONS (Level 2) ===== */
        .page-section {
            display: block;
        }

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

        /* ===== HERO BANNER FOR INNER PAGES ===== */
        .page-hero {
            position: relative;
            height: 45vh;
            min-height: 350px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-top: 0;
        }

        .page-hero .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            filter: blur(3px) brightness(0.35);
            transform: scale(1.05);
        }

        .page-hero .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(10,42,63,0.88) 0%, rgba(27,107,160,0.65) 100%);
        }

        .page-hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: #fff;
            padding: 0 2rem;
        }

        .page-hero-content h1 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.8rem, 4vw, 3rem);
            margin-bottom: 1rem;
        }

        .page-hero-content p {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }

        /* ===== ABOUT / EMPRESA ===== */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
            margin-bottom: 4rem;
        }

        .about-text h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            color: var(--azul-profundo);
            margin-bottom: 1rem;
        }

        .about-text p {
            color: var(--texto-medio);
            margin-bottom: 1.5rem;
            line-height: 1.8;
        }

        .about-images {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .about-images .img-card {
            border-radius: var(--radio);
            overflow: hidden;
            box-shadow: var(--sombra-suave);
            aspect-ratio: 4/3;
        }

        .about-images .img-card:first-child {
            grid-column: 1 / -1;
            aspect-ratio: 16/9;
        }

        .about-images .img-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .about-images .img-card:hover img {
            transform: scale(1.05);
        }

        /* ===== SERVICE CARDS ===== */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .service-card {
            background: var(--blanco);
            border-radius: var(--radio);
            overflow: hidden;
            box-shadow: var(--sombra-suave);
            transition: var(--transicion);
            border: 1px solid rgba(0,0,0,0.04);
        }

        .service-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--sombra-fuerte);
        }

        .service-card .card-img {
            height: 220px;
            overflow: hidden;
        }

        .service-card .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .service-card:hover .card-img img {
            transform: scale(1.08);
        }

        .service-card .card-body {
            padding: 1.8rem;
        }

        .service-card .card-body h4 {
            font-family: 'Playfair Display', serif;
            font-size: 1.15rem;
            color: var(--azul-profundo);
            margin-bottom: 0.8rem;
            line-height: 1.4;
        }

        .service-card .card-body p {
            font-size: 0.9rem;
            color: var(--texto-medio);
            line-height: 1.7;
        }

        .service-card .card-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--azul-primario), var(--azul-oscuro));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: #fff;
            font-size: 1.3rem;
        }

        /* ===== TWO COLUMN CONTENT ===== */
        .two-col {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
            margin-bottom: 4rem;
        }

        .two-col.reverse {
            direction: rtl;
        }

        .two-col.reverse > * {
            direction: ltr;
        }

        .two-col .col-img {
            border-radius: var(--radio);
            overflow: hidden;
            box-shadow: var(--sombra-media);
            aspect-ratio: 16/10;
        }

        .two-col .col-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .two-col .col-text h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.6rem;
            color: var(--azul-profundo);
            margin-bottom: 1rem;
        }

        .two-col .col-text p {
            color: var(--texto-medio);
            line-height: 1.8;
        }

        /* ===== TOPIC LIST ===== */
        .topics-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .topic-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1.5rem;
            background: var(--blanco);
            border-radius: var(--radio);
            box-shadow: var(--sombra-suave);
            transition: var(--transicion);
            border-left: 4px solid var(--azul-primario);
        }

        .topic-item:hover {
            transform: translateX(4px);
            box-shadow: var(--sombra-media);
        }

        .topic-item .topic-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--azul-primario), var(--acento-teal));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1rem;
        }

        .topic-item h5 {
            font-size: 0.95rem;
            color: var(--azul-profundo);
            font-weight: 600;
        }

        /* ===== CONTACT SECTION ===== */
        .contact-section {
            background: linear-gradient(135deg, var(--gris-claro) 0%, var(--gris-medio) 100%);
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 3rem;
            align-items: start;
        }

        .contact-form {
            background: var(--blanco);
            padding: 2.5rem;
            border-radius: var(--radio);
            box-shadow: var(--sombra-media);
        }

        .contact-form h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.6rem;
            color: var(--azul-profundo);
            margin-bottom: 1.5rem;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .form-group {
            margin-bottom: 1.2rem;
        }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--gris-corporativo);
            margin-bottom: 0.4rem;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1.5px solid var(--gris-medio);
            border-radius: 8px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.95rem;
            color: var(--texto-oscuro);
            transition: var(--transicion);
            background: var(--gris-claro);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--azul-primario);
            background: var(--blanco);
            box-shadow: 0 0 0 3px rgba(27, 107, 160, 0.1);
        }

        .form-group textarea {
            height: 120px;
            resize: vertical;
        }

        .btn-submit {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, var(--azul-primario), var(--azul-oscuro));
            color: #fff;
            border: none;
            border-radius: 8px;
            font-family: 'DM Sans', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transicion);
            letter-spacing: 0.03em;
        }

        .btn-submit:hover {
            background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-profundo));
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(27, 107, 160, 0.3);
        }

        .contact-info {
            padding: 2rem 0;
        }

        .contact-info h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.6rem;
            color: var(--azul-profundo);
            margin-bottom: 1.5rem;
        }

        .contact-info .info-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding: 1rem 1.5rem;
            background: var(--blanco);
            border-radius: var(--radio);
            box-shadow: var(--sombra-suave);
        }

        .contact-info .info-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, var(--azul-primario), var(--acento-teal));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .contact-info .info-text p {
            font-size: 0.95rem;
            color: var(--texto-medio);
        }

        .contact-info .info-text a {
            color: var(--azul-primario);
            text-decoration: none;
            font-weight: 500;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .social-links a {
            width: 48px;
            height: 48px;
            background: var(--blanco);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--sombra-suave);
            transition: var(--transicion);
            color: var(--azul-primario);
            font-size: 1.2rem;
        }

        .social-links a:hover {
            background: var(--azul-primario);
            color: #fff;
            transform: translateY(-3px);
        }

        /* ===== FOOTER ===== */
        .footer {
            background: var(--azul-profundo);
            color: rgba(255,255,255,0.7);
            padding: 3rem 2rem 1.5rem;
        }

        .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr;
            gap: 3rem;
            padding-bottom: 2rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .footer-brand img {
            width: 180px;
            height: auto;
            filter: brightness(0) invert(1);
            margin-bottom: 1rem;
            display: block;
        }

        .footer-brand p {
            font-size: 0.9rem;
            line-height: 1.7;
        }

        .footer h4 {
            color: #fff;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li { margin-bottom: 0.6rem; }

        .footer-links a {
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: var(--acento-dorado);
        }

        .footer-bottom {
            max-width: 1200px;
            margin: 1.5rem auto 0;
            text-align: center;
            font-size: 0.85rem;
        }

        /* ===== NOTIFICATION ===== */
        .notification {
            position: fixed;
            top: 100px;
            right: 2rem;
            background: var(--acento-teal);
            color: #fff;
            padding: 1rem 2rem;
            border-radius: var(--radio);
            box-shadow: var(--sombra-fuerte);
            z-index: 2000;
            transform: translateX(120%);
            transition: transform 0.4s ease;
            font-weight: 500;
        }

        .notification.show {
            transform: translateX(0);
        }

        /* ===== BACK TO TOP ===== */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 48px;
            height: 48px;
            background: var(--azul-primario);
            color: #fff;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: var(--transicion);
            box-shadow: var(--sombra-media);
            z-index: 999;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: var(--azul-oscuro);
            transform: translateY(-3px);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .nav-menu {
                position: fixed;
                top: 0;
                right: -100%;
                width: 300px;
                height: 100vh;
                background: var(--azul-profundo);
                flex-direction: column;
                padding: 5rem 2rem 2rem;
                transition: right 0.4s ease;
                box-shadow: -5px 0 30px rgba(0,0,0,0.3);
            }

            .nav-menu.open {
                right: 0;
            }

            .hamburger {
                display: flex;
            }

            .about-grid,
            .two-col,
            .contact-grid {
                grid-template-columns: 1fr;
            }

            .two-col.reverse {
                direction: ltr;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .footer-inner {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .carousel-arrow { display: none; }
        }

        @media (max-width: 640px) {
            .section { padding: 4rem 1.5rem; }
            .services-grid { grid-template-columns: 1fr; }
            .topics-list { grid-template-columns: 1fr; }
            .about-images { grid-template-columns: 1fr; }
        }

        /* ===== LOADING SCREEN ===== */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--azul-profundo);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        .loader.hide {
            opacity: 0;
            pointer-events: none;
        }

        .loader-content {
            text-align: center;
            color: #fff;
        }

        .loader-content img {
            width: 220px;
            height: auto;
            filter: brightness(0) invert(1);
            margin-bottom: 1.5rem;
            animation: pulse 1.5s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.6; transform: scale(0.98); }
            50% { opacity: 1; transform: scale(1); }
        }

        .loader-bar {
            width: 200px;
            height: 3px;
            background: rgba(255,255,255,0.1);
            border-radius: 3px;
            overflow: hidden;
            margin: 0 auto;
        }

        .loader-bar::after {
            content: '';
            display: block;
            width: 40%;
            height: 100%;
            background: var(--acento-dorado);
            border-radius: 3px;
            animation: loading 1.2s ease-in-out infinite;
        }

        @keyframes loading {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(350%); }
        }
    
        /* ===== MULTI-PAGE NAV ACTIVE ===== */
        .nav-menu a.active {
            background: rgba(255,255,255,0.12);
            color: #fff;
        }
        .nav-menu a.active::after {
            width: 60%;
        }
