/* 
   Theme Name: Kadence Child
   Version: 2.2.0 (Global Lead Modal & A11Y)
Template: kadence
*/

:root {
    /* --- Brand Essentials --- */
    --brand-red: #e11d48;
    /* Rose-600 */
    --brand-dark-red: #be123c;
    /* Rose-700 */
    --brand-deep-red: #9f1239;
    /* Rose-800 */

    --brand-blue: #0284c7;
    /* Sky-600 (WCAG Contrast Fix) */
    --brand-dark-blue: #0369a1;
    /* Sky-700 */
    --brand-navy: #0f172a;
    /* Slate-900 (Main Text/Headings) */

    /* --- Modern Neutrals --- */
    --text-main: #1e293b;
    /* Slate-800 */
    --text-muted: #64748b;
    /* Slate-500 */
    --surface-light: #f8fafc;
    /* Slate-50 (Page BG) */
    --surface-white: #ffffff;
    /* Card BG */
    --border-subtle: #e2e8f0;
    /* Slate-200 */

    /* --- Typography --- */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* --- Senior Design Tokens --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* --- Spacing --- */
    --section-spacing: 120px;
    --container-width: 1280px;
}

/* --- Base --- */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--surface-light);
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--brand-navy);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons (Premium Pill) --- */
.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-dark-red));
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.3), 0 2px 4px -1px rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.btn-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.4), 0 4px 6px -2px rgba(225, 29, 72, 0.2);
    /* Subtle brightness boost */
    filter: brightness(1.1);
}

/* --- Navigation (Glass & Clean) --- */
.custom-premium-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    /* Very subtle separator */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.04em;
    font-family: 'Poppins', sans-serif;
}

.logo-highlight {
    color: var(--brand-blue);
}

/* Menu Items */
.premium-menu {
    display: flex;
    gap: 32px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
}

.premium-menu li,
.premium-menu .menu-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    /* Extra safeguard against theme overwrites */
}

.premium-menu a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    display: block;
    text-decoration: none;
}

.premium-menu a:hover {
    color: var(--brand-blue);
}

/* Animated Underline */
.premium-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-blue);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.premium-menu a:hover::after,
.premium-menu .current-menu-item a::after {
    width: 100%;
}

.premium-menu .current-menu-item a {
    color: var(--brand-dark-blue);
    font-weight: 600;
}

/* --- Hero Section (Modern Deep Overlay) --- */
.custom-hero {
    position: relative;
    padding: 200px 0 140px;
    /* Richer, deeper gradient */
    background-color: var(--brand-navy);
    background-image:
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15), transparent 40%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.85) 100%),
        url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    /* Soft curve instead of harsh ellipse */
    clip-path: ellipse(160% 100% at 50% 0%);
    margin-bottom: -60px;
    /* Pull content up slightly */
    z-index: 1;
}

.custom-hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: #ffffff !important;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.custom-hero h1 span {
    color: #38bdf8;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 10px;
    text-shadow: none;
    /* Gradient text handles it */
}

.custom-hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 48px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 32px 48px;
    border-radius: 24px;
    display: inline-block;
    margin-bottom: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- Features Grid (Info Cards) --- */
.section-container {
    padding: var(--section-spacing) 0;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-red);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 80px;
    font-size: 1.15rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.prop-card {
    background: var(--surface-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-subtle);
    position: relative;
    top: 0;
    text-align: left;
}

/* Hover: Blue Border + Lift + Shadow */
.prop-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    border-color: var(--brand-blue);
}

.prop-icon {
    font-size: 2rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f0f9ff;
    color: var(--brand-blue);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.prop-card:hover .prop-icon {
    background: var(--brand-blue);
    color: white;
    transform: rotate(6deg) scale(1.1);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
}

.prop-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--brand-navy);
}

.prop-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* --- Stats --- */
.program-stats {
    position: relative;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #1e293b 100%);
    padding: 120px 0;
    color: white;
    margin-top: -60px;
    /* Overlap effect if desired, or keep separate */
    z-index: 0;
    overflow: hidden;
}

/* Abstract Background Shapes for Stats */
.program-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item h3 {
    font-size: 4.5rem;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.stat-item p {
    font-size: 1.1rem;
    color: #94a3b8;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 5px;
}

/* --- Schedules (Styles defined in Senior UI Update Block, keeping placeholders if needed) --- */
/* (Grid styles were updated previously to .schedule-section) */


/* --- Senior UI Upgrade (Schedules Page) --- */
.schedule-section {
    background: var(--surface-light);
    padding: var(--section-spacing) 0;
    position: relative;
}

/* Premium Alert (Notification Style) */
.alert-premium {
    background: white;
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px -10px rgba(190, 18, 60, 0.15);
    border: 1px solid rgba(190, 18, 60, 0.1);
    border-left: 4px solid var(--brand-dark-red);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.alert-icon {
    font-size: 1.5rem;
    background: #fff1f2;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.alert-content {
    flex-grow: 1;
}

.alert-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff1f2;
    padding: 6px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Calendar Header */
.calendar-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-subtle), transparent);
}

/* Premium Cards */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.schedule-card-premium {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.schedule-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-subtle);
}

.card-status-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue), #38bdf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schedule-card-premium:hover .card-status-strip {
    opacity: 1;
}

.schedule-card-premium h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--brand-navy);
}

.time-slot {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    transition: background 0.3s;
}

.schedule-card-premium:hover .time-slot {
    background: #f1f5f9;
}

.clock-icon {
    margin-right: 12px;
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Featured Card */
.schedule-card-premium.featured {
    border: 2px solid var(--brand-dark-red);
    box-shadow: 0 15px 30px -5px rgba(190, 18, 60, 0.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff1f2;
    color: var(--brand-red);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Card Glass (Legacy support for Schedules Page) */
.info-card-glass {
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.hours-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.hours-item {
    text-align: center;
}

.hours-item strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 5px;
}

.hours-item span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
    color: var(--brand-blue);
}

.hours-divider {
    width: 1px;
    height: 80px;
    background: var(--border-subtle);
}

/* --- Senior UI Upgrade (Contact Page) --- */
.contact-layout-premium {
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

.contact-info-panel {
    flex: 1;
    text-align: left;
}

.info-items-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.info-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-blue);
    transform: translateX(10px);
}

.icon-box-sm {
    width: 48px;
    height: 48px;
    background: var(--surface-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.item-content h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--brand-navy);
}

.address-text,
.contact-link {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    display: block;
}

.contact-link {
    font-weight: 600;
    color: var(--brand-blue);
}

.note-badge {
    display: inline-block;
    margin-top: 8px;
    background: #f0f9ff;
    color: var(--brand-dark-blue);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* Map Frame */
.contact-map-frame {
    flex: 1.2;
    height: 600px;
    position: relative;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 8px solid white;
}

/* Hours Display Premium */
.hours-card-premium {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow-card);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hours-display-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 50px;
}

.hour-block .day-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.hour-block .time-label {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -1px;
}

.divider-vertical {
    width: 2px;
    height: 60px;
    background: var(--border-subtle);
}

@media (max-width: 900px) {
    .contact-layout-premium {
        flex-direction: column;
        gap: 40px;
    }

    .contact-map-frame {
        width: 100%;
        height: 400px;
    }

    .hours-display-grid {
        flex-direction: column;
        gap: 30px;
    }

    .divider-vertical {
        width: 60px;
        height: 2px;
    }
}

.map-section iframe {
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.footer-html {
    display: none;
}

/* --- Mobile Responsiveness --- */
.menu-toggle {
    display: none;
}

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

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-hero h1 {
        font-size: 2.5rem;
    }

    .value-props-grid {
        grid-template-columns: 1fr;
    }

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

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

    .stats-container {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--brand-navy);
    }

    .menu-items-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .menu-items-container.is-open {
        display: block;
    }

    .premium-menu {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* --- Map Background Overlay Section --- */
.map-overlay-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--surface-light);
    /* Fallback */
}

.map-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: grayscale(0.5);
    /* Subtle grayscale for style */
    opacity: 0.6;
}

.map-bg-layer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    /* Optional: Keep map static or allow interaction? User said generic background, usually static nice for BG */
}

.map-overlay-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    /* Stronger overlay for readability */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    /* Constrain width */
    margin: 0 auto;
    /* Center */
}

/* Animations */
/* GLOBAL RULE: "Pragmatismo Funcional" - Ensure content is visible by default even if JS fails */
.reveal-on-scroll {
    opacity: 1;
    /* Default to visible */
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

/* Optional: If we strictly want the animation, we add a class 'js-loading' via script to hide it initially, 
   but for now, to fix the 'empty page' issue, we prioritize visibility. 
   We can re-enable the fade-in effect by ensuring the JS adds a class to 'hide' then 'show' or similiar, 
   but simpler is to start visible or use a very safe animation approach. 
   
   Let's try a safe approach: Start visible. If JS runs, it can manage states, but CSS should default to visible.
*/

.reveal-on-scroll.hidden-state {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-right: 20px;
    background: rgba(14, 165, 233, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn:hover {
    color: var(--brand-dark-blue);
    background: rgba(0, 0, 0, 0.05);
}

.lang-btn.active {
    background: var(--brand-blue);
    color: white !important;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2);
}

.lang-divider {
    color: var(--border-subtle);
    font-size: 0.8rem;
    margin: 0 4px;
}

@media (max-width: 900px) {
    .language-switcher {
        margin-right: 50px;
        /* Space for hamburger */
        margin-left: auto;
    }
}

/* --- Premium Status Pill (Registration) --- */
.section-header-centered {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #fee2e2;
    margin-bottom: 24px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.status-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--brand-red);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-dark-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

.section-title-lg {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--brand-navy);
    line-height: 1.1;
    margin: 0;
}

/* --- Premium Schedule Cards (Home) --- */
.schedule-card-premium {
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.schedule-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-blue);
}

.schedule-card-premium.featured {
    border: 2px solid var(--brand-blue);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.15);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--surface-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.schedule-card-premium h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--brand-navy);
}

.price-highlight {
    margin-bottom: 24px;
}

.schedule-time {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-navy);
}

.premium-list {
    flex-grow: 1;
    margin-bottom: 32px;
}

.premium-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.check-icon {
    color: var(--brand-blue);
    font-weight: 800;
}

.btn-card-primary,
.btn-card-outline {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-card-primary {
    background: var(--brand-blue);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.btn-card-primary:hover {
    background: var(--brand-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4);
    color: white;
}

.btn-card-outline {
    background: white;
    color: var(--brand-navy);
    border: 1px solid var(--border-subtle);
}

.btn-card-outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: #f0f9ff;
}

/* Blob Background */
.bg-blob-right {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

/* --- Global Footer Custom (Premium UI Senior) --- */
.custom-footer {
    background-color: var(--brand-navy);
    background-image:
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.08), transparent 40%),
        linear-gradient(180deg, var(--brand-navy) 0%, #020617 100%);
    color: #e2e8f0;
    padding: 100px 0 50px;
    position: relative;
    font-size: 1rem;
    overflow: hidden;
    margin-top: 0;
}

/* Wave Separator */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.footer-wave .shape-fill {
    fill: var(--surface-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 80px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

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

.footer-logo svg {
    max-width: 240px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.footer-desc {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 320px;
    font-weight: 400;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4);
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
    border-radius: 2px;
}

.footer-links li,
.contact-list li,
.hours-list li {
    margin-bottom: 18px;
    list-style: none;
}

.footer-links a {
    color: #cbd5e1;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.footer-links a:hover::before {
    content: '›';
    position: absolute;
    left: -15px;
    color: var(--brand-blue);
    font-weight: 700;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        left: -10px;
    }
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #cbd5e1;
    line-height: 1.6;
}

.contact-list .icon {
    font-size: 1.2rem;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.2);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-list a {
    color: #fff;
    font-weight: 500;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.contact-list a:hover {
    border-bottom-style: solid;
    color: var(--brand-blue);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list strong {
    color: #fff;
    font-weight: 600;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.site-info a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.site-info a:hover {
    color: var(--brand-blue);
}

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

    .footer-col.brand-col {
        grid-column: 1 / -1;
        text-align: center;
    }

    .brand-col .footer-desc {
        margin: 0 auto 30px;
    }

    .brand-col .social-links {
        justify-content: center;
    }

    .footer-logo svg {
        margin: 0 auto;
        display: block;
    }
}

/* --- Inner Pages Premium UI --- */

/* Premium Card Container (Generic) */
.premium-card-container {
    background: white;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

/* About Page: Value Props */
.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.prop-card {
    text-align: left;
    padding: 30px;
    background: var(--surface-light);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    background: white;
    border-color: var(--brand-blue);
}

.prop-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* --- Contact Page: Senior UI Redesign --- */

.contact-layout-premium {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 0;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    min-height: 650px;
}

.contact-info-panel {
    background: var(--brand-navy);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.contact-info-panel .section-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-info-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    filter: grayscale(0.3) contrast(1.1);
    transition: filter 0.5s ease;
}

.contact-map-frame:hover .map-wrapper {
    filter: grayscale(0) contrast(1);
}

.info-items-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    z-index: 2;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.icon-box-sm {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    /* Contrast fix */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.6rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.info-item:hover .icon-box-sm {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
}

.item-content h4 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 700;
}

.address-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.contact-link {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    background-image: linear-gradient(to right, white 0%, white 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    padding-bottom: 2px;
}

.contact-link:hover {
    color: white;
    background-size: 100% 2px;
}

.note-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Contact Hours Glass Card - Senior Upgrade */
.hours-card-premium {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect behind the card */
.hours-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hours-display-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.hour-block {
    text-align: center;
    transition: transform 0.3s ease;
}

.hour-block:hover {
    transform: translateY(-5px);
}

.day-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.time-label {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-navy);
    font-feature-settings: "tnum";
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.divider-vertical {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--border-subtle), transparent);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .contact-layout-premium {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 20px;
    }

    .contact-map-frame {
        height: 400px;
        order: -1;
        /* Map on top mobile */
    }

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

    .hours-display-grid {
        flex-direction: column;
        gap: 50px;
    }

    .divider-vertical {
        width: 100px;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
    }
}

/* Gallery Page: Premium Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Aspect ratio cuadrado: balance perfecto para fotos mixtas (portrait + landscape) sin cortar cabezas */
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: #f1f5f9;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Anclar al tope absoluto: garantiza que las cabezas siempre sean visibles */
    object-position: top;
    transition: transform 0.6s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    padding: 40px 20px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay p {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: center;
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-info {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* --- Premium Status Pill (Registration) --- */
.section-header-centered {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #fee2e2;
    margin-bottom: 24px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.status-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--brand-red);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-dark-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

.section-title-lg {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--brand-navy);
    line-height: 1.1;
    margin: 0;
}

/* --- Premium Schedule Cards (Home) --- */
.schedule-card-premium {
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Equal height */
}

.schedule-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-blue);
}

.schedule-card-premium.featured {
    border: 2px solid var(--brand-blue);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.15);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--surface-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.schedule-card-premium:hover .icon-wrapper {
    background: var(--brand-blue);
    color: white;
    transform: rotate(6deg);
}

.schedule-card-premium h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--brand-navy);
    font-weight: 700;
}

.price-highlight {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--surface-light);
}

.schedule-time {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-navy);
    display: block;
}

.premium-list {
    flex-grow: 1;
    margin-bottom: 32px;
}

.premium-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.check-icon {
    color: var(--brand-blue);
    font-weight: 800;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    border-radius: 50%;
    font-size: 0.7rem;
}

.btn-card-primary,
.btn-card-outline {
    display: block;
    width: 100%;
    padding: 16px 0;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-card-primary {
    background: var(--brand-blue);
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.btn-card-primary:hover {
    background: var(--brand-dark-blue) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4);
    color: white !important;
}

.btn-card-outline {
    background: white;
    color: var(--brand-navy);
    border: 2px solid var(--surface-light);
}

.btn-card-outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: #f0f9ff;
}

/* Blob Background */
.bg-blob-right {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.04) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

/* --- Atomic Accessibility Overrides (Crucial Fixes) --- */

/* 1. Contact Page: Force White Text on Dark Panel */
/* 1. Contact Page: Force White Text (Hyper Specific Fix) */
html body .contact-info-panel h2.section-title,
.contact-info-panel .panel-header h2 {
    color: #ffffff !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.contact-info-panel p,
.contact-info-panel .address-text,
.contact-info-panel .contact-link,
.contact-info-panel .item-content h4 {
    color: #f1f5f9 !important;
    /* Slate 100 */
}

/* 2. Home Page: Force Dark Text on Light Cards */
.schedule-card-premium,
.schedule-card-premium.featured {
    background-color: #ffffff !important;
    color: #0f172a !important;
    /* Brand Navy */
}

.schedule-card-premium h3,
.schedule-card-premium .schedule-time {
    color: #0f172a !important;
}

.schedule-card-premium p,
.schedule-card-premium li {
    color: #334155 !important;
    /* Slate 700 */
}

/* 3. Student Stories: Force Dark Text on Light Body */
.student-story .story-content,
article.premium-card-container .story-content {
    color: #1e293b !important;
    /* Slate 800 */
    font-weight: 500;
}

/* 4. General Section Titles on White/Light Backgrounds */
.section-container h2.section-title,
.section-header-centered h2 {
    color: #0f172a !important;
}

/* --- Mobile First & Responsive Design Rules --- */
@media (max-width: 1024px) {
    .value-props-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }

    .hours-display-grid {
        gap: 20px;
    }

    .contact-layout-premium {
        flex-direction: column;
    }

    .contact-map-frame {
        width: 100%;
        height: 400px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
    }

    .site-branding {
        order: 1;
        flex: 1 1 auto;
    }

    .language-switcher {
        order: 2;
        margin-right: 15px;
        margin-left: auto;
    }

    #site-navigation {
        order: 3;
    }

    .header-cta {
        display: none;
    }

    .custom-logo {
        max-width: 150px;
        height: auto;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--brand-navy);
        padding: 0;
    }

    .premium-menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    #primary-menu-container.is-open .premium-menu {
        display: flex !important;
        background: #ffffff;
        padding: 20px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid var(--border-subtle);
    }

    .custom-hero {
        padding: 120px 0 80px;
        clip-path: ellipse(200% 100% at 50% 0%);
    }

    .custom-hero h1 {
        font-size: 2.2rem;
    }

    .custom-hero p {
        font-size: 1.1rem;
    }

    .hero-glass-card {
        padding: 20px;
        width: 90%;
        margin: 0 auto 30px auto;
    }

    .value-props-grid {
        grid-template-columns: 1fr !important;
    }

    .schedule-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }

    .stat-item h3 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .hours-display-grid {
        flex-direction: column;
    }

    .alert-premium {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .alert-action {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .student-story {
        flex-direction: column;
    }

    .story-image-wrapper {
        width: 100%;
        height: 300px;
    }

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

/* ==========================================================================
   GLOBAL ACCESSIBILITY ENHANCEMENTS (WCAG 2.1 AA)
   ========================================================================== */

/* Visible focus indicator for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--brand-blue) !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.3) !important;
    /* var(--brand-blue) transparent */
    border-radius: inherit;
    transition: outline-offset 0.15s ease-out, box-shadow 0.15s ease-out;
}

/* Removes outline only when clicking with mouse, preserves it for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Improved target sizing for accessibility (min 44x44px for touch targets) */
button,
.btn-header,
.btn-card-outline,
.btn-card-primary,
.social-icon,
.menu-toggle {
    min-width: 44px;
    min-height: 44px;
}

/* ========================================================== */
/* 👑 SENIOR AUDIT UI/UX FIXES - WCAG / A11Y / MODAL / TYPO   */
/* ========================================================== */

/* 1. Global Accessibility (A11Y) - Focus Visible */
*:focus-visible {
    outline: 3px solid var(--brand-dark-blue);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn-header:focus-visible, .btn-card-primary:focus-visible {
    outline: 3px solid var(--brand-red);
}

/* 2. Responsive Typography (Fluid Scale via Clamp) */
h1, .custom-hero h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem) !important;
}
.section-title {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
}
.section-title-lg {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

/* 3. Global Registration Modal (Lead Capture) - Glassmorphism */
.hidden-modal {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.glass-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999; /* Evita que la barra de WP tape el modal */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Margen seguro en móviles */
    box-sizing: border-box;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.glass-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Mucho más oscuro para foco absoluto */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-modal-container {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 60px -15px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 0; /* Eliminado el padding general para controlar la altura interna */
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden; /* Corta la sombra de scroll si es necesario */
}

.modal-content-wrapper {
    padding: 50px 40px 40px; /* Recuperado el padding en el wrapper */
    max-height: 85vh; /* Scroll solo dentro del contenido */
    overflow-y: auto;
}

.glass-modal:not(.hidden-modal) .glass-modal-container {
    transform: translateY(0) scale(1);
}

/* X Button WCAG & Mobile Fixes - Enforced for high contrast */
#registration-modal .close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0f172a !important; /* Slate-900: Oscuro para contraste máximo */
    border: 1px solid rgba(255,255,255,0.2) !important;
    width: 44px !important; 
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important; /* X blanca */
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 20 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

#registration-modal .close-modal-btn svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #ffffff !important; /* Forzar color blanco */
    stroke-width: 3px !important; /* Forzar grosor para que sea grueso y visible */
}

#registration-modal .close-modal-btn:hover, 
#registration-modal .close-modal-btn:focus-visible {
    background: var(--brand-red) !important;
    transform: rotate(90deg) scale(1.05) !important;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--brand-navy);
    font-size: 0.9rem;
}

.glass-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.glass-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

/* High Contrast Adjustments for Small Texts */
.text-muted {
    color: #475569 !important; /* Slate-600 */
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .glass-modal-container {
        max-width: 95%;
        border-radius: 20px;
    }
    .modal-content-wrapper {
        padding: 60px 20px 30px; /* Más padding arriba para que el texto no toque la X */
        max-height: 85vh;
    }
    .custom-hero h1 {
        margin-top: 10%;
    }
}