/* home_new.css updates */

/* Programs Section Background */
#programs {
    background-image: url('../card_software.png');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

#programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.7), rgba(10, 14, 23, 1) 90%);
    /* Dark overlay */
    z-index: -1;
}

/* Feature Grid - 4x2 Layout */
#programs .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Reduced from 60px grid gap */
    padding-top: 0;
}

.feature-grid-small {
    display: grid;
    gap: 15px;
    /* Slightly tighter gap between cards */
    margin-top: 10px;
    /* Reduced from 40px */
    /* Default to 4 columns on large screens to achieve 4 up / 4 down */
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.feature-box {
    background: rgba(255, 255, 255, 0.03);
    /* Reset background to glass */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Increased opacity from 0.05 for better visibility */
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 150px;
    /* Slightly taller for better presence */
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .feature-grid-small {
        grid-template-columns: repeat(2, 1fr);
        /* 2x4 on tablets */
    }
}

@media (max-width: 600px) {
    .feature-grid-small {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .feature-box {
        min-height: 100px;
        flex-direction: row;
        /* Horizontal layout on mobile to save space? Or keep vertical? Keeping vertical for consistency but smaller */
        gap: 15px;
        text-align: left;
        align-items: center;
        justify-content: flex-start;
        padding: 15px 25px;
    }

    .feature-box .impact-icon-linear {
        margin-bottom: 0;
        margin-right: 10px;
    }
}

/* Previous styles... */
:root {
    --bg-dark: #0a0e17;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --primary: #00f2ea;
    --secondary: #ff0050;
    --accent: #7b2cbf;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --gradient-main: linear-gradient(135deg, #00f2ea 0%, #7b2cbf 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    line-height: 1.6;
}

/* Nav Dots */
.nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.dot:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

.tooltip {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

/* Scroll Snap Container */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Sections */
/* Sections */
section {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 40px;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 60px;
    align-items: center;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -1px;
}

h1 {
    font-size: 3.5rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.1;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 600px;
}

#footer p {
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--gradient-main);
    border: none;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 242, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 242, 234, 0.4);
}

.btn-secondary:hover {
    background: white;
    color: var(--bg-dark);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Hero Specific */
#hero .container {
    display: block;
    text-align: center;
}

#hero h1 {
    font-size: 4rem;
}

/* Animation */
.fade-up {
    opacity: 1;
    /* Safety mode: Visible by default */
    transform: translateY(0);
    /* Safety mode: No initial offset */
    transition: opacity 1s ease, transform 1s ease;
}

section.active .fade-up,
#b2b-promo.active .fade-up,
#footer.active .fade-up {
    opacity: 1;
    transform: translateY(0);
}

.hero-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
}

/* Impact & Features Styles */
.impact-grid {
    display: grid;
    gap: 20px;
    margin-top: 40px;
    text-align: left;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    /* Restored from inline style */
}

.impact-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.impact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 234, 0.5);
}

.impact-icon-linear {
    color: var(--primary);
    margin-bottom: 15px;
    width: 40px;
    height: 40px;
}

.feature-box .impact-icon-linear {
    color: #fff;
    transition: color 0.3s ease;
}

.feature-box .feature-title {
    transition: color 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-box:hover {
    border-color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 234, 0.5);
}

.feature-box:hover .impact-icon-linear {
    color: var(--primary) !important;
    filter: drop-shadow(0 0 5px rgba(0, 242, 234, 0.5));
}

.feature-box:hover .feature-title {
    color: var(--primary);
}

/* Coaches */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    transition: 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: var(--primary);
}

/* Testimonials */
#testimonials {
    background-image: linear-gradient(rgba(10, 14, 23, 0.95), rgba(10, 14, 23, 0.95)), url('../bg-tech.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 5;
    /* Ensure it's above other elements if overlaps occur */
}

#testimonials .container {
    display: flex !important;
    /* Override grid default */
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from center to push down */
    align-items: center;
    height: 100%;
    gap: 30px;
    padding-top: 150px;
    /* Added large top padding */
}

.testimonial-slider {
    position: relative;
    width: 100%;
    z-index: 10;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Prevent interaction with hidden items */
}

.testimonial-item.active {
    opacity: 1;
    pointer-events: all;
    z-index: 2;
    /* Put active item on top */
}

.testimonial-nav button {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 20px;
    border-radius: 50%;
    /* Circle buttons */
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
}

.testimonial-nav button:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

/* Footer */
#footer {
    background: #070a12;
}

#footer ul {
    list-style: none;
    padding: 0;
}

#footer ul li {
    margin-bottom: 10px;
}

#footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

#footer ul li a:hover {
    color: var(--primary);
}

#footer .social-icons a {
    color: var(--text-muted);
    margin-right: 15px;
    transition: color 0.3s;
}

#footer .social-icons a:hover {
    color: var(--primary);
}

#footer h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Hero Background */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Dim the image */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.2), rgba(10, 14, 23, 1));
}

/* Coach Images */
.coach-img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.coach-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    background-color: #333;
    /* Fallback */
}

/* --- NEW RESPONSIVE & UTILITY STYLES --- */

/* Logo Container */
.logo-container {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 1000;
    width: 220px;
    /* Increased from 150px as requested */
    transition: all 0.3s ease;
}

/* Client Area Container */
/* Client Area Container */
.client-area-container {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.client-area-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.client-area-link:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Calendar Area Container */
.calendar-nav-container {
    position: fixed;
    top: 30px;
    right: 240px; /* Separado del Área Clientes */
    z-index: 1000;
    transition: all 0.3s ease;
}

.calendar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6); /* Slightly more muted/discreet by default */
    background: rgba(0, 0, 0, 0.15); /* More discreet background */
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Lighter border */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.calendar-nav-link:hover {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}


.client-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.client-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}


/* Helper Classes (Refactored from HTML) */
.section-centered {
    text-align: center;
    max-width: 1200px;
}

/* B2B Section Styles */
.b2b-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.b2b-desc {
    color: #ccc;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.b2b-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 15px 40px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.b2b-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Specific override for the footer/contact wrapper to allow scrolling if content is tall */
/* Specific override for the footer/contact wrapper */
#contact-footer {
    height: 100vh !important;
    min-height: 600px;
    /* Safety */
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden !important;
    /* Keep it clean if possible, but allow auto if needed on mobile */
    background: linear-gradient(135deg, #0f1422 0%, #06080e 100%);
    /* Unified gradient */
}

#b2b-promo {
    height: 85%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    /* Transparent to show wrapper gradient */
    border: none !important;
}

#footer {
    height: 15%;
    width: 100%;
    /* Gradient from black (bottom) to transparent/dark-blue (top) to blend with wrapper */
    background: linear-gradient(to top, #000000 0%, rgba(15, 20, 34, 0) 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content p {
    margin: 0 auto 30px;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.promo-container {
    display: block !important;
    gap: 0 !important;
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
    padding-top: 30px;
}

.gradient-text-white {
    font-size: 2.2rem;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    background: linear-gradient(to right, #fff, #bbb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.sub-title-primary {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0 0 35px 0 !important;
    padding: 0 !important;
    line-height: 1.2;
}

.promo-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin: 0 auto 10px auto;
    max-width: 600px;
}

.promo-list {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 25px auto;
    /* Centered visually */
    list-style: none;
    padding-left: 0;
    display: inline-block;
    /* Helps centering list block */
}

/* Coach Card Backgrounds */
/* ... existing coach backgrounds ... */

/* Telegram Section Background (Global) */
/* Telegram Section Background (Global) */
#telegram .promo-box,
#telegram-promo .promo-box {
    background: linear-gradient(rgba(10, 14, 23, 0.90), rgba(10, 14, 23, 0.80)), url('../card_software.png') !important;
    background-size: cover !important;
    background-position: center !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Enhance border visibility against image */
}

/* --- SWIMMER MODAL STYLES --- */
#swimmer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    /* Dark dim */
    backdrop-filter: blur(8px);
    z-index: 2000;
    /* Highest priority */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

#swimmer-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(15, 20, 34, 0.95);
    border: 1px solid var(--primary);
    /* Primary border */
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.2);
    /* Primary glow */
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 25px 0;
}

.modal-btn {
    background: rgba(0, 242, 234, 0.05);
    /* Slight primary tint */
    border: 1px solid var(--primary);
    /* Primary border */
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 242, 234, 0.3);
}

.modal-close-option {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: color 0.3s;
}

.modal-close-option:hover {
    color: white;
}

/* Tablet/Desktop Grid adjustment */
@media (min-width: 600px) {
    .modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        padding: 40px;
    }
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Smaller Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .feature-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 3rem;
    }

    #hero h1 {
        font-size: 3.5rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    /* Layout Reset */
    .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        padding: 20px;
        gap: 30px;
    }

    section {
        padding: 60px 20px;
        /* More padding top/bottom */
        height: auto !important;
        /* Force auto height for scrolling content on mobile */
        min-height: 100vh;
        overflow: visible !important;
        /* Ensure content is not clipped */
    }

    /* Force HTML/BODY to scroll on mobile */
    html,
    body {
        overflow-y: auto !important;
        height: auto !important;
        /* overscroll-behavior-y: none; removed to allow pull-to-refresh */
    }

    /* B2B Mobile Overrides */
    .b2b-title {
        font-size: 2.2rem;
        /* Increased to match 'Nuestros Entrenadores' (2.2rem) */
        line-height: 1.1;
    }

    .b2b-desc {
        font-size: 1rem;
        /* Reduced from 1.2rem */
        padding: 0 10px;
    }

    .b2b-btn {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        /* Full width button on mobile */
    }

    .snap-container {
        scroll-snap-type: none;
        height: auto !important;
        overflow: visible !important;
        /* Ensure container doesn't trap scroll */
    }

    /* Logo */
    .logo-container {
        width: 140px;
        /* Smaller on mobile */
        top: 20px;
        left: 20px;
    }

    /* Client Icon */
    .client-area-container {
        right: 20px;
        top: 25px;
        /* Aligned with logo */
    }

    .calendar-nav-container {
        right: 85px; /* Separado del user icon en mobile */
        top: 25px;
    }

    .client-area-link, .calendar-nav-link {
        padding: 5px 10px;
        /* Smaller padding */
        gap: 5px;
        background: rgba(0, 0, 0, 0.5);
        /* More visible bg */
    }

    .client-text, .calendar-text {
        font-size: 0.75rem;
        /* Smaller text */
        display: none;
        /* Optional: hide text on very small screens if needed, but keeping small for now */
    }

    /* Show text only if screen width permits, or keep it always visible but small? 
       User said "more discreet". Let's keep text but small, or hide it. 
       Let's keep it 0.75rem. */

    .client-icon {
        width: 18px;
        /* Reverted to small size */
        height: 18px;
    }

    /* Typography */
    h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

/* COOKIE BANNER DISCRETO */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background: rgba(11, 17, 33, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    color: white;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
    display: none; /* Se activa por JS */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
#cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}
#cookie-banner p {
    font-size: 0.85rem;
    color: #a0aec0;
    line-height: 1.5;
    margin: 0 0 15px 0;
}
#cookie-banner a {
    color: var(--primary);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
}
.cookie-btn {
    flex: 1;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}
.cookie-accept {
    background: var(--primary);
    color: #0b1121;
    border: none;
}
.cookie-accept:hover {
    background: #00d4e3;
}
.cookie-decline {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    #cookie-banner {
        bottom: 15px;
        left: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
    }
}

    #footer .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        grid-template-columns: none !important;
        /* Override grid if present */
    }

    #footer p,
    #footer a {
        font-size: 0.85rem;
    }

    /* Reduced from 2.5rem */
    #hero h1 {
        font-size: 2.5rem;
    }

    /* Reduced from 2.8rem */

    /* Training Page Specifics */
    .section-title-mobile-fix {
        font-size: 2rem !important;
        /* Force smaller size */
        line-height: 1.1;
    }

    .btn-mobile-fix {
        padding: 12px 5px !important;
        /* Reduce padding further */
        font-size: 0.75rem !important;
        /* Reduce font size further */
        width: 100%;
        white-space: nowrap;
        text-overflow: clip;
        /* Ensure no weird ellipsis if it barely fits */
    }

    /* Los bloques de fondos de los entrenadores y de la portada de
       entrenamientos se han retirado: apuntaban a fotos que no existen en este
       sitio y a ids (#coach-*, .training-hero) que esta página no usa. Las
       tarjetas llevan su foto y su capa en el propio marcado. */

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 1rem;
    }

    .gradient-text-white {
        font-size: 1.8rem;
    }

    /* Navigation */
    .nav-dots {
        right: 10px;
        display: none;
        /* Hide dots on mobile to save space */
    }

    /* Grids to Stack */
    .impact-grid,
    .stat-grid,
    .feature-grid-small {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Hero Buttons */
    .buttons-container {
        flex-direction: column;
        width: 100%;
    }

    .desktop-only-bg {
        display: none !important;
    }

    .btn {
        width: 100%;
    }
}