/* 
 * TRON ATHLETIC - Global Styles 
 */
:root {
    --accent-color: #0A84FF;
}

.btn-apple {
    background: #fff;
    color: #000;
    border: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-apple:hover {
    background: #f5f5f7;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.bg-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-black {
    background-color: #000 !important;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.apple-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

/* Modals */
.modal-content.apple-card {
    background: rgba(28, 28, 30, 0.95) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9) !important;
}

.modal-content.apple-card .modal-header,
.modal-content.apple-card .modal-footer {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Apple-style Scrollbar */
.scroll-apple::-webkit-scrollbar {
    width: 6px;
}
.scroll-apple::-webkit-scrollbar-track {
    background: transparent;
}
.scroll-apple::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.scroll-apple::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.tiny {
    font-size: 0.75rem;
}

.ls-1 {
    letter-spacing: 0.05em;
}

/* ── Hero section index ── */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 60px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 80px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1A6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 28px;
    color: #d2d2d7;
    margin-bottom: 40px;
    font-weight: 400;
}

.btn-reservar-padel:hover {
    color: var(--accent-color) !important;
}

/* ── Contact Section ── */
.contacto-header {
    padding: 160px 0 80px;
    background: radial-gradient(circle at top right, rgba(41, 151, 255, 0.1) 0%, transparent 60%);
    text-align: center;
}

.contacto-header h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1A6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.contacto-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 50px;
    height: 100%;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(41, 151, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.info-item p {
    color: #86868b;
    margin-bottom: 0;
}

/* ── Global Utilities & Auth ── */
.auth-body {
    background-color: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

.bg-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.15;
}

.orb-1 {
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 45px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    height: 42px;
    filter: brightness(0) invert(1);
}

.label-sm {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    display: block;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.auth-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 12px 16px 12px 45px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.15) !important;
}

/* Forzar Dark Mode en dropdowns de Select */
select.auth-input option,
select.form-select-apple option,
.form-select-apple option {
    background-color: #1c1c1e !important;
    color: #fff !important;
}

/* Navegadores basados en Webkit/Blink */
select.auth-input,
select.form-select-apple {
    color-scheme: dark;
}

.eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.eye-toggle:hover {
    color: #fff;
}

.btn-auth {
    background: #fff;
    color: #000;
    border-radius: 14px;
    padding: 14px;
    font-weight: 700;
    width: 100%;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-auth:hover {
    background: #f5f5f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.link-accent {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.link-accent:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-divider {
    border-color: rgba(255, 255, 255, 0.08);
}

.badge-adm-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(10, 132, 255, 0.1);
    color: var(--accent-color);
}

/* ── Sedes ── */
.sede-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sede-img-wrapper:hover img {
    transform: scale(1.05);
}

/* ── Admin & Socio Panels (Sidebar/Layout) ────────────────────────── */
:root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --top-navbar-height: 70px;
    --bg-dark: #f5f5f7;
    --bg-card: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    background: var(--bg-dark);
    min-height: 100vh;
}

#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: #ffffff;
    color: #1d1d1f;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

#sidebar.collapsed {
    min-width: var(--sidebar-collapsed-width);
    max-width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px;
    height: var(--top-navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-full {
    max-width: 100%;
    height: auto;
    transition: opacity 0.2s;
}

.logo-mini {
    width: 100%;
    height: 28px;
    object-fit: contain;
    display: none;
    margin: 0 auto;
}

/* Sidebar Logo toggle */
nav#sidebar.collapsed .sidebar-header .logo-full {
    display: none !important;
}

nav#sidebar:not(.collapsed) .sidebar-header .logo-mini {
    display: none !important;
}

nav#sidebar.collapsed .sidebar-header .logo-mini {
    display: block !important;
}

nav#sidebar:not(.collapsed) .sidebar-header .logo-full {
    display: block !important;
}

/* Sidebar Toggle Buttons */
#sidebarCollapse,
#sidebarCollapseBtn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    margin-left: 15px;
}

#sidebarCollapse:hover,
#sidebarCollapseBtn:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.05);
    color: var(--accent-color);
}

#sidebar ul.components {
    padding: 20px 0;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

#sidebar ul li a {
    padding: 12px 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    color: #86868b;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

#sidebar ul li a:hover,
#sidebar ul li.active>a {
    color: #0A84FF;
    background: rgba(10, 132, 255, 0.05);
}

#sidebar ul li.active>a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background: var(--accent-color);
    border-radius: 0 10px 10px 0;
}

#sidebar.collapsed ul li a {
    padding: 15px 0;
    justify-content: center;
}

#sidebar.collapsed .nav-label {
    display: none;
}

.nav-icon {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

#sidebar.collapsed .nav-icon {
    margin-right: 0;
    width: 100%;
    font-size: 1.3rem;
}

#content {
    width: 100%;
    padding-left: var(--sidebar-width);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content.collapsed {
    padding-left: var(--sidebar-collapsed-width);
}

.top-navbar {
    height: var(--top-navbar-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-page-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    margin-left: 15px;
}

.page-content {
    padding: 30px;
    flex-grow: 1;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #FF3B30;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
    border: 2px solid var(--bg-dark);
}

.user-pill {
    padding: 4px 12px 4px 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

/* Mobile */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-105%);
        margin-left: 0;
    }

    #sidebar.active {
        transform: translateX(0);
        width: var(--sidebar-width) !important;
        max-width: var(--sidebar-width) !important;
    }

    #sidebarCollapseBtn {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    #sidebar.active #sidebarCollapseBtn {
        opacity: 1;
        pointer-events: all;
    }

    #content {
        padding-left: 0 !important;
    }

    .logo-mini {
        display: none !important;
    }

    .logo-full {
        display: block !important;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}
/* ── SweetAlert2 Light Apple Theme ── */
.swal2-popup {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    color: #1d1d1f !important;
}
.swal2-title { color: #1d1d1f !important; font-weight: 700 !important; }
.swal2-html-container { color: rgba(0, 0, 0, 0.7) !important; font-size: 0.95rem !important; }
.swal2-confirm { background: #0a84ff !important; border-radius: 50px !important; padding: 12px 30px !important; font-weight: 600 !important; }
.swal2-cancel { background: rgba(0, 0, 0, 0.05) !important; border-radius: 50px !important; padding: 12px 30px !important; color: #1d1d1f !important; }
.swal2-icon { border-color: rgba(0, 0, 0, 0.1) !important; }
