/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --primary-navy: #0a1e36;
    --brand-blue: #1E5F9E;
    --accent-cyan: #00d4ff;
    --text-white: #ffffff;
    --text-silver: #b8c2cc;
    --text-dark: #1a202c;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height-mobile: 60px;
    --nav-height-desktop: 70px;
    --page-padding-mobile: 20px;
    --page-padding-desktop: 6vw;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--primary-navy); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }

/* ESTANDARIZACIÓN DE TIPOGRAFÍA */
.club-title, .inst-title, .school-title, .tour-title, .directory-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800; line-height: 1.1; margin-bottom: 1rem; text-transform: uppercase;
}
.club-desc, .inst-desc, .school-desc, .tour-subtitle, .directory-subtitle {
    font-size: 1rem; line-height: 1.6; max-width: 550px; margin-bottom: 2rem;
}
.club-label, .inst-label, .school-label, .tour-label, .directory-label {
    font-size: 0.85rem; font-weight: 800; letter-spacing: 0.15em; margin-bottom: 1rem; text-transform: uppercase;
}

/* =========================================
   NAVBAR (MOBILE BASE)
   ========================================= */
.navbar { 
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height-mobile); 
    background: #ffffff; display: flex; align-items: center; justify-content: center; 
    padding: 0 var(--page-padding-mobile); z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.menu-toggle { position: absolute; left: var(--page-padding-mobile); font-size: 1.8rem; color: var(--primary-navy); cursor: pointer; z-index: 1002; }
.nav-group { display: none; } 
.logo-wrapper { height: 100%; display: flex; align-items: center; }
.logo-box { height: 40px; width: auto; }
.logo-box img { height: 100%; width: auto; object-fit: contain; }

.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--primary-navy); z-index: 1001; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.mobile-menu-overlay.active { transform: translateY(0); }
.mobile-link { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-white); opacity: 0; transform: translateY(20px); }

/* =========================================
   DROPDOWN MENU (CLUB)
   ========================================= */

/* Contenedor del enlace + menú */
.nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* El menú oculto */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Justo debajo del navbar */
    left: 50%;
    transform: translateX(-50%) translateY(20px); /* Centrado y desplazado abajo */
    
    background: white;
    min-width: 240px; /* Ancho mínimo */
    padding: 15px 10px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(10, 30, 54, 0.15);
    border: 1px solid #f1f5f9;
    
    /* Estado inicial: Oculto */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* No clickeable mientras está oculto */
    
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
    
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Triangulito decorativo arriba del menú */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid #f1f5f9;
    border-top: 1px solid #f1f5f9;
}

/* Acción Hover: Mostrar menú */
.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0); /* Sube suavemente a su posición */
}

/* Estilos de los enlaces del dropdown */
.drop-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.drop-link i {
    color: var(--brand-blue);
    font-size: 1.1rem;
}

/* Hover de los items internos */
.drop-link:hover {
    background-color: #f8fafc;
    color: var(--brand-blue);
    transform: translateX(5px); /* Pequeño desplazamiento a la derecha */
}

/* Ajuste para que el icono del caret rote al pasar el mouse */
.nav-item-dropdown:hover .ph-caret-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero { position: relative; width: 100%; height: 100vh; min-height: 600px; background: url('resources/Hero.png') no-repeat center center/cover; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(10, 30, 54, 0.85) 0%, rgba(10, 30, 54, 0.95) 100%); z-index: 1; }
.hero-container { position: relative; z-index: 2; width: 100%; padding: 0 20px; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: var(--nav-height-mobile); }
.hero-left { width: 100%; display: flex; flex-direction: column; align-items: center; z-index: 3; }
.hero-right, .border-accent { display: none; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 14px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent-cyan); margin: 0 auto 1.5rem auto; }
h1.title { font-family: var(--font-heading); font-size: clamp(2.8rem, 8vw, 4.5rem); line-height: 0.9; font-weight: 800; color: white; text-transform: uppercase; margin-bottom: 0; }
.subtitle-lg { font-family: var(--font-heading); font-size: clamp(2.8rem, 8vw, 4.5rem); line-height: 0.9; font-weight: 300; color: var(--accent-cyan); display: block; margin-bottom: 1.5rem; text-transform: uppercase; }
.tagline-box { margin: 0 auto 1rem auto; max-width: 90%; }
.tagline { font-size: 1.1rem; font-weight: 700; color: #ffffff; line-height: 1.3; }
.description { font-size: 0.9rem; line-height: 1.5; color: #94a3b8; margin-bottom: 1rem; max-width: 500px; }

/* =========================================
   SECCIÓN CLUB
   ========================================= */
.section-club { position: relative; background-color: #ffffff; color: var(--primary-navy); padding: 60px var(--page-padding-mobile); z-index: 10; min-height: 100vh; display: flex; align-items: center; }
.club-grid { display: flex; flex-direction: column; gap: 2.5rem; width: 100%; max-width: 1300px; margin: 0 auto; }
.club-visual { width: 100%; height: 350px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.club-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.club-info { display: flex; flex-direction: column; align-items: center; text-align: center; }
.club-label { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--brand-blue); }
.club-label i { font-size: 1.2rem; color: var(--brand-blue); }
.club-title { color: var(--primary-navy); }
.club-desc { color: #4a5568; margin-left: auto; margin-right: auto; }
.club-action-wrapper { width: 100%; max-width: 550px; display: flex; flex-direction: column; gap: 15px; margin: 0 auto; }
.club-stats { display: grid; grid-template-columns: 1fr; gap: 15px; width: 100%; }
.stat-card { display: flex; align-items: center; gap: 15px; background-color: var(--brand-blue); padding: 18px 20px; border-radius: 8px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(30, 95, 158, 0.2); }
.stat-card:hover { background-color: var(--primary-navy); transform: translateY(-3px); }
.stat-card i.mdi, .stat-card i.ph-fill, i.ph { font-size: 1.8rem; color: var(--accent-cyan); line-height: 1; }
.stat-card span { font-family: var(--font-heading); font-weight: 700; color: #ffffff; font-size: 1rem; text-align: left; }
.club-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background-color: var(--primary-navy); color: white; padding: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; text-decoration: none; transition: all 0.3s ease; border: none; border-radius: 8px; box-shadow: 0 4px 15px rgba(10, 30, 54, 0.2); }
.club-btn:hover { background-color: var(--brand-blue); transform: translateY(-2px); }

/* =========================================
   SECCIÓN INSTALACIONES
   ========================================= */
.section-installations { position: relative; background-color: var(--primary-navy); color: var(--text-white); padding: 60px var(--page-padding-mobile); overflow: hidden; z-index: 5; min-height: 100vh; display: flex; align-items: center; }
.inst-bg-parallax { position: absolute; top: -20%; left: 0; width: 100%; height: 140%; background-image: url('https://wallpapers.com/images/hd/wimbledon-court-with-roger-novak-mvepvx0g2fja20jb.jpg'); background-size: cover; background-position: center; opacity: 0.15; z-index: -2; pointer-events: none; filter: grayscale(100%); }
.inst-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, rgba(30, 95, 158, 0.15) 0%, rgba(10, 30, 54, 1) 90%); z-index: -1; pointer-events: none; }
.inst-container { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.inst-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; width: 100%; }
.inst-card { width: 45%; height: 180px; border-radius: 40px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.3); cursor: pointer; position: relative; }
.inst-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.inst-card:hover img { transform: scale(1.1); }
.inst-content { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 600px; padding-top: 0; }
.inst-label { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent-cyan); margin-bottom: 1rem; }
.inst-label i { font-size: 1.2rem; }
.inst-title { color: var(--text-white); }
.inst-desc { color: var(--text-silver); }
.btn-white { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 35px; background-color: white; color: var(--primary-navy); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-white:hover { background-color: var(--accent-cyan); color: var(--primary-navy); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3); }

/* =========================================
   SECCIÓN ESCUELA
   ========================================= */
.section-school { position: relative; background-color: #ffffff; color: var(--text-dark); padding: 60px 0; overflow: hidden; z-index: 5; min-height: 100vh; display: flex; align-items: center; }
.school-container { width: 100%; max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; }
.school-content { padding: 0 var(--page-padding-mobile); display: flex; flex-direction: column; align-items: center; text-align: center; z-index: 2; }
.school-label { justify-content: center; color: var(--brand-blue); }
.school-label i { font-size: 1.3rem; color: var(--brand-blue); }
.school-title { color: var(--primary-navy); }
.school-desc { color: #4a5568; margin-left: auto; margin-right: auto; }
.school-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 2.5rem; width: 100%; padding: 0; align-items: center; }
.school-list li { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; color: var(--primary-navy); width: 100%; text-align: left; }
.school-list li i { color: var(--accent-cyan); font-size: 1.2rem; flex-shrink: 0; }
.btn-primary-school { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 40px; background-color: var(--primary-navy); color: white; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin: 0 auto; }
.btn-primary-school:hover { background-color: var(--brand-blue); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(30, 95, 158, 0.2); }
.school-visual { width: 100%; height: 350px; margin-top: 2rem; position: relative; }
.school-visual img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   SECCIÓN TORNEOS
   ========================================= */
.section-tournaments { position: relative; background-color: var(--primary-navy); color: var(--text-white); padding: 80px var(--page-padding-mobile); overflow: hidden; z-index: 5; min-height: 100vh; display: flex; align-items: center; }
.tour-bg-parallax { position: absolute; top: -20%; left: 0; width: 100%; height: 140%; background-image: url('https://photo-assets.usopen.org/images/pics/large/f_ZoomBackgrounds_Ashe.jpg'); background-size: cover; background-position: center; opacity: 0.15; z-index: -2; pointer-events: none; filter: grayscale(100%); }
.tour-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, rgba(30, 95, 158, 0.15) 0%, rgba(10, 30, 54, 1) 90%); z-index: -1; pointer-events: none; }
.tour-container { width: 100%; max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; position: relative; z-index: 2; }
.tour-header { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 2rem; }
.tour-label { justify-content: center; color: var(--accent-cyan); }
.tour-label i { font-size: 1.3rem; }
.tour-title { color: var(--text-white); margin-bottom: 0.5rem; }
.tour-subtitle { color: var(--text-silver); margin-bottom: 0 !important; }
.tour-layout { display: flex; flex-direction: column; gap: 40px; width: 100%; }

.tour-col-calendar { width: 100%; }
.calendar-wrapper { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-shrink: 0; }
.calendar-header h3 { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; color: var(--text-white); font-size: 1rem; margin: 0; }
.calendar-header button { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--accent-cyan); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 5px; text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--text-silver); flex-shrink: 0; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: 100%; align-content: start; }
.day { width: 100%; aspect-ratio: 1/1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.9rem; color: var(--text-white); cursor: default; position: relative; transition: all 0.2s ease; }
.day.no-event { opacity: 0.3; }
.day.has-event { font-weight: 800; cursor: pointer; background: rgba(0, 212, 255, 0.05); border: 1px solid rgba(0, 212, 255, 0.3); color: var(--accent-cyan); }
.day.has-event:hover { background: rgba(0, 212, 255, 0.15); transform: scale(1.05); }
.day.active { background: var(--accent-cyan) !important; color: var(--primary-navy) !important; transform: scale(1.1); z-index: 2; box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4); border: none; }
.day-marker { font-size: 0.7rem; margin-top: 2px; }
.day.active .day-marker { color: var(--primary-navy); }

.tour-col-info { width: 100%; height: 100%; }
.event-info-card { background: #ffffff; color: var(--primary-navy); border-radius: 16px; padding: 0; height: 100%; min-height: 350px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.3); width: 100%; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 30px; text-align: center; color: var(--text-silver); opacity: 0.7; }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; }
.evt-date-badge { background: var(--brand-blue); color: white; width: 100%; padding: 15px 20px; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; margin: 0; border-radius: 0; }
.evt-content-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 40px; text-align: left; }
.evt-title { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 15px; text-transform: uppercase; color: var(--primary-navy); }
.evt-desc { font-size: 1rem; line-height: 1.6; color: #555; margin-bottom: 25px; }
.evt-details ul { list-style: none; padding: 0; margin: 0; }
.evt-details li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 600; color: #333; font-size: 0.95rem; }
.evt-details li i { color: var(--brand-blue); font-size: 1.2rem; }
.btn-register { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent-cyan); color: var(--primary-navy); padding: 20px; font-weight: 800; text-transform: uppercase; text-decoration: none; width: 100%; margin: 0; border-radius: 0; transition: 0.3s; font-size: 1rem; cursor: pointer; }
.btn-register:hover { background: var(--brand-blue); color: white; }

.tour-col-poster { width: 100%; display: flex; justify-content: center; }
.poster-frame { width: 100%; max-width: 300px; aspect-ratio: 2/3; background: rgba(0,0,0,0.3); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; cursor: zoom-in; }
.poster-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); font-weight: 700; border: 2px dashed rgba(255,255,255,0.1); }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.poster-zoom-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 212, 255, 0.9); color: var(--primary-navy); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; transition: opacity 0.3s; }
.poster-frame:hover .poster-zoom-icon { opacity: 1; }

.poster-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.poster-modal.active { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 30, 54, 0.9); backdrop-filter: blur(10px); }
.modal-content { position: relative; z-index: 2001; max-width: 90%; max-height: 90vh; transform: scale(0.9); transition: transform 0.3s ease; }
.poster-modal.active .modal-content { transform: scale(1); }
.modal-content img { max-width: 100%; max-height: 85vh; border-radius: 8px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.modal-close { position: absolute; top: -40px; right: 0; background: transparent; border: none; color: white; font-size: 2rem; cursor: pointer; }

/* Directorio y Marcas */
.section-directory { position: relative; background-color: #ffffff; color: var(--text-dark); padding: 50px 20px; z-index: 5; min-height: 100vh; display: flex; align-items: center; }
.directory-container { width: 100%; max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; align-items: center; text-align: center; }
.directory-header { text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 800px; margin: 0 auto; }
.directory-label { justify-content: center; color: var(--brand-blue); }
.directory-title { color: var(--primary-navy); }
.directory-grid { display: flex; flex-direction: column; gap: 40px; width: 100%; justify-content: center; align-items: center; }
.directory-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dir-img-box { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin-bottom: 15px; border: 4px solid white; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.dir-img-box img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.directory-card:hover .dir-img-box { border-color: var(--accent-cyan); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(30, 95, 158, 0.2); }
.directory-card:hover img { transform: scale(1.1); }
.dir-role { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--brand-blue); margin-bottom: 5px; display: block; }
.dir-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--primary-navy); line-height: 1.2; }

.section-brands { position: relative; background-color: #ffffff; color: var(--text-dark); padding: 50px var(--page-padding-mobile); z-index: 5; min-height: 50vh; display: flex; align-items: center; }
.brands-container { width: 100%; max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.brands-carousel-wrapper { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brands-track { display: flex; align-items: center; gap: 40px; overflow-x: scroll; padding: 20px 10px; width: 100%; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: auto !important; touch-action: pan-x; user-select: none; }
.brands-track::-webkit-scrollbar { display: none; }
.brand-item { flex: 0 0 auto; width: 120px; height: 80px; display: flex; align-items: center; justify-content: center; filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease; cursor: pointer; }
.brand-item img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.brand-item:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
.brand-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: white; border: 1px solid #eee; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; z-index: 10; color: var(--primary-navy); transition: all 0.3s; }
.brand-arrow:hover { background: var(--brand-blue); color: white; border-color: var(--brand-blue); }
.brand-arrow.prev { left: 0; }
.brand-arrow.next { right: 0; }

/* FOOTER */
.main-footer { background-color: var(--primary-navy); color: var(--text-silver); padding-top: 80px; font-size: 0.9rem; position: relative; z-index: 10; }
.footer-container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 var(--page-padding-mobile); }
.footer-top { display: flex; flex-direction: column; gap: 40px; margin-bottom: 60px; align-items: center; text-align: center; }
.footer-col { display: flex; flex-direction: column; align-items: center; width: 100%; }
.footer-logo-wrap { display: inline-block; cursor: pointer; }
.footer-logo { height: 60px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.8; transition: all 0.4s ease; }
.footer-logo:hover { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--accent-cyan)); }
.footer-slogan { line-height: 1.6; max-width: 300px; color: var(--text-silver); }
.footer-heading { color: white; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 25px; }
.contact-list { display: flex; flex-direction: column; gap: 15px; }
.contact-list li { display: flex; align-items: flex-start; justify-content: center; gap: 12px; color: var(--text-silver); }
.contact-list li i { color: var(--accent-cyan); font-size: 1.2rem; margin-top: 2px; }
.footer-link-highlight { color: var(--text-white); font-weight: 600; border-bottom: 1px solid transparent; transition: all 0.3s; }
.footer-link-highlight:hover { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav li a { transition: color 0.2s; color: var(--text-silver); }
.footer-nav li a:hover { color: var(--accent-cyan); }
.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 30px; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-bottom: 40px; text-align: center; }
.legal-links { display: flex; gap: 20px; font-size: 0.85rem; }
.legal-links a:hover { color: white; text-decoration: underline; }

/* =========================================
   MEDIA QUERIES DESKTOP
   ========================================= */
@media (min-width: 1024px) {
    /* NAVBAR CORREGIDA CON POSICIONAMIENTO ABSOLUTO */
    .navbar { 
        display: flex; /* Flex en vez de Grid para mejor control */
        justify-content: space-between;
        align-items: center;
        height: var(--nav-height-desktop);
        padding: 0 var(--page-padding-desktop);
        overflow: visible;
    }
    .menu-toggle { display: none; }
    
    .nav-group { 
        flex: 1; /* Ocupan espacio igualitario */
        display: flex; 
        align-items: center; 
        gap: 2.5vw; 
        justify-content: center; /* Centran sus links */
    } 
    .nav-link { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--primary-navy); position: relative; padding-bottom: 5px; }
    .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background-color: var(--brand-blue); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    .nav-link:hover::after { width: 100%; }
    
    /* LOGO ABSOLUTO: La clave para el centrado perfecto */
    .logo-wrapper { 
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 140px; 
        height: 100%;
        display: flex; 
        justify-content: center; 
        align-items: flex-start;
        z-index: 1100; /* Por encima de todo */
    }
    
    .logo-box { 
        width: 130px; 
        height: 110px; 
        background: white; 
        border-radius: 0 0 25px 25px; 
        box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        padding-bottom: 10px; 
        position: static; /* Ya no necesita absoluto dentro del wrapper */
    }
    .logo-box img { width: 65%; }

    .hero { padding-top: 0; }
    .hero-container { display: grid; grid-template-columns: 1fr 1fr; max-width: 1800px; margin: 0 auto; padding: 0 var(--page-padding-desktop); height: 100vh; align-items: center; text-align: left; }
    .hero-left { align-items: flex-start; padding-top: 70px; padding-right: 4rem; position: relative; } 
    .border-accent { display: block; position: absolute; left: -30px; top: 50%; transform: translateY(-40%); height: 350px; width: 2px; background: linear-gradient(to bottom, var(--accent-cyan), transparent); opacity: 0.5; }
    .badge { margin: 0 0 1.5rem 0; }
    h1.title { font-size: 6rem; }
    .subtitle-lg { font-size: 6rem; margin-bottom: 2rem; }
    .tagline-box { margin: 0 0 2rem 0; max-width: none; border-left: 3px solid var(--accent-cyan); padding-left: 20px; }
    .description { font-size: 1.05rem; max-width: 550px; }
    .hero-right { display: flex; position: relative; height: 100%; align-items: flex-end; justify-content: center; }
    .bg-text { position: absolute; bottom: 10%; right: -5%; font-family: var(--font-heading); font-size: 11vw; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.04); z-index: 1; pointer-events: none; text-transform: uppercase; }
    .player-img { position: absolute; bottom: -5vh; height: 90vh; width: auto; max-width: 140%; object-fit: contain; filter: drop-shadow(10px 10px 20px rgba(0,0,0,0.3)); z-index: 2; opacity: 0; min-height: 500px; max-height: 95vh; }

    /* SECCIONES DESKTOP */
    .section-club { padding: 80px var(--page-padding-desktop); }
    .club-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; max-width: 1300px; margin: 0 auto; }
    .club-visual { height: 500px; }
    .club-info { align-items: flex-start; text-align: left; }
    .club-label { justify-content: flex-start; }
    .club-desc { margin-left: 0; margin-right: 0; }
    .club-action-wrapper { margin-left: 0; margin-right: 0; }
    .club-stats { grid-template-columns: 1fr 1fr; }

    .section-installations { padding: 80px var(--page-padding-desktop); }
    .inst-container { flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 5%; }
    .inst-content { align-items: flex-start; text-align: left; width: 40%; max-width: none; }
    .inst-label { justify-content: flex-start; }
/* GALERÍA TIPO ACORDEÓN */
    .inst-gallery { 
        display: flex; /* Flexbox es clave aquí */
        flex-wrap: nowrap; 
        align-items: center; 
        gap: 15px; 
        width: 55%; 
        /* Altura suficiente para el escalonado */
        height: 450px; 
    }

    .inst-card { 
        /* ESTADO NORMAL: */
        flex: 1; /* Todos ocupan 1 unidad de espacio */
        width: auto; /* Dejamos que flex controle el ancho */
        height: 320px; /* Altura base */
        border-radius: 50px; /* Bordes muy redondos (píldora) */
        overflow: hidden; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
        cursor: pointer; 
        position: relative;
        
        /* TRANSICIÓN: La magia ocurre aquí */
        /* Animamos 'flex' para el ancho y 'border-radius' por si quieres que se cuadre un poco */
        transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s ease;
    }

    /* ESTADO HOVER: EXPANSIÓN */
    .inst-card:hover { 
        flex: 3.5; /* El elemento hover crece 3.5 veces más que los otros */
        border-radius: 30px; /* Reducimos un poco la curva al abrirse */
    }

    .inst-card img { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; /* Asegura que la imagen llene el espacio */
        transition: transform 0.6s ease; /* Zoom suave */
    }

    /* Zoom interno adicional al expandirse */
    .inst-card:hover img { 
        transform: scale(1.05); 
    }

    /* Ajuste de escalonado (arriba/abajo) */
    .pos-up { margin-bottom: 60px; } 
    .pos-down { margin-top: 60px; }
    
    .section-school { padding: 0; height: 95vh; display: flex; align-items: center; }
    .school-container { flex-direction: row; height: 100%; max-width: 100%; }
    .school-content { width: 50%; justify-content: center; align-items: flex-start; text-align: left; padding-left: var(--page-padding-desktop); padding-right: 4rem; }
    .school-label { justify-content: flex-start; }
    .school-desc { margin-left: 0; margin-right: 0; }
    .school-list { align-items: flex-start; }
    .school-list li { justify-content: flex-start; }
    .btn-primary-school { margin: 0; }
    .school-visual { width: 55%; height: 100%; margin-top: 0; position: absolute; right: 0; top: 0; bottom: 0; clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%); }

    .section-tournaments { padding: 40px var(--page-padding-desktop); min-height: 95vh; }
    .tour-container { gap: 2rem; }
    .tour-layout { display: grid; grid-template-columns: 1fr 1.5fr 0.8fr; gap: 30px; height: 500px; }
    .tour-col-calendar, .tour-col-info, .tour-col-poster { height: 100%; width: auto; }
    .calendar-wrapper, .event-info-card, .poster-frame { height: 100%; }
    .poster-frame { max-width: none; }

    .section-directory { padding: 80px var(--page-padding-desktop); }
    .directory-grid { flex-direction: row; gap: 60px; align-items: flex-start; justify-content: center; margin: 0 auto; }
    .directory-card { width: 250px; flex: 0 0 250px; }
    .dir-img-box { width: 160px; height: 160px; }
    .dir-role { font-size: 0.85rem; }
    .dir-name { font-size: 1.4rem; }

    .section-brands { padding: 40px var(--page-padding-desktop); }
    .brand-item { width: 160px; height: 90px; }
    .brand-arrow { width: 50px; height: 50px; font-size: 1.5rem; }

    /* FOOTER DESKTOP ALINEACIÓN PERFECTA */
    .footer-container { padding: 0 var(--page-padding-desktop); }
    
    .footer-top { 
        display: grid; 
        /* Mantenemos las mismas columnas que arriba */
        grid-template-columns: 1.5fr 1.5fr 1fr; 
        gap: 40px; 
        align-items: start; 
        text-align: left; 
    }
    
    .footer-col { align-items: flex-start; }
    .contact-list li { justify-content: flex-start; }
    
    .footer-bottom { 
        /* CAMBIO: Usamos Grid en lugar de Flex */
        display: grid;
        /* Replicamos las columnas de arriba para alineación exacta */
        grid-template-columns: 1.5fr 1.5fr 1fr; 
        gap: 40px;
        text-align: left; 
        align-items: center;
    }
    
    /* El copyright ocupa las dos primeras columnas (Logo + Contacto) */
    .footer-bottom .copyright {
        grid-column: 1 / 3;
        margin: 0;
    }
    
    /* Los links legales caen automáticamente en la columna 3 (Debajo de Menú) */
    .legal-links { 
        display: flex; 
        gap: 20px; 
        font-size: 0.85rem;
        /* Aseguramos que se alineen al inicio de su columna */
        justify-self: start; 
    }
}

@media (min-width: 1024px) and (max-height: 850px) {
    h1.title { font-size: 4.5rem; }
    .subtitle-lg { font-size: 4.5rem; margin-bottom: 1.5rem; }
    .description { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .player-img { height: 85vh; min-height: 400px; }
    .hero-left { padding-top: 90px; }
}

#marcas { scroll-margin-top: 150px; }
#directorio { scroll-margin-top: 65px; }
#torneos { scroll-margin-top: 70px; }
#escuela { scroll-margin-top: 40px; }
#club { scroll-margin-top: 40px; }