/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
    --bg:        #0d0d0d;
    --bg2:       #111111;
    --bg3:       #1a1a1a;
    --accent:    #ff6b00;
    --accent-h:  #e05a00;
    --text:      #e2e8f0;
    --text-muted:#94a3b8;
    --border:    #222;
    --radius:    12px;
}

/* ─── Reset / Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }
img { max-width: 100%; border-radius: var(--radius); }

/* ─── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar-gym {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 2rem;
    background: rgba(13,13,13,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}
.navbar-gym .brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .5px;
}
.navbar-gym nav { display: flex; gap: 2rem; align-items: center; }
.navbar-gym nav a {
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}
.navbar-gym nav a:hover { color: var(--text); }
.navbar-gym .btn-login {
    background: var(--accent);
    color: #fff;
    padding: .45rem 1.2rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    transition: background .2s, transform .1s;
}
.navbar-gym .btn-login:hover { background: var(--accent-h); transform: translateY(-1px); }
.navbar-gym .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.navbar-gym .hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0a00 50%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(255,107,0,.12) 0%, transparent 70%);
}
.hero-content { position: relative; max-width: 700px; }
.hero-badge {
    display: inline-block;
    background: rgba(255,107,0,.15);
    color: var(--accent);
    border: 1px solid rgba(255,107,0,.3);
    padding: .3rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-cta {
    background: var(--accent);
    color: #fff;
    padding: .85rem 2.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(255,107,0,.3);
}
.btn-cta:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,107,0,.4); color: #fff; }
.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: .85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Section base ───────────────────────────────────────────────────────────── */
section { padding: 6rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 3rem;
}

/* ─── About ──────────────────────────────────────────────────────────────────── */
#nosotros { background: var(--bg2); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text ul { list-style: none; margin-top: 1.5rem; }
.about-text ul li {
    padding: .5rem 0 .5rem 1.8rem;
    position: relative;
    color: var(--text-muted);
    font-size: .95rem;
}
.about-text ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
}
.about-img {
    background: var(--bg3);
    border-radius: var(--radius);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    overflow: hidden;
}
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-img-placeholder {
    text-align: center;
    color: var(--text-muted);
}
.about-img-placeholder i { font-size: 4rem; margin-bottom: .5rem; opacity: .3; }

/* ─── Plans ──────────────────────────────────────────────────────────────────── */
#planes { background: var(--bg); }
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.plan-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    position: relative;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 8px 30px rgba(255,107,0,.15); }
.plan-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, #1a0a00, var(--bg3));
}
.plan-badge {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: .2rem .9rem;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: .5rem 0;
}
.plan-price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin: 1rem 0 .3rem;
}
.plan-price sup { font-size: 1.2rem; vertical-align: super; }
.plan-period { color: var(--text-muted); font-size: .85rem; margin-bottom: 1rem; }
.plan-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.plan-cta {
    display: inline-block;
    width: 100%;
    padding: .7rem;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s;
}
.plan-cta:hover { background: var(--accent-h); color: #fff; }
.plan-card:not(.featured) .plan-cta {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.plan-card:not(.featured) .plan-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Contact ────────────────────────────────────────────────────────────────── */
#contacto { background: var(--bg2); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
    width: 44px; height: 44px;
    background: rgba(255,107,0,.1);
    border: 1px solid rgba(255,107,0,.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.1rem;
}
.contact-item-text h4 { font-size: .9rem; font-weight: 600; margin-bottom: .2rem; }
.contact-item-text p  { color: var(--text-muted); font-size: .9rem; }
.social-links { display: flex; gap: .75rem; margin-top: 2rem; }
.social-link {
    width: 42px; height: 42px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: background .2s, color .2s, border-color .2s;
}
.social-link:hover { background: rgba(255,107,0,.1); border-color: var(--accent); color: var(--accent); }
.contact-form-side h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.gym-schedule { margin-top: 2rem; }
.gym-schedule h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.schedule-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.schedule-row:last-child { border-bottom: none; }
.schedule-row span:first-child { color: var(--text-muted); }

/* ─── Gallery / Carousel ─────────────────────────────────────────────────────── */
#galeria { background: var(--bg2); padding: 4rem 1.5rem; }
.carousel-wrap { position: relative; overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 420px; object-fit: cover; display: block; }
.carousel-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    padding: 2rem 1.5rem 1.25rem;
    color: #fff;
}
.carousel-caption h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .3rem; }
.carousel-caption p  { font-size: .88rem; opacity: .85; margin: 0; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.2);
    color: #fff; border-radius: 50%; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; transition: background .2s;
    z-index: 5;
}
.carousel-btn:hover { background: rgba(255,107,0,.6); }
.carousel-btn.prev { left: .75rem; }
.carousel-btn.next { right: .75rem; }
.carousel-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .9rem; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s, transform .2s; }
.carousel-dot.active { background: var(--accent); transform: scale(1.3); }
@media (max-width: 768px) {
    .carousel-slide img { height: 260px; }
    .carousel-caption h3 { font-size: 1rem; }
}

/* ─── Map ────────────────────────────────────────────────────────────────────── */
#ubicacion { background: var(--bg2); padding: 4rem 1.5rem; }
.gym-map-wrap {
    margin-top: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 32px rgba(0,0,0,.5);
}
.gym-map { height: 380px; width: 100%; background: var(--bg3); }
/* Leaflet dark override */
.gym-map-wrap .leaflet-tile { filter: brightness(.85) contrast(1.05) saturate(.9); }
.gym-map-wrap .leaflet-popup-content-wrapper {
    background: #1a1a1a; color: #e2e8f0;
    border: 1px solid #333; border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.gym-map-wrap .leaflet-popup-tip { background: #1a1a1a; }
.gym-map-wrap .leaflet-popup-content { font-family: 'Poppins',sans-serif; font-size: .9rem; font-weight: 600; }
@media (max-width: 768px) { .gym-map { height: 280px; } }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .85rem;
}
footer .footer-inner { max-width: 1100px; margin: 0 auto; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ─── Floating WhatsApp ──────────────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    z-index: 999;
    transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.5); color: #fff; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar-gym nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); padding: 1rem 2rem; border-bottom: 1px solid var(--border); gap: 1rem; }
    .navbar-gym nav.open { display: flex; }
    .navbar-gym .hamburger { display: flex; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding: 7rem 1.2rem 4rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .plans-grid { grid-template-columns: 1fr; }
}
