:root {
    --pg-primary: #e63946;
    --pg-dark: #1d2025;
    --pg-darker: #14161a;
    --pg-light: #f8f9fa;
    --pg-accent: #ffd60a;
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; }

/* ---------- Público (base, compartido con schedule.php) ---------- */
.pg-navbar { background: var(--pg-darker); }
.pg-navbar .navbar-brand { font-weight: 800; letter-spacing: 1px; }
.pg-navbar .navbar-brand span { color: var(--pg-primary); }

.btn-pg {
    background: linear-gradient(120deg, var(--pg-primary), #ff5d6c);
    color: #fff; font-weight: 700; border: none;
    box-shadow: 0 10px 24px rgba(230,57,70,.28);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-pg:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(230,57,70,.5); filter: brightness(1.05); }
.text-pg { color: var(--pg-primary) !important; }
.btn-outline-pg { color: var(--pg-primary); border: 1px solid var(--pg-primary); background: transparent; font-weight: 600; }
.btn-outline-pg:hover { background: var(--pg-primary); color: #fff; }

.section-title { font-weight: 900; position: relative; display: inline-block; letter-spacing: -.5px; }
.section-title::after {
    content: ''; display: block; width: 64px; height: 4px;
    background: linear-gradient(90deg, var(--pg-primary), var(--pg-accent));
    margin: .7rem auto 0; border-radius: 2px;
}

/* ============================================================
   LANDING moderna e inmersiva — SOLO bajo body.lp-body
   (schedule.php y otras páginas públicas no se ven afectadas)
   ============================================================ */
body.lp-body {
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    background: var(--pg-darker);
    color: #d7dbe2;
}
.lp-body .section-title { color: #fff; }
.lp-body .pg-navbar {
    background: rgba(12,13,16,.55);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .3s, box-shadow .3s;
}
.lp-body .pg-navbar.scrolled { background: rgba(12,13,16,.95); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.lp-body .pg-navbar .nav-link { color: #c3c8d0 !important; font-weight: 500; transition: color .2s; }
.lp-body .pg-navbar .nav-link:hover { color: #fff !important; }

.lp-eyebrow {
    display: inline-block; color: var(--pg-accent); font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; font-size: .72rem;
    padding: .35rem .85rem; border-radius: 999px;
    background: rgba(255,214,10,.08); border: 1px solid rgba(255,214,10,.22);
}
.lp-lead { color: #9aa0aa; font-weight: 300; max-width: 620px; margin: 1rem auto 0; font-size: 1.02rem; }

/* Botones (landing) */
.lp-body .btn { border-radius: 12px; font-weight: 700; letter-spacing: .2px; }
.lp-body .btn-lg { padding: .82rem 1.6rem; }
.lp-body .btn-outline-light { border-color: rgba(255,255,255,.35); }
.lp-body .btn-outline-light:hover { background: #fff; color: #14161a; }
.lp-body .section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }

/* HERO */
.lp-body .hero {
    min-height: 90vh; display: flex; align-items: center; color: #fff; overflow: hidden; padding: 0;
    background: linear-gradient(105deg, rgba(10,11,14,.95) 0%, rgba(16,18,22,.82) 50%, rgba(230,57,70,.30) 100%),
        url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1600&q=80') center/cover fixed;
}
.lp-body .hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 82% 18%, rgba(230,57,70,.38), transparent 46%),
                linear-gradient(to bottom, transparent 72%, var(--pg-darker) 100%);
}
.lp-body .hero .container { position: relative; z-index: 1; }
.lp-body .hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 900; line-height: 1.0; letter-spacing: -1.5px; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.lp-body .hero .highlight { background: linear-gradient(120deg, var(--pg-primary), var(--pg-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-body .hero .lead { color: #e3e6ea; font-weight: 300; font-size: 1.22rem; max-width: 560px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.8rem; }
.hero-stats > div {
    padding: .85rem 1.2rem; border-radius: 14px; min-width: 112px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); backdrop-filter: blur(6px);
}
.hero-stats .num { font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1; }
.hero-stats .lbl { font-size: .7rem; color: #c3c8d0; text-transform: uppercase; letter-spacing: 1px; margin-top: .25rem; }

/* Secciones */
.lp-section { padding: 6rem 0; }
.lp-section.alt { background: #0f1115; border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }

/* Tarjetas genéricas */
.lp-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 1.9rem; height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lp-card:hover { transform: translateY(-7px); border-color: rgba(230,57,70,.45); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.lp-card h5, .lp-card h6 { color: #fff; }
.lp-card p { color: #9aa0aa; }
.lp-ico {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.5rem; color: #fff; margin-bottom: 1.1rem;
    background: linear-gradient(135deg, var(--pg-primary), #ff7a86);
    box-shadow: 0 10px 22px rgba(230,57,70,.35);
}

/* Clases / disciplinas */
.lp-class { position: relative; overflow: hidden; }
.lp-class .bar { position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.lp-class .disc-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.45rem; color: #fff; margin-bottom: .9rem; box-shadow: 0 8px 18px rgba(0,0,0,.35); }

/* Entrenadores */
.lp-coach { text-align: center; }
.lp-coach .avatar {
    width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.1rem;
    border: 3px solid transparent;
    background: linear-gradient(#1d2025,#1d2025) padding-box, linear-gradient(135deg, var(--pg-primary), var(--pg-accent)) border-box;
    display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: #fff;
}
.lp-coach .role { color: var(--pg-accent); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Planes (solo en la landing) */
.lp-body .plan-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.09); border-radius: 20px;
    transition: transform .25s, box-shadow .25s, border-color .25s; color: #d7dbe2;
}
.lp-body .plan-card .card-body { color: #d7dbe2; }
.lp-body .plan-card h5 { color: #fff; letter-spacing: .3px; }
.lp-body .plan-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(0,0,0,.55); border-color: rgba(255,255,255,.18); }
.lp-body .plan-card .price { font-size: 2.7rem; font-weight: 900; color: #fff; line-height: 1; }
.lp-body .plan-card.featured {
    border-color: rgba(230,57,70,.6);
    background: linear-gradient(180deg, rgba(230,57,70,.14), rgba(255,255,255,.02));
    box-shadow: 0 26px 60px rgba(230,57,70,.22);
}
@media (min-width: 992px) {
    .lp-body .plan-card.featured { transform: scale(1.04); }
    .lp-body .plan-card.featured:hover { transform: scale(1.04) translateY(-8px); }
}
.lp-body .plan-card ul li { color: #c3c8d0; }

/* Promos (solo en la landing) */
.lp-body .promo-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.09); border-left: 4px solid var(--pg-accent); border-radius: 16px;
    transition: transform .2s, box-shadow .2s;
}
.lp-body .promo-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.lp-body .promo-card .card-title { color: #fff; }
.lp-body .promo-card .card-text { color: #9aa0aa; }

/* CTA final */
.lp-cta {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--pg-primary), #ff5d6c);
    border-radius: 26px; padding: 3.6rem; text-align: center; color: #fff;
    box-shadow: 0 28px 64px rgba(230,57,70,.38);
}
.lp-cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 42%); }
.lp-cta > * { position: relative; }
.lp-cta h2 { font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* Footer (compartido, ya era oscuro) */
footer.pg-footer { background: var(--pg-darker); color: #adb5bd; border-top: 1px solid rgba(255,255,255,.06); }

/* Galería de instalaciones */
.lp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lp-gallery a { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4/3; display: block; border: 1px solid rgba(255,255,255,.08); }
.lp-gallery a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,11,14,.55), transparent 55%); opacity: .65; transition: opacity .3s; }
.lp-gallery a:hover::after { opacity: 1; }
.lp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lp-gallery a:hover img { transform: scale(1.08); }

/* Ubicación / contacto */
.lp-map { border: 0; width: 100%; height: 360px; border-radius: 18px; filter: grayscale(.2) contrast(1.05) brightness(.95); }
.lp-contact-card { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 2rem; height: 100%; }
.lp-contact-card ul { list-style: none; margin: 0; padding: 0; }
.lp-contact-card li { display: flex; gap: .8rem; align-items: flex-start; padding: .65rem 0; color: #c3c8d0; border-bottom: 1px solid rgba(255,255,255,.05); }
.lp-contact-card li:last-child { border-bottom: 0; }
.lp-contact-card i { color: var(--pg-primary); font-size: 1.15rem; margin-top: .1rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem;
    box-shadow: 0 12px 28px rgba(37,211,102,.55); text-decoration: none; transition: transform .15s; animation: waPulse 2.8s infinite; }
.wa-float:hover { transform: scale(1.1); color: #fff; }
@keyframes waPulse { 0%,100% { box-shadow: 0 12px 28px rgba(37,211,102,.55); } 50% { box-shadow: 0 12px 28px rgba(37,211,102,.55), 0 0 0 12px rgba(37,211,102,.10); } }

@media (max-width: 768px) {
    .lp-body .hero { min-height: 84vh; background-attachment: scroll; }
    .hero-stats { gap: .6rem; }
    .lp-section { padding: 4rem 0; }
    .lp-gallery { grid-template-columns: repeat(2, 1fr); }
    .lp-cta { padding: 2.4rem 1.5rem; }
}

/* ---------- Admin ---------- */
.admin-body { background: #f1f3f6; }
.admin-sidebar {
    width: 250px; min-height: 100vh; background: var(--pg-dark);
    position: fixed; top: 0; left: 0; padding-top: 1rem; z-index: 1030;
}
.admin-sidebar .brand { color: #fff; font-weight: 800; padding: .5rem 1.25rem 1rem; letter-spacing: 1px; }
.admin-sidebar .brand span { color: var(--pg-primary); }
.admin-sidebar a.nav-link {
    color: #adb5bd; padding: .7rem 1.25rem; display: flex; align-items: center; gap: .6rem;
    border-left: 3px solid transparent;
}
.admin-sidebar a.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-sidebar a.nav-link.active {
    color: #fff; background: rgba(230,57,70,.15); border-left-color: var(--pg-primary);
}
.admin-content { margin-left: 250px; padding: 1.5rem; }
.admin-topbar {
    background: #fff; padding: .85rem 1.5rem; margin: -1.5rem -1.5rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); display: flex; justify-content: space-between; align-items: center;
}

.stat-card { border: none; border-radius: .75rem; }
.stat-card .icon {
    width: 52px; height: 52px; border-radius: .6rem; display: flex;
    align-items: center; justify-content: center; font-size: 1.4rem; color: #fff;
}
.stat-card .num { font-size: 1.8rem; font-weight: 800; }

.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: #6c757d; }

@media (max-width: 768px) {
    .admin-sidebar { left: -250px; transition: left .25s; }
    .admin-sidebar.open { left: 0; }
    .admin-content { margin-left: 0; }
}

/* Calendario simple */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.calendar-day { background: #fff; border-radius: .5rem; min-height: 130px; padding: .5rem; border: 1px solid #e9ecef; }
.calendar-day .dow { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: #6c757d; }
.class-chip { font-size: .72rem; color: #fff; padding: .15rem .4rem; border-radius: .3rem; margin-top: .25rem; display: block; }
