/* ========================================
   VARIABLES Y RESET - MODERN 2026
   ======================================== */
:root {
    --primary: #0f1b2d;
    --primary-light: #1a3a5c;
    --primary-gradient: linear-gradient(135deg, #0f1b2d 0%, #1a3a5c 100%);
    --accent: #00e676;
    --accent-dark: #00c853;
    --accent-glow: rgba(0, 230, 118, 0.3);
    --danger: #ff1744;
    --danger-dark: #d50000;
    --warning: #ffab00;
    --dark: #0a0e17;
    --gray: #8892a4;
    --light: #f0f2f7;
    --white: #ffffff;
    --bg: #f5f7fb;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 230, 118, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --font: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   UTILIDADES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

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

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

.text-muted {
    color: var(--gray);
}

.mt-1 {
    margin-top: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.page-title {
    font-size: 3rem;
    color: var(--white);
    text-align: center;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

/* ========================================
   BOTONES
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--dark);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
    color: var(--dark);
}

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

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   FORMULARIOS
   ======================================== */
.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check-input {
    margin-top: 0.3rem;
    width: auto;
    accent-color: var(--accent);
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.form-error {
    display: block;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    /* backdrop-filter está en ::before para no bloquear position:fixed de hijos */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Efecto cristal — en pseudo-elemento para que nav-center:fixed use el viewport */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.72);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    z-index: 0;
    pointer-events: none;
}

.header-unified {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.35rem 1.5rem;
    position: relative;
    z-index: 2;   /* por encima del overlay (z-index:1) y del ::before (z-index:0) */
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 58px;
    width: auto;
    transition: var(--transition);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Language buttons with flags */
.lang-buttons {
    display: flex;
    gap: 0.25rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

/* Desktop language dropdown */
.lang-dropdown {
    position: relative;
}
.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}
.lang-dropdown-toggle:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + .4rem);
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    min-width: 140px;
    z-index: 1001;
    overflow: hidden;
}
.lang-dropdown-menu.open {
    display: block;
}
.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}
.lang-dropdown-item:hover {
    background: var(--light);
}
.lang-dropdown-item.active {
    background: rgba(46,204,113,.1);
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   MENÚ MÓVIL — fuera del header, fondo sólido
   (evita el bug de iOS con overflow:hidden + backdrop-filter)
   ======================================== */

/* Overlay oscuro */
#mm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1099;
}
#mm-overlay.mm-open {
    display: block;
}

/* Panel del menú */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: #0a0e17;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}
#mobile-menu.mm-open {
    transform: translateX(0);
}

/* Interior del panel */
.mm-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1rem 0 2rem;
}

/* Botón cerrar */
#mm-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Links de navegación */
.mm-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.mm-link {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.15s, color 0.15s;
}
.mm-link:hover,
.mm-link:active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.mm-link.mm-active {
    color: var(--accent);
}
.mm-link.mm-highlight {
    color: var(--accent);
    font-weight: 700;
}
.mm-link.mm-highlight:hover {
    color: var(--accent-dark);
}

/* Bloque inferior (sesión + idioma) */
.mm-bottom {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Links de sesión */
.mm-session {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}
.mm-session-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    color: #ffffff;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.15s;
}
.mm-session-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.mm-session-link.mm-logout {
    color: #ff6b6b;
}

/* Selector de idioma */
.mm-lang-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}
.mm-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.mm-lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.mm-lang-btn.mm-lang-active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

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

.lang-btn.active {
    background: rgba(255,255,255,0.18);
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.flag-icon {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
}

/* Profile link */
.profile-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.profile-link:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.profile-link i {
    font-size: 1.3rem;
}

/* Logout button */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 23, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.3);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.logout-btn:hover {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
    transform: scale(1.1);
}

/* Navbar */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: block;
    padding: 1.15rem 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 70%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--white);
    background: transparent;
}

.nav-menu li a.nav-highlight {
    color: var(--accent);
    font-weight: 700;
}

.nav-menu li a.nav-highlight:hover {
    color: var(--accent-dark);
}

/* ========================================
   MENSAJES / ALERTAS
   ======================================== */
.messages-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9998;
    width: min(380px, calc(100vw - 3rem));
    pointer-events: none;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.alert {
    pointer-events: all;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    animation: toastIn 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    transition: opacity 0.5s, transform 0.5s;
}

.alert-success {
    background: rgba(0, 230, 118, 0.12);
    color: #00c853;
    border: 1px solid rgba(0, 230, 118, 0.25);
}

.alert-error {
    background: rgba(255, 23, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.25);
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

.alert-close:hover {
    opacity: 1;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--dark);
    color: var(--light);
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 230, 118, 0.1);
}

/* Banner de patrocinadores */
.sponsors-banner {
    overflow: hidden;
    background: var(--white);
    padding: 1.25rem 0;
}

.sponsors-track {
    display: flex;
    animation: scroll-sponsors 30s linear infinite;
    width: max-content;
}

.sponsor-item {
    flex-shrink: 0;
    padding: 0 2rem;
}

.sponsor-item img {
    height: 50px;
    width: auto;
    opacity: 0.5;
    transition: var(--transition);
    filter: grayscale(100%);
}

.sponsor-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

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

/* Columnas del footer */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
}

.footer-info i {
    color: var(--accent);
    width: 20px;
    margin-right: 0.3rem;
}

/* Legal */
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-links {
    margin-bottom: 0.75rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

.copyright a {
    color: var(--accent);
}

.copyright a:hover {
    text-decoration: underline;
}

/* ========================================
   MODALES (globales)
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalIn 0.3s ease;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover { color: #333; }

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

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.club-hero, .escuela-hero, .torneos-hero,
.eventos-hero, .restaurante-hero, .contacto-hero,
.reservas-hero {
    background: var(--primary-gradient);
    margin-top: -74px;
    padding: calc(74px + 2.5rem) 0 2.5rem;
    min-height: 36vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.club-hero::before, .escuela-hero::before, .torneos-hero::before,
.eventos-hero::before, .restaurante-hero::before, .contacto-hero::before,
.reservas-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ========================================
   CLUB - INSTALACIONES
   ======================================== */
.club-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.club-intro h2 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

.club-intro p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.facility-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 3rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.facility-card.reverse {
    direction: rtl;
}

.facility-card.reverse > * {
    direction: ltr;
}

.facility-images {
    min-height: 300px;
}

.facility-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 4rem;
}

.facility-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.facility-info h3 {
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.facility-info p {
    color: var(--gray);
    line-height: 1.8;
}

/* ========================================
   ESCUELA - EQUIPO Y PROGRAMAS
   ======================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-glow);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(15, 27, 45, 0.2);
}

.team-card h3 {
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.team-role {
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 230, 118, 0.15);
}

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

.program-card h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Tarifas */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

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

.pricing-header h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pricing-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--light);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0.5rem 0;
}

.pricing-duration {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========================================
   TORNEOS
   ======================================== */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tournament-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.tournament-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tournament-card:hover .tournament-image img {
    transform: scale(1.08);
}

.tournament-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 14, 23, 0.9));
    padding: 3rem 1.5rem 1.5rem;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.tournament-card:hover .tournament-overlay {
    opacity: 1;
}

.tournament-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.tournament-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 4rem;
}

.tournament-placeholder.large {
    min-height: 400px;
}

/* Detalle torneo */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-dark);
    transform: translateX(-3px);
}

.torneo-detail {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
}

.torneo-left {
    position: sticky;
    top: 120px;
    align-self: start;
}

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

.torneo-description, .torneo-sponsors {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.torneo-sponsors h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Tabs */
.torneo-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: var(--light);
    color: var(--dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.tab-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item i {
    color: var(--accent-dark);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* ========================================
   EVENTOS
   ======================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 230, 118, 0.15);
}

.event-image {
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 3rem;
}

.event-info {
    padding: 1.5rem;
}

.event-info h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.event-date {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cta-section {
    text-align: center;
    padding: 3.5rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.cta-section p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--dark);
}

.cta-section .btn-primary:hover {
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* ========================================
   CONTACTO
   ======================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

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

.contact-item i {
    color: var(--accent-dark);
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

/* ========================================
   AUTH
   ======================================== */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background: var(--light);
    border: none;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.auth-tab.active {
    background: var(--white);
    color: var(--dark);
}

.auth-form {
    padding: 2rem;
}

.auth-form h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 800;
}

/* ========================================
   PERFIL
   ======================================== */
.perfil-hero {
    margin-top: -74px;
    padding: calc(74px + 1.5rem) 0 1.5rem;
    min-height: 28vh;
    text-align: center;
}

.perfil-hero .page-title {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.profile-layout {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .7rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.badge-active {
    background: rgba(52, 152, 219, .12);
    color: #2980b9;
}
.badge-done {
    background: rgba(46, 204, 113, .12);
    color: #27ae60;
}
.badge-cancelled {
    background: rgba(231, 76, 60, .12);
    color: #c0392b;
}

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

.profile-card h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light);
    font-weight: 800;
}

.profile-card h2 i {
    margin-right: 0.5rem;
    color: var(--accent-dark);
}

.profile-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

/* ========================================
   TABLAS
   ======================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--dark);
    color: var(--white);
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eef1f5;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(0, 230, 118, 0.04);
}

.data-table code {
    font-size: 0.8rem;
    background: var(--light);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.2;
    color: var(--dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* ≤1024px — ocultar nav de escritorio, mostrar botón hamburguesa */
@media (max-width: 1024px) {
    .nav-toggle {
        display: block;
        order: 3;
        margin-left: auto;
    }
    .nav-center {
        display: none;
    }
    .header-unified {
        padding: 0.5rem 1rem;
    }
    .header-actions {
        display: none;
    }
    .profile-text {
        display: none;
    }
}

/* ≤992px — layout adjustments */
@media (max-width: 992px) {
    .torneo-detail {
        grid-template-columns: 1fr;
    }
    .torneo-left {
        position: static;
    }
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .facility-card {
        grid-template-columns: 1fr;
    }
    .facility-card.reverse {
        direction: ltr;
    }
    .pricing-grid-wide {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* ≤768px — small phones */
@media (max-width: 768px) {
    .profile-card {
        overflow-x: hidden;
        padding: 1.5rem;
    }
    .profile-card .table-responsive {
        max-width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .hero-overlay h1 {
        font-size: 2.2rem;
    }
    .hero-overlay p {
        font-size: 1rem;
    }
    .section {
        padding: 3rem 0;
    }
    .club-intro p {
        font-size: 0.95rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .pricing-grid-wide {
        grid-template-columns: 1fr;
    }
    .pricing-card.featured {
        transform: none;
    }
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    .tournament-image {
        height: 280px;
    }
    .tournament-overlay {
        opacity: 1;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .auth-container {
        margin: 1rem;
    }
    .facility-images {
        min-height: 200px;
    }
    .cta-section {
        padding: 2.5rem 1.5rem;
    }
    .profile-layout {
        gap: 1rem;
    }
    .footer-columns {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    .legal-content h2 {
        font-size: 1.2rem;
    }
    .contact-map iframe {
        height: 250px;
    }
    .restaurante-slideshow {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 0.5rem 1rem;
    }
    .logo-img {
        height: 44px;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .hero-overlay h1 {
        font-size: 1.8rem;
    }
    .section {
        padding: 2rem 0;
    }
    .container {
        padding: 0 1rem;
    }
    .gallery-container {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 200px;
    }
    .btn {
        padding: 0.65rem 1.4rem;
        font-size: 0.85rem;
    }
    .data-table {
        font-size: 0.8rem;
    }
    .data-table th, .data-table td {
        padding: 0.55rem 0.6rem;
    }
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-hero {
    background: var(--primary-gradient);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
}

.legal-content h3 {
    color: var(--dark);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
}

.legal-content p {
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.legal-content ul {
    color: var(--gray);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.4rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.legal-table th {
    background: var(--dark);
    color: var(--white);
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 700;
}

.legal-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #eef1f5;
}

.legal-update {
    margin-top: 2rem;
    font-style: italic;
    font-size: 0.85rem;
    color: rgba(136, 146, 164, 0.6);
}

/* ========================================
   FOOTER ADMIN BUTTON
   ======================================== */
.footer-admin {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-admin:hover {
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* ========================================
   RESTAURANTE SLIDESHOW
   ======================================== */
.restaurante-slideshow {
    margin-top: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 450px;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slideshow-slide.active {
    opacity: 1;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   PRICING WIDE GRID
   ======================================== */
.pricing-grid-wide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
}

.pricing-detail {
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* ========================================
   TOURNAMENT BADGE
   ======================================== */
.tournament-badge {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--dark);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
}

.tournament-badge-active {
    background: linear-gradient(135deg, #00e676, #00c853);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
}

/* Active tournament card */
.tournament-active {
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
}

.tournament-action {
    padding: 0.75rem;
    text-align: center;
}

/* Past tournament details */
.tournament-past-details {
    padding: 0.75rem;
    border-top: 1px solid #eef1f5;
}

.tournament-category-details {
    margin-bottom: 0.5rem;
    border: 1px solid #eef1f5;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tournament-category-details summary {
    padding: 0.65rem 0.85rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    background: var(--light);
    color: var(--dark);
    transition: var(--transition-fast);
}

.tournament-category-details summary:hover {
    background: #e2e8f0;
}

.category-players-list {
    list-style: none;
    padding: 0.5rem 0.8rem;
    font-size: 0.83rem;
}

.category-players-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f5f7fb;
    color: var(--gray);
}

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

.btn-sm-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

/* ========================================
   LOGIN LEGAL NOTICE
   ======================================== */
.legal-notice-login {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--gray);
}

.legal-notice-login a {
    color: var(--dark);
    font-weight: 600;
}

.legal-notice-login a:hover {
    color: var(--accent-dark);
}

/* ========================================
   CONTACT MAP
   ======================================== */
.contact-map {
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ========================================
   CANCEL BUTTON (PROFILE)
   ======================================== */
.btn-sm-cancel {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm-cancel:hover {
    background: var(--danger-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border: none;
}

.btn-danger:hover {
    background: var(--danger-dark);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
}
