/* ============================================================
   LevelUP Fitness Club — design system
   Athletic light theme · Oswald display · fluid motion
   ============================================================ */

:root {
    --bg: #f2f0eb;
    --surface: #ffffff;
    --surface-2: #e7e4dc;
    --line: rgba(20, 18, 14, 0.13);
    --text: #171612;
    --muted: #3d3a35;
    --accent: #f45a16;
    --accent-strong: #d84c0d;
    --accent-soft: rgba(244, 90, 22, 0.12);
    --whatsapp: #25d366;
    --font-display: "Oswald", "Arial Narrow", sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 14px;
    --nav-h: 68px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1.05;
}

a { color: var(--accent); }

.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

/* ---------- Buttons: respond on press, not on release ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    cursor: pointer;
    transition: transform 120ms var(--ease-out), background 160ms ease, box-shadow 160ms ease;
    will-change: transform;
}
.btn:active { transform: scale(0.96); }
.btn-lg { padding: 0.95rem 2.1rem; font-size: 1.1rem; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; }
.btn-primary {
    background: var(--accent);
    color: #16110b;
    box-shadow: 0 8px 28px rgba(244, 90, 22, 0.35);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.13); }

/* ---------- Nav: translucent material, content scrolls under ---------- */
.nav {
    --text: #f4f1ec;
    --muted: #aaa49b;
    --line: rgba(255, 255, 255, 0.1);
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 240ms ease, box-shadow 240ms ease;
    color: var(--text);
    background: rgba(11, 11, 13, 0.88);
}
.nav-logo,
.nav-links > a:not(.btn),
.nav-training summary { color: #f4f1ec; }
.nav.scrolled {
    background: rgba(11, 11, 13, 0.96);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.nav-logo em { font-style: normal; color: var(--accent); margin-left: 0.3ch; }
.nav-logo img { border-radius: 50%; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}
.nav-links > a:not(.btn) {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    opacity: 0.85;
    transition: opacity 140ms ease, color 140ms ease;
}
.nav-links > a:not(.btn):hover { opacity: 1; color: var(--accent); }
.nav-training {
    position: relative;
}
.nav-training summary {
    list-style: none;
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0.85;
    transition: opacity 140ms ease, color 140ms ease;
}
.nav-training summary::-webkit-details-marker { display: none; }
.nav-training summary::after {
    content: "";
    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;
    margin-left: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 180ms var(--ease-out);
}
.nav-training[open] summary,
.nav-training summary:hover {
    color: var(--accent);
    opacity: 1;
}
.nav-training[open] summary::after {
    transform: translateY(0.08rem) rotate(225deg);
}
.nav-training-menu {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 50%;
    min-width: 170px;
    translate: -50% 0;
    display: grid;
    gap: 0.2rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(20, 20, 23, 0.96);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.nav-training-menu a {
    color: var(--text);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}
.nav-training-menu a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
.nav-training-menu a:active { transform: scale(0.97); }
.nav-training[open] .nav-training-menu {
    animation: menu-pop 200ms var(--ease-out);
    transform-origin: top center;
}
@keyframes menu-pop {
    from { opacity: 0; transform: translateY(-7px) scale(0.97); }
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 220ms var(--ease-out), opacity 160ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    --text: #f4f1ec;
    --muted: #c0bbb2;
    --bg: #0b0b0d;
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + 2rem) 1.25rem 4rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url("../img/hero.webp") center 30% / cover no-repeat;
    animation: hero-zoom 18s var(--ease-out) forwards;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(11, 11, 13, 0.55), rgba(11, 11, 13, 0.35) 45%, var(--bg)),
        radial-gradient(ellipse at center, transparent 30%, rgba(11, 11, 13, 0.55));
}
@keyframes hero-zoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}
.hero-content { position: relative; max-width: 56rem; }
.hero-kicker {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}
.hero-title {
    font-size: clamp(3.4rem, 11vw, 7.5rem);
    font-weight: 600;
    letter-spacing: -0.015em; /* large display text: negative tracking */
    color: var(--text);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}
.hero-title span {
    display: block;
    font-weight: 400;
    font-size: 0.42em;
    letter-spacing: 0.32em;
    color: var(--accent);
    margin-top: 0.35rem;
}
.hero-sub {
    margin-top: 1.4rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
}
.hero-actions {
    margin-top: 2.2rem;
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    translate: -50% 0;
    color: var(--muted);
    animation: float 2.6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(7px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-schedule {
    --surface: #141417;
    --surface-2: #1c1c20;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f4f1ec;
    --muted: #aaa49b;
    color: var(--text);
    background: #0b0b0d;
}
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-kicker {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.section-head h2 {
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    letter-spacing: -0.01em;
}
.section-head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.section-sub {
    max-width: 40rem;
    margin: 1.2rem auto 0;
    color: var(--muted);
}

/* ---------- Horarios: real, accessible table ---------- */
.schedule-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
}
.schedule {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.schedule th, .schedule td {
    padding: 0.7rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.schedule th:last-child, .schedule td:last-child { border-right: 0; }
.schedule tbody tr:last-child th, .schedule tbody tr:last-child td { border-bottom: 0; }
.schedule thead th {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    color: var(--accent);
    background: var(--surface-2);
    position: sticky;
    top: 0;
}
.schedule tbody th {
    font-family: var(--font-display);
    white-space: nowrap;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--surface-2);
    position: sticky;
    left: 0;
}
.schedule td b {
    display: block;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.schedule td small {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
}
.schedule .class-alt { color: var(--accent); }
.schedule .class-open {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}
.schedule .cell-open {
    background: var(--accent-soft);
}
.schedule .cell-open b {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.14em;
}
.schedule .cell-alt { background: rgba(255, 255, 255, 0.03); }
.schedule .cell-empty { background: rgba(0, 0, 0, 0.25); }
.schedule-scroll-cue {
    display: none;
    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
    margin: -0.4rem 0 0.75rem;
}
.schedule-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 1.2rem;
}
.parking-note {
    max-width: 38rem;
    margin: 1rem auto 0;
    padding: 0.8rem 1rem;
    color: var(--text);
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(244, 90, 22, 0.45);
    border-radius: 8px;
    background: rgba(244, 90, 22, 0.1);
}

/* ---------- Planes ---------- */
.section-planes { overflow: hidden; }
.planes-bg {
    position: absolute;
    inset: 0;
    background: url("../img/pricing-bg.webp") center / cover no-repeat fixed;
    opacity: 0.14;
}
.planes-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg), transparent 30%, transparent 70%, var(--bg));
}
.section-planes .container { position: relative; }

.plan-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto 2.5rem;
}
.plan-tabs [role="tab"] {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    cursor: pointer;
    transition: color 160ms ease, background 200ms var(--ease-out), transform 120ms var(--ease-out);
}
.plan-tabs [role="tab"]:active { transform: scale(0.96); }
.plan-tabs [role="tab"][aria-selected="true"] {
    color: #16110b;
    background: var(--accent);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    text-align: center;
    transition: transform 200ms var(--ease-out), border-color 200ms ease;
}
.plan-card-link {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}
.plan-card-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
.plan-buy {
    margin-top: auto;
    padding-top: 1.15rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(244, 90, 22, 0.4); }
.plan-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text);
}
.plan-price {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.6rem;
    font-variant-numeric: tabular-nums;
}
.plan-price span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.15rem;
}
.plan-desc {
    margin-top: 0.8rem;
    font-size: 0.86rem;
    color: var(--muted);
}
.plan-featured { border-color: rgba(244, 90, 22, 0.55); }
.plan-tag {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    translate: -50% 0;
    background: var(--accent);
    color: #16110b;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}
.plan-grid-2 {
    max-width: 34rem;
    margin-inline: auto;
}
.plan-trial {
    text-align: center;
    margin-top: 2.4rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.15rem;
}
.plan-trial strong { color: var(--accent); font-weight: 600; }
.plan-cta {
    text-align: center;
    margin-top: 0.8rem;
    color: var(--muted);
}

/* ---------- Coaches ---------- */
.section-coaches {
    background:
        linear-gradient(rgba(242, 240, 235, 0.9), rgba(242, 240, 235, 0.94)),
        url("../img/team-bg.webp") center / cover no-repeat;
}
.coach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}
.coach-card {
    min-width: 0;
    text-align: center;
    padding-bottom: 1.2rem;
    border-radius: var(--radius);
    background: linear-gradient(to bottom, transparent 40%, rgba(255, 255, 255, 0.04));
    transition: transform 220ms var(--ease-out);
}
.coach-card:hover { transform: translateY(-5px); }
.coach-photo {
    height: clamp(210px, 22vw, 260px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: var(--radius) var(--radius) 0 0;
    background: radial-gradient(ellipse at bottom, var(--accent-soft), transparent 70%);
    padding-top: 1.4rem;
    overflow: hidden;
}
.coach-photo img {
    max-height: calc(100% - 1.4rem);
    max-width: 88%;
    width: auto;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}
.coach-card h3 {
    margin-top: 0.9rem;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.coach-card p {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-top: 0.2rem;
}

/* ---------- Contacto ---------- */
.section-contact { overflow: hidden; }
.contact-bg {
    position: absolute;
    inset: 0;
    background: url("../img/contact-bg.webp") center / cover no-repeat;
    opacity: 0.18;
}
.contact-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg), rgba(242, 240, 235, 0.68) 40%, var(--bg));
}
.section-contact .container { position: relative; }
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 58rem;
    margin-inline: auto;
}
.contact-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    display: grid;
    gap: 0.45rem;
}
.contact-form label {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.6rem;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea {
    font: inherit;
    color: var(--text);
    background: rgba(0, 0, 0, 0.035);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    transition: border-color 160ms ease, background 160ms ease;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(244, 90, 22, 0.06);
}
.contact-form .btn { margin-top: 1.1rem; }
.contact-form-note {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}
.contact-info { display: grid; gap: 0.9rem; }
.contact-item {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    transition: transform 180ms var(--ease-out), border-color 180ms ease;
}
.contact-item:hover { transform: translateY(-3px); border-color: rgba(244, 90, 22, 0.4); }
.contact-item:active { transform: scale(0.98); }
.contact-item-label {
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 0.15rem;
}

/* ---------- Footer ---------- */
.footer {
    --text: #f4f1ec;
    --muted: #aaa49b;
    --line: rgba(255, 255, 255, 0.1);
    border-top: 1px solid var(--line);
    padding: 2.2rem 0;
    color: #f4f1ec;
    background: #141417;
}
.footer .footer-links a,
.footer .footer-copy { color: #aaa49b; }
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-brand img { border-radius: 50%; }
.footer-links { display: flex; gap: 0.55rem; color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 120ms var(--ease-out);
}
.footer-links a:hover {
    color: var(--text);
    border-color: rgba(244, 90, 22, 0.5);
    background: var(--accent-soft);
}
.footer-links a:active { transform: scale(0.96); }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* ---------- Training pages ---------- */
.training-main {
    min-height: 100svh;
    padding-top: var(--nav-h);
    background:
        linear-gradient(rgba(11, 11, 13, 0.82), rgba(11, 11, 13, 0.94)),
        url("../img/team-bg.webp") center / cover fixed no-repeat;
}
.training-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 5rem);
    background: linear-gradient(rgba(11, 11, 13, 0.2), rgba(11, 11, 13, 0.68));
}
.training-hero .container { position: relative; }
/* El hero de las paginas de entrenamiento es oscuro pero no redefinia los tokens de
   texto, asi que el H1 y el boton fantasma salian casi negros sobre negro. */
.training-main {
    --text: #f4f1ec;
    --muted: #c0bbb2;
    color: var(--text);
}
/* Las tarjetas del contenido son claras: dentro de ellas vuelve el texto oscuro. */
.training-panel,
.training-list,
.faq-item {
    --text: #171612;
    --muted: #625e55;
    color: var(--text);
}
.training-kicker {
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}
.training-title {
    max-width: 12ch;
    margin-top: 0.8rem;
    font-size: clamp(3.2rem, 10vw, 6.8rem);
}
/* El tamano de arriba esta pensado para titulos de una palabra ("CrossFit").
   Los titulos largos de las paginas de contenido necesitan otra escala. */
.training-title-long {
    max-width: 22ch;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.06;
}
.training-lead {
    max-width: 46rem;
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.training-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}
.training-content {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.training-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
}
.training-panel,
.training-list {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2rem);
}
.training-panel h2,
.training-list h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.training-panel p,
.training-list li {
    color: var(--muted);
    margin-top: 0.9rem;
}
.training-list ul {
    list-style: none;
    margin-top: 1rem;
}
.training-list li {
    position: relative;
    padding-left: 1.15rem;
}
.training-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.training-back {
    margin-top: 2rem;
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 90;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--whatsapp);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: transform 160ms var(--ease-out);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab:active { transform: scale(0.94); }

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 600ms ease, transform 600ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(24px);
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
    .training-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0;
        background: rgba(11, 11, 13, 0.92);
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        border-bottom: 1px solid var(--line);
        padding: 0.6rem 1.25rem 1.2rem;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: transform 240ms var(--ease-out), opacity 200ms ease, visibility 0s 240ms;
    }
    .nav-links.open {
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: transform 280ms var(--ease-out), opacity 220ms ease;
    }
    .nav-links > a:not(.btn) { padding: 0.85rem 0; font-size: 1.05rem; }
    .nav-training {
        padding: 0.2rem 0 0.45rem;
    }
    .nav-training summary {
        padding: 0.85rem 0;
        font-size: 1.05rem;
        text-align: center;
    }
    .nav-training-menu {
        position: static;
        min-width: 0;
        translate: none;
        border-radius: 10px;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
    }
    .nav-training-menu a {
        padding: 0.7rem;
        text-align: center;
    }
    .nav-links .btn { margin-top: 0.6rem; }
}
@media (max-width: 760px) {
    .schedule-scroll-cue { display: block; }
    .schedule-wrap {
        width: calc(100vw - 2.5rem);
        max-width: 100%;
        margin-inline: auto;
        border-radius: 12px;
    }
    .schedule {
        min-width: 700px;
        table-layout: fixed;
        font-size: 0.8rem;
    }
    .schedule th:first-child,
    .schedule td:first-child {
        width: 4.9rem;
    }
    .schedule th, .schedule td {
        padding: 0.55rem 0.5rem;
    }
    .schedule thead th {
        font-size: 0.78rem;
        letter-spacing: 0.05em;
    }
    .schedule thead th:first-child {
        left: 0;
        z-index: 2;
        background: var(--surface-2);
    }
    .schedule tbody th {
        font-size: 0.82rem;
        z-index: 1;
    }
    .schedule td b {
        font-size: 0.76rem;
        letter-spacing: 0.03em;
    }
    .schedule td small {
        color: #ffffff;
        font-size: 0.7rem;
        line-height: 1.35;
    }
    .schedule .cell-open b {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
    }
    .plan-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 28rem);
        border-radius: 18px;
        gap: 5px;
    }
    .plan-tabs [role="tab"] {
        width: 100%;
        border-radius: 14px;
        padding: 0.62rem 0.75rem;
        font-size: 0.9rem;
        text-align: center;
    }
    .plan-grid { grid-template-columns: repeat(2, 1fr); }
    .coach-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
    .coach-photo {
        height: 230px;
        padding-top: 1.2rem;
    }
    .coach-photo img { max-height: calc(100% - 1.2rem); }
}
@media (max-width: 420px) {
    .schedule {
        min-width: 640px;
        font-size: 0.76rem;
    }
    .schedule th:first-child,
    .schedule td:first-child {
        width: 4.65rem;
    }
    .schedule th, .schedule td {
        padding: 0.48rem 0.38rem;
    }
    .schedule td b { font-size: 0.72rem; }
    .schedule td small { color: #ffffff; font-size: 0.66rem; }
    .plan-tabs [role="tab"] {
        padding-inline: 0.45rem;
        font-size: 0.84rem;
    }
    .plan-grid { grid-template-columns: 1fr; }
    .coach-grid { grid-template-columns: 1fr; }
    .whatsapp-fab {
        right: 0.85rem;
        bottom: 0.85rem;
        width: 48px;
        height: 48px;
    }
    .whatsapp-fab svg {
        width: 24px;
        height: 24px;
    }
}

/* ---------- Accessibility: motion, transparency, contrast ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg { animation: none; }
    .hero-scroll { animation: none; }
    .reveal {
        transition: opacity 240ms ease;
        transform: none;
    }
    .btn, .plan-card, .coach-card, .contact-item, .whatsapp-fab { transition: none; }
    .nav-training[open] .nav-training-menu { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
    .nav.scrolled, .nav-links {
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .plan-card, .contact-form, .contact-item {
        background: var(--surface);
        backdrop-filter: none;
    }
}
@media (prefers-contrast: more) {
    :root { --line: rgba(255, 255, 255, 0.35); --muted: #cfc9c0; }
}

/* ---------- Clases / servicios ---------- */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
}
.class-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.5rem;
}
.class-item h3 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
}
.class-item h3::before {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 0.9rem;
}
.class-item p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-top: 0.6rem;
}
.area-served {
    text-align: center;
    color: var(--muted);
    max-width: 44rem;
    margin: 2.4rem auto 0;
}
.area-served strong { color: var(--text); }

/* ---------- FAQ ---------- */
.container-narrow { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 1.3rem;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
    flex: none;
    transition: transform 200ms var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p {
    color: var(--muted);
    padding: 0 0 1.2rem;
    margin-top: -0.2rem;
    line-height: 1.6;
    max-width: 62ch;
}
.faq-item a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
    .faq-item summary::after { transition: none; }
}

/* Recursos de descubrimiento: fila propia para no comprimir el pie. */
.footer-resources { flex-basis: 100%; }
