:root {
    --bg-bone: #F9F7F2;     /* Color hueso suave para el fondo */
    --midnight: #0D1117;    /* Azul medianoche (Logo) */
    --gold: #C5A059;        /* Beige/Dorado (Logo) */
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }


/*Definimos la animación de "aparecer" */
@keyframes entradaSuave {
    from {
        opacity: 0; /* Empieza completamente transparente */
    }
    to {
        opacity: 1; /* Termina completamente visible */
    }
}

body {
    background-color: var(--bg-bone);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    animation: entradaSuave 0.6s ease-in-out;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* HEADER ESTILO KEKER */
.main-header {
    background: var(--white);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 70px; width: auto; filter: brightness(0.1); } /* Oscurecemos el logo blanco para el header claro */

.nav-horizontal ul { display: flex; list-style: none; align-items: center; }

.nav-horizontal li { margin-left: 40px; }

.nav-horizontal a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.nav-horizontal a:hover { color: var(--gold); }

.btn-cta {
    border: 1px solid var(--midnight);
    padding: 10px 20px;
    transition: all 0.3s !important;
}

.btn-cta:hover {
    background: var(--midnight);
    color: var(--white) !important;
}

/* HERO MINIMALISTA */
.hero-minimal {
    padding: 100px 0;
    background-color: var(--white);
}

.hero-minimal2 {
    padding: 100px 0;
    background-color: var(--midnight);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    line-height: 1.1;
    color: var(--midnight);
    margin: 20px 0;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.eyebrowdit {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.6rem;
    font-weight: 600;
}

.img-hero-crop {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 5px;
}

/* SECCIÓN DE VALORES */
.values-section { padding: 100px 0; background: var(--bg-bone); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--midnight);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

/* FOOTER CORPORATIVO (Azul Medianoche) */
.main-footer {
    background-color: var(--midnight);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo { height: 50px; margin-bottom: 25px; }

.footer-col h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--gold);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

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

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .hero-grid, .values-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-image { order: -1; }
    .img-hero-crop { height: 300px; }
}


/* Estilo Hero Pro 30/70 */
.hero-atlaw {
    background-color: var(--white);
    overflow: hidden;
}

.hero-container {
    display: flex;
    min-height: 75vh; /* Altura imponente pero deja ver lo que sigue */
    width: 100%;
}

.hero-text-block {
    flex: 0 0 35%; /* Ajustado para mejor legibilidad en pantallas grandes */
    background-color: var(--midnight); /* Azul de tu logo */
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 40px;
    z-index: 2;
}

.hero-image-block {
    flex: 0 0 65%;
    position: relative;
}

.img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text-block h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--gold); /* Usamos el dorado estratégicamente aquí */
    margin: 25px 0;
}

.btn-gold {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.4s;
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--midnight);
}

/* --- OPTIMIZACIÓN RESPONSIVA TOTAL --- */

/* Ajustes para Tablets y Laptops Pequeñas (Hasta 1024px) */
@media (max-width: 1024px) {
    .hero-text-block { flex: 0 0 45%; padding: 40px; }
    .hero-image-block { flex: 0 0 55%; }
    .hero-text-block h1 { font-size: 2.8rem; }
    .container { padding: 0 30px; }
}

/* Ajustes para Tablets y Móviles (Hasta 768px) */
@media (max-width: 768px) {
    /* Header: Apilado para mejor espacio */
    .header-flex { 
        flex-direction: column; 
        gap: 20px; 
        padding: 15px 0; 
    }
    .nav-horizontal li { margin: 0 10px; }
    .nav-horizontal a { font-size: 0.75rem; }

    /* Hero: Cambio de 30/70 a Apilado Vertical */
    .hero-container { flex-direction: column; }
    .hero-text-block, .hero-image-block { 
        flex: 0 0 90%; 
        width: 100%; 
    }
    
    /* Imagen arriba para impacto visual en móvil */
    .hero-image-block { 
        order: -1; 
        height: 350px; 
    }
      /* Imagen arriba para impacto visual en móvil */
    .hero-image-frame { 
        padding: 0px 0px 50px 0px;
    }  
    .hero-text-block { 
        padding: 50px 20px; 
        text-align: center; 
    }
    .hero-text-block h1 { font-size: 2.2rem; }
    .btn-gold { width: 100%; }

    /* Valores: 1 columna */
    .values-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }

    /* Footer: 1 columna y centrado */
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 40px; 
    }
    .footer-logo { margin: 0 auto 20px; }
}

/* Ajustes para Teléfonos Pequeños (Hasta 480px) */
@media (max-width: 480px) {
    .hero-text-block h1 { font-size: 1.8rem; }
    .logo img { height: 70px; }
    .hero-image-block { height: 250px; }
}


/* --- LÓGICA DE MENÚ HAMBURGUESA --- */

/* Ocultar elementos de control */
.menu-checkbox { display: none; }
.mobile-only { display: none; }

/* Icono Hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--midnight);
    transition: 0.3s;
}

/* RESPONSIVO (Móviles y Tablets) */
@media (max-width: 992px) {
    .hamburger { display: flex; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    /* Navegación Móvil (Drawer) */
    .nav-horizontal {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto a la derecha */
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 100px 40px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1050;
    }

    .nav-horizontal ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    /* Mostrar menú cuando el checkbox está activo */
    .menu-checkbox:checked ~ .nav-horizontal {
        right: 0;
    }

    /* Animación X de la hamburguesa */
    .menu-checkbox:checked ~ .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-checkbox:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .menu-checkbox:checked ~ .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --- ESTILOS LA FIRMA --- */

.firma-hero {
    padding: 150px 0 80px;
    background-color: var(--white);
    text-align: center;
}

.firma-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--midnight);
    max-width: 900px;
    margin: 0 auto;
}

.firma-intro { padding: 100px 0; background: var(--bg-bone); }

.grid-firma {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.img-parallax {
    width: 100%;
    height: 600px;
    object-fit: cover;
    box-shadow: 30px 30px 0px var(--gold); /* Detalle de diseño minimalista */
}

/* STAFF CARDS */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.staff-card {
    background: var(--white);
    transition: transform 0.4s ease;
    overflow: hidden;
}

.staff-card:hover { transform: translateY(-10px); }

.staff-img-box {
    width: 80%;
    aspect-ratio: 4/5;
    background: #eee;
    overflow: hidden;
}

.staff-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.6s;
}

.staff-card:hover img { filter: grayscale(0%); transform: scale(1.05); }

.staff-info { padding: 25px; text-align: center; }

/* CLIENTES LOGO SLIDER */
.logo-cloud {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    width: calc(250px * 10);
    animation: scroll 40s linear infinite;
    align-items: center;
    gap: 100px;
}

.logo-track img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: 0.3s;
}

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

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* --- NUEVA PÁGINA LA FIRMA --- */

.page-firma { background-color: var(--white); }

/* Hero Split - El Punto Wuao */
.firma-hero-split {
    padding: 120px 0 0;
    background-color: var(--white);
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 25px;
}

.display-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.7rem; /* Monumental */
    line-height: 1;
    color: var(--midnight);
    margin-top: 20px;
}

.img-signature {
    width: 100%;
    height: 600px;
    object-fit: cover;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 0% 80%); /* Efecto asimétrico */ /*80 Eran 100%*/
}

/* Valores Dark - El Contraste */
.valores-dark {
    background-color: var(--midnight);
    color: var(--white);
    padding: 120px 0;
    margin-top: -100px; /* Overlap controlado */
    position: relative;
    z-index: 5;
}

.gold-title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-size: 3rem;
}

.large-text { font-size: 1.4rem; opacity: 0.8; margin-top: 20px; max-width: 600px; }

.valores-interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2px; /* Línea de división minimalista */
    background: rgba(197, 160, 89, 0.2);
    margin-top: 60px;
}

.val-card {
    background: var(--midnight);
    padding: 50px 30px;
    transition: 0.5s;
}

.val-card:hover, .val-card.active {
    background: #161c24;
}

.val-num {
    display: block;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.goldstyle{ color: var(--gold);}

.val-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Staff Premium - Solución al solapamiento */
.staff-premium {
    padding: 150px 0; /* Padding extra para separar del bloque negro */
    background-color: var(--bg-bone);
}

.staff-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.main-partner { grid-column: span 2; grid-row: span 2; } /* Julio C destaca más */

.staff-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #000;
}

.staff-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.staff-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Marquee de Clientes */
.clientes-minimal { padding: 100px 0; text-align: center; }

.logo-marquee {
    overflow: hidden;
    padding: 50px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
    gap: 120px;
}

.marquee-track img { height: 100px; opacity:1; transition: 0.3s; }
.marquee-track img:hover { opacity: 1; transform: scale(1.1); }

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .hero-split-grid { grid-template-columns: 1fr; }
    .display-title { font-size: 3rem; }
    .img-signature { height: 400px; clip-path: none; }
    .staff-mosaic { grid-template-columns: 1fr 1fr; }
    .main-partner { grid-column: span 2; }
}


/* --- TARJETAS PEQUEÑAS ESTILO --- */
.staff-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.staff-card-small {
    background: var(--white);
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

/* Efecto Lightbox al Hover */
.staff-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 17, 23, 0.85); /* Azul medianoche con opacidad */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s;
    color: var(--white);
}

.staff-card-small:hover .staff-overlay { opacity: 1; }
.staff-card-small:hover img { transform: scale(1.1); }

.staff-overlay .loc { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.email-icon-btn {
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--gold);
    text-decoration: none;
    /*border: 1px solid var(--gold);*/
    width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10%;
    background: rgba(13, 17, 23, 0.85);
}

.card-info { padding: 15px; text-align: center; }
.card-info h3 { font-size: 1rem; color: var(--midnight); margin-bottom: 5px; }
.card-info .rank { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }



/* --- MODAL LEGAL V2.0 (MODERNO) --- */
.modal-legal {
    display: none;
    position: fixed;
    z-index: 2100;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(13, 17, 23, 0.85); /* Fondo oscuro con transparencia */
    backdrop-filter: blur(8px); /* Efecto cristal */
    align-items: center; justify-content: center;
    transition: all 0.3s ease;
}

.modal-content-modern {
    background: #FFFFFF;
    padding: 50px 40px;
    width: 95%; max-width: 500px;
    position: relative;
    border-radius: 24px; /* Bordes redondeados modernos */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); /* Sombra de profundidad */
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalAppear 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Icono Decorativo Gris */
.modal-icon-decoration {
    position: absolute;
    top: -25px; right: 40px;
    width: 60px; height: 60px;
    background: #F4F4F4;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.modal-icon-decoration svg { width: 30px; height: 30px; }

.modal-header-modern h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--midnight);
    margin-bottom: 30px;
}

.modal-header-modern strong { color: var(--gold); }

/* Inputs Modernos */
.input-wrapper { margin-bottom: 15px; }

.form-modern input, .form-modern textarea {
    width: 100%;
    padding: 16px 20px;
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 12px; /* Redondeo de inputs */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-modern input:focus, .form-modern textarea:focus {
    outline: none;
    background: #FFF;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.form-modern textarea { height: 120px; resize: none; }

/* Botón de Envío Minimalista */
.btn-modern-submit {
    width: 100%;
    padding: 18px;
    background: var(--midnight);
    color: #FFF;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-modern-submit:hover {
    background: #1a232e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 17, 23, 0.2);
}

.close-modal-modern {
    position: absolute; top: 20px; right: 25px;
    font-size: 28px; color: #ADB5BD; cursor: pointer;
    transition: color 0.3s;
}

.close-modal-modern:hover { color: var(--midnight); }



/* ==========================================================================
   NUEVOS ESTILOS DE VANGUARDIA - PÁGINA DE CONTACTO LUXURY
   ========================================================================== */

.page-contacto-premium { background-color: var(--bg-bone); }

.contacto-hero-minimal { padding: 80px 0 40px; background-color: var(--white); }

.display-title-contacto {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.1em;
    line-height: 1.1;
    color: var(--midnight);
    max-width: 850px;
}

/* Layout Asimétrico de Impacto Visual (Wow Factor) */
.sede-visual-section { padding: 80px 0; }

.grid-sede-arquitectura {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.sede-info-panel { padding-right: 20px; }

.location-tag {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.address-premium-box {
    margin: 30px 0;
    font-style: normal;
}

.address-premium-box .main-street {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    color: var(--midnight);
    font-weight: 600;
}

.address-premium-box .building-details, 
.address-premium-box .city-country {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.phone-display-box {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.phone-number-link {
    color: var(--midnight);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    transition: all 0.3s ease;
}

.phone-number-link:hover { color: var(--gold); }

/* Botón de Activación del Modal */
.btn-trigger-modal-contacto {
    background: var(--midnight);
    color: var(--white);
    padding: 18px 35px;
    border: none;
    border-radius: 50px; /* Estilo píldora moderna */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(13,17,23,0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-trigger-modal-contacto:hover {
    background: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(197,160,89,0.3);
}

/* Efecto Cinemático de la Imagen de Referencia */
.sede-image-wrapper { position: relative; }

.image-parallax-frame {
    position: relative;
    border-radius: 32px; /* Curvatura limpia de alta gama */
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    aspect-ratio: 4/3;
}

.img-sede-effect {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-parallax-frame:hover .img-sede-effect {
    transform: scale(1.06);
}

/* --- NUEVO INTERFAZ MODAL TOTAL --- */
.modal-contacto-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px); /* Cristal esmerilado profundo */
    align-items: center; justify-content: center;
}

.modal-contacto-wrapper {
    background: #FFFFFF;
    padding: 60px 45px;
    width: 95%;
    max-width: 520px;
    border-radius: 28px; /* Bordes redondeados elegantes */
    position: relative;
    box-shadow: 0 35px 70px -15px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.8);
    animation: modalSlideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Icono Decorativo de Avión en Gris */
.modal-mail-flying-icon {
    position: absolute;
    top: -28px;
    left: 45px;
    width: 60px;
    height: 60px;
    background: #F4F5F7;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.modal-mail-flying-icon svg { width: 28px; height: 28px; }

.btn-close-contacto-modal {
    position: absolute; top: 20px; right: 25px;
    font-size: 32px; color: #A0AAB2; cursor: pointer;
    transition: color 0.3s;
}

.btn-close-contacto-modal:hover { color: var(--midnight); }

.modal-contacto-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--midnight);
    margin-bottom: 8px;
}

.modal-contacto-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

/* Formulario Interno del Modal */
.field-group-modern { margin-bottom: 18px; }

.form-moderno-modal input, 
.form-moderno-modal textarea {
    width: 100%;
    padding: 16px 20px;
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 14px; /* Redondeado suave de campos */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-moderno-modal input:focus, 
.form-moderno-modal textarea:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.12);
}

.form-moderno-modal textarea { height: 110px; resize: none; }

.captcha-modal-alignment {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.btn-envio-modal-premium {
    width: 100%;
    padding: 18px;
    background: var(--midnight);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-envio-modal-premium:hover {
    background: var(--gold);
    box-shadow: 0 12px 24px rgba(197,160,89,0.2);
}

/* Filtro Estético para el Mapa de Google */
.mapa-full-viewport { width: 100%; background-color: var(--white); overflow: hidden; line-height: 0; }
.google-map-premium-filter {
    filter: grayscale(15%) contrast(102%) brightness(96%);
    transition: filter 0.6s ease;
}
.google-map-premium-filter:hover { filter: grayscale(0%); }

/* RESPONSIVIDAD AVANZADA */
@media (max-width: 992px) {
    .grid-sede-arquitectura { grid-template-columns: 1fr; gap: 50px; padding: 20px; }
    .display-title-contacto { font-size: 2.6rem; }
    .image-parallax-frame { aspect-ratio: 16/10; }
    .modal-contacto-wrapper { padding: 45px 25px; }
}

/* --- CANALES DIGITALES DE ALTA VISIBILIDAD --- */
.digital-channels-grid {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.btn-channel-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1px solid rgba(13, 17, 23, 0.15); /* Borde sutil midnight */
    border-radius: 12px; /* Esquinas suavizadas acordes al nuevo diseño */
    color: var(--midnight);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Íconos vectoriales adaptados al color de la firma */
.icon-svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    transition: transform 0.3s ease;
}

/* Efecto Hover Inteligente */
.btn-channel-outline:hover {
    border-color: var(--gold);
    background-color: #FFFFFF;
    color: var(--gold);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.08);
}

.btn-channel-outline:hover .icon-svg {
    transform: scale(1.15);
}

/* Ajuste responsivo para pantallas móviles */
@media (max-width: 580px) {
    .digital-channels-grid {
        flex-direction: column;
        gap: 10px;
    }
    .btn-channel-outline {
        width: 100%;
    }
}



/* ==========================================================================
   ESTILOS PREMIUM - ÁREAS DE SERVICIO (ESTILO KEKER / HOGAN)
   ========================================================================== */

.page-servicios { background-color: var(--bg-bone); }

.servicios-hero { padding: 80px 0 60px; background-color: var(--white); }

.display-title-servicios {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.1rem;
    line-height: 1.1;
    color: var(--midnight);
    max-width: 900px;
}

/* Macro Grid 50/50 Inmersivo */
.macro-servicios-section { width: 100%; overflow: hidden; }

.grid-macro-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.macro-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 8%;
    transition: all 0.5s ease;
}

/* Bloque Corporativo - Azul Medianoche */
.corporativo-block {
    background-color: var(--midnight);
    color: var(--white);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.corporativo-block h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

/* Bloque Personas - Color Hueso */
.personas-block {
    background-color: var(--bg-bone);
    color: var(--text-dark);
}

.personas-block h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--midnight);
    margin-bottom: 20px;
}

.area-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.area-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 50px;
    opacity: 0.9;
}

/* Lista Interna Minimalista de Sub-Servicios */
.sub-servicios-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sub-service-item {
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.sub-service-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.corporativo-block .sub-service-item h4 { color: var(--white); }
.personas-block .sub-service-item h4 { color: var(--midnight); }

.sub-service-item p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Efecto hover interactivo en las sub-prácticas */
.sub-service-item:hover {
    transform: translateX(10px);
}

/* Sección CTA Final */
.servicios-cta {
    background-color: var(--white);
    padding: 100px 0;
}

.servicios-cta h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--midnight);
    margin-bottom: 10px;
}

.servicios-cta p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-servicios-premium {
    display: inline-block;
    padding: 18px 40px;
    background: var(--midnight);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    box-shadow: 0 15px 30px rgba(13,17,23,0.1);
    transition: all 0.3s;
}

.btn-servicios-premium:hover {
    background: var(--gold);
    color: var(--midnight);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(197,160,89,0.25);
}

/* OPTIMIZACIÓN RESPONSIVA TOTAL */
@media (max-width: 992px) {
    .grid-macro-areas { grid-template-columns: 1fr; }
    .display-title-servicios { font-size: 2.8rem; }
    .macro-block { padding: 
        0px 5%; }
}