/* ==========================================================================
   TU ABOGADO LEGAL - SISTEMA DE DISEÑO & ESTILOS PREMIUM
   ========================================================================== */

/* 1. Importación de Fuentes (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* 2. Variables de Diseño (Tokens) */
:root {
    --color-primary: #001F5B;       /* Navy Blue Profundo */
    --color-primary-dark: #001236;  /* Navy Ultra Oscuro para contrastes */
    --color-accent: #C5A059;        /* Oro Mate */
    --color-accent-hover: #AA8643;  /* Oro Oscuro para Hover */
    --color-accent-light: #E8D3A7;  /* Oro Claro para destellos */
    --color-bg-white: #FFFFFF;      /* Blanco Limpio */
    --color-bg-light: #F8FAFC;      /* Gris Muy Suave para secciones */
    --color-bg-card: #FFFFFF;
    --color-text-dark: #001F5B;     /* Texto principal en Navy */
    --color-text-muted: #556B8D;    /* Texto secundario */
    --color-text-light: #FFFFFF;    /* Texto sobre fondo oscuro */
    
    /* Fuentes */
    --font-title: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Sombras y Efectos */
    --shadow-sm: 0 4px 12px rgba(0, 31, 91, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 31, 91, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 31, 91, 0.12);
    --shadow-gold: 0 8px 25px rgba(197, 160, 89, 0.25);
    --shadow-gold-hover: 0 12px 35px rgba(197, 160, 89, 0.45);
    --glow-health: 0 0 25px rgba(197, 160, 89, 0.15);
    
    /* Transiciones */
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Estilos Globales y Reseteo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: var(--font-body);
}

/* 4. Layouts Comunes y Utilidades */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent) !important; }
.bg-light { background-color: var(--color-bg-light); }

/* Separadores estilizados */
.heading-separator {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: 15px auto 25px auto;
}

.heading-separator.left {
    margin: 15px 0 25px 0;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--color-bg-white);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-hover);
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, #957534 100%);
}

.btn-gold:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   COMPONENTES ESPECÍFICOS
   ========================================================================== */

/* --- HEADER / NAVEGACIÓN --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    height: 70px;
    background-color: rgba(0, 31, 91, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image-rounded {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    transition: var(--transition-slow);
}

.logo-container:hover .logo-image-rounded {
    transform: rotate(360deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-bg-white);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Menú de Navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 10px;
}

/* Menú Hamburguesa para Móvil */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--color-bg-white);
    transition: var(--transition-normal);
}

@media (max-width: 1080px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--color-primary-dark);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        transition: var(--transition-normal);
        z-index: 99;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 101;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .nav-cta {
        margin-left: 0;
    }
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding-top: 100px;
    overflow: hidden;
}

/* Imagen de fondo con overlay degradado */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.hero-section:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 31, 91, 0.95) 0%, 
        rgba(0, 18, 54, 0.8) 50%, 
        rgba(0, 31, 91, 0.95) 100%);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--color-accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    color: var(--color-bg-white);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 35px;
}

/* Efecto de escritura */
.typing-wrapper {
    height: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background-color: var(--color-accent);
    margin-left: 4px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- SECCIÓN VALORES --- */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.valor-card {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 31, 91, 0.05);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.valor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition-normal);
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 160, 89, 0.2);
}

.valor-card:hover::before {
    background-color: var(--color-accent);
}

.valor-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 31, 91, 0.03);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-normal);
}

.valor-card:hover .valor-icon-wrapper {
    background-color: rgba(197, 160, 89, 0.15);
    color: var(--color-accent-hover);
    transform: scale(1.1);
}

.valor-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 700;
}

.valor-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 991px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .valores-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ÁREAS LEGALES --- */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.area-card {
    background-color: var(--color-bg-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 31, 91, 0.03);
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.area-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 31, 91, 0.03) 0%, rgba(0, 31, 91, 0) 100%);
    z-index: -1;
    transition: var(--transition-normal);
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 160, 89, 0.3);
}

.area-card:hover::after {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.05) 0%, rgba(197, 160, 89, 0) 100%);
}

.area-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 31, 91, 0.05);
    transition: var(--transition-normal);
}

.area-card:hover .area-icon-container {
    color: var(--color-accent);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.area-title {
    font-size: 1.25rem;
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-weight: 700;
}

.area-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-normal);
}

.area-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.area-link svg {
    transition: var(--transition-fast);
}

.area-card:hover .area-link {
    color: var(--color-primary);
}

.area-card:hover .area-link svg {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ESPECIALIDAD: DERECHO A LA SALUD --- */
.salud-section {
    position: relative;
    background-color: #001236; /* Navy ultra profundo */
    color: var(--color-text-light);
    overflow: hidden;
}

/* Fondo decorativo con luces radiales */
.salud-bg-lights {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, rgba(0, 18, 54, 0) 60%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.salud-section .container {
    position: relative;
    z-index: 2;
}

.salud-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 991px) {
    .salud-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.salud-intro {
    max-width: 480px;
}

.salud-badge {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.salud-title {
    color: var(--color-bg-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.salud-desc {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 30px;
}

/* Sub-servicios */
.salud-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 576px) {
    .salud-services {
        grid-template-columns: 1fr;
    }
}

.salud-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 30px 24px;
    transition: var(--transition-normal);
    position: relative;
}

.salud-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--color-accent);
    box-shadow: var(--glow-health);
    transform: translateY(-5px);
}

.salud-card-icon {
    color: var(--color-accent);
    margin-bottom: 16px;
    display: inline-block;
    transition: var(--transition-normal);
}

.salud-card:hover .salud-card-icon {
    transform: scale(1.1);
}

.salud-card-title {
    color: var(--color-bg-white);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-weight: 700;
}

.salud-card-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Testimonios de Salud */
.testimonios-container {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.testimonios-title {
    font-size: 1rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.testimonio-slider {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

.testimonio-slide {
    grid-area: 1 / 1 / 2 / 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.testimonio-slide.active {
    opacity: 1;
    visibility: visible;
}

.testimonio-text {
    font-style: italic;
    font-family: var(--font-title);
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
}

.testimonio-author {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent);
}

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

/* --- SECCIÓN PROCESO (CÓMO TRABAJAMOS) --- */
.proceso-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

/* Línea conectora */
.proceso-steps::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    width: 70%;
    height: 1px;
    border-top: 2px dashed rgba(197, 160, 89, 0.2);
    z-index: 1;
}

@media (max-width: 768px) {
    .proceso-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .proceso-steps::after {
        display: none;
    }
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 3px solid var(--color-accent);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.step-card:hover .step-number-wrapper {
    transform: scale(1.1);
    background-color: var(--color-accent);
    border-color: var(--color-primary);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 700;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 280px;
    margin: 0 auto;
}

/* --- CONTACTO & ACCIÓN FINAL --- */
.contacto-section {
    position: relative;
    background-color: var(--color-bg-light);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 991px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.contacto-info {
    max-width: 400px;
}

.contacto-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.contacto-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 35px;
}

.contacto-detalles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detalle-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detalle-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detalle-text h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.detalle-text p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Formulario */
.contacto-form-wrapper {
    background-color: var(--color-bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 31, 91, 0.04);
}

@media (max-width: 576px) {
    .contacto-form-wrapper {
        padding: 24px;
    }
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1.5px solid #E2E8F0;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    transition: var(--transition-fast);
    background-color: #F8FAFC;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.form-checkbox input {
    margin-top: 3px;
    accent-color: var(--color-accent);
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
}

.form-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.form-or::before, .form-or::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid #E2E8F0;
}

.form-or::before {
    margin-right: 15px;
}

.form-or::after {
    margin-left: 15px;
}

.btn-whatsapp-form {
    width: 100%;
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-form:hover {
    background-color: #20BA56;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 80px 0 30px 0;
    border-top: 3px solid var(--color-accent);
}

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

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand {
    max-width: 320px;
}

.footer-brand-title {
    font-size: 1.6rem;
    color: var(--color-bg-white);
    margin-bottom: 12px;
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.footer-links h4 {
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-weight: 700;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-menu-link:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-map-wrapper h4 {
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-weight: 700;
}

.map-container {
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1) invert(0.9) contrast(1.2);
}

/* Derechos reservados */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ==========================================================================
   ANIMACIONES SCROLL (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* Efecto de carga en cascada */
.cascade-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active .cascade-item {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   PÁGINAS INTERNAS - HEADER SÓLIDO
   ========================================================================== */
.site-header--solid {
    background-color: rgba(0, 31, 91, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    height: 90px;
}

.site-header--solid .logo-title {
    color: var(--color-bg-white);
}

.site-header--solid .logo-subtitle {
    color: var(--color-accent);
}

.site-header--solid.scrolled {
    height: 70px;
}

/* ==========================================================================
   PÁGINAS INTERNAS - BREADCRUMB
   ============================================================================ */
.breadcrumb {
    margin-top: 90px;
    padding: 16px 0;
    background-color: var(--color-primary-dark);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.breadcrumb a {
    color: var(--color-accent);
    text-decoration: underline;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   PÁGINAS INTERNAS - HERO DE PÁGINA
   ========================================================================== */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 60px;
}

.page-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 31, 91, 0.95) 0%, rgba(0, 18, 54, 0.85) 50%, rgba(0, 31, 91, 0.95) 100%);
    z-index: 2;
}

.page-hero .container {
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   PÁGINAS INTERNAS - DERECHO A LA SALUD
   ========================================================================== */
.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

@media (max-width: 991px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
}

.service-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.service-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    color: var(--color-primary);
}

.service-content p {
    margin-bottom: 15px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.service-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.service-content li {
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

.sidebar-card {
    background: var(--color-bg-light);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 31, 91, 0.05);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.city-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-accent);
}

.city-card h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.city-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.faq-item {
    border-bottom: 1px solid rgba(0, 31, 91, 0.1);
    padding: 20px 0;
}

.faq-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-accent);
}

.testimonial-card p {
    font-style: italic;
    font-family: var(--font-title);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-dark);
}

.testimonial-card .author {
    margin-top: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
}

/* ==========================================================================
   PÁGINAS INTERNAS - ÁREAS LEGALES
   ========================================================================== */
.area-detail-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-accent);
}

.area-detail-card h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.area-detail-card h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
}

.area-detail-card p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.area-detail-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.area-detail-card li {
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

.area-detail-card .btn {
    margin-top: 20px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

.case-item {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(0, 31, 91, 0.05);
}

.case-item h4 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.case-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE - PÁGINAS INTERNAS
   ========================================================================== */
@media (max-width: 768px) {
    .page-hero {
        min-height: 40vh;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero .hero-title {
        font-size: 1.8rem;
    }

    .breadcrumb {
        margin-top: 70px;
        padding: 12px 0;
        font-size: 0.8rem;
    }

    .service-detail-grid,
    .area-detail-card {
        padding: 24px;
    }

    .service-content h2,
    .area-detail-card h2 {
        font-size: 1.5rem;
    }

    .service-content h3,
    .area-detail-card h3 {
        font-size: 1.15rem;
    }

    .sidebar-card {
        padding: 20px;
    }

    .city-card {
        padding: 18px;
    }
}

@media (max-width: 576px) {
    .page-hero {
        min-height: 35vh;
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .page-hero h1,
    .page-hero .hero-title {
        font-size: 1.5rem;
    }

    .page-hero .hero-subtitle {
        font-size: 0.9rem;
    }

    .breadcrumb {
        margin-top: 60px;
        padding: 10px 0;
        font-size: 0.75rem;
    }

    .area-detail-card {
        padding: 18px;
        border-left-width: 3px;
    }

    .cases-grid {
        gap: 12px;
    }

    .case-item {
        padding: 14px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .text-center p[style*="max-width"] {
        max-width: 100% !important;
        padding: 0 8px;
    }

    .page-hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .page-hero .hero-actions .btn {
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
        padding: 12px 20px;
    }

    .page-hero .salud-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    [style*="max-width: 800px"],
    [style*="max-width: 700px"],
    [style*="max-width: 600px"] {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ==========================================================================
   RESPONSIVE - HEADER MÓVIL MEJORADO
   ========================================================================== */
@media (max-width: 1080px) {
    .site-header .container {
        justify-content: space-between;
    }

    .site-header--solid {
        background-color: rgba(0, 31, 91, 0.98);
    }
}

@media (max-width: 576px) {
    .site-header,
    .site-header--solid {
        height: 60px;
    }

    .site-header .container {
        padding: 0 16px;
    }

    .logo-image-rounded {
        width: 40px;
        height: 40px;
    }

    .logo-title {
        font-size: 0.75rem;
    }

    .logo-subtitle {
        display: none;
    }

    .breadcrumb {
        margin-top: 60px;
    }
}

/* ==========================================================================
   NAV LINK ACTIVO - SUBRAYADO
   ========================================================================== */
.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    width: 100%;
}

.site-header--solid .nav-link.active {
    color: var(--color-accent);
}

/* ==========================================================================
   PÁGINAS INTERNAS - GRID CIUDADES
   ========================================================================== */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 991px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
