/* =================================================================
   J/70 Perú. Sistema visual según "Manual de marca y redes" v1.0
   Carbón #13191D (fondos) / Rojo #F04A30 (énfasis) / Marfil #F6F5F1 (texto)
   Proporción: 65% carbón y marfil, 25% fotografía, 10% rojo.
   Esquinas rectas en todo el sistema.
   ================================================================= */
:root {
  --night: #0D1419;
  --ink: #13191D;
  --panel: #1D252B;
  --line: #3C474C;
  --cream: #F6F5F1;
  --muted: #A9B2B6;
  --red: #F04A30;
  --red-dark: #D83925;      /* rojo para fondos claros (versión positiva) */
  --red-soft: rgb(240 74 48 / 0.14);

  --bg: var(--night);
  --bg-2: var(--ink);
  --surface: var(--panel);
  --text: var(--cream);
  --accent: var(--red);
  --accent-ink: var(--ink);

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 28px);
  --nav-h: 72px;
  --bar-h: 44px;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--red); color: var(--ink); padding: 10px 14px; font-weight: 700; }

/* Fotografía: blanco y negro con acento rojo (manual: 25% fotografía, el rojo lo pone la marca) */
.band img, .clase__media img, .sponsor__hero img, .contact__media img { filter: grayscale(1) contrast(1.08) brightness(0.92); }

/* ============ Firma J/70 PERÚ ============ */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 0.9; white-space: nowrap; }
.brand__j70 { font: italic 900 30px/0.9 var(--f-display); font-stretch: 118%; letter-spacing: -0.06em; color: var(--cream); padding-right: 4px; }
.brand__peru { position: relative; margin-top: 5px; padding-bottom: 7px; font: 800 12px/1 var(--f-display); font-stretch: 112%; letter-spacing: 0.34em; color: var(--red); }
.brand__peru::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 3px; background: var(--red); }

/* Versión horizontal (encabezado web): J/70 y PERÚ en una línea, filete bajo J/70 */
.brand--h { flex-direction: row; align-items: baseline; gap: 12px; }
.brand--h .brand__j70 { position: relative; font-size: 28px; padding-bottom: 8px; }
.brand--h .brand__j70::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--red); }
.brand--h .brand__peru { margin: 0; padding: 0; font-size: 17px; letter-spacing: 0.26em; }
.brand--h .brand__peru::after { display: none; }
.brand--footer .brand__j70 { font-size: 44px; }
.brand--footer .brand__peru { font-size: 18px; letter-spacing: 0.34em; margin-top: 8px; padding-bottom: 10px; }
.brand--footer .brand__peru::after { height: 4px; }

/* ============ Tipografía ============ */
.eyebrow { font: 800 12px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.18em; color: var(--red); margin-bottom: 18px; }
.h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 92%;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 1.075rem; max-width: 58ch; margin-top: 14px; }
.lead--light { color: rgb(246 245 241 / 0.84); }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 14px 21px;
  border: 1px solid var(--cream); border-radius: 0;
  font: 800 12px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  background: transparent; color: var(--cream);
  transition: filter .2s, transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { filter: brightness(1.13); }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); filter: none; }
.btn--sm { min-height: 40px; padding: 10px 16px; }
.btn i { font-size: 1.15em; }

/* ============ Navegación ============ */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgb(13 20 25 / 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #343E43; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) {
  padding: 12px 0; border-bottom: 2px solid transparent;
  font: 800 12px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--cream); transition: border-color .2s;
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { border-bottom-color: var(--red); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--cream); font-size: 22px; cursor: pointer; }
  .nav__links {
    position: fixed; inset: calc(var(--nav-h) + var(--bar-h)) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px; background: #10191E;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { font: 900 30px/1 var(--f-display); font-stretch: 92%; letter-spacing: -0.03em; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 28px; min-height: 52px; }
}

/* ============ Barra de próxima fecha ============ */
.racebar { height: var(--bar-h); background: var(--ink); border-bottom: 1px solid var(--line); }
.racebar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.racebar__event { display: flex; align-items: baseline; gap: 12px; min-width: 0; white-space: nowrap; overflow: hidden; }
.racebar__event strong { font: 800 12px/1 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; }
.racebar__event > span:not(.live-badge) { font-size: 13px; color: var(--muted); text-overflow: ellipsis; overflow: hidden; }
.racebar__link { display: inline-flex; align-items: center; gap: 4px; font: 800 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; white-space: nowrap; color: var(--red); }
.countdown { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.countdown > div { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 36px; }
.countdown > div + div::before { content: ":"; position: absolute; left: -4px; top: 0; color: var(--muted); }
.countdown span { font: 500 16px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.countdown small { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 3px; }
.racebar.is-live { background: var(--red); color: var(--ink); border-color: var(--red); }
.racebar.is-live .racebar__event > span:not(.live-badge), .racebar.is-live .racebar__link { color: var(--ink); }
@media (max-width: 640px) {
  .racebar__event > span:not(.live-badge), .racebar__link { display: none; }
}

/* ============ Portada ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100dvh - var(--nav-h) - var(--bar-h)), 820px);
  display: flex; align-items: flex-end;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: heroZoom 2.4s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(6 12 16 / 0.94) 0%, rgb(6 12 16 / 0.68) 38%, rgb(6 12 16 / 0.04) 82%),
    linear-gradient(0deg, rgb(6 12 16 / 0.75), transparent 45%);
}
/* filete rojo: firma de la marca */
.hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26%; height: 5px; background: var(--red); }
.hero__copy { padding-top: 96px; padding-bottom: clamp(56px, 8vw, 88px); }
.hero__copy .eyebrow { color: var(--cream); }
.hero__title {
  font-family: var(--f-display); font-weight: 900; font-stretch: 92%;
  font-size: clamp(3.4rem, 7.4vw, 6.6rem); line-height: 0.9; letter-spacing: -0.05em;
  text-transform: uppercase; margin-bottom: 24px;
}
/* dos líneas fijas: cada idea en una sola línea */
.hero__title .l1, .hero__title .l2 { display: block; white-space: nowrap; }
.hero__title .l2 { color: var(--red); }
.hero__sub { max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.5; color: rgb(246 245 241 / 0.88); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: none; } }
@media (max-width: 860px) {
  .hero { min-height: 580px; }
  .hero__bg { object-position: 78% center; }
  .hero::before { background: linear-gradient(0deg, rgb(6 12 16 / 0.94) 0%, rgb(6 12 16 / 0.45) 65%, rgb(6 12 16 / 0.2) 100%); }
}

/* ============ Secciones ============ */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: clamp(24px, 4vw, 40px); }

/* Bloque marfil (única inversión de tema, definida por la marca para contenido de la clase) */
.section--paper { background: var(--cream); color: var(--ink); }
.section--paper .lead { color: #566268; }
.section--paper .specs > div { border-color: #D9DCD9; background: #fff; }
.section--paper .specs dt, .section--paper .specs small { color: #566268; }
.section--paper :focus-visible { outline-color: var(--red-dark); }

/* ============ Resultados de la fecha ============ */
.section--live { padding-bottom: 0; }
.rl__pos { font: 900 20px/1 var(--f-display); }
.rl__boat { font-weight: 600; font-size: 15px; }
.rl__pts { font: 500 14px/1 var(--f-mono); color: var(--muted); }
.rl__pts em { font-style: normal; color: var(--red); }
.race__wait { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.race__upd { margin-top: auto; font: 400 12px/1 var(--f-mono); color: var(--muted); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; font: 800 10px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; vertical-align: middle; border: 1px solid currentColor; }
.badge--en_curso { background: var(--red); border-color: var(--red); color: var(--ink); }
.badge--provisional { color: #F1BF00; }
.badge--oficial { color: var(--cream); }
.badge--anulada { color: var(--muted); }

.pulse, .live-badge::before { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; flex: none; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; background: var(--ink); color: var(--cream); font: 800 10px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.14em; align-self: center; }
.live-badge::before { content: ""; }
@media (prefers-reduced-motion: no-preference) {
  .pulse, .live-badge::before { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.25; } }
}

/* ============ Clasificación ============ */

.swatch { width: 6px; height: 36px; background: var(--c); flex: none; }
.sc { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; margin: 0 3px 2px 0; font: 500 12px/1 var(--f-mono); background: var(--ink); border: 1px solid var(--line); }
.sc--win { background: var(--red); color: var(--ink); border-color: var(--red); }
.sc--drop { background: transparent; color: var(--muted); text-decoration: line-through; border-style: dashed; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.legend .sc { margin-left: 12px; }
.legend .sc:first-child { margin-left: 0; }


.skeleton { display: grid; gap: 8px; }
.skeleton span { height: 64px; background: linear-gradient(90deg, var(--panel), var(--ink), var(--panel)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-left: 4px solid var(--red); background: #253039; font-size: 14px; }
.empty i { font-size: 26px; color: var(--red); }

/* Campeonatos y empates */
.ties { margin-top: 24px; padding: 18px 22px; border-left: 4px solid #F1BF00; background: #253039; }
.ties h3 { font: 800 11px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ties ul { display: grid; gap: 12px; }
.ties li strong { font-weight: 700; }
.ties li .badge { margin-left: 6px; color: #F1BF00; }
.ties li p { margin-top: 4px; font-size: 14px; color: var(--muted); max-width: 90ch; }
.rules { margin-top: 20px; border: 1px solid var(--line); }
.rules summary { padding: 16px 20px; cursor: pointer; font: 800 12px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; }
.rules summary:hover { color: var(--red); }
.rules ol { display: grid; gap: 12px; padding: 0 20px 20px 40px; list-style: decimal; color: var(--muted); font-size: 14px; max-width: 95ch; }
.rules li strong { color: var(--cream); }

.tl__link { margin-top: 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--red); font: 800 11px/1 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.tl__link:hover { text-decoration: underline; }

/* ============ Banda de imagen ============ */
.band { position: relative; height: clamp(320px, 50vw, 560px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 55%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(6 12 16 / 0.85), transparent 60%); }
.band__quote { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vw, 56px); z-index: 1; }
.band__quote p { position: relative; padding-bottom: 18px; font: 900 clamp(1.8rem, 4.4vw, 3.6rem)/0.98 var(--f-display); font-stretch: 92%; letter-spacing: -0.04em; text-transform: uppercase; color: var(--cream); }
.band__quote p span { display: block; }
.band__q { margin: 0; }
.band__q footer { margin-top: 14px; font: 800 12px/1.3 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: rgb(246 245 241 / 0.8); }
.band__quote p::after { content: ""; position: absolute; left: 0; bottom: 0; width: 90px; height: 5px; background: var(--red); }

.section--fleet { padding-top: 0; }

/* ============ Calendario ============ */
.timeline { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; padding-bottom: 12px; }
.timeline__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px;
  width: max(100%, calc(var(--n, 6) * 240px)); max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
}
.tl { scroll-snap-align: start; position: relative; padding: 24px 22px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.tl--next { border-color: var(--red); box-shadow: inset 0 4px 0 var(--red); }
.tl__state { font: 800 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.tl--next .tl__state { color: var(--red); }
.tl__date { font: 400 14px/1 var(--f-mono); text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.tl__date span { display: block; font: 900 56px/0.9 var(--f-display); letter-spacing: -0.05em; color: var(--red); margin-bottom: 6px; }
.tl--done .tl__date span { color: var(--muted); }
.tl--tbd { border-style: dashed; background: transparent; }
.tl--tbd .tl__date span { color: var(--line); }
.tl__name { font: 900 17px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; margin-top: auto; }
.tl__meta, .tl__win { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.tl__win { color: var(--cream); font-weight: 600; }
.tl__win i { color: var(--red); }
.tl__win--tbd { color: var(--muted); font-weight: 400; }
.tl__win--tbd i { color: var(--muted); }
@media (min-width: 1320px) { .timeline { overflow: visible; } }

/* ============ Flota ============ */
.fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.boat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--c); }
.boat__top { display: flex; justify-content: space-between; align-items: center; font: 500 12px/1 var(--f-mono); color: var(--muted); }
.boat__pos { color: var(--cream); }
.boat h3 { margin-top: 6px; font: 900 20px/1.05 var(--f-display); letter-spacing: -0.02em; text-transform: uppercase; }
.boat__skipper { font-size: 14px; }
.boat__crew { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .fleet { grid-template-columns: repeat(2, 1fr); } }

/* ============ La clase ============ */
.clase { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.clase__lead { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.28; margin-top: 18px; max-width: 30ch; }
.clase__media { aspect-ratio: 4 / 5; overflow: hidden; }
.clase__media img { width: 100%; height: 100%; object-fit: cover; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
.specs > div { padding: 18px; border: 1px solid var(--line); }
.specs dt { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.specs dd { font: 900 clamp(2rem, 3.4vw, 2.8rem)/1 var(--f-display); letter-spacing: -0.04em; margin-top: 8px; }
.specs small { font: 500 13px/1 var(--f-mono); letter-spacing: 0; margin-left: 6px; }
@media (max-width: 860px) { .clase { grid-template-columns: 1fr; } .clase__media { aspect-ratio: 16 / 10; } }

/* ============ Auspicios ============ */
.sponsor__hero { position: relative; overflow: hidden; min-height: clamp(420px, 46vw, 540px); display: flex; align-items: flex-end; }
.sponsor__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.sponsor__hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(6 12 16 / 0.92) 0%, rgb(6 12 16 / 0.6) 50%, rgb(6 12 16 / 0.1) 100%); }
.sponsor__hero::after { content: ""; position: absolute; left: 0; bottom: 0; z-index: 2; width: 26%; height: 5px; background: var(--red); }
.sponsor__overlay { position: relative; z-index: 2; padding: clamp(24px, 5vw, 56px); max-width: 660px; }
@media (max-width: 760px) { .sponsor__hero::before { background: linear-gradient(0deg, rgb(6 12 16 / 0.94) 20%, rgb(6 12 16 / 0.2) 100%); } }

.assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.asset { padding: 28px; background: var(--panel); border: 1px solid var(--line); }
.asset--wide { grid-column: span 2; }
.asset--tint { background: var(--ink); box-shadow: inset 4px 0 0 var(--red); }
.asset i { font-size: 30px; color: var(--red); }
.asset h3 { font: 900 22px/1.1 var(--f-display); letter-spacing: -0.02em; text-transform: uppercase; margin-top: 18px; }
.asset p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 48ch; }
@media (max-width: 860px) { .assets { grid-template-columns: 1fr; } .asset--wide { grid-column: auto; } }

.tiers { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; margin-top: clamp(40px, 6vw, 64px); }
.tier { padding: 28px; border: 1px solid var(--line); }
.tier--main { background: var(--red); color: var(--ink); border-color: var(--red); }
.tier h3 { font: 900 26px/1 var(--f-display); letter-spacing: -0.03em; text-transform: uppercase; }
.tier__slots { font: 500 13px/1 var(--f-mono); margin-top: 10px; opacity: 0.75; }
.tier ul { display: grid; gap: 10px; margin-top: 24px; font-size: 15px; }
.tier li { display: flex; gap: 10px; align-items: baseline; }
.tier li i { color: var(--red); flex: none; }
.tier--main li i { color: inherit; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

.partners { margin-top: clamp(40px, 6vw, 64px); }
.partners__title { font: 800 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 16px; }
.partners__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.partner { display: grid; place-items: center; height: 96px; border: 1px solid var(--line); text-decoration: none; }
.partner img { max-height: 44px; width: auto; opacity: 0.85; }
.partner--empty { border-style: dashed; color: var(--muted); gap: 4px; align-content: center; transition: color .2s, border-color .2s; }
.partner--empty:hover { color: var(--red); border-color: var(--red); }
.partner--empty i { font-size: 22px; }
.partner--empty span { font-size: 13px; font-weight: 600; }

/* ============ Contacto ============ */
.contact { padding-top: 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 100px); }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact__email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font: 500 15px/1.4 var(--f-mono); }
.contact__email span { user-select: all; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); background: transparent; color: var(--cream); font: 800 11px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { border-color: var(--red); }
.contact__media { aspect-ratio: 3 / 2; overflow: hidden; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============ Pie ============ */
.footer { border-top: 1px solid var(--line); padding: 44px 0 calc(26px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer__nav a { color: var(--muted); text-decoration: none; }
.footer__nav a:hover { color: var(--cream); }
.footer__small { margin-top: 40px; font-size: 11px; color: var(--muted); }
.footer__small a { color: var(--muted); }


/* ============ Auspiciadores ============ */
/* Logos en blanco para respetar la paleta de la marca; al pasar el cursor recuperan su color. */
.sp-mark { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--cream); }
.sp-mark img { display: block; max-height: 40px; max-width: 150px; width: auto; height: auto; object-fit: contain; transition: filter .25s, opacity .25s; }
.sp-mark img.is-mono { filter: brightness(0) invert(1); opacity: 0.82; }
a.sp-mark:hover img.is-mono, a.sp-mark:focus-visible img.is-mono { filter: none; opacity: 1; }
.sp-word { font: 900 18px/1 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase; opacity: 0.85; }
a.sp-mark:hover .sp-word { opacity: 1; color: var(--red); }
.sp-mark.is-main img { max-height: 48px; max-width: 190px; }
.sp-mark.is-inline img { max-height: 32px; max-width: 140px; }
.sp-mark.is-inline .sp-word { font-size: 14px; }
.sp-empty { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .2s, border-color .2s; }
.sp-empty:hover { color: var(--red); border-color: var(--red); }

.sp-strip { background: var(--ink); border-bottom: 1px solid var(--line); }
.sp-strip__inner { display: flex; align-items: center; gap: 12px 32px; min-height: 84px; padding-block: 16px; flex-wrap: wrap; }
.sp-strip__label { flex: none; font: 800 11px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sp-strip__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 40px; }

.res-head__title { display: flex; flex-direction: column; gap: 10px; }
.sp-presented { display: flex; align-items: center; gap: 10px; min-height: 24px; font: 800 11px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sp-presented__empty { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line); padding-bottom: 2px; }
.sp-presented__empty:hover { color: var(--red); border-color: var(--red); }
.res-meta__sp { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; vertical-align: middle; }

.sp-banner-wrap { padding-block: 0 clamp(40px, 6vw, 72px); }
.sp-banner { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--cream); }
.sp-banner img { display: block; width: 100%; aspect-ratio: 1200 / 250; object-fit: cover; }
.sp-banner__tag { position: absolute; top: 8px; right: 8px; padding: 4px 6px; background: rgb(13 20 25 / 0.75); font: 700 9px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sp-banner--empty { display: grid; gap: 8px; padding: 28px clamp(20px, 4vw, 40px); border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 14px, rgb(246 245 241 / 0.025) 14px 28px); transition: border-color .2s; }
.sp-banner--empty:hover { border-color: var(--red); }
.sp-banner__kicker { font: 800 11px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.sp-banner--empty strong { font: 900 clamp(1.4rem, 3vw, 2.2rem)/1 var(--f-display); letter-spacing: -0.03em; text-transform: uppercase; }
.sp-banner__cta { display: inline-flex; align-items: center; gap: 6px; font: 800 12px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.tl__sp { display: flex; align-items: center; gap: 8px; font: 800 10px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.footer__sponsors:empty { display: none; }
.footer__sponsors { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__sp-label { font: 800 11px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__sp-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }

@media (max-width: 760px) {
  .sp-strip__inner { min-height: 0; gap: 12px 20px; }
  .sp-strip__logos { gap: 14px 24px; }
  .sp-mark img { max-height: 32px; max-width: 120px; }
  .sp-banner img { aspect-ratio: 2 / 1; }
  .sp-banner-wrap { padding-bottom: 40px; }
}

/* ============ Movimiento ============ */
/* Entrada de la portada: el contenido parte visible y sólo se desplaza levemente */
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: riseIn .9s var(--ease) both; }
  .hero .reveal:nth-child(2) { animation-delay: .08s; }
  .hero .reveal:nth-child(3) { animation-delay: .16s; }
  .hero .reveal:nth-child(4) { animation-delay: .24s; }
  @keyframes riseIn { from { transform: translateY(16px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton span, .hero__bg { animation: none; }
}

/* =================================================================
   CELULAR
   Barra inferior fija, carruseles deslizables y tarjetas compactas.
   ================================================================= */
.tabbar { display: none; }

@media (max-width: 760px) {
  :root { --nav-h: 60px; --bar-h: 40px; --tabbar-h: 60px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: calc(var(--nav-h) + var(--bar-h) + 8px); }

  /* Encabezado sólido: el desenfoque (backdrop-filter) haría que el menú fijo se recorte al encabezado */
  .nav { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links { background: var(--night); }

  /* Encabezado más bajo */
  .brand--h .brand__j70 { font-size: 24px; padding-bottom: 6px; }
  .brand--h .brand__j70::after { width: 28px; }
  .brand--h .brand__peru { font-size: 14px; }
  .nav__toggle { width: 40px; height: 40px; font-size: 20px; }
  .racebar__event strong { font-size: 11px; }
  .countdown > div { min-width: 30px; }
  .countdown span { font-size: 14px; }

  /* Barra inferior */
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgb(13 20 25 / 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    position: relative; height: var(--tabbar-h);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--muted); text-decoration: none;
    font: 800 10px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase;
  }
  .tabbar a i { font-size: 22px; }
  .tabbar a.is-active { color: var(--cream); }
  .tabbar a.is-active::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 3px; background: var(--red); }
  .tabbar a:active { background: var(--panel); }
  .nav__links { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }

  /* Títulos y ritmo */
  .h2 { font-size: clamp(1.9rem, 8.4vw, 2.3rem); letter-spacing: -0.03em; }
  .section { padding: 48px 0; }
  .section__head { margin-bottom: 20px; }
  .lead { font-size: 1rem; margin-top: 10px; }

  /* Portada */
  .hero { min-height: calc(100svh - var(--nav-h) - var(--bar-h) - var(--tabbar-h)); max-height: 680px; }
  .hero__copy { padding-top: 64px; padding-bottom: 40px; }
  .hero__title { font-size: 11.6vw; font-stretch: 78%; letter-spacing: -0.04em; margin-bottom: 16px; }
  .hero__sub { font-size: 1rem; }
  .hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .hero__ctas .btn { padding-inline: 12px; }

 /* Carriles deslizables: pestañas de fecha, regatas, calendario, paquetes */
  .champ-tabs, .tiers {
    display: flex; flex-wrap: nowrap; gap: 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .timeline::-webkit-scrollbar { display: none; }
  .tiers { gap: 10px; margin-top: 32px; }
  .tier { flex: 0 0 84%; scroll-snap-align: start; padding: 22px; }
  .tier h3 { font-size: 22px; }
  .timeline { scrollbar-width: none; }
  .timeline__track { grid-auto-columns: 200px; width: max-content; }
  .tl { min-height: 0; padding: 18px; gap: 8px; }
  .tl__date span { font-size: 44px; }

  /* Clasificación: tarjetas compactas */
  .fecha-standings { margin-bottom: 28px; }
  .ties { padding: 14px 16px; margin-top: 16px; }
  .ties li p { font-size: 13px; }
  .legend { font-size: 12px; }
  .rules summary { padding: 14px 16px; }
  .rules ol { padding: 0 16px 16px 32px; font-size: 13px; }

  /* Banda de imagen */
  .band { height: 300px; }
  .band img { object-position: 72% 50%; }
  .band { height: 340px; }
  .band__quote p { font-size: 1.55rem; }
  .band__quote p span { display: inline; }
  .band__q footer { font-size: 11px; margin-top: 12px; }

  /* Flota compacta */
  .fleet { gap: 8px; }
  .boat { padding: 12px 12px 12px; }
  .boat h3 { font-size: 17px; margin-top: 4px; }
  .boat__skipper { font-size: 13px; }
  .boat__crew { display: none; }

  /* La clase */
  .clase__lead { font-size: 1.2rem; }
  .specs { gap: 8px; margin-top: 20px; }
  .specs > div { padding: 14px; }
  .specs dt { font-size: 11px; letter-spacing: 0.08em; }
  .specs dd { font-size: 1.9rem; }

  /* Auspicios compactos */
  .sponsor__hero { min-height: 400px; }
  .sponsor__overlay { padding: 22px; }
  .assets { gap: 8px; }
  .asset { display: grid; grid-template-columns: 30px 1fr; gap: 4px 14px; padding: 18px; }
  .asset i { grid-row: span 2; font-size: 26px; }
  .asset h3 { margin-top: 0; font-size: 17px; }
  .asset p { margin-top: 0; font-size: 14px; }
  .partners { margin-top: 32px; }
  .partners__grid { grid-template-columns: 1fr 1fr; }
  .partner { height: 72px; }

  /* Contacto y pie */
  .contact__grid { padding-top: 48px; gap: 24px; }
  .contact__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .contact__links .btn { padding-inline: 10px; }
  .contact__media { aspect-ratio: 16 / 9; }
  .footer { padding-top: 32px; }
  .brand--footer .brand__j70 { font-size: 36px; }
  .footer__nav { gap: 14px 18px; }
  .footer__small { margin-top: 24px; }
}

/* ============ Resultados (una tabla: temporada o fecha) ============ */
.res-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.res-meta { color: var(--muted); font-size: 14px; }
.res-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.res-tabs::-webkit-scrollbar { display: none; }
.res-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: 800 12px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.res-tab:hover { color: var(--cream); }
.res-tab.is-on { color: var(--cream); border-bottom-color: var(--red); }
.res-tab .pulse { width: 7px; height: 7px; }

.res-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; margin-bottom: 14px; background: var(--ink); box-shadow: inset 4px 0 0 var(--red); }
.res-live__head { display: flex; align-items: center; gap: 10px; font: 800 12px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; }
.res-live__list { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.res-live__list li { display: inline-flex; align-items: center; gap: 6px; }
.res-live__list li::before { content: ""; width: 3px; height: 14px; background: var(--c); }
.res-live__list b { font: 900 15px/1 var(--f-display); }
.res-live__wait { color: var(--muted); }
.res-live__wait::before { display: none; }

.res-scroll { overflow-x: auto; border: 1px solid var(--line); }
.res-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.res-table th, .res-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.res-table tbody tr:last-child > * { border-bottom: 0; }
.res-table thead th { position: relative; padding-block: 10px; background: var(--ink); color: var(--muted); font: 800 10px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.res-table .c { text-align: center; white-space: nowrap; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.res-table .c .sc { margin: 0; }
.res-table .pts { text-align: right; font: 500 22px/1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-table thead .pts { font: 800 10px/1 var(--f-body); }
.res-table .pts small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.res-table tbody tr:hover > * { background: var(--ink); }
.who { text-align: left; font-weight: 400; }
.who__in { display: flex; align-items: center; gap: 12px; }
.who__pos { width: 26px; flex: none; font: 900 24px/1 var(--f-display); color: var(--muted); }
.is-leader .who__pos { color: var(--red); }
.who .swatch { width: 4px; height: 30px; }
.who__name { min-width: 0; }
.who__name strong { font: 900 17px/1.1 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase; }
.who__name small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tie { display: inline-block; margin-left: 8px; padding: 2px 5px; border: 1px solid #F1BF00; color: #F1BF00; font: 700 10px/1 var(--f-mono); vertical-align: 2px; }
.fnet { font-size: 15px; }
.flag { display: inline-block; width: 6px; height: 6px; margin-left: 4px; vertical-align: 2px; border-radius: 50%; }
.flag--provisional { background: #F1BF00; }

.results .rules { margin-top: 14px; }
.results .rules > div { display: grid; gap: 14px; padding: 0 20px 20px; font-size: 14px; color: var(--muted); max-width: 95ch; }
.results .rules ol { padding: 0 0 0 20px; }
.results .rules strong { color: var(--cream); }
.results .ties { margin: 0; }
.results .legend { margin: 0; }

@media (max-width: 760px) {
  .res-head { margin-bottom: 12px; }
  .res-meta { font-size: 13px; }
  .res-tabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .res-tab { padding: 12px 12px; }
  .res-scroll { margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
  .res-table th, .res-table td { padding: 10px 6px; }
  .res-table th:first-child, .res-table td:first-child { padding-left: var(--gutter); }
  .res-table th:last-child, .res-table td:last-child { padding-right: var(--gutter); }
  .res-table .who { position: sticky; left: 0; z-index: 1; background: var(--night); }
  .who__in { gap: 8px; }
  .res-table thead .who { background: var(--ink); }
  .who__pos { width: 18px; font-size: 18px; }
  .who .swatch { height: 24px; }
  .who__name strong { font-size: 14px; }
  .who__name small { display: none; }
  .tie { display: block; width: max-content; margin: 4px 0 0; }
  .res-table .sc { min-width: 24px; height: 24px; font-size: 11px; }
  .res-table .pts { font-size: 18px; }
  .results .rules > div { padding: 0 16px 16px; font-size: 13px; }
}
