/* ═══════════════════════════════════════════
   Centro de Entrenamiento VIDA — Custom Styles
   Complementa Tailwind CSS con estilos personalizados
   ═══════════════════════════════════════════ */

/* ── Logo container on dark backgrounds ──── */
.logo-container {
    border-radius: 10px;
    padding: 4px 12px;
}

/* ── Smooth scroll ────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ── Selection color ──────────────────────── */
::selection {
    background-color: #2ECDA7;
    color: #ffffff;
}

/* ── Custom Scrollbar ─────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F0F2F5;
}

::-webkit-scrollbar-thumb {
    background: #2ECDA7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #25a888;
}

/* ── Hero Parallax (solo desktop) ─────────── */
@media (min-width: 769px) {
    .hero-bg {
        will-change: transform;
    }
}

/* ── Navbar ────────────────────────────────── */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Active nav link */
.nav-link.active {
    color: #2ECDA7;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2ECDA7;
    border-radius: 1px;
}

/* ── Hamburger animation ──────────────────── */
#menu-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Schedule badges ──────────────────────── */
.schedule-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.schedule-funcional {
    background-color: rgba(46, 205, 167, 0.15);
    color: #2ECDA7;
}

.schedule-boxeo {
    background-color: rgba(212, 164, 75, 0.15);
    color: #D4A44B;
}

.schedule-grupal {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.schedule-yoga {
    background-color: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
}

.schedule-personal {
    background-color: rgba(14, 165, 233, 0.15);
    color: #0EA5E9;
}

/* ── Swiper customization ─────────────────── */
.swiper-button-next,
.swiper-button-prev {
    color: #2ECDA7 !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(46, 205, 167, 0.9);
    color: #ffffff !important;
}

.swiper-pagination-bullet {
    background: #D1D5DB !important;
    opacity: 0.5 !important;
    width: 10px !important;
    height: 10px !important;
}

.swiper-pagination-bullet-active {
    background: #2ECDA7 !important;
    opacity: 1 !important;
    width: 30px !important;
    border-radius: 5px !important;
}

/* ── Counters ─────────────────────────────── */
.counter::before {
    content: '+';
}

/* ── Animations ───────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ── Mobile menu active state ─────────────── */
#mobile-menu.open {
    transform: translateX(0) !important;
}

#mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Back to top visible ──────────────────── */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Service card glow on hover ───────────── */
.service-card:hover {
    box-shadow: 0 0 30px rgba(46, 205, 167, 0.08),
                0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ── Schedule grid (estilo tarjeta centros) ── */
.schedule-grid {
    border-collapse: separate;
    border-spacing: 3px;
}

.schedule-grid th {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    padding: 4px 2px;
    text-align: center;
}

.schedule-grid td {
    text-align: center;
    padding: 6px 4px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    line-height: 1.3;
    min-width: 55px;
}

.schedule-grid td span {
    display: block;
    font-size: 0.5rem;
    font-weight: 600;
    margin-top: 1px;
}

.schedule-grid .time-cell {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #2ECDA7;
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
    background: transparent;
}

.schedule-grid .cell-open {
    background: rgba(46, 205, 167, 0.08);
    color: #1A1A1A;
}

.schedule-grid .cell-grupos {
    background: rgba(212, 164, 75, 0.2);
    color: #D4A44B;
    border: 1px solid rgba(212, 164, 75, 0.4);
}

.schedule-grid .cell-grupos span {
    color: #D4A44B;
}

.schedule-grid .cell-senior {
    background: rgba(46, 205, 167, 0.2);
    color: #2ECDA7;
    border: 1px solid rgba(46, 205, 167, 0.4);
}

.schedule-grid .cell-senior span {
    color: #2ECDA7;
}

.schedule-grid .cell-empty {
    background: rgba(0, 0, 0, 0.04);
}

/* ── Centro card accordion ─────────────────── */
.centro-toggle-icon {
    transition: transform 0.3s ease;
}

.centro-schedule {
    border-top: 1px solid transparent;
    transition: max-height 0.4s ease, border-color 0.3s ease;
}

.centro-toggle[aria-expanded="true"] + .centro-schedule {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* ── Responsive adjustments ───────────────── */
@media (max-width: 768px) {
    .schedule-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
}
