/* ==========================================================================
   SISTEMA DE DISEÑO & VARIABLES (CSS MODERN VARIABLES)
   ========================================================================== */
:root {
    /* Paleta de Colores HSL Tailored */
    --color-primary: hsl(222, 47%, 12%);       /* Azul Médico Profundo */
    --color-primary-light: hsl(221, 83%, 25%); /* Azul Intermedio */
    --color-accent-blue: hsl(206, 100%, 50%);  /* Celeste Seguridad */
    --color-accent-green: hsl(158, 85%, 34%); /* Verde Tránsito / Salud */
    --color-accent-green-hover: hsl(158, 85%, 28%);
    --color-accent-amber: hsl(35, 92%, 50%);   /* Amarillo Advertencia / Señales */
    
    /* Neutros */
    --bg-light: hsl(210, 40%, 98%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-dark: hsl(222, 47%, 9%);             /* Fondo Oscuro Premium */
    --bg-dark-card: hsl(222, 47%, 14%);
    
    /* Texto */
    --text-dark: hsl(222, 47%, 15%);
    --text-muted: hsl(215, 20%, 50%);
    --text-light: hsl(0, 0%, 98%);
    
    /* Sombras y Efectos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(9, 30, 66, 0.08);
    --shadow-lg: 0 16px 32px rgba(9, 30, 66, 0.12);
    
    /* Fuentes y Bordes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

/* Contenedor Principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER / NAVIGATION BAR (ULTRA-PREMIUM CORPORATE MEDICAL)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88); /* Cristal semi-transparente */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 20px rgba(9, 30, 66, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Línea de acento premium con gradiente corporativo */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-green));
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97); /* Más sólido al hacer scroll */
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 8px 30px rgba(9, 30, 66, 0.06);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3px 24px 0 24px;
    height: clamp(76px, 4vw + 45px, 92px); /* Altura fluida y adaptable */
}

.navbar-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Evita que el contenedor del logo se deforme o encoja */
}

.navbar-logo {
    height: clamp(48px, 4vw + 16px, 64px); /* Logo fluido */
    width: clamp(48px, 4vw + 16px, 64px);  /* Logo fluido */
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid rgba(0, 128, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink: 0; /* Prohibe al navegador aplastar la imagen */
}

/* Micro-interacción: Borde azul y sombra luminosa al pasar el cursor */
.navbar-logo-link:hover .navbar-logo {
    transform: scale(1.03);
    border-color: rgba(0, 128, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 128, 255, 0.18);
}

/* Divisor vertical más alto y marcado con transición */
.navbar-logo-divider {
    width: 2px;
    height: clamp(28px, 3vw + 8px, 44px); /* Divisor fluido */
    background-color: rgba(226, 232, 240, 1);
    margin: 0 clamp(8px, 1.2vw, 16px); /* Margen fluido */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink: 0; /* Evita que el divisor se reduzca a cero */
}

/* Micro-interacción: Estiramiento y cambio de color en hover */
.navbar-logo-link:hover .navbar-logo-divider {
    background-color: var(--color-accent-blue);
    transform: scaleY(1.1);
}

.navbar-brand-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea los textos a la izquierda */
    line-height: 1.1;
    white-space: nowrap; /* Asegura que los textos del logo no salten de renglón */
    flex-shrink: 0; /* Protege el grupo de texto del logo */
}

.navbar-logo-text-top {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 0.6rem + 0.5vw, 1.05rem); /* Fuente de logo fluida */
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-accent-green);
    letter-spacing: 1.5px;
    opacity: 0.95;
}

.navbar-logo-text-bottom {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 0.75rem + 1vw, 1.65rem); /* Fuente de logo fluida */
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 30%, var(--color-accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.6px;
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.15));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 16px); /* Gap fluido entre ítems del menú */
}

.nav-link {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 0.6rem + 0.3vw, 0.86rem); /* Fuente de enlaces de menú fluida */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    height: 36px;
    line-height: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    opacity: 0.85;
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap; /* Prohíbe absolutamente que el texto salte de renglón */
}

/* Línea delicada abajo en estado de reposo */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 2px; /* Alineada un poco más abajo de la palabra en reposo */
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--color-accent-blue);
    border-radius: 2px;
    opacity: 0.7;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
    transform: translateY(0);
}

.nav-link span {
    display: inline-block;
    transition: color 0.3s ease;
}

/* Hover: El fondo de cápsula aparece, el texto cambia a azul oscuro legible y la línea sube sobre el texto */
.nav-link:hover {
    opacity: 1;
    background-color: rgba(0, 128, 255, 0.05); /* Highlight sutil celeste */
    color: var(--color-primary-light);
}

.nav-link:hover span {
    color: var(--color-primary-light);
}

.nav-link:hover::before {
    transform: translateY(-30px); /* La línea sube más y queda más separada por encima del texto */
    opacity: 1;
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, #0070e0 100%);
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 128, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 128, 255, 0.35);
    filter: brightness(1.05);
}

/* Hamburguesa Móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 4px;
}

/* ==========================================================================
   HERO SECTION (PREMIUM MEDICAL DESIGN)
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 170px;
    padding-bottom: 110px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    background-image: radial-gradient(circle at 50% 50%, rgba(13, 37, 77, 0.8) 0%, rgba(5, 16, 35, 0.98) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 2;
    position: relative;
}

.hero-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8; /* Celeste claro brillante */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge-icon {
    color: #38bdf8;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- EFECTO TYPOGRAPHIC LOCKUP HERO (REFINADO) --- */
.hero-title.typographic-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px; /* Espaciado sutil para unir conceptualmente ambas líneas */
    margin-bottom: 24px;
}

.hero-title.typographic-lockup .title-top {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.15rem); /* Tamaño contenido */
    font-weight: 300; /* Peso muy ligero para máxima elegancia */
    letter-spacing: 0.25em; /* Espaciado amplio para estirar la línea visualmente */
    color: rgba(255, 255, 255, 0.85); /* Blanco ligeramente translúcido */
    text-transform: uppercase;
}

.hero-title.typographic-lockup .title-bottom {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* Tamaño imponente pero no gigantesco */
    font-weight: 700; /* Fuerte y seguro */
    letter-spacing: -0.02em; /* Ligeramente compactado para un look premium */
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.25); /* Sombra difusa de alta calidad */
}

.hero-highlight {
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #e2e8f0; /* Color claro brillante y muy legible */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-highlight {
    color: #38bdf8;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, #0070e0 100%);
    color: white;
    box-shadow: 0 4px 18px rgba(0, 128, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 128, 255, 0.4);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 50px;
}

.btn-icon {
    transition: var(--transition-smooth);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.hero-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 580px;
    line-height: 1.5;
    margin-top: 6px;
    font-weight: 300;
}

/* ==========================================================================
   BANNER DE VALOR / GANCHO PERSUASIVO
   ========================================================================== */
.value-banner {
    position: relative;
    z-index: 10;
    margin-top: -48px; /* Overlaps slightly with hero for dynamic feel */
    padding: 0;
}

.value-banner-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.value-banner-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(20, 155, 116, 0.1);
    color: var(--color-accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-banner-text {
    flex-grow: 1;
}

.value-banner-text h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.value-banner-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.value-banner-text strong {
    color: var(--color-primary-light);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent-amber) 0%, hsl(35, 92%, 42%) 100%);
    color: white;
    padding: 14px 28px;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.45);
}

.btn-accent:hover .btn-icon {
    transform: translateX(4px);
}


/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
    padding: 90px 0;
    position: relative;
}

.section-light {
    background-color: var(--bg-light);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-blue);
    margin-bottom: 12px;
    background-color: rgba(0, 128, 255, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
}

.section-tag-light {
    color: #a2cfff;
    background-color: rgba(162, 207, 255, 0.1);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-dark .section-title {
    color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 24px auto;
}

.section-dark .section-subtitle {
    color: hsl(210, 20%, 75%);
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--color-accent-blue);
    margin: 0 auto;
    border-radius: 2px;
}

.section-divider-light {
    background-color: var(--color-accent-blue);
}

/* ==========================================================================
   CARDS GRID (EXAMEN Y CURSO)
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 128, 255, 0.2);
}

.card-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #e2e8f0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .card-image {
    transform: scale(1.06);
}

.card-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.badge-medical {
    background-color: rgba(0, 128, 255, 0.1);
    color: var(--color-accent-blue);
}

.badge-road {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-accent-amber);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 20px;
}

.card-features li {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card-features li::before {
    content: "✓";
    color: var(--color-accent-green);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

/* ==========================================================================
   ALERTA DE CRITERIOS MÉDICOS EXCLUYENTES (SECCIÓN REQUISITOS)
   ========================================================================== */
.medical-exclusion-alert {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(255, 152, 0, 0.06) 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-left: 5px solid #dc3545;
    border-radius: var(--radius-md);
    padding: 36px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

/* Subtle glow accent line at top */
.medical-exclusion-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.5) 0%, rgba(255, 152, 0, 0.3) 50%, transparent 100%);
}

.exclusion-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(220, 53, 69, 0.15);
}

.exclusion-icon-wrapper {
    width: 52px;
    height: 52px;
    background: rgba(220, 53, 69, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ff6b6b;
    animation: pulse 2.5s infinite;
}

.exclusion-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ff6b6b;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.exclusion-header-desc {
    font-size: 0.92rem;
    color: hsl(210, 20%, 70%);
    line-height: 1.5;
}

.exclusion-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exclusion-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.1);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    transition: var(--transition-smooth);
}

.exclusion-item:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.25);
    transform: translateX(4px);
}

.exclusion-item-marker {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(220, 53, 69, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exclusion-item-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.exclusion-item-content h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffa3a3;
    margin-bottom: 6px;
}

.exclusion-item-content p {
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.exclusion-item-content strong {
    color: #ffcdd2;
    font-weight: 700;
}

/* ==========================================================================
   SECCIÓN REQUISITOS (GRID DE ÍCONOS LLAMATIVOS)
   ========================================================================== */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.requirement-item {
    background-color: var(--bg-dark-card);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.requirement-item:hover {
    border-color: rgba(0, 128, 255, 0.3);
    transform: translateX(4px);
    background-color: hsl(222, 47%, 16%);
}

.req-icon-box {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background-color: rgba(0, 128, 255, 0.15);
    color: var(--color-accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.req-badge-first {
    position: absolute;
    top: -10px;
    font-size: 0.65rem;
    font-weight: 700;
    background-color: var(--color-accent-amber);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.req-content h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.req-content p {
    color: hsl(210, 20%, 75%);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN ARANCELES, PAGOS Y PASOS A SEGUIR
   ========================================================================== */
.linti-alert {
    display: flex;
    gap: 16px;
    padding: 24px;
    background-color: hsl(35, 92%, 97%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 5px solid var(--color-accent-amber);
    border-radius: var(--radius-sm);
    margin-bottom: 40px;
    align-items: flex-start;
}

.linti-alert-icon {
    color: var(--color-accent-amber);
    flex-shrink: 0;
    margin-top: 2px;
}

.linti-alert-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: hsl(35, 92%, 25%);
    margin-bottom: 6px;
}

.linti-alert-content p {
    font-size: 0.95rem;
    color: hsl(35, 92%, 15%);
    line-height: 1.6;
}

.linti-alert-content strong {
    color: hsl(35, 92%, 10%);
    font-weight: 700;
}

.aranceles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.arancel-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.arancel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 128, 255, 0.25);
}

.arancel-card-highlight {
    border: 2px solid var(--color-accent-blue);
    background-color: rgba(0, 128, 255, 0.02);
}

.arancel-card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, hsl(206, 100%, 42%) 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 10px rgba(0, 128, 255, 0.2);
}

.arancel-card-header {
    margin-bottom: 24px;
    flex-grow: 1;
}

.arancel-card-header h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.arancel-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.arancel-card-price {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary) 30%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: auto;
}

.arancel-card-note {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* Bloque de Datos Bancarios */
.bank-block {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-md);
    margin-bottom: 48px;
}

.bank-block-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--color-primary);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 16px;
}

.bank-block-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.bank-block-header svg {
    color: var(--color-accent-blue);
}

.bank-block-method {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 28px;
    line-height: 1.6;
}

.bank-block-method em {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 6px;
}

.bank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.bank-table tr {
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.bank-table tr:last-child {
    border-bottom: none;
}

.bank-table th {
    text-align: left;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--color-primary);
    width: 25%;
    vertical-align: middle;
}

.bank-table td {
    padding: 16px 20px;
    color: var(--text-dark);
    vertical-align: middle;
}

.copyable-text {
    background-color: var(--bg-light);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(0, 128, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.copyable-text:hover {
    background-color: rgba(0, 128, 255, 0.05);
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
    transform: translateY(-1px);
}

.copyable-text::after {
    content: "📋";
    font-size: 0.85rem;
    opacity: 0.6;
}

.font-mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bank-policy {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.bank-policy strong {
    color: var(--color-primary);
}

/* Instrucciones Post-Pago */
.postpago-block {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-md);
}

.postpago-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    color: var(--color-primary);
}

.postpago-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.postpago-header svg {
    color: var(--color-accent-amber);
}

.postpago-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 28px;
}

.postpago-step {
    display: flex;
    gap: 20px;
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.6);
    align-items: flex-start;
}

.postpago-step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, hsl(206, 100%, 42%) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 128, 255, 0.25);
}

.postpago-step p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.postpago-result {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(20, 155, 116, 0.06);
    border: 1px solid rgba(20, 155, 116, 0.25);
    padding: 24px;
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

.postpago-result-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.postpago-result p {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   UBICACIÓN, CONTACTO Y MAPA
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    align-items: start;
}

.contact-info-panel {
    background-color: var(--bg-dark-card);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
}

.contact-branding {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 24px;
}

.contact-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--color-accent-blue);
}

.contact-branding h3 {
    color: white;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.contact-subtitle {
    font-size: 0.85rem;
    color: #a2cfff;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.detail-icon {
    color: var(--color-accent-blue);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-detail-item h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-detail-item p, 
.contact-detail-item a {
    color: hsl(210, 20%, 75%);
    font-size: 0.95rem;
}

.contact-detail-item a:hover {
    color: var(--color-accent-blue);
    text-decoration: underline;
}

/* Panel de Mapa */
.contact-map-panel {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.05);
    height: 480px;
}

.google-map {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   FOOTER / PIE DE PÁGINA
   ========================================================================== */
.footer {
    background-color: hsl(222, 47%, 6%);
    color: hsl(210, 20%, 65%);
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 0.8rem;
    color: hsl(210, 20%, 50%);
}

.footer-email {
    margin-top: 6px;
}

.footer-email a {
    font-size: 0.85rem;
    color: hsl(210, 20%, 75%);
    transition: var(--transition-smooth);
}

.footer-email a:hover {
    color: var(--color-accent-blue);
}


.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    color: hsl(210, 20%, 75%);
}

.footer-links a:hover {
    color: var(--color-accent-blue);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-copy {
    font-size: 0.85rem;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: hsl(210, 20%, 45%);
    line-height: 1.5;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-accent-blue);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 128, 255, 0.15);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-icon-img {
    display: block;
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    background-color: hsl(206, 100%, 42%);
    box-shadow: 0 6px 20px rgba(0, 128, 255, 0.45), 0 0 0 1px rgba(0, 128, 255, 0.25);
}

/* ==========================================================================
   ANIMACIONES GENERALES (FADE-IN CON SCROLL)
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (100% RESPONSIVE)
   ========================================================================== */

/* Laptop & Adaptabilidad del Header (Punto de quiebre optimizado a 1080px) */
@media (max-width: 1080px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%; /* Posicionamiento dinámico adaptado a la altura del navbar */
        left: 0;
        right: 0;
        width: auto;
        height: auto;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 16px;
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* Tablet (hasta 992px) */
@media (max-width: 992px) {
    /* Las dimensiones de navbar y logo ahora son totalmente fluidas usando clamp() */

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-welcome-badge {
        font-size: 0.8rem;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .medical-exclusion-alert {
        padding: 28px;
        margin-bottom: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-map-panel {
        height: 380px;
    }
}

/* Mobile (hasta 768px) */
@media (max-width: 768px) {
    .medical-exclusion-alert {
        padding: 20px 16px;
        margin-bottom: 32px;
    }

    .exclusion-header {
        flex-direction: column;
        gap: 12px;
    }

    .exclusion-header h3 {
        font-size: 1.15rem;
    }

    .exclusion-item {
        padding: 16px;
    }

    .exclusion-item-content h4 {
        font-size: 0.95rem;
    }

    .exclusion-item-content p {
        font-size: 0.85rem;
    }

    .value-banner {
        margin-top: -36px;
        padding: 0 16px;
    }

    .value-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }

    .value-banner-icon {
        margin: 0 auto;
    }

    .btn-accent {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.8px;
    }

    .hero-welcome-badge {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        margin-bottom: 16px;
        padding: 6px 14px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .aranceles-grid,
    .postpago-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bank-table th {
        width: 40%;
        font-size: 0.85rem;
        padding: 10px 8px;
    }

    .bank-table td {
        font-size: 0.85rem;
        padding: 10px 8px;
    }

    .copyable-text {
        font-size: 0.8rem;
    }

    .contact-info-panel {
        padding: 24px;
    }

    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-icon-img {
        width: 30px;
        height: 30px;
    }
}

/* ==========================================================================
   ANIMACIONES CLAVE (KEYFRAMES)
   ========================================================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

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