/* ===========================================================================
 * SOLO — mobile.css
 * Loaded LAST. Only activates ≤900px. Desktop above is untouched.
 * Editorial mobile redesign: tighter rhythm, larger taps, bolder hierarchy.
 * =========================================================================== */

/* Performance: skip painting offscreen sections on mobile */
@media (max-width: 900px) {
  .manifesto,
  .different,
  .calendar,
  .puntos,
  .series,
  .sponsors,
  .newsletter,
  .footer {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
  }
}

/* ============ TOKENS — mobile rhythm ============ */
@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
    --gutter: 20px;
  }
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* ============ NAV — fullscreen overlay menu ============ */
@media (max-width: 960px) {
  .nav {
    height: var(--nav-h);
    background: rgba(10, 10, 10, 0.78);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
  }
  .nav__inner { gap: var(--s-3); }
  .nav__logo svg,
  .nav__logo img,
  .nav__logo .logo-img { height: 22px; }

  .nav__burger {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  }
  .nav__burger span {
    left: 12px; right: 12px;
    background: #fff;
    transition: transform 0.4s var(--ease-spring), top 0.3s var(--ease-out), opacity 0.2s;
  }
  .nav__burger span:nth-child(1) { top: 16px; }
  .nav__burger span:nth-child(2) { top: 26px; }
  .nav__burger.is-open { border-color: var(--solo-red); background: rgba(230,57,71,0.08); }
  .nav__burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

  .nav__links.is-open {
    inset: var(--nav-h) 0 0 0;
    background: var(--bg-deep);
    padding: var(--s-6) var(--gutter) calc(var(--s-6) + 80px);
    gap: 0;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.02em;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    background-image:
      radial-gradient(circle at 100% 0%, rgba(230,57,71,0.18), transparent 55%),
      radial-gradient(circle at 0% 100%, rgba(230,57,71,0.08), transparent 60%);
  }
  .nav__links.is-open .nav__link {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    background: transparent !important;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    animation: navItemIn 0.5s var(--ease-out) backwards;
  }
  .nav__links.is-open .nav__link::after {
    content: "→";
    color: var(--solo-red);
    font-family: var(--font-body);
    font-size: 22px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s, transform 0.3s var(--ease-spring);
  }
  .nav__links.is-open .nav__link:hover::after,
  .nav__links.is-open .nav__link.is-active::after { opacity: 1; transform: translateX(0); }
  .nav__links.is-open .nav__link.is-active { color: var(--solo-red); }
  .nav__links.is-open .nav__link:nth-child(1) { animation-delay: 0.05s; }
  .nav__links.is-open .nav__link:nth-child(2) { animation-delay: 0.10s; }
  .nav__links.is-open .nav__link:nth-child(3) { animation-delay: 0.15s; }
  .nav__links.is-open .nav__link:nth-child(4) { animation-delay: 0.20s; }
  .nav__links.is-open .nav__link:nth-child(5) { animation-delay: 0.25s; }
  .nav__links.is-open .nav__link:nth-child(6) { animation-delay: 0.30s; }
}
@keyframes navItemIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Lock body scroll when overlay open */
body.nav-open { overflow: hidden; }

/* ============ HERO (mobile) ============ */
@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 96px;
  }
  /* Save bandwidth: hide heavy video on small screens, keep poster */
  .hero__video { display: none; }
  .hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      url("/assets/img/ia/ia-silhouette-court.jpg") center 30%/cover no-repeat;
    filter: grayscale(1) contrast(1.1) brightness(0.45);
    z-index: 0;
  }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.2) 35%, rgba(10,10,10,0.95) 100%),
      radial-gradient(ellipse at 70% 30%, rgba(230,57,71,0.22), transparent 60%);
  }
  .hero__inner {
    gap: 18px;
    padding-bottom: 24px;
  }
  .hero__meta {
    font-size: 10px;
    padding: 7px 14px;
    gap: 10px;
  }
  .hero__meta-sep { display: none; }
  .hero__countdown b { font-size: 14px; }
  .hero__logo { width: 88vw; }
  .hero__title-underline { margin-top: 12px; }
  .hero__subline {
    font-size: 28px;
    margin-top: 8px;
  }
  .hero__lead {
    font-size: 15px;
    line-height: 1.55;
    max-width: 32ch;
  }
  .hero__ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 14px;
  }
  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 12px;
  }
  .hero__scroll { display: none; }
  .hero__marquee { height: 48px; }
  .hero__marquee-track {
    font-size: 16px;
    gap: var(--s-5);
    animation-duration: 22s;
  }
}

/* ============ MANIFESTO (mobile) ============ */
@media (max-width: 800px) {
  .manifesto {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .manifesto::before { opacity: 0.08; }
  .manifesto__head { font-size: 44px; line-height: 0.95; margin-bottom: 40px; }
  .manifesto__label { margin-bottom: 24px; }
  .pillars {
    border: 0;
    background: transparent;
    gap: 12px;
  }
  .pillar {
    border: 1px solid var(--border-subtle);
    padding: 28px 22px;
    background: var(--bg-elevated);
  }
  .pillar__num {
    font-size: 56px;
    margin-bottom: 14px;
  }
  .pillar h3 { font-size: 22px; margin-bottom: 8px; }
  .pillar p { font-size: 14px; }
}

/* ============ DIFFERENT (mobile) ============ */
@media (max-width: 700px) {
  .different__head { margin-bottom: 36px; }
  .different__head h2 { font-size: 38px; line-height: 0.95; }
  .different__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .diff-card {
    min-height: 200px;
    padding: 18px;
  }
  .diff-card__big {
    font-size: 38px;
    margin-bottom: 14px;
  }
  .diff-card__title { font-size: 15px; line-height: 1.1; }
  .diff-card__copy { font-size: 12px; line-height: 1.5; }
}
@media (max-width: 380px) {
  .different__grid { grid-template-columns: 1fr; }
}

/* ============ CALENDAR / TIMELINE (mobile) ============ */
@media (max-width: 720px) {
  .calendar__head { margin-bottom: 36px; }
  .calendar__head h2 { font-size: 40px; line-height: 0.95; }
  .timeline { border-top-color: rgba(0,0,0,0.12); }
  .stop {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 22px 0;
    align-items: center;
  }
  .stop:hover { padding-left: 0; }
  .stop:hover::before { width: 0; }
  .stop__month {
    font-size: 36px;
    line-height: 0.85;
  }
  .stop__kind {
    font-size: 10px;
    letter-spacing: 0.2em;
    margin-bottom: 4px;
  }
  .stop__title { font-size: 22px; }
  .stop__meta {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 4px;
    font-size: 10px;
    color: rgba(0,0,0,0.45);
  }
  .stop--highlight {
    background: rgba(230,57,71,0.08);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 3px solid var(--solo-red);
  }
}

/* ============ SPONSORS (mobile) ============ */
@media (max-width: 800px) {
  .sponsors {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .sponsors__intro {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
  }
  .sponsors__intro h2 { font-size: 36px; line-height: 0.95; }
  .sponsors__intro p { font-size: 14px; line-height: 1.6; }
  .sponsors__track {
    gap: 36px;
    animation-duration: 24s;
  }
  .sponsors__track img {
    height: 32px;
    opacity: 0.75;
  }
  .sponsors__dot { width: 4px; height: 4px; }
}

/* ============ PUNTOS / UBICACIONES (mobile) ============ */
@media (max-width: 900px) {
  .puntos__grid {
    gap: 32px;
  }
  .puntos__copy h2 { font-size: 40px; line-height: 0.95; }
  .puntos__map { aspect-ratio: 4 / 3; }
  .puntos__stats {
    gap: 12px;
    margin-top: 28px;
  }
  .puntos__stat-num { font-size: 36px; }
  .puntos__stat-label { font-size: 10px; letter-spacing: 0.18em; }
}

/* ============ SERIES + MATCHES (mobile) ============ */
@media (max-width: 720px) {
  .series__head h2,
  .matches__head h2 { font-size: 40px; line-height: 0.95; }
  .series__head,
  .matches__head { margin-bottom: 24px; gap: 16px; }
  .matches__head { margin-top: 64px; padding-top: 32px; }
  .series__grid { gap: 12px; }
  .ep__info { left: 16px; right: 16px; bottom: 14px; }
  .ep__title { font-size: 20px; }
  .ep__num { font-size: 11px; margin-bottom: 4px; }
  .ep__meta { font-size: 10px; }
  .ep__play { width: 38px; height: 38px; top: 14px; right: 14px; }
  .matches__grid { gap: 12px; }
  .match__body { padding: 16px; gap: 8px; }
  .match__vs { font-size: 22px; }
  .match__score { font-size: 16px; }
}

/* ============ NEWSLETTER (mobile) ============ */
@media (max-width: 720px) {
  .newsletter {
    padding: 72px 0;
  }
  .newsletter h2 { font-size: 40px; line-height: 0.95; }
  .newsletter__wrap { gap: 28px; }
  .newsletter__form {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .newsletter__field input {
    font-size: 16px; /* prevent iOS zoom */
  }
  .newsletter__submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 12px;
  }
}
@media (max-width: 420px) {
  .newsletter__form { grid-template-columns: 1fr; gap: 12px; }
}

/* ============ PAGE HEADER (shared) ============ */
@media (max-width: 800px) {
  .page-header {
    padding-top: calc(var(--nav-h) + 56px);
    padding-bottom: 48px;
  }
  .page-header__inner { gap: 24px; }
  .page-header h1 { font-size: 56px; line-height: 0.92; }
  .page-header__lead { font-size: 15px; line-height: 1.65; }
  .crumbs { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 18px; }
}

/* ============ CIRCUITO — tour cards (mobile) ============ */
@media (max-width: 720px) {
  .tour-grid { gap: 12px; }
  .tour-card {
    min-height: 280px;
    padding: 22px;
  }
  .tour-card__date { font-size: 44px; }
  .tour-card h3 { font-size: 28px; line-height: 1; }
  .tour-card__meta { font-size: 11px; gap: 8px 14px; }
  .rules { gap: 12px; background: transparent; border: 0; }
  .rule {
    border: 1px solid var(--border-subtle);
    padding: 22px;
  }
  .rule__num { font-size: 38px; }
  .rule h3 { font-size: 18px; }
  .rule p { font-size: 13px; }
  .prizes { gap: 8px; }
  .prize { padding: 18px; }
  .prize__amount { font-size: 32px; }
  .prize__label { font-size: 9px; letter-spacing: 0.2em; }
}

/* ============ RANKING (mobile) ============ */
@media (max-width: 760px) {
  .podium {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 36px;
  }
  .podium__step {
    flex-direction: row;
    text-align: left;
    min-height: 0 !important;
    padding: 18px;
    gap: 16px;
    justify-content: flex-start !important;
  }
  .podium__step--1 {
    background: linear-gradient(90deg, rgba(230,57,71,0.16), var(--bg-elevated));
  }
  .podium__pos { font-size: 56px; line-height: 1; flex-shrink: 0; }
  .podium__avatar { width: 56px; height: 56px; flex-shrink: 0; }
  .podium__name { font-size: 18px; }
  .podium__pts { font-size: 11px; margin-top: 4px; }
}
@media (max-width: 600px) {
  .ranking-table { display: block; border: 0; background: transparent; }
  .ranking-table thead { display: none; }
  .ranking-table tbody, .ranking-table tr, .ranking-table td { display: block; width: 100%; }
  .ranking-table tr {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px 14px;
    align-items: center;
  }
  .ranking-table td {
    border: 0;
    padding: 0;
  }
  .ranking-table td:nth-child(1) { grid-row: 1 / 3; }
  .ranking-table td:nth-child(2) { font-weight: 600; }
  .ranking-table td:nth-child(3) { grid-column: 3; grid-row: 1; text-align: right; font-size: 11px; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; }
  .ranking-table td:nth-child(3)::before { content: "Pts: "; color: var(--text-dim); }
  .ranking-table .pos { font-size: 32px; min-width: 40px; }
  .ranking-table .player { font-size: 16px; gap: 10px; }
  .ranking-table .player img { width: 32px; height: 32px; }
}

/* ============ PLAYER PROFILE (mobile) ============ */
@media (max-width: 900px) {
  .player-hero__inner { gap: 28px; }
  .player-hero__name { font-size: 56px; line-height: 0.92; }
  .player-hero__photo { aspect-ratio: 4 / 5; max-height: 60vh; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1px; }
  .stat { padding: 22px 18px; }
  .stat__value { font-size: 38px; }
  .stat__label { font-size: 9px; letter-spacing: 0.22em; }
}

/* ============ FORMS (mobile) ============ */
@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .form__field input,
  .form__field select,
  .form__field textarea {
    font-size: 16px; /* prevent iOS zoom */
    padding: 14px 0;
  }
  .form__submit {
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 12px;
  }
  .chips { gap: 8px; }
  .chip { font-size: 11px; padding: 8px 14px; letter-spacing: 0.12em; }
}

/* ============ BLOG (mobile) ============ */
@media (max-width: 600px) {
  .blog-grid { gap: 14px; }
  .post:hover { transform: none; }
  .post__thumb { aspect-ratio: 16 / 9; }
  .post__body { padding: 18px; gap: 8px; }
  .post__title { font-size: 22px; line-height: 1.05; }
  .post__excerpt { font-size: 14px; line-height: 1.55; }
  .post__meta { font-size: 9px; letter-spacing: 0.2em; }
  .post__foot { font-size: 10px; }
}
@media (max-width: 720px) {
  .article {
    padding: 48px 0 32px;
    font-size: 17px;
    line-height: 1.7;
  }
  .article h2 { font-size: 28px; line-height: 1.05; margin: 36px 0 14px; }
  .article h3 { font-size: 22px; margin: 28px 0 12px; }
  .article p { margin: 0 0 20px; }
  .article blockquote { padding: 18px 22px; font-size: 22px; line-height: 1.25; margin: 28px 0; }
}

/* ============ TEAM (mobile) ============ */
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .team-card {
    aspect-ratio: auto;
    padding: 18px;
    min-height: 220px;
  }
  .team-card__initials { font-size: 44px; margin-bottom: 12px; }
  .team-card h4 { font-size: 17px; }
  .team-card__role { font-size: 10px; letter-spacing: 0.2em; margin-bottom: 10px; }
  .team-card p { font-size: 12px; line-height: 1.5; }
}
@media (max-width: 380px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============ MAP (ubicaciones) ============ */
@media (max-width: 900px) {
  .map-layout {
    height: auto;
    min-height: 0;
  }
  .map-canvas {
    height: 70vh;
    min-height: 420px;
    order: -1;
  }
  .map-side {
    border-right: 0;
    border-top: 1px solid var(--border-subtle);
    padding: 24px 20px;
    max-height: none;
  }
  .club-item { padding: 16px 12px; }
  .club-item__btn { padding: 10px 8px; font-size: 10px; }
}

/* ============ FOOTER (mobile) ============ */
@media (max-width: 600px) {
  .footer { padding: 56px 0 28px; }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }
  .footer__col h5 { margin-bottom: 12px; }
  .footer__col ul { gap: 8px; }
  .footer__col a { font-size: 14px; }
  .footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .footer__legal { justify-content: flex-start; flex-wrap: wrap; }
}

/* ============ COOKIE BANNER (mobile polish) ============ */
@media (max-width: 600px) {
  .cc-banner { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .cc-banner__title { font-size: 18px; }
  .cc-banner__desc { font-size: 13px; line-height: 1.55; }
  .cc-banner__actions { gap: 8px; }
  .cc-btn { padding: 12px 16px !important; font-size: 12px !important; }
  .cc-modal__panel { padding: 24px 20px; max-height: 90vh; }
  .cc-modal__title { font-size: 22px; }
  .cc-modal__intro { font-size: 13px; }
  .cc-cat__name { font-size: 14px; }
  .cc-cat__hint { font-size: 12px; }
}

/* ============ STICKY MOBILE CTA ============ */
@media (max-width: 720px) {
  body[data-page="home"] .mobile-cta,
  body[data-page="circuito"] .mobile-cta,
  body[data-page="ranking"] .mobile-cta,
  body[data-page="serie"] .mobile-cta,
  body[data-page="ubicaciones"] .mobile-cta,
  body[data-page="blog"] .mobile-cta,
  body[data-page="sobre"] .mobile-cta {
    position: fixed;
    left: 16px; right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--solo-red);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 12px 36px -8px rgba(230,57,71,0.55), 0 0 0 1px rgba(255,255,255,0.06);
    border-radius: 4px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.5s var(--ease-spring), opacity 0.4s var(--ease-out);
    pointer-events: none;
  }
  .mobile-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-cta__arrow { transition: transform 0.3s var(--ease-spring); }
  .mobile-cta:active { transform: translateY(0) scale(0.98); }
  .mobile-cta:active .mobile-cta__arrow { transform: translateX(4px); }
  body.cookie-open .mobile-cta { display: none; }
}
@media (min-width: 721px) {
  .mobile-cta { display: none !important; }
}

/* ============ TAP STATES (replace hover) ============ */
@media (hover: none) {
  .card:hover,
  .post:hover,
  .match:hover,
  .tour-card:hover,
  .team-card:hover,
  .diff-card:hover,
  .stop:hover,
  .puntos__map:hover { transform: none; }
  .card:active,
  .post:active,
  .match:active,
  .tour-card:active,
  .team-card:active,
  .diff-card:active { transform: scale(0.985); transition: transform 0.18s var(--ease-out); }
  .btn:hover { transform: none; }
  .btn:active { transform: scale(0.98); }
}

/* ============ TYPOGRAPHY (mobile readability) ============ */
@media (max-width: 720px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 26px; }
  h4 { font-size: 19px; }
  .lead { font-size: 15px; line-height: 1.6; }
  .eyebrow { font-size: 11px; letter-spacing: 0.16em; }
  p { line-height: 1.65; }
}

/* ============ REDUCED MOTION on mobile ============ */
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .hero__marquee-track,
  .sponsors__track { animation: none; }
}
