/* CTT L'Hospitalet - Modern Startup Website
   Color Palette: Red + Black + White
   Typography: Athletic, Modern */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    --primary: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #EF4444;
    --secondary: #0A0A0A;
    --secondary-light: #171717;
    --accent: #FBBF24;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-500: #737373;
    --gray-700: #404040;
    --gray-900: #171717;
    --gradient-primary: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    --gradient-dark: linear-gradient(180deg, #0A0A0A 0%, #171717 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: hidden;
}

body[lang="zh"] {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

img, video, iframe, embed, object {
    max-width: 100%;
}

img {
    height: auto;
}

.section-title {
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 750px;
}

/* Navigation */

/* Prevent horizontal overflow from any section */
main, section, footer {
    overflow-x: hidden;
}
.navbar {
    /* sticky — la navbar agafa el seu espai natural i NO oculta contingut.
       Quan fas scroll, queda enganxada al top com una fixed, sense necessitat
       de padding-top globals als <main> de cada pàgina. */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: .35rem 1.5rem;
    transition: background .25s, padding .25s, box-shadow .25s;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 2px 12px rgba(0,0,0,.22);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.25rem 1.5rem;
}

/* Anchor links: deixar marge perquè els fragments (#section) no quedin sota
   la navbar sticky quan saltes amb un click */
html { scroll-padding-top: 100px; }

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 77px;
    width: auto;
    max-width: none;  /* preserva proporcions originals — defeneix global img max-width: 100% */
    display: block;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
    height: 62px;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.nav-link.active {
    background: var(--primary);
}

/* Navigation Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.nav-dropdown-toggle i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

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

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-left-color: var(--primary);
    padding-left: 1.5rem;
}

.nav-dropdown-menu li a i {
    color: var(--primary);
    font-size: 0.75rem;
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === Highlighted nav items (Entrades + Botiga) — pill vermell amb icona === */
.nav-link.nav-highlight {
    background: var(--primary, #DC2626);
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px;
    padding: .5rem .95rem;
    box-shadow: 0 4px 14px rgba(220, 38, 38, .3);
    transition: background .2s, transform .15s, box-shadow .2s;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nav-link.nav-highlight:hover {
    background: #b91c1c;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, .45);
}
.nav-link.nav-highlight i { font-size: .9em; opacity: .95; }
.nav-link.nav-highlight i.fa-chevron-down { font-size: .7em; opacity: .85; margin-left: .1em; }
.nav-link.nav-highlight.active { background: #991b1b; }

/* Compatibilitat amb la classe llegacy nav-store (Botiga) */
.nav-store .nav-link { color: inherit; }

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.lang-btn {
    padding: 0.375rem 0.625rem;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Desktop controls container */
.nav-desktop-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hide mobile-only items on desktop */
.nav-mobile-cta,
.nav-mobile-lang,
.nav-mobile-logo {
    display: none;
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1280px) {
    .nav-menu {
        gap: 0.2rem;
    }

    .nav-link {
        padding: 0.4rem 0.55rem;
        font-size: 0.72rem;
    }

    .nav-cta {
        padding: 0.55rem 0.9rem;
        font-size: 0.72rem;
    }

    .lang-selector {
        margin-left: 0.4rem;
    }
}

@media (max-width: 1100px) {
    /* Show hamburger menu — pujem el threshold perquè el menú no quedi tallat
       en pantalles 900-1100px on els 8 items + lang + CTA no caben còmodament */
    .nav-toggle {
        display: flex;
        z-index: 1001;
        order: 3;
    }

    /* Mòbil: ENSENYEM el logo a la barra superior perquè l'usuari sempre tingui
       una via clara per tornar a l'inici (clicable + es pot llegir el branding).
       Logo a l'esquerra, hamburger a la dreta. */
    .nav-logo { display: block; }
    .nav-logo img {
        height: 48px;       /* compacte per no menjar-se la barra */
        width: auto;
        max-width: none;
    }
    .navbar.scrolled .nav-logo img { height: 42px; }
    /* Logo + hamburger als extrems */
    .nav-container {
        justify-content: space-between;
    }
    
    /* Hide desktop controls */
    .nav-desktop-controls {
        display: none;
    }
    
    /* Show mobile items in menu */
    .nav-mobile-cta,
    .nav-mobile-lang,
    .nav-mobile-logo {
        display: block;
    }

    /* Logo al TOP del menú mòbil obert */
    .nav-mobile-logo {
        text-align: center;
        margin: -.5rem 0 .85rem;
        padding-bottom: .85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-mobile-logo a { display: inline-block; }
    .nav-mobile-logo img {
        height: 50px;
        width: auto;
        max-width: none;
        display: block;
        margin: 0 auto;
    }

    /* CTA al TOP — separador a sota perquè marqui inici de la nav */
    .nav-mobile-cta-top {
        margin-top: .35rem;
        margin-bottom: .85rem;
        padding-bottom: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-mobile-cta .nav-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .55rem;
        text-align: center;
        padding: 1rem 1.5rem;
        width: 100%;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .04em;
    }
    .nav-mobile-cta .nav-cta i { font-size: 1em; }

    .nav-mobile-lang {
        margin-top: 0;
    }
    
    .nav-mobile-lang .lang-selector {
        justify-content: center;
        margin: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 88%;
        max-width: 360px;
        /* Usem dvh per agafar l'alçada visible REAL del navegador
           (compensa la barra d'URL d'iOS Safari que pot canviar mentre fas scroll) */
        height: 100dvh;
        max-height: 100dvh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        /* Padding-top deixa lloc al hamburger; padding-bottom respecta safe-area
           (notch/home-indicator d'iPhone) i deixa marge perquè els últims items
           no quedin enganxats al final */
        padding: 1.25rem 1.25rem max(2.5rem, env(safe-area-inset-bottom, 2.5rem));
        gap: 0.25rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;  /* evita scroll del body quan arribes a top/bottom */
        z-index: 1000;
    }
    /* Reorder mòbil: prioritats al top — Logo · Lang · Fes-te Soci · ENTRADES · BOTIGA · resta */
    .nav-menu li.nav-mobile-logo  { order: -50; }
    .nav-menu li.nav-mobile-lang  { order: -40; }
    .nav-menu li.nav-mobile-cta-top { order: -30; }
    /* Items que contenen els highlight links (Entrades + Botiga) — :has() ben suportat 2024+ */
    .nav-menu li:has(> .nav-link.nav-highlight) { order: -20; }
    /* Resta d'items: order 0 (default) — apareixen després */
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: .9rem 1.1rem;
        font-size: 1rem;
        font-weight: 600;            /* més presència */
        color: #fff;                 /* contrast màxim */
        border-radius: var(--radius-md);
        width: 100%;
        text-align: left;
        min-height: 48px;            /* àrea tàctil mínima Apple/Google */
        line-height: 1.2;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(220, 38, 38, 0.2);
    }

    /* Quan el menú està obert, bloquejem el scroll del body perquè el touch
       quedi capturat només pel menú i no balli amb el contingut de fons. */
    body.nav-open { overflow: hidden; touch-action: none; }

    /* Entrades i Botiga (nav-highlight) — full-width amb text + icona centrats.
       Cal !important per neutralitzar el `margin-left:auto` global a `.nav-dropdown-toggle i`
       que afecta la Botiga (perquè és un dropdown) i descentrava els icones. */
    .nav-link.nav-highlight {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1rem 1.25rem !important;
        gap: .55rem;
        text-align: center;
    }
    /* Anul·la el push-right de TOTS els icons dins del nav-highlight (Botiga és dropdown) */
    .nav-link.nav-highlight i { margin-left: 0 !important; margin-right: 0 !important; }
    .nav-link.nav-highlight i.fa-chevron-down { display: none; }  /* No cal el chevron en mòbil */
    
    /* Mobile Dropdowns */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        margin: 0.5rem 0 0.5rem 1rem;
        padding: 0.5rem 0;
        box-shadow: none;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        list-style: none;
    }

    /* Suficient per a dropdowns amb fins a ~12 items (El Club té 10) */
    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 800px;
    }

    .nav-dropdown-menu li {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .nav-dropdown-menu li a {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
        color: var(--white, #fff);
        display: flex;
        align-items: center;
        gap: .5rem;
        white-space: normal;       /* permetre wrap si el text és llarg */
        line-height: 1.3;
        min-height: 44px;          /* àrea tàctil mínima */
    }
    .nav-dropdown-menu li a i {
        flex-shrink: 0;
        width: 1.2em;
        text-align: center;
    }
    /* Badge "SOON" o similars dins els submenús — mostrar inline sense desbordar */
    .nav-dropdown-menu li a span {
        display: inline-block;
        flex-shrink: 0;
        margin-left: auto !important;
    }

    .nav-dropdown-toggle i {
        margin-left: auto;
    }
    
    /* Hamburger animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile —
       svh (small viewport height) = alçada visible MÍNIMA del navegador
       (amb la barra d'URL totalment desplegada). Així l'hero MAI és més
       gran que el que veu l'usuari, i el carrusel de patrocinadors a la
       part baixa SEMPRE queda dins de la primera pantalla.
       !important per anul·lar la regla `.hero { min-height: calc(100dvh - 90px) }`
       global (definida més avall en el CSS, source-order la fa guanyar). */
    .hero {
        height: 100svh !important;
        min-height: 0 !important;
        align-items: flex-end;
        overflow: hidden;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        padding: 0 1rem clamp(90px, 14vh, 130px) 1rem !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        align-items: end !important;
        text-align: left;
        gap: 0.5rem !important;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-text h1 {
        font-size: clamp(1.8rem, 6.5vw, 2.4rem) !important;
        word-break: break-word;
    }
    
    .hero-logo img {
        width: clamp(80px, 25vw, 140px) !important;
    }
    
    .hero-tagline {
        font-size: 0.85rem !important;
        text-align: left;
        line-height: 1.4;
    }
    
    .hero-cta {
        justify-content: flex-start;
        gap: 0.4rem !important;
        flex-wrap: wrap !important;
    }
    
    .hero-cta .btn {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Video background */
    .video-background iframe {
        min-width: 300%;
        min-height: 100%;
    }
    
    /* Stats: 2x2 grid on small screens */
    .hero-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem 1rem !important;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        flex-wrap: wrap !important;
    }
    
    .hero-stats::-webkit-scrollbar {
        display: none;
    }
    
    .stat-item {
        text-align: left;
        min-width: auto;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.6rem !important;
        letter-spacing: 0.05em !important;
    }
    
    /* Sponsor overlay on hero — stack vertically on mobile */
    .hero-sponsors-overlay {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
        gap: 0.25rem;
    }
    
    .sponsors-label {
        font-size: 0.6rem;
        padding-left: 0.75rem;
        width: 100%;
    }

    .sponsors-carousel-wrapper {
        width: 100%;
    }
    
    .sponsor-logo-item img,
    .sponsors-track img {
        height: 50px !important;
    }
    
    .sponsors-carousel-track,
    .sponsors-track {
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-logo img {
        height: 63px;
    }
    
    .hero-content {
        padding: 0 0.75rem clamp(80px, 13vh, 120px) 0.75rem !important;
    }
    
    .hero-text h1 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
    
    /* Smaller stats for very small screens */
    .hero-stats {
        gap: 0.4rem 0.75rem !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.5rem !important;
        letter-spacing: 0.04em !important;
    }
    
    .hero-logo img {
        width: 80px !important;
    }
    
    .hero-tagline {
        font-size: 0.75rem !important;
    }
    
    .hero-cta {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
    }
    
    .hero-cta .btn {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.65rem !important;
    }
    
    .sponsor-logo-item img,
    .sponsors-track img {
        height: 40px !important;
    }
    
    .sponsors-carousel-track,
    .sponsors-track {
        gap: 1.5rem !important;
    }
}

/* Hero Section — alçada compensada per la navbar sticky (~90px) */
.hero {
    min-height: calc(100vh - 90px);
    min-height: calc(100dvh - 90px);
    background: var(--secondary);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* YouTube Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Image Background */
.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.6) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
    z-index: 1;
}

/* Large Hero Logo */
.hero-logo {
    margin-bottom: 0;
}

.hero-logo img {
    width: clamp(80px, 10vw, 120px);
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4.5rem 2rem 0;
    padding-bottom: clamp(130px, 18vh, 170px); /* clear the sponsors bar */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.hero-text h1 span {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    color: var(--white);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.stat-number.counting {
    color: var(--primary);
    transform: scale(1.1);
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
    color: var(--primary);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.15rem;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: var(--secondary);
}

.btn-dark {
    background: var(--secondary);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--secondary-light);
}

/* Animated ping pong ball - Hidden */
.hero-visual {
    display: none;
}

.ping-pong-animation {
    display: none;
}

.ball {
    display: none;
}

.paddle {
    display: none;
}

.paddle-left {
    display: none;
}

.paddle-right {
    display: none;
}

/* Sponsor Overlay on Hero */
.hero-sponsors-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
}

.sponsors-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    white-space: nowrap;
    padding-left: 2rem;
    flex-shrink: 0;
}

.sponsors-carousel-wrapper {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.sponsors-carousel-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: sponsorScroll 25s linear infinite;
    width: max-content;
}

.sponsor-logo-item {
    flex-shrink: 0;
}

.sponsor-logo-item img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sponsor-logo-item img:hover {
    opacity: 1;
}

@keyframes sponsorScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Sections */
section {
    padding: 6rem 2rem;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* About Section */
.about {
    background: var(--gray-100);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

/* About mobile */
@media (max-width: 768px) {
    .about {
        padding: 3rem 1rem !important;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .about-image::before {
        display: none;
    }

    .about-features {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--white);
}

.feature-text h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Programs/Sections Grid */
.programs {
    background: var(--white);
}

.programs-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;  /* Mobile: 1 secció per fila — fotos grans */
    gap: 1rem;
}
@media (min-width: 600px) {
    .programs-grid { grid-template-columns: 1fr 1fr !important; gap: 1.25rem; }
}
@media (min-width: 1024px) {
    .programs-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 1.5rem; }
}
/* Mòbil: la card pot aprofitar tota l'amplada però sense fer-se desproporcionada */
@media (max-width: 599px) {
    .program-card {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        aspect-ratio: 4 / 3;  /* sobre mòbil, 4:3 mostra millor la foto */
    }
}

.program-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
}

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

.program-card:hover img {
    transform: scale(1.1);
}

.program-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 10, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: var(--transition);
}

.program-card:hover .program-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(220, 38, 38, 0.9) 100%);
}

.program-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.program-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.program-card:hover .program-overlay p {
    transform: translateY(0);
    opacity: 1;
}

.program-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.program-card:hover .program-link {
    transform: translateY(0);
    opacity: 1;
}

/* Team Section */
.team {
    background: var(--secondary);
    color: var(--white);
}

.team .section-title {
    color: var(--white);
}

.team .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.team-category {
    margin-bottom: 4rem;
}

.team-category h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.team-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-image .placeholder {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.team-card-info {
    padding: 1.25rem;
    text-align: center;
}

.team-card-info h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.team-card-info p {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ============================================
   ACTIONS SECTION – Base styles (Train / Play / Watch)
   ============================================ */
.actions-section {
    background: var(--gray-100);
    padding: 6rem 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.action-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.action-icon i {
    font-size: 2rem;
    color: var(--white);
}

.action-badge {
    display: inline-block;
    background: rgba(220,38,38,0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.action-badge-highlight {
    background: var(--primary);
    color: var(--white);
}

.action-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.action-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.action-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    flex: 1;
}

.action-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-features li i {
    color: var(--primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.btn-accent {
    background: var(--accent);
    color: var(--secondary);
    font-weight: 700;
}

.btn-accent:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Actions Section - Responsive */
@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }

    .actions-section {
        padding: 4rem 1rem;
    }
}

/* ============================================
   PARKINSON HIGHLIGHT SECTION
   ============================================ */
.parkinson-highlight {
    background: linear-gradient(135deg, #1a0a0a 0%, var(--secondary) 100%);
    padding: 5rem 2rem;
    overflow: hidden;
}

.parkinson-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
}

.parkinson-icon {
    width: 80px;
    height: 80px;
    background: rgba(220,38,38,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.parkinson-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.parkinson-text h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.parkinson-text p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 600px;
}

.parkinson-image {
    /* Foto landscape 4:3 — ampliada per donar protagonisme visual */
    width: 540px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.parkinson-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;  /* favorir lleugerament la part superior per centrar la cara */
    display: block;
}

/* Parkinson Highlight - Responsive */
@media (max-width: 768px) {
    .parkinson-highlight {
        padding: 3rem 1rem;
    }

    .parkinson-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .parkinson-icon {
        margin: 0 auto;
    }

    .parkinson-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .parkinson-text .btn {
        display: inline-flex;
    }

    .parkinson-image {
        width: 100%;
        max-width: 480px;
        height: auto;
        aspect-ratio: 4 / 3;
        margin: 0 auto;
        border-radius: var(--radius-md);
    }
}

/* ============================================
   QUI SOM / ABOUT PAGE STYLES
   ============================================ */
.mvv-section {
    padding: 4rem 0;
}

.mvv-club-header {
    text-align: center;
    margin-bottom: 3rem;
}

.mvv-club-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
}

.mvv-club-header h2 span {
    color: var(--primary);
}

.mvv-block {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.mvv-icon-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.mvv-text h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.mvv-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s, border-color 0.3s;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.1rem;
    color: var(--white);
}

.value-card h4 {
    /* Override Bebas Neue (font condensed) — a aquesta mida petita en majúscules
       no és llegible. Fem servir Inter amb pes 800 i tracking generós. */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    margin-top: .5rem;
}

.value-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.55;
}

.mvv-sponsor-cta {
    margin-top: 2rem;
}

.mvv-sponsor-inner {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(220, 38, 38, 0.08);
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-lg);
}

.mvv-sponsor-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mvv-sponsor-inner h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.mvv-sponsor-inner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.team-section-full {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
}

/* Qui Som mobile */
@media (max-width: 768px) {
    .mvv-block {
        flex-direction: column !important;
        padding: 1.25rem !important;
        gap: 1rem !important;
    }

    .mvv-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .value-card {
        padding: 1rem !important;
    }

    .value-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .value-card h4 {
        font-size: 0.8rem;
    }

    .value-card p {
        font-size: 0.7rem;
    }

    .mvv-sponsor-inner {
        padding: 1.5rem 1rem !important;
    }
}

/* ============================================
   TEAM SUBSECTION & MEMBER STYLES (for index.php)
   ============================================ */
.team-subsection {
    margin-bottom: 3rem;
}

.team-subsection:last-child {
    margin-bottom: 0;
}

.team-subsection-title {
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-subsection-title i {
    font-size: 1rem;
}

.team-grid.board-grid,
.team-grid.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

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

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.75rem;
    background: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s;
}

.member-avatar:hover {
    border-color: var(--primary);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.team-member h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.member-role {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   TOURNAMENTS TEASER (Homepage)
   ============================================ */
.tournaments-teaser {
    background: var(--gray-100);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.tournaments-teaser .section-title {
    color: var(--secondary);
}

.tournament-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tournaments-teaser .tournament-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 420px;
    flex: 1;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tournaments-teaser .tournament-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tournaments-teaser .tournament-badge {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    position: static;
    background: none;
    padding: 0;
}

.tournaments-teaser .tournament-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.tournaments-teaser .tournament-card p {
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.tournament-date {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}

.tournament-date i {
    font-size: 0.9rem;
}

/* Tournament Teaser Cards — new design */
.tournament-card-teaser {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 420px;
    flex: 1;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.tournament-card-teaser:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tournament-card-teaser.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(220,38,38,0.08), var(--shadow-md);
}

.teaser-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #22c55e;
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.teaser-badge.ongoing {
    background: #f59e0b;
}

.teaser-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.teaser-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.tournament-card-teaser h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.tournament-card-teaser p {
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Tournaments Teaser - Responsive */
@media (max-width: 768px) {
    .tournaments-teaser {
        padding: 3rem 1rem;
    }

    .tournament-cards {
        flex-direction: column;
        align-items: center;
    }

    .tournament-card-teaser {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================
   LIVE TEASER (Homepage) — Buttons
   ============================================ */
.live-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ============================================
   LIVE TEASER (Homepage)
   ============================================ */
.live-teaser {
    background: var(--secondary);
    padding: 5rem 2rem;
    text-align: center;
}

.live-teaser .section-title {
    color: var(--white);
}

.live-teaser .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.live-content {
    max-width: 600px;
    margin: 0 auto;
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ff3333;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 1.5s ease-in-out infinite;
    vertical-align: middle;
}

/* ============================================
   SPONSOR ITEMS & SPONSOR CTA (Homepage)
   ============================================ */
.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
    transition: all 0.3s;
    min-height: 100px;
}

.sponsor-item:hover {
    background: rgba(0,0,0,0.5);
    transform: scale(1.05);
}

.sponsor-item img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.sponsor-item:hover img {
    opacity: 1;
}

/* Sponsors section mobile — 2 columns, compact */
@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 2rem !important;
    }

    .sponsor-item {
        padding: 0.75rem !important;
        min-height: 60px !important;
    }

    .sponsor-item img {
        max-width: 90px !important;
        max-height: 45px !important;
    }

    .sponsor-cta {
        padding: 1.5rem !important;
        margin-top: 1.5rem !important;
    }
}

.sponsor-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255,255,255,0.15);
}

.sponsor-cta h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.sponsor-cta p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.25rem;
}

/* Highlight stat — growth green */
.highlight-stat .stat-number {
    color: #22c55e;
}

/* ============================================
   ALERT STYLES
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Tournaments Section */
.tournaments {
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.tournaments::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
}

.tournament-embed {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gray-300);
}

.tournament-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius-md);
}

.tournament-placeholder {
    text-align: center;
    color: var(--gray-500);
}

.tournament-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    fill: var(--gray-300);
}

/* Live Section */
.live {
    background: var(--secondary);
    color: var(--white);
}

.live .section-title {
    color: var(--white);
}

.live-embed {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius-md);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #E53935;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Sponsors Section */
.sponsors {
    background: var(--secondary);
    padding: 6rem 2rem;
}

.sponsors .section-title {
    color: var(--white);
}

.sponsors .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.sponsors-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.sponsors-intro .section-title {
    color: var(--white);
}

.sponsors-intro .section-title::after {
    background: var(--white);
}

.sponsors-intro .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-bottom: 4rem;
}

.sponsor-logo {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.sponsor-logo:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.sponsor-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: var(--transition);
}

.sponsor-logo:hover img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Empty sponsor slot styling */
.sponsor-logo span {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Ad Banner Slots */
.ad-banner-section {
    background: var(--gray-100);
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.ad-banner-container {
    max-width: 1400px;
    margin: 0 auto;
}

.ad-banner-title {
    text-align: center;
    margin-bottom: 2rem;
}

.ad-banner-title h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.ad-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ad-slot {
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ad-slot:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.ad-slot-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.ad-slot h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.ad-slot p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-content .btn {
    background: var(--white);
    color: var(--primary);
}

.cta-content .btn:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Contact Section */
.contact {
    background: var(--gray-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--white);
}

.contact-details h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--gray-500);
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Map Container */
.map-container {
    margin-top: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Contact Section - Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 280px;
    }
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
}

.footer-brand {
    flex: 0 0 280px;
}

.footer-brand img {
    /* Mateixa mida que el logo de la navbar — proporcions originals respectades */
    height: 77px;
    width: auto;
    max-width: none;  /* defeneix el global "img { max-width: 100% }" — així no es deforma */
    display: block;
    margin-bottom: 0.85rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.footer-columns {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-links h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-institutional {
    display: flex;
    align-items: center;
}

.footer-institutional-logo {
    height: 80px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-institutional-logo:hover {
    opacity: 1;
}

/* Footer mobile */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem !important;
    }

    .footer-main {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .footer-brand {
        flex: none !important;
        text-align: center;
    }

    .footer-brand img {
        height: 63px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-brand p {
        font-size: 0.8rem;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .footer-columns {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }

    .footer-links h4 {
        font-size: 0.65rem !important;
        margin-bottom: 0.5rem !important;
    }

    .footer-links li {
        margin-bottom: 0.3rem !important;
    }

    .footer-links a {
        font-size: 0.7rem !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center;
        gap: 0.75rem !important;
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }

    .footer-institutional-logo {
        height: 70px !important;
    }
}

/* ============================================
   SECTION PAGES STYLES
   ============================================ */

/* Dark theme variables for section pages */
.section-page {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #9ca3af;
}

.section-page {
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
}

/* Page Hero */
.page-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    padding: 5rem 0 3rem;
    overflow: hidden;
}

.page-hero.compact {
    min-height: 40vh;
    padding: 4rem 0 2.5rem;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.97) 100%);
    z-index: 1;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.1;
}

.page-hero h1 span {
    color: var(--primary);
}

.page-hero p {
    font-size: 1.15rem;
    color: #d1d5db;
    max-width: 650px;
    line-height: 1.7;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220,38,38,0.15);
    color: var(--primary);
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.hero-badge i {
    font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

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

/* Page Content */
.page-content {
    padding: 4rem 0;
}

.page-content .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Content Grid (main + sidebar) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    margin-top: 2.5rem;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Content Main Typography */
.content-main h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-light);
    line-height: 1.2;
}

.content-main h3 {
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    color: var(--text-light);
    line-height: 1.3;
}

.content-main p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.02rem;
}

.content-main ul,
.content-main ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-main li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* ---- Section-page shared component: team-stats ---- */
.section-page .team-stats {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-page .team-stats .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Section-page shared component: team-gallery ---- */
.section-page .team-gallery {
    padding: 4rem 0;
}

.section-page .team-gallery .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Section-page shared: CTA buttons row ---- */
.section-page .cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ---- Page CTA footer section polish ---- */
.page-cta .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   SECTION PAGES RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Hero —
       padding-top reduït: la navbar ja és STICKY (no fixed) i el seu propi
       espai ja desplaça l'hero. Abans: 6rem (96px) creava un buit en blanc
       sota la navbar que es notava molt en mòbil. */
    .page-hero {
        min-height: auto;
        padding: 1.5rem 0 2rem;
        align-items: flex-end;
    }

    .page-hero .container {
        padding: 0 1.25rem;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-hero p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }

    .breadcrumb {
        font-size: 0.78rem;
        gap: 0.35rem;
        margin-bottom: 1rem;
    }

    /* Page Content */
    .page-content {
        padding: 2.5rem 0;
    }

    .page-content .container {
        padding: 0 1.25rem;
    }

    .content-main h2 {
        font-size: 1.5rem;
    }

    .content-main h3 {
        font-size: 1.15rem;
        margin: 1.5rem 0 0.75rem;
    }

    .content-main p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    /* Team Stats */
    .section-page .team-stats {
        padding: 1.5rem 0;
    }

    .section-page .team-stats .container {
        padding: 0 1.25rem;
    }

    /* Gallery */
    .section-page .team-gallery {
        padding: 2.5rem 0;
    }

    .section-page .team-gallery .container {
        padding: 0 1.25rem;
    }

    /* CTA Buttons */
    .section-page .cta-buttons {
        flex-direction: column;
    }

    .section-page .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Sidebar cards */
    .sidebar-card {
        padding: 1.25rem;
    }

    .content-sidebar {
        gap: 1rem;
    }

    /* Page CTA */
    .page-cta {
        padding: 3rem 1.25rem;
    }

    .page-cta h2 {
        font-size: 1.5rem;
    }

    .page-cta p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 1.25rem 0 1.5rem;  /* Sense buit excessiu sota la navbar sticky */
    }

    .page-hero .container {
        padding: 0 1rem;
    }

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

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

    .page-content .container {
        padding: 0 1rem;
    }

    .section-page .team-stats .container {
        padding: 0 1rem;
    }
}

/* Image Feature */
.image-feature {
    margin: 2rem 0;
    border-radius: 14px;
    overflow: hidden;
}

.image-feature img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* === Benefits Grid (fes-te-soci) — compact === */
/*  Layout horizontal mòbil (icona + text) → 2 cols a 600px → 4 cols a 900px
    perquè totes 4 cards entrin en una sola fila i no robar espai vertical
    fins a la calculadora. Com tenim 4 benefits, 4 cols és el millor fit. */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
    margin: 1.5rem auto 2rem;
    max-width: 1100px;
}
@media (min-width: 600px) { .benefits-grid { grid-template-columns: 1fr 1fr; gap: .8rem; } }
@media (min-width: 900px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); gap: .85rem; } }

.benefit-card {
    background: var(--bg-card);
    padding: 1rem .9rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}
/* Mobile: layout horitzontal compacte (icona + text al costat) */
@media (max-width: 599px) {
    .benefit-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: .85rem;
        padding: .8rem .95rem;
    }
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    border-color: rgba(220, 38, 38, 0.3);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1rem;
    color: var(--primary);
}

.benefit-card h4 {
    /* Inter — Bebas Neue és il·legible a aquesta mida petita */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.25;
    margin: 0;
    color: var(--text-light);
}

.benefit-card p {
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
    color: rgba(255, 255, 255, .72);
}
/* En mobile: el text agafa la columna dreta del flex */
@media (max-width: 599px) {
    .benefit-card-text { flex: 1 1 0; min-width: 0; }
}

/* ============================================
   PRESS SHOWCASE (Parkinson page)
   ============================================ */
.press-showcase {
    margin-top: 3rem;
}

.press-showcase > h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-light, #fff);
    margin-bottom: 2rem;
}

.press-showcase > h3 i {
    color: var(--primary);
}

/* Press Feature Card */
.press-feature-card {
    background: var(--bg-card, #1a1a1a);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.press-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.press-feature-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    max-height: 300px;
    overflow: hidden;
}

.press-feature-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.press-feature-images .press-img-solo {
    grid-column: 1 / -1;
}

.press-feature-body {
    padding: 2rem;
}

.press-feature-source {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 1rem;
}

.press-feature-source i {
    font-size: 0.7rem;
}

.press-feature-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted, #9ca3af);
    font-size: 0.8rem;
}

.press-feature-body h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-light, #fff);
    margin: 0.75rem 0 1rem;
}

.press-feature-summary {
    color: var(--text-muted, #9ca3af);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.press-feature-quote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0 1.5rem;
    background: rgba(220, 38, 38, 0.06);
    border-radius: 0 10px 10px 0;
}

.press-feature-quote p {
    color: var(--text-light, #fff);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

.press-feature-quote cite {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Radio Interview Card (Parkinson page) */
.radio-interview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    background: var(--bg-card, #1a1a1a);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.radio-interview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.radio-interview-image {
    position: relative;
    overflow: hidden;
}

.radio-interview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.radio-play-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
}

.radio-interview-body {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.radio-interview-body h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light, #fff);
    margin: 0.5rem 0 0.75rem;
}

.radio-interview-body p {
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    line-height: 1.65;
    margin: 0 0 0.75rem;
}

.radio-interview-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Press Showcase Responsive */
@media (max-width: 768px) {
    .press-feature-images {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .press-feature-images .press-img-secondary {
        display: none;
    }

    .press-feature-body {
        padding: 1.25rem;
    }

    .press-feature-body h4 {
        font-size: 1.15rem;
    }

    .radio-interview-card {
        grid-template-columns: 1fr;
    }

    .radio-interview-image {
        height: 200px;
    }

    .radio-interview-body {
        padding: 1.25rem;
    }
}

/* Schedule Box */
.schedule-box {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin: 2rem 0;
}

.schedule-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.schedule-box h4 i {
    color: var(--primary);
}

.schedule-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.schedule-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-box li:last-child {
    border-bottom: none;
}

.schedule-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.sidebar-card h4 i {
    color: var(--primary);
}

.sidebar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.sidebar-card.highlight {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

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

.info-list strong {
    color: var(--text-light);
}

/* Page CTA Section */
.page-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
}

.page-cta h2 {
    color: white;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 0.75rem;
}

.page-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* =====================================================
   WhatsApp Sticky Button
   ===================================================== */
.whatsapp-sticky {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.whatsapp-sticky.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.whatsapp-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

@media (max-width: 768px) {
    .whatsapp-sticky {
        bottom: 1rem;
        right: 1rem;
    }
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
}


   === CAMPUS PAGES (Estiu / Setmana Santa / Nadal) ===
   Añadido en Fase 1.5 — estilos específicos para las plantillas de campus.
   ============================================================================ */

/* Grid de info principal: dates, horari, edats, preu */
.campus-info {
    padding: 4rem 0 2rem;
}
.campus-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.campus-info-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.campus-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.campus-info-card h3 {
    margin: .75rem 0 .5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.campus-info-card p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}
.campus-info-card .campus-info-sub {
    margin-top: .5rem;
    font-size: .875rem;
    color: rgba(0, 0, 0, 0.55);
}
.campus-info-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #00a8ff);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

/* Lista "qué incluye" / contenido del campus */
.campus-includes {
    list-style: none;
    padding: 0;
    margin: 2rem auto 0;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.campus-includes li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 102, 204, 0.04);
    border-left: 3px solid #0066cc;
    border-radius: 6px;
    line-height: 1.5;
}
.campus-includes li i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0066cc;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .9rem;
}

/* Tarjeta de ubicación */
.campus-location {
    padding: 2rem 0;
}
.campus-location-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}
.campus-location-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0066cc;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}
.campus-location-text h3 {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
}
.campus-location-text p {
    margin: 0;
}

/* Botones agrupados de CTA */
.campus-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Estado: edición pasada / próxima abierta */
.campus-status {
    padding: 4rem 0;
}
.campus-status-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.04), rgba(0, 168, 255, 0.06));
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 16px;
    text-align: center;
}
.campus-status-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fff;
    color: #0066cc;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.campus-status-card h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
}
.campus-status-card p {
    max-width: 580px;
    margin: 0 auto 1rem;
    line-height: 1.55;
}

/* Otros campus (cards relacionadas) */
.campus-related {
    padding: 3rem 0 4rem;
}
.campus-related h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}
.campus-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}
.campus-related-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}
.campus-related-card:hover {
    transform: translateY(-3px);
    border-color: #0066cc;
}
.campus-related-card i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0066cc;
    color: #fff;
    display: grid;
    place-items: center;
}

/* Mobile */
@media (max-width: 600px) {
    .campus-info-grid { grid-template-columns: 1fr; }
    .campus-location-card { flex-direction: column; text-align: center; }
    .campus-status-card { padding: 2rem 1.25rem; }
    .campus-cta-buttons { flex-direction: column; align-items: stretch; }
    .campus-cta-buttons .btn { justify-content: center; }
}

/* ============================================================================
   === FASE 1.7 — estilos para nuevas plantillas y componentes ===
   ============================================================================ */

/* --- Popup dinàmic ---
 * Disseny robust per evitar que la card sigui més alta que la viewport
 * i que el botó X sigui inaccessible:
 *   1. L'overlay és SCROLLABLE (overflow-y: auto) i alineat a flex-start
 *      → la card sempre es pot fer scroll si excedeix la pantalla
 *   2. La imatge té max-height (50vh mòbil, 55vh tablet+) per no dominar
 *      tota la pantalla
 *   3. El botó X es renderitza FIXED al top-right de la viewport amb
 *      fons blanc i shadow → sempre visible i tocable, fins i tot quan
 *      la card és més llarga que la pantalla
 */
.ctt-popup-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    opacity: 0;
    transition: opacity .25s ease;
    /* Permet scroll de la card sencera si no hi cap a la viewport */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* flex-start (no center) perquè cards llargues no es tallin per dalt */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* Padding genereós per deixar respirar i no enganxar a vores */
    padding: 1.5rem 1rem 2rem;
}
/* En pantalles altes centrem verticalment perquè quedi més polit */
@media (min-height: 720px) {
    .ctt-popup-overlay { align-items: center; padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
.ctt-popup-overlay.is-open { opacity: 1; }
.ctt-popup-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform .3s ease;
    /* Marge automàtic perquè quedi centrat dins l'scroll si l'overlay s'escrolla */
    margin: auto 0;
}
.ctt-popup-overlay.is-open .ctt-popup-card { transform: translateY(0); }
/* Botó X: FIXED a viewport, mai amagat per cap mida d'imatge.
   Fons blanc + shadow + tamany dit-mòbil (44px) per WCAG. */
.ctt-popup-close {
    position: fixed;
    top: max(.75rem, env(safe-area-inset-top, .75rem));
    right: max(.75rem, env(safe-area-inset-right, .75rem));
    width: 44px; height: 44px;
    border: 0;
    background: #fff;
    color: #111;
    font-size: 1.85rem; line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.06);
    z-index: 10000;
    display: grid; place-items: center;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.ctt-popup-close:hover { background: #f3f4f6; transform: scale(1.05); box-shadow: 0 8px 22px rgba(0,0,0,.55); }
.ctt-popup-close:active { transform: scale(.95); }
.ctt-popup-icon {
    width: 72px; height: 72px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 2rem;
}
/* Imatge promocional del popup: NO la talla (object-fit: contain).
   La imatge s'ensenya sencera, mantenint el seu aspect ratio natural.
   La card s'estira en alçada segons calgui i l'overlay té scroll si cal. */
.ctt-popup-image-wrap {
    margin: -2rem -1.75rem 1.25rem;  /* extèn fins als marges interiors de la card */
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: #0E1733;             /* fons del club si la imatge no omple */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Cap d'alçada fixa: la imatge mana */
}
.ctt-popup-image-wrap img {
    display: block;
    width: 100%;
    height: auto;                    /* respecta proporcions de la imatge */
    max-height: 65vh;                /* només limita en pantalles molt baixes */
    object-fit: contain;             /* MAI talla la imatge */
}
.ctt-popup-card h3 { margin: .25rem 0 .75rem; font-size: 1.5rem; }
.ctt-popup-card p { margin: 0 0 1.5rem; color: #555; line-height: 1.5; }
.ctt-popup-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* --- Embed Instagram --- */
.ig-embed-wrap {
    margin: 2rem auto 0;
    display: flex; justify-content: center;
}
.ig-embed-wrap blockquote.instagram-media { margin: 0 auto !important; }

/* --- Bloque presidente / entrenador --- */
.president-block, .coach-block { padding: 3rem 0; }

/* --- Junta directiva --- */
.junta-section { padding: 4rem 0; }
.junta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.junta-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.junta-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.junta-avatar {
    width: 88px; height: 88px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #0066cc, #00a8ff);
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 2rem;
}
.junta-rol {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    margin-bottom: .25rem;
}
.junta-nom {
    margin: 0 0 .25rem;
    font-size: 1.15rem;
}
.junta-tag {
    display: inline-block;
    background: rgba(0,102,204,.08);
    color: #0066cc;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

/* --- Instal·lacions --- */
.instalacio-block { padding: 3rem 0; }
.instalacio-block.instalacio-alt { background: rgba(0,0,0,.02); }
.instalacio-header { text-align: center; margin-bottom: 2rem; }
.instalacio-header h2 { margin-bottom: .5rem; }
.instalacio-subtitle { color: #555; font-size: 1rem; margin: .25rem 0; }
.instalacio-subtitle i, .instalacio-meta i { margin-right: .35rem; color: #0066cc; }
.instalacio-meta { color: #777; font-size: .9rem; }
.instalacio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}
.instalacio-photo img,
.instalacio-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    aspect-ratio: 4/3;
}
.instalacio-map iframe { border-radius: 12px; }
.instalacio-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* --- Transparència: lista de PDFs --- */
.transparencia-docs { padding: 3rem 0 4rem; }
.doc-category { margin-bottom: 3rem; }
.doc-category-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
    font-size: 1.4rem;
}
.doc-category-title i {
    width: 40px; height: 40px;
    background: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1rem;
}
.doc-category-desc {
    color: #555; margin-bottom: 1.25rem;
}
.doc-list {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: .75rem;
}
.doc-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}
.doc-item a:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0,102,204,.08);
}
.doc-item.doc-highlight a {
    background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(239,68,68,.04));
    border-color: rgba(245,158,11,.4);
}
.doc-icon {
    flex-shrink: 0;
    color: #d63031;
    font-size: 1.5rem;
}
.doc-title { flex: 1; font-weight: 500; }
.doc-action {
    color: #0066cc;
    font-size: .85rem;
    white-space: nowrap;
    font-weight: 600;
}
.doc-action i { margin-left: .25rem; }

/* --- Horaris (JPG grandes clicables) --- */
.horaris-block { padding: 2rem 0; }
.horaris-block .section-title i {
    color: #f59e0b;
    margin-right: .5rem;
}
.horaris-image {
    margin-top: 1.5rem;
    text-align: center;
}
.horaris-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    cursor: zoom-in;
}
.horaris-cta { padding: 3rem 0; }

/* --- Calculadora de cuotas --- */
.quotes-calculator { padding: 4rem 0 3rem; }
.ctt-calc {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.ctt-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.ctt-calc-field { display: flex; flex-direction: column; gap: .35rem; }
.ctt-calc-field label {
    font-size: .8rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ctt-calc-field select,
.ctt-calc-field input {
    padding: .6rem .75rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 8px;
    font-size: .95rem;
    background: #fff;
}
.ctt-calc-field select:focus,
.ctt-calc-field input:focus {
    outline: 2px solid rgba(0,102,204,.5);
    border-color: #0066cc;
}
.ctt-calc-result {
    background: linear-gradient(135deg, rgba(0,102,204,.06), rgba(0,168,255,.04));
    border: 1px solid rgba(0,102,204,.2);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    margin-top: 1.5rem;
}
.ctt-calc-result h3 { margin: 0 0 1rem; font-size: 1.2rem; }
.ctt-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.ctt-calc-row:last-of-type { border-bottom: 0; }
.ctt-calc-row span:first-child {
    color: #555; font-size: .95rem;
}
.ctt-calc-row span:last-child {
    font-weight: 700; font-size: 1.1rem; color: #0066cc;
}
.ctt-calc-row.ctt-calc-discount span:last-child {
    font-size: .85rem;
    font-weight: 500;
    color: #f59e0b;
    text-align: right;
    max-width: 60%;
}
.ctt-calc-note {
    margin-top: 1rem;
    font-size: .85rem;
    color: #777;
    line-height: 1.5;
}
.ctt-calc-note i { margin-right: .35rem; color: #0066cc; }
.ctt-calc-note a { color: #0066cc; font-weight: 600; }

/* --- Tablas de cuotas --- */
.quotes-tables { padding: 3rem 0; }
.quotes-table-wrap { overflow-x: auto; margin: 1rem 0; }
.quotes-table {
    width: 100%; border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    min-width: 600px;
}
.quotes-table th,
.quotes-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.quotes-table th {
    background: #0066cc; color: #fff;
    font-size: .85rem; text-transform: uppercase;
    letter-spacing: .04em;
}
.quotes-table tr:nth-child(even) td { background: rgba(0,102,204,.02); }
.quotes-table tr:hover td { background: rgba(0,102,204,.06); }

/* --- Mobile --- */
@media (max-width: 768px) {
    .instalacio-grid { grid-template-columns: 1fr; }
    .doc-list { grid-template-columns: 1fr; }
    .doc-item a { flex-wrap: wrap; }
    .doc-action { width: 100%; text-align: right; }
    .ctt-calc-grid { grid-template-columns: 1fr; }
    .ctt-popup-card { padding: 2rem 1.5rem 1.5rem; }
    .junta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .junta-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   === FASE 1.8 — refuerzo mobile-first ===
   Asegura que todos los componentes nuevos rinden bien en mobile (320-480px)
   y van escalando hacia arriba.
   ============================================================================ */

/* Imágenes responsive globales (a veces el contenido pegado del editor
   trae <img> sin estilos — nos aseguramos que nunca se desbordan). */
.section-page img,
.entry-content img,
.horaris-image img,
.instalacio-photo img,
.instalacio-gallery img {
    max-width: 100%;
    height: auto;
}

/* Tablas: scroll horizontal cuando no quepan */
.section-page table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}
.section-page table.schedule-table,
.section-page table.quotes-table {
    display: table; /* devolver display normal — sus wrappers ya scrollan */
}

/* iframes (mapas, vídeos): fluidos */
.section-page iframe {
    max-width: 100%;
}

/* Popup: en pantallas muy pequeñas reservar espacio inferior para safe-area */
@media (max-width: 480px) {
    .ctt-popup-card {
        padding: 1.75rem 1.25rem 1.25rem;
        border-radius: 12px;
    }
    .ctt-popup-icon {
        width: 56px; height: 56px;
        font-size: 1.5rem;
    }
    .ctt-popup-card h3 { font-size: 1.25rem; }
    .ctt-popup-card p { font-size: .9rem; margin-bottom: 1rem; }
    .ctt-popup-actions { flex-direction: column; }
    .ctt-popup-actions .btn { width: 100%; justify-content: center; }
}

/* Calculadora en mobile: títulos y cantidades más legibles */
@media (max-width: 480px) {
    .ctt-calc { padding: 1.25rem 1rem; }
    .ctt-calc-result { padding: 1.25rem 1rem; }
    .ctt-calc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .25rem;
    }
    .ctt-calc-row span:last-child {
        font-size: 1rem;
        text-align: left !important;
        max-width: 100% !important;
    }
}

/* Listas de descargas (transparencia) en mobile: separar título y botón */
@media (max-width: 600px) {
    .doc-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
    .doc-icon { font-size: 1.2rem; }
    .doc-action {
        align-self: stretch;
        text-align: right;
        padding-top: .5rem;
        border-top: 1px solid rgba(0,0,0,.06);
    }
}

/* Junta directiva: dos columnas en tablet, una en mobile */
@media (max-width: 600px) {
    .junta-grid { grid-template-columns: 1fr; gap: 1rem; }
    .junta-card { padding: 1.25rem 1rem; }
    .junta-avatar { width: 64px; height: 64px; font-size: 1.5rem; }
}

/* Embed Instagram: reservar ancho razonable en mobile */
.ig-embed-wrap blockquote.instagram-media {
    width: 100% !important;
    max-width: 100% !important;
}

/* Breadcrumb en mobile: wrap razonable */
@media (max-width: 480px) {
    .breadcrumb {
        font-size: .8rem;
        flex-wrap: wrap;
    }
}

/* Hero pages — reducir padding en mobile para no comer pantalla */
@media (max-width: 600px) {
    .page-hero { min-height: 240px; }
    .page-hero h1 { font-size: 1.75rem; line-height: 1.15; }
    .page-hero p { font-size: .95rem; }
}

/* Forms (contacto y entradas): inputs grandes y táctiles en mobile */
@media (max-width: 600px) {
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* evita el zoom automático de iOS al hacer focus */
        padding: .8rem .9rem;
    }
}

/* Ajuste extra del nav-menu cuando el hamburger se abre en mobile */
@media (max-width: 600px) {
    .nav-menu {
        padding: 5rem 1.5rem 2rem;
        gap: .25rem;
    }
    .nav-menu .nav-link {
        font-size: 1rem;
        padding: .9rem .5rem;
    }
}

/* ============================================================================
   === CAMPUS D'ESTIU 2026 — paleta del cartell oficial ===
   Verd llima del cartell (#C5F94B) com a accent, vermell del club com a CTA,
   navy fosc per a fons. Mobile-first.
   ============================================================================ */

.campus-estiu-2026 {
    --ctt-lime: #C5F94B;
    --ctt-lime-dark: #8fbf2e;
    --ctt-navy: #0E1733;
    --ctt-red:  #E1232E;
    --ctt-soft: #F4F6FA;
}

/* Hero */
.campus-estiu-2026 .campus-hero { min-height: auto; padding-bottom: 0; }
.campus-estiu-2026 .campus-hero .hero-content { padding: 2.5rem 0; }
.campus-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}
.campus-tag {
    display: inline-block;
    background: var(--ctt-lime, #C5F94B);
    color: var(--ctt-navy, #0E1733);
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}
.campus-estiu-2026 h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.hero-h1-accent {
    background: var(--ctt-lime, #C5F94B);
    color: var(--ctt-navy, #0E1733);
    padding: 0 .25em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline;
}
.hero-edicio {
    color: var(--ctt-lime, #C5F94B);
    font-size: .8em;
}
.hero-dates-big {
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    margin: .75rem 0 1rem;
    color: rgba(255,255,255,.95);
}
.hero-dates-big strong { color: var(--ctt-lime, #C5F94B); }
.hero-lede {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255,255,255,.85);
    margin-bottom: 1rem;
}
.campus-note-warning {
    background: rgba(225,35,46,.15);
    border-left: 3px solid var(--ctt-red, #E1232E);
    padding: .75rem 1rem;
    border-radius: 0 6px 6px 0;
    color: #fff;
    margin: 1rem 0;
    font-size: .9rem;
}
.campus-note-warning i { color: var(--ctt-lime, #C5F94B); margin-right: .35rem; }
.campus-hero-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* Cartell */
.campus-hero-poster {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    transition: transform .3s ease;
    max-width: 380px;
    margin: 0 auto;
}
.campus-hero-poster:hover { transform: translateY(-4px); }
.campus-hero-poster img {
    width: 100%;
    height: auto;
    display: block;
}

/* Highlight card en datos clave */
.campus-info-card.campus-info-highlight {
    background: linear-gradient(135deg, rgba(197,249,75,.12), rgba(225,35,46,.06));
    border-color: rgba(197,249,75,.4);
}
.campus-info-card.campus-info-highlight .campus-info-icon {
    background: linear-gradient(135deg, var(--ctt-lime, #C5F94B), var(--ctt-lime-dark, #8fbf2e));
    color: var(--ctt-navy, #0E1733);
}
.campus-info-card strong { color: var(--ctt-red, #E1232E); font-size: 1.4em; }

/* Tabla horario y precios */
.campus-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.campus-table {
    width: 100%; min-width: 480px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.campus-table thead th {
    background: var(--ctt-navy, #0E1733);
    color: var(--ctt-lime, #C5F94B);
    padding: .85rem 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .85rem;
    text-align: left;
}
.campus-table tbody td {
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.campus-table tbody tr:nth-child(odd) td { background: rgba(0,0,0,.02); }
.campus-cell-merge {
    background: linear-gradient(135deg, rgba(197,249,75,.15), rgba(225,35,46,.08)) !important;
    text-align: center;
    font-weight: 700;
    color: var(--ctt-navy, #0E1733);
    vertical-align: middle;
}

/* Prices specific */
.campus-prices-table .campus-row-label {
    font-weight: 700;
    background: var(--ctt-soft, #F4F6FA);
}
.campus-prices-table .campus-row-soci td {
    background: rgba(197,249,75,.18) !important;
    font-weight: 700;
    color: var(--ctt-navy, #0E1733);
}
.campus-prices-table td:not(.campus-row-label) {
    text-align: center;
    font-size: 1.05rem;
}

.campus-final-cta { background: var(--ctt-navy, #0E1733); }
.campus-final-cta .cta-content h2 { color: var(--ctt-lime, #C5F94B); }

/* Desktop: dos columnas */
@media (min-width: 768px) {
    .campus-hero-grid { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
    .campus-hero-poster { max-width: 100%; }
}

/* Mobile fine-tune */
@media (max-width: 600px) {
    .campus-estiu-2026 h1 { font-size: 1.85rem; }
    .hero-edicio { display: block; margin-top: .25rem; }
    .campus-hero-cta { flex-direction: column; }
    .campus-hero-cta .btn { justify-content: center; width: 100%; }
    .campus-hero-poster { max-width: 280px; }
}

/* ============================================================================
   === Campus Estiu — fixes hero/CTAs (v2, mobile-friendly) ===
   ============================================================================ */

/* Hero compacto: imagen NO se solapa con texto largo */
.campus-hero-compact {
    min-height: 320px;
    padding: 2rem 0 1.5rem;
}
.campus-hero-compact .hero-content { padding: 1.5rem 0; }

/* Sección de intro con fondo navy */
.campus-intro {
    background: linear-gradient(180deg, #0E1733 0%, #15213A 100%);
    color: #fff;
    padding: 3rem 0 4rem;
    margin-top: -1px;
}
.campus-intro .hero-dates-big strong { color: #C5F94B; }
.campus-intro .hero-lede { color: rgba(255,255,255,.85); }
.campus-intro .hero-dates-big { color: rgba(255,255,255,.95); }

/* Botones del hero — espaciados, NO usar min-width fija (provoca overflow) */
.campus-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.campus-hero-cta .btn {
    padding: .9rem 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: 1rem;
    line-height: 1.2;
    white-space: normal;     /* permitir wrap si el text és llarg */
    text-align: center;
    flex: 1 1 auto;          /* compartir l'espai disponible */
    max-width: 100%;
}

/* WhatsApp button */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: 2px solid #25D366;
    font-weight: 700;
    transition: background .2s, transform .1s;
}
.btn-whatsapp:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    color: #fff;
    transform: translateY(-1px);
}
.btn-whatsapp i { font-size: 1.2em; }

/* CTA section del final (Eduard Solsona) — botones balanceados */
.campus-final-cta .campus-cta-buttons { gap: .75rem; }
.campus-final-cta .campus-cta-buttons .btn {
    padding: .8rem 1.2rem;
    font-size: .95rem;
    line-height: 1.25;
    white-space: normal;
    word-break: keep-all;
    flex: 1 1 240px;
    min-width: 0;
    max-width: 100%;
}
.campus-final-cta .campus-cta-buttons .btn i { flex-shrink: 0; }

/* Mobile — pila vertical, font reducido, butons full width */
@media (max-width: 600px) {
    .campus-hero-compact { min-height: 220px; padding: 1.25rem 0 .75rem; }
    .campus-hero-compact .hero-content { padding: 1rem 0; }
    .campus-intro { padding: 2rem 0 3rem; }

    .campus-hero-cta { flex-direction: column; gap: .6rem; margin-top: 1.25rem; }
    .campus-hero-cta .btn {
        width: 100%;
        font-size: .95rem;
        padding: .85rem 1rem;
    }

    .campus-final-cta .campus-cta-buttons { flex-direction: column; gap: .55rem; }
    .campus-final-cta .campus-cta-buttons .btn {
        width: 100%;
        font-size: .9rem;
        padding: .8rem 1rem;
    }

    /* Hero título y dates más compactos en mobile */
    .campus-estiu-2026 h1 { font-size: 1.7rem; }
    .hero-edicio { display: block; margin-top: .25rem; font-size: .9em; }
    .hero-dates-big { font-size: 1.05rem; margin: .5rem 0 .75rem; }
}

/* Telèfon con número largo — siempre cabe */
.campus-cta-buttons .btn[href^="tel:"] {
    letter-spacing: .01em;
}
@media (max-width: 380px) {
    .campus-final-cta .campus-cta-buttons .btn { font-size: .85rem; padding: .75rem .75rem; }
}

/* Botón de contacto en 2 líneas (nombre arriba, telèfon més gran) */
.btn-contact-stack {
    display: inline-flex !important;
    align-items: center !important;
    gap: .6rem !important;
    text-align: left !important;
}
.btn-contact-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
}
.btn-contact-name {
    font-size: .75em;
    opacity: .85;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.btn-contact-phone {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* Tournament card teaser — variant finished (Torneig acabat) */
.teaser-badge.finished {
    background: rgba(120,120,120,.85);
    color: #fff;
}

/* ============================================================================
   === Campus Estiu — fixes contrast + grid ordenat ===
   ============================================================================ */

/* La secció .campus-info està dins del page navy → les cards blanques heredan
   color blanc i el text es queda invisible. Forcem colors. */
.campus-page .campus-info {
    background: #f4f6fa;     /* fons clar perquè les cards blanques destaquin */
    padding: 3rem 0;
    color: #15213A;
}
.campus-page .campus-info-card {
    background: #fff;
    color: #15213A;          /* text per defecte fosc */
    border: 1px solid rgba(14,23,51,.08);
    border-radius: 14px;
    padding: 1.75rem 1.25rem 1.5rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(14,23,51,.06);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}
.campus-page .campus-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(14,23,51,.1);
}
.campus-page .campus-info-card h3 {
    color: #0E1733;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: .5rem 0 .25rem;
    line-height: 1.2;
}
.campus-page .campus-info-card p {
    color: #15213A;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}
.campus-page .campus-info-card .campus-info-sub {
    color: #6b7280;
    font-size: .82rem;
    font-weight: 500;
    margin-top: .25rem;
}
.campus-page .campus-info-card .campus-info-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #0066cc, #00a8ff);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 6px 14px rgba(0,102,204,.25);
}

/* Card destacada (Places) — paleta lima del cartell */
.campus-page .campus-info-card.campus-info-highlight {
    background: linear-gradient(135deg, #15213A, #0E1733);
    color: #fff;
    border-color: rgba(197,249,75,.4);
}
.campus-page .campus-info-card.campus-info-highlight h3 { color: #C5F94B; }
.campus-page .campus-info-card.campus-info-highlight p { color: #fff; }
.campus-page .campus-info-card.campus-info-highlight strong {
    color: #C5F94B;
    font-size: 1.6em;
    display: inline-block;
    margin: 0 .15em;
}
.campus-page .campus-info-card.campus-info-highlight .campus-info-sub {
    color: rgba(197,249,75,.85);
}
.campus-page .campus-info-card.campus-info-highlight .campus-info-icon {
    background: linear-gradient(135deg, #C5F94B, #8fbf2e);
    color: #0E1733;
    box-shadow: 0 6px 14px rgba(197,249,75,.3);
}

/* Grid: 1 col mobile pequeño, 2 col mobile grande/tablet, 4 col desktop */
.campus-page .campus-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1100px;
    margin: 1.5rem auto 0;
}
@media (min-width: 480px) {
    .campus-page .campus-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .campus-page .campus-info-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

/* Mobile: cards más compactas, no ocupan toda la pantalla */
@media (max-width: 600px) {
    .campus-page .campus-info { padding: 2rem 0; }
    .campus-page .campus-info-card {
        padding: 1.25rem 1rem 1.1rem;
        gap: .25rem;
    }
    .campus-page .campus-info-card .campus-info-icon {
        width: 44px; height: 44px;
        font-size: 1.1rem;
    }
    .campus-page .campus-info-card h3 { font-size: .85rem; margin: .4rem 0 .15rem; }
    .campus-page .campus-info-card p { font-size: .95rem; }
    .campus-page .campus-info-card .campus-info-sub { font-size: .75rem; }
    .campus-page .campus-info-card.campus-info-highlight strong { font-size: 1.4em; }
}

/* Mobile: la fila de CTAs del hero debe respirar entre botones */
@media (max-width: 600px) {
    .campus-hero-cta { gap: .55rem; margin-top: 1rem; }
    .campus-hero-cta .btn {
        padding: .8rem .9rem;
        font-size: .92rem;
        line-height: 1.2;
    }
    .campus-hero-cta .btn i { font-size: 1em; }
}

/* ============================================================================
   === Nav desktop — tightening final per evitar overflow en pantalles
   estàndar (1450-1700px). 9+ items principals + lang + CTA = molt denso.   ===
   ============================================================================ */

@media (min-width: 1451px) {
    .navbar { padding: .65rem 1.25rem; }
    .nav-container { max-width: 100%; padding: 0; }
    .nav-menu { gap: .15rem; }
    .nav-link {
        padding: .4rem .55rem;
        font-size: .72rem;
        letter-spacing: .02em;
    }
    .nav-cta {
        padding: .55rem .9rem;
        font-size: .72rem;
    }
    .nav-logo img { height: 67px; }
    .navbar.scrolled .nav-logo img { height: 56px; }
}

/* Espai més ampli a partir de 1700px */
@media (min-width: 1700px) {
    .nav-menu { gap: .3rem; }
    .nav-link { padding: .5rem .75rem; font-size: .8rem; }
    .nav-cta { padding: .65rem 1.1rem; font-size: .8rem; }
    .nav-logo img { height: 84px; }
}

/* Select del form de contacto — coherent amb inputs */
.contact-form select {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    color: #15213A;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 8px;
    padding-right: 2.5rem;
    cursor: pointer;
}
.contact-form select:focus {
    outline: 2px solid rgba(0,102,204,.5);
    border-color: #0066cc;
}

/* ============================================================================
   === Campus Estiu — fix definitivo de contraste ===
   La página entera usa .section-page (fondo y texto blanco). Las tablas tienen
   fondo blanco y heredaban color blanco → invisible. Tampoco había fondo en
   las secciones de horarios y precios, por lo que las tablas flotaban sobre
   el negro y los títulos no contrastaban. Fix: dar fondo claro a las
   secciones y forzar colores oscuros en tablas, títulos y notas.
   ============================================================================ */

/* Secciones intermedias: fondo claro alternado para ritmo visual */
.campus-page .campus-schedule {
    background: #ffffff;
    color: #15213A;
    padding: 3.5rem 0;
}
.campus-page .campus-pricing {
    background: #f4f6fa;
    color: #15213A;
    padding: 3.5rem 0;
}

/* Títulos de sección dentro de campus → siempre legibles */
.campus-page .campus-schedule .section-title,
.campus-page .campus-pricing .section-title {
    color: #0E1733 !important;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 auto 1.5rem;
}
.campus-page .campus-schedule .section-title::after,
.campus-page .campus-pricing .section-title::after {
    background: var(--ctt-red, #E1232E);
    left: 50%;
    transform: translateX(-50%);
}

/* Tablas dentro de campus: fondo blanco, texto OSCURO siempre */
.campus-page .campus-table {
    color: #15213A;
    border: 1px solid rgba(14,23,51,.08);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 900px;
}
.campus-page .campus-table tbody td {
    color: #15213A !important;
    background: #ffffff;
    font-size: 1rem;
    line-height: 1.4;
    vertical-align: middle;
}
.campus-page .campus-table tbody tr:nth-child(odd) td {
    background: #f9fafc !important;
}
.campus-page .campus-table thead th {
    background: #0E1733;
    color: #C5F94B !important;
    font-weight: 800;
    text-align: center;
    padding: 1rem .85rem;
}
.campus-page .campus-table thead th:first-child {
    text-align: left;
}
.campus-page .campus-table tbody td:first-child {
    font-weight: 700;
    color: #0E1733 !important;
    background: #f4f6fa !important;
    text-align: left;
}
.campus-page .campus-table tbody tr:nth-child(odd) td:first-child {
    background: #eef1f7 !important;
}

/* Celda merged (Divendres / Competició) — destacada lima */
.campus-page .campus-table .campus-cell-merge {
    background: linear-gradient(135deg, rgba(197,249,75,.45), rgba(197,249,75,.25)) !important;
    color: #0E1733 !important;
    font-weight: 800 !important;
    text-align: center !important;
    vertical-align: middle !important;
    border-left: 2px solid rgba(197,249,75,.7);
}

/* Tabla de precios: fila SOCIO destacada */
.campus-page .campus-prices-table .campus-row-soci td {
    background: linear-gradient(135deg, rgba(197,249,75,.4), rgba(197,249,75,.2)) !important;
    color: #0E1733 !important;
    font-weight: 800 !important;
    font-size: 1.1rem;
}
.campus-page .campus-prices-table .campus-row-soci td:first-child {
    color: #0E1733 !important;
    background: rgba(197,249,75,.55) !important;
}
.campus-page .campus-prices-table td:not(.campus-row-label) {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Notas/info text dentro de campus — fondo claro siempre lo necesita oscuro */
.campus-page .campus-schedule .campus-note,
.campus-page .campus-pricing .campus-note {
    color: #4b5563 !important;
    font-size: .95rem;
    margin-top: 1.25rem;
    font-style: italic;
}
.campus-page .campus-schedule .campus-note i,
.campus-page .campus-pricing .campus-note i {
    color: var(--ctt-red, #E1232E);
    margin-right: .35em;
}

/* Wrap de tabla: scroll horizontal en móvil pero sin perder contraste */
.campus-page .campus-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem auto 0;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(14,23,51,.08);
}

/* Móvil: tipografía y padding más compactos */
@media (max-width: 600px) {
    .campus-page .campus-schedule,
    .campus-page .campus-pricing { padding: 2.5rem 0; }
    .campus-page .campus-table thead th { padding: .75rem .5rem; font-size: .8rem; }
    .campus-page .campus-table tbody td { padding: .65rem .5rem; font-size: .9rem; }
    .campus-page .campus-table tbody td:first-child { font-size: .85rem; }
    .campus-page .campus-prices-table td:not(.campus-row-label) { font-size: 1rem; }
    .campus-page .campus-prices-table .campus-row-soci td { font-size: 1rem; }
}
