/* ==========================================
   ARCHIVO: styles.css
   ESTILOS GENERALES - LAW FIRM "CARBONEL"
   ========================================== */

/* 1. VARIABLES & PALETA DE COLORES CORPORATIVOS */
:root {
    --primary-blue: #0A192F;      /* Azul Marino Oscuro / Elegante */
    --secondary-blue: #112240;    /* Azul Secundario */
    --gold: #D4AF37;              /* Dorado Tradicional */
    --gold-hover: #c6ad5b;        /* Dorado Oscuro */
    --burgundy: #6B1D2F;          /* Granate / Borgoña */
    --light-bg: #F8FAFC;          /* Fondo Claro */
    --dark-text: #ad8d23;         /* Texto Oscuro */
    --light-text: #E6F1FF;        /* Texto Claro */
    --gray-text: #395b16;         /* Texto Secundario */
    --white: #FFFFFF;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* 2. RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CONTENEDOR BASE */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-blue); color: var(--light-text); }

/* TIPOGRAFÍA REUTILIZABLE */
.section-header {
    margin-bottom: 50px;
}
.text-center { text-align: center; }

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.light-text .section-title {
    color: var(--white);
}

.section-subtitle {
    color: var(--gray-text);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1rem;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--primary-blue);
}
.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-emergency {
    background-color: var(--burgundy);
    color: var(--white);
}
.btn-emergency:hover {
    background-color: #8C243B;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--gold);
    color: var(--primary-blue);
}

.btn-light {
    background-color: var(--white);
    color: var(--burgundy);
    font-weight: 700;
}
.btn-light:hover {
    background-color: var(--gold);
    color: var(--primary-blue);
}

.btn-block {
    width: 100%;
}

/* 3. TOPBAR DE CONTACTO */
.topbar {
    background-color: var(--primary-blue);
    color: var(--light-text);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    width: 100%;
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}

.topbar-info {
    display: flex;
    gap: 25px;
    margin-right: auto;
}

.topbar-info a, .topbar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.topbar-info a:hover {
    color: var(--gold);
}

.topbar-social {
    display: flex;
    gap: 18px;
    margin-left: auto;
}

.topbar-social a {
    color: var(--light-text);
}
.topbar-social a:hover { color: var(--gold); }

/* 4. HEADER & NAVEGACIÓN */
.header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 15px 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.logo-icon {
    font-size: 2rem;
    color: var(--gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-blue);
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--burgundy);
    font-weight: 700;
}

.brand-tagline {
    font-size: 0.6rem;
    color: var(--gold-hover);
    font-weight: 600;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-size: 17px;
    font-weight: 500;
    color: var(--primary-blue);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-list li:last-child {
    margin-right: 35px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* --- HERO SECTION DINÁMICO Y MODERNO --- */
/* ==========================================
   HERO SECTION - DISEÑO EJECUTIVO DEFINITIVO
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 120px 20px 80px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-bottom: 3px solid #d4af37;
    box-sizing: border-box;
}

/* Carrusel de fondos */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: dynamicZoomFade 14s infinite ease-in-out;
}

.slide-1 { animation-delay: 0s; }
.slide-2 { animation-delay: 7s; }

@keyframes dynamicZoomFade {
    0% { opacity: 0; transform: scale(1); }
    12% { opacity: 1; }
    45% { opacity: 1; transform: scale(1.04); }
    58% { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; }
}

/* Capa oscura con viñeta de profundidad */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 7, 18, 0.96) 0%, rgba(7, 13, 30, 0.88) 50%, rgba(15, 23, 42, 0.92) 100%);
    z-index: 2;
}

/* Contenedor fluido */
.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 50px;
}

/* Insignia de emergencia estilizada */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(185, 28, 28, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 8px 18px;
    border-radius: 30px;
    color: #fca5a5;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Títulos con tipografía elegante */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 20px;
}

.text-gold {
    color: #d4af37;
    background: linear-gradient(135deg, #fff7d6 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 35px;
    max-width: 680px;
    line-height: 1.7;
}

/* Botones de acción estéticos */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-red {
    background: #b91c1c;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(185, 28, 28, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary-red:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* --- TARJETAS FLOTANTES INFERIORES (Estética Pro & Espaciado Perfecto) --- */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 50px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 40px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(7, 13, 30, 0.96) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 26px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: 4px solid #d4af37;
    transition: all 0.35s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.15);
}

.feature-card .feature-icon, .feature-card .feature-icon i {
    font-size: 1.8rem;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    flex-shrink: 0;
}

.feature-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   ADAPTABILIDAD MÓVIL (RESPONSIVE PERFECTO)
   ========================================== */
@media screen and (max-width: 768px) {
    /* --- Estilos base del hero --- */
    .hero {
        padding: 100px 15px 50px 15px;
        min-height: auto;
    }
    .hero-title {
        font-size: 2.3rem !important;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn-primary-red, .btn-outline-gold {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .hero-features {
        grid-template-columns: 1fr;
        margin-top: 35px;
        padding-top: 25px;
        gap: 18px;
    }
    .feature-card {
        padding: 20px;
    }

    /* --- BARRA SUPERIOR ORGANIZADA EN MÓVILES --- */
    .topbar-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 8px 10px !important;
    }

    /* Teléfono y dirección arriba en formato limpio */
    .topbar-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Grupo de íconos alineados (Correo, Facebook, Instagram y WhatsApp juntos) */
    .topbar-social {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 22px !important; /* Espacio idéntico y uniforme entre los 4 íconos */
        width: 100% !important;
        margin-top: 4px !important;
    }

    .topbar-social a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        font-size: 1.15rem !important;
    }
}
/* 6. NOSOTROS */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.nosotros-img-box {
    position: relative;
}

.img-wrapper img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.nosotros-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-blue);
    border: 2px solid var(--gold);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
}

.exp-text {
    font-size: 0.75rem;
    text-align: center;
    max-width: 100px;
}

.section-desc {
    margin-bottom: 15px;
    color: var(--gray-text);
}

.values-list {
    margin: 25px 0;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.value-item i {
    color: var(--gold);
    margin-top: 4px;
}

/* 7. BANNER URGENCIA */
.banner-urgencia {
    background-color: var(--burgundy);
    color: var(--white);
    padding: 35px 0;
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
}

.banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-text h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 8. SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid #EAEAEA;
    padding: 35px 25px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.highlight-card {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, rgba(212,175,55,0.03) 0%, rgba(255,255,255,1) 100%);
}

.card-badge {
    position: absolute;
    top: 15px; right: 15px;
    background-color: var(--burgundy);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.service-list {
    margin-bottom: 25px;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--dark-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-list li i {
    font-size: 0.7rem;
    color: var(--gold);
}

.service-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--gold);
}

/* 9. ESTUDIO JURÍDICO */
.estudio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.estudio-box {
    background-color: var(--secondary-blue);
    padding: 35px;
    border-radius: 8px;
    border-bottom: 3px solid var(--gold);
}

.estudio-box .num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.estudio-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--white);
}

.estudio-box p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 10. NOTICIAS */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #EAEAEA;
}

.news-img {
    position: relative;
    height: 200px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 10px; left: 10px;
    background-color: var(--primary-blue);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.news-body {
    padding: 20px;
}

.news-body h3 {
    font-size: 1.05rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-body p {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 15px;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--burgundy);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 11. CONTACTO Y FORMULARIO */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contacto-info-box {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
}

.contacto-info-box h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 15px;
}

.contacto-info-box > p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item .icon {
    font-size: 1.3rem;
    color: var(--gold);
}

.info-item h4 {
    font-size: 0.9rem;
    color: var(--white);
}

.info-item p, .info-item a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.contacto-form-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
}

/* 12. MAPA & FOOTER */
.map-container {
    line-height: 0;
}

.footer {
    background-color: #050C1A;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo .brand-title { color: var(--white); }

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.footer-social a:hover {
    background-color: var(--gold);
    color: var(--primary-blue);
}

.emergency-tag {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-bottom {
    background-color: #02060D;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
}

/* BOTÓN WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.float-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--primary-blue);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-float:hover .float-tooltip {
    opacity: 1;
}

/* 13. RESPONSIVE DESIGN (DISEÑO ADAPTABLE) */
@media (max-width: 992px) {
    .grid-2, .contacto-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }

    .nosotros-experience-badge {
        right: 10px;
        bottom: -10px;
    }
}

@media (max-width: 768px) {
    .topbar-info span { display: none; }
    
    .menu-toggle {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .navbar.open {
        max-height: 350px;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav-list li:last-child {
        margin-right: 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .banner-flex {
        flex-direction: column;
        text-align: center;
    }
}





/* ==========================================
   SECCIÓN FILOSOFÍA INSTITUCIONAL - DISEÑO ÉLITE
   ========================================== */
/* ==========================================
   FILOSOFÍA INSTITUCIONAL - ENCABEZADO BLINDADO PRO
   ========================================== */

/* Aseguramos que el contenedor de la sección mantenga su fondo azul marino profundo */
section#filosofia.mision-vision-dinamica, 
section.mision-vision-dinamica {
    background: radial-gradient(circle at center, #0f1a36 0%, #070d1e 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 120px 20px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Forzamos que la cabecera sea transparente y flote perfectamente */
.mision-vision-dinamica .section-header,
.mision-vision-dinamica .section-header.light-text {
    background: transparent !important;
    background-color: transparent !important;
    text-align: center !important;
    margin-bottom: 60px !important;
    position: relative !important;
    box-shadow: none !important;
}

/* Insignia superior tipo placa dorada */
.mision-vision-dinamica .section-tag {
    color: #f3e5ab !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    display: inline-block !important;
    margin-bottom: 15px !important;
    background: rgba(212, 175, 55, 0.15) !important;
    padding: 6px 18px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) !important;
}

/* TÍTULO PRINCIPAL: Dorado brillante sin fondos extraños y sin alterar el layout */
.mision-vision-dinamica .section-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 44px !important;
    font-weight: 700 !important;
    color: #d4af37 !important; /* Forzamos color dorado sólido */
    background: transparent !important;
    background-color: transparent !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    margin-bottom: 15px !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 4px 25px rgba(212, 175, 55, 0.4) !important;
    display: block !important;
}

/* Línea decorativa elegante debajo del título */
.mision-vision-dinamica .section-title::after {
    content: '' !important;
    display: block !important;
    width: 80px !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, #d4af37, transparent) !important;
    margin: 15px auto 0 auto !important;
}

/* Subtítulo claro y legible con fondo transparente */
.mision-vision-dinamica .section-subtitle {
    color: #e2e8f0 !important;
    font-size: 16px !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    line-height: 1.7 !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Contenedor de Tarjetas Proporcional */
.mv-grid-proporcional {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1350px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .mv-grid-proporcional {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta Blanca de Lujo con Relieve */
.mv-card-adaptada {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(212, 175, 55, 0.35);
    display: flex;
    min-height: 310px;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Centrar la tercera tarjeta abajo en escritorios */
.mv-card-adaptada:nth-child(3) {
    grid-column: span 2;
    max-width: 700px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .mv-card-adaptada:nth-child(3) {
        grid-column: span 1;
        max-width: 100%;
    }
}

/* Caja de Texto Interna Mejorada */
.mv-texto-box {
    padding: 40px;
    width: 100%; 
    z-index: 2;
    transition: width 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

.mv-card-adaptada .mv-icon {
    font-size: 1.5rem;
    color: #b59226;
    background: rgba(212, 175, 55, 0.12);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 15px;
}

.mv-card-adaptada h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #070d1e;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mv-card-adaptada p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 20px;
}

/* Etiqueta inferior con estilo de credencial ejecutiva */
.mv-footer-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #8c6d14;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    padding: 8px 14px;
    border-radius: 8px;
    width: fit-content;
    border: 1px solid rgba(212, 175, 55, 0.3);
    letter-spacing: 0.5px;
}

/* Imagen Lateral con efecto desplegable */
.mv-imagen-lateral {
    position: absolute;
    right: 0;
    top: 0;
    width: 0%; 
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: width 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
    z-index: 1;
    background: #050c1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-imagen-lateral img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    transition: transform 0.5s ease;
}

.mv-card-adaptada:hover .mv-imagen-lateral img {
    transform: scale(1.04);
}

/* Efecto Hover Profesional en PC */
.mv-card-adaptada:hover {
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
}

.mv-card-adaptada:hover .mv-imagen-lateral {
    width: 48%; 
    opacity: 1;
}

.mv-card-adaptada:hover .mv-texto-box {
    width: 52%; 
    background: #faf8f5;
}

/* ==========================================
   Adaptabilidad Móvil (Responsive Pro)
   ========================================== */
@media screen and (max-width: 768px) {
    .mision-vision-dinamica {
        padding: 80px 15px;
    }
    .mision-vision-dinamica .section-title {
        font-size: 2.3rem !important;
    }
    .mv-card-adaptada {
        flex-direction: column;
        min-height: auto;
    }
    .mv-card-adaptada:hover .mv-texto-box {
        width: 100%;
        background: #ffffff;
    }
    .mv-card-adaptada:hover .mv-imagen-lateral {
        width: 100%;
        opacity: 1;
        position: relative;
        height: 220px;
    }
    .mv-imagen-lateral {
        position: relative;
        width: 100%;
        height: 200px;
        opacity: 1;
    }
    .mv-texto-box {
        padding: 30px 20px;
        width: 100% !important;
    }
}



/* --- SECCIÓN ESTUDIO JURÍDICO DINÁMICA --- */
.estudio-section {
    background: radial-gradient(circle at 50% 20%, #112240 0%, #0a192f 100%);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* Resplandor sutil de fondo */
.estudio-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 50%;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.estudio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas con efecto Glassmorphism y profundidad */
.estudio-box {
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Línea superior dorada animada al hacer hover */
.estudio-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gold, #d4af37);
    transition: width 0.4s ease;
}

/* Efectos al pasar el mouse (Hover dinámico) */
.estudio-box:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
    background: rgba(23, 42, 74, 0.85);
}

.estudio-box:hover::after {
    width: 100%;
}

/* Estilo dinámico para los números (01, 02, 03) */
.estudio-box .num {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: rgba(212, 175, 55, 0.2);
    transition: color 0.4s ease, transform 0.4s ease;
    margin-bottom: 15px;
    line-height: 1;
}

.estudio-box:hover .num {
    color: var(--gold, #d4af37);
    transform: scale(1.05);
}

.estudio-box h4 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.estudio-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #a0aec0;
}

/* Adaptabilidad para tablets y celulares */
@media (max-width: 992px) {
    .estudio-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}










/*Soluciones y Artículos de Interés*/


/* Sección separada con fondo profundo y línea dorada superior */
.noticias-dinamica {
    background: #050c1a;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.blog-grid-pro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 45px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas oscuras con efecto flotante y bordes personalizados */
.blog-card-pro {
    background: rgba(17, 34, 64, 0.9);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    animation: flotarSuave 5s ease-in-out infinite;
}

/* Retardos para la animación flotante independiente */
.blog-card-pro:nth-child(1) { animation-delay: 0s; border-top: 4px solid #ff4d4d; }
.blog-card-pro:nth-child(2) { animation-delay: 1.2s; border-top: 4px solid #d4af37; }
.blog-card-pro:nth-child(3) { animation-delay: 2.4s; border-top: 4px solid #2ec4b6; }

@keyframes flotarSuave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.blog-card-pro:hover {
    animation-play-state: paused;
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.6);
}

/* Contenedor de la imagen dentro de la tarjeta */
.blog-img-container {
    position: relative;
    width: 100%;
    height: 160px; /* Altura ideal para la foto referencial */
    overflow: hidden;
    background: #0a192f;
}

.blog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-pro:hover .blog-img-container img {
    transform: scale(1.08); /* Pequeño zoom dinámico al pasar el mouse */
}

/* Etiquetas flotantes sobre la imagen */
.blog-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.blog-card-pro:nth-child(1) .blog-badge { background: rgba(255, 77, 77, 0.85); color: #ffffff; }
.blog-card-pro:nth-child(2) .blog-badge { background: rgba(212, 175, 55, 0.85); color: #050c1a; }
.blog-card-pro:nth-child(3) .blog-badge { background: rgba(46, 196, 182, 0.85); color: #050c1a; }

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.blog-content h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.83rem;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-link {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--gold-hover, #d4af37);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 12px;
    color: #ffffff;
}

@media (max-width: 992px) {
    .blog-grid-pro {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .blog-card-pro {
        animation: none;
    }
}






/* Estilos para la sección de Por Qué Elegirnos */
.estudio-section.bg-dark {
    background-color: #0b1329; /* Ajusta según el tono oscuro de tu paleta */
    padding: 80px 0;
}

.light-text .section-title,
.light-text .section-subtitle {
    color: #ffffff;
}

.section-tag.gold {
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Cuadrícula de 4 elementos */
.estudio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.estudio-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 35px 25px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.estudio-box:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.estudio-box .num {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 15px;
}

.estudio-box h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.estudio-box p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Barra de Estadísticas inferior */
.stats-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    gap: 30px;
}

.stat-item h3 {
    color: #d4af37;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}






/* ==========================================
   ESTILOS DE LA SECCIÓN: CASOS DE ÉXITO
   ========================================== */
.seccion-casos-exito {
    padding: 90px 5%;
    background-color: #080e1d;
    color: #ffffff;
    text-align: center;
}

.casos-container-general {
    max-width: 1200px;
    margin: 0 auto;
}

.subtitulo-seccion {
    color: #d4af37;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
    font-weight: 600;
    display: block;
}

.titulo-seccion {
    font-size: 32px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    color: #ffffff;
}

.grid-casos-exito {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}










/* ==========================================
   ESTILOS DINÁMICOS: TARJETAS DE CASOS DE ÉXITO (PRO)
   ========================================== */
.casos-exito-seccion, 
#casos-exito.seccion-casos-exito {
    background: radial-gradient(circle at center, #0f1a36 0%, #070d1e 100%) !important;
    padding: 110px 20px !important;
    position: relative;
    border-top: 3px solid rgba(212, 175, 55, 0.4);
    border-bottom: 3px solid rgba(212, 175, 55, 0.4);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Títulos de la sección */
#casos-exito .subtitulo-seccion {
    color: #f3e5ab !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    display: block !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    background: rgba(212, 175, 55, 0.15);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#casos-exito .titulo-seccion {
    font-family: 'Playfair Display', serif !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    color: #d4af37 !important;
    text-align: center !important;
    margin-bottom: 50px !important;
    text-shadow: 0 4px 25px rgba(212, 175, 55, 0.35);
}

/* Contenedor Grid (mantiene tu clase original) */
.grid-casos-exito, 
#contenedorCasosExito {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
    gap: 30px !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
}

/* Estilo avanzado para cada tarjeta de caso */
.caso-card {
    background: linear-gradient(145deg, rgba(15, 26, 54, 0.95) 0%, rgba(7, 13, 30, 0.98) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
}

/* Franja superior de luz dorada en la tarjeta */
.caso-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #d4af37, #fff7d6) !important;
    z-index: 3;
}

.caso-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(212, 175, 55, 0.8) !important;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.2) !important;
}

/* Imagen del Caso con Efecto Zoom */
.caso-card-img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
    transition: transform 0.5s ease !important;
}

.caso-card:hover .caso-card-img {
    transform: scale(1.05);
}

.caso-card-content {
    padding: 30px 25px 20px 25px !important;
}

.caso-card-materia {
    display: inline-block !important;
    background-color: rgba(212, 175, 55, 0.12) !important;
    color: #d4af37 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 15px !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.caso-card-titulo {
    font-size: 21px !important;
    color: #ffffff !important;
    margin-bottom: 12px !important;
    font-family: 'Playfair Display', serif !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.caso-card-descripcion {
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
}

.caso-card-footer-wrapper {
    padding: 0 25px 25px 25px !important;
}

.caso-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 18px !important;
    font-size: 12.5px !important;
    color: #94a3b8 !important;
}

.caso-card-icon {
    color: #d4af37 !important;
    margin-right: 6px !important;
}

/* Botón Ver Más Casos */
.casos-btn-contenedor {
    text-align: center !important;
    margin-top: 50px !important;
}

.btn-ver-mas-casos {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #d4af37 !important;
    border: 2px solid #d4af37 !important;
    padding: 14px 32px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-ver-mas-casos:hover {
    background: #d4af37 !important;
    color: #070d1e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
}

.casos-btn-icon {
    margin-right: 0 !important;
}

/* ==========================================
   RESPONSIVE MÓVIL
   ========================================== */
@media screen and (max-width: 768px) {
    .casos-exito-seccion {
        padding: 70px 15px !important;
    }
    #casos-exito .titulo-seccion {
        font-size: 2.2rem !important;
    }
    .grid-casos-exito {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ==========================================
   CORRECCIÓN DE DISEÑO MÓVIL (HEADER Y MENÚ)
   ========================================== */
@media (max-width: 768px) {
    .header-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    /* Ajustar el logo para que no ocupe todo el ancho de golpe */
    .logo {
        max-width: 65%;
    }

    .logo-text .brand-title {
        font-size: 16px;
    }

    .logo-text .brand-tagline {
        font-size: 10px;
    }

    /* Contenedor de los botones de la derecha (CTA + Menú) */
    .header-cta {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Reducir tamaño del botón Consulta Gratuita en celular */
    .header-cta .btn-gold {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Estilizar y ordenar el botón hamburguesa */
    .menu-toggle {
        background: transparent;
        border: 1px solid #D4AF37;
        color: #D4AF37;
        padding: 8px 10px;
        border-radius: 4px;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}





/* --- SOLUCIÓN DEFINITIVA: MANTENER DISEÑO ORIGINAL Y EVITAR SALTO DE LÍNEA --- */

/* 1. Evitamos que cualquier enlace del menú principal se parta en dos líneas */
.nav-list .nav-link, .nav-menu a, .nav-links a {
    white-space: nowrap !important;
}

/* 2. Reducimos de forma muy sutil el espacio (gap) entre los elementos del menú principal solo cuando sea necesario para que "Filosofía Institucional" quepa perfectamente en una sola línea */
.nav-list {
    gap: 16px !important; /* Mantiene la posición general pero libera el espacio justo que ocupan "Hola, Joel" y "Salir" */
    align-items: center !important;
}




