/* ==========================================================================
   Max Mora — Sitio oficial
   CSS puro, sin frameworks. Colores y tipografía en variables (:root).
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --surface: #131317;
  --surface-2: #1b1b21;
  --line: #2a2a32;
  --text: #f3f3f5;
  --muted: #9b9ba6;
  --accent: #1f6bff;        /* azul eléctrico */
  --accent-soft: rgba(31, 107, 255, .16);
  --green: #00a65a;         /* toque México */
  --radius: 14px;
  --maxw: 1180px;
  --nav-h: 72px;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4a88ff; }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav:not(.scrolled) { background: linear-gradient(180deg, rgba(10,10,12,.75), rgba(10,10,12,0)); }
.nav:not(.scrolled) .nav-links a:not(.btn) { color: #d6d6dc; }
.nav.scrolled { background: rgba(10,10,12,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; }
.brand img { height: 40px; width: auto; }
footer .brand img { height: 56px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links .btn { min-height: 40px; padding: 0 18px; color: #fff; }
.nav-links .btn::after { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(10,10,12,.97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-links a { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; color: var(--text); }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 60% at 75% 40%, rgba(31,107,255,.2), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(0,166,90,.10), transparent 70%),
    linear-gradient(180deg, #0d0d10, var(--bg));
  background-size: cover; background-position: center;
}
.hero-bg img {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(58%, 900px); height: 100%;
  object-fit: cover; object-position: 50% 22%; filter: brightness(.82) contrast(1.08);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 30%); mask-composite: intersect;
}
@media (min-width: 601px) and (max-width: 1000px) { .hero-bg img { width: 72%; } }
.hero-bg::after { /* oscurece la foto para que el texto se lea */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.6) 0%, rgba(10,10,12,.15) 50%, transparent 70%), linear-gradient(180deg, rgba(10,10,12,.5) 0%, transparent 18%);
}
.speed-lines { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.speed-lines i {
  position: absolute; height: 1px; width: 40vw; right: -40vw;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: streak 5s linear infinite;
}
.speed-lines i:nth-child(1) { top: 22%; animation-delay: 0s; }
.speed-lines i:nth-child(2) { top: 41%; animation-delay: 1.6s; animation-duration: 6s; }
.speed-lines i:nth-child(3) { top: 63%; animation-delay: 3.1s; }
.speed-lines i:nth-child(4) { top: 80%; animation-delay: .8s; animation-duration: 7s; }
@keyframes streak { to { transform: translateX(-180vw); } }

.hero-number {
  position: absolute; right: -2vw; bottom: -6vw; z-index: -1;
  font: 800 clamp(16rem, 42vw, 40rem)/.8 var(--font-display); font-style: italic;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); user-select: none;
}
.hero h1 { font-size: clamp(4rem, 13vw, 10rem); line-height: .85; margin-bottom: 24px; font-style: italic; }
.hero h1 span { display: block; }
.hero h1 .last { color: var(--accent); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.flag { display: inline-flex; width: 22px; height: 14px; border-radius: 2px; overflow: hidden; }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #006847; } .flag i:nth-child(2) { background: #fff; } .flag i:nth-child(3) { background: #ce1126; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Secciones ---------- */
section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 52px; }
.section-head h2 { margin: 0; }
.alt { background: var(--surface); }
.checker { /* franja de bandera a cuadros */
  height: 14px;
  background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 14px 14px;
  opacity: .9;
}

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), #24242c);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; padding: 20px; }
.photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--green) 33%, #fff 33% 66%, var(--accent) 66%); }
.photo-tag { position: absolute; left: 18px; top: 18px; background: var(--accent); color: #fff; font: 700 1.6rem/1 var(--font-display); padding: 8px 14px; border-radius: 8px; font-style: italic; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 32px 0; }
.fact { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,.02); }
.fact small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact strong { font-weight: 600; }

/* ---------- Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 34px 22px; text-align: center; }
.stat b { display: block; font: 800 clamp(2.8rem, 6vw, 4.4rem)/1 var(--font-display); font-style: italic; }
.stat span { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Trayectoria (timeline) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 44px; padding: 0 0 38px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline .year { font: 700 1.5rem/1.2 var(--font-display); color: var(--accent); }
.timeline h3 { margin-bottom: .3em; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- Próxima carrera ---------- */
.next-race {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface);
}
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 6px; text-align: center; }
.countdown b { display: block; font: 800 clamp(2rem, 5vw, 3.2rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.calendar { margin-top: 40px; display: grid; gap: 10px; }
.race-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .25s, background-color .25s; }
.race-row:hover { border-color: #3a3a44; background: rgba(255,255,255,.02); }
.race-row time { font: 700 1.15rem/1 var(--font-display); text-transform: uppercase; color: var(--accent); }
.race-row strong { display: block; font-weight: 600; }
.race-row small { color: var(--muted); }
.badge { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.done { border-color: rgba(0,166,90,.5); color: #3ddc8f; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), #26262e); position: relative; }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(4), .gallery figure:nth-child(6) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }

/* ---------- Blog (tarjetas) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: transform .35s var(--ease), border-color .35s var(--ease); }
.post-card:hover { transform: translateY(-4px); border-color: #3a3a44; }
.post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1d1d24, #2a1214); position: relative; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .cat { position: absolute; left: 14px; top: 14px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-body time { font-size: .8rem; color: var(--muted); }
.post-body h3 { font-size: 1.45rem; margin: 8px 0 10px; }
.post-body p { color: var(--muted); font-size: .95rem; }
.read-more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.read-more::after { content: "→"; transition: transform .25s var(--ease); }
.post-card:hover .read-more::after { transform: translateX(4px); }

/* ---------- Patrocinadores ---------- */
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 56px; }
.sponsor { aspect-ratio: 16 / 9; border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 12px; transition: border-color .25s, color .25s; }
.sponsor:hover { border-color: var(--accent); color: var(--text); }
.sponsor img { max-height: 60%; width: auto; filter: grayscale(1) brightness(1.6); opacity: .8; transition: filter .3s, opacity .3s; }
.sponsor:hover img { filter: none; opacity: 1; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit { padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.benefit .icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.benefit .icon svg { width: 22px; height: 22px; }
.benefit h3 { font-size: 1.35rem; }
.benefit p { color: var(--muted); margin: 0; font-size: .95rem; }
.sponsor-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Coming Soon (equipo) ---------- */
.soon {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
  padding: clamp(40px, 8vw, 96px) clamp(24px, 6vw, 72px);
  background: radial-gradient(70% 90% at 100% 0%, rgba(31,107,255,.28), transparent 60%), #0f0f13;
  border: 1px solid var(--line); text-align: center;
}
.soon::before { /* rejilla técnica de fondo */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
}
.soon > * { position: relative; z-index: 1; }
.soon .eyebrow { justify-content: center; }
.soon h2 { font-size: clamp(3rem, 10vw, 7rem); font-style: italic; margin-bottom: 16px; }
.soon h2 .outline { color: transparent; -webkit-text-stroke: 2px var(--accent); animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.soon .lead { margin: 0 auto 32px; }
.progress { max-width: 420px; margin: 32px auto 36px; text-align: left; }
.progress-label { display: flex; justify-content: space-between; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.progress-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #5ec8ff); border-radius: inherit; transition: width 1.6s var(--ease); }
.is-visible .progress-bar i { width: var(--p, 15%); }
.notify { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; margin: 0 auto; }
.notify input { flex: 1 1 220px; min-width: 0; }
.notify .form-msg { flex-basis: 100%; margin-top: 4px; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.notify input { border-radius: 999px; padding-inline: 22px; }
.form-msg { min-height: 1.5em; margin-top: 12px; font-size: .92rem; }
.form-msg.ok { color: #3ddc8f; } .form-msg.err { color: #ff6b5e; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.contact-list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 14px; }
.contact-list a { display: inline-flex; gap: 12px; align-items: center; color: var(--muted); transition: color .2s; }
.contact-list a:hover { color: var(--text); }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--surface); }
.contact-form .full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; } /* anti-spam */

/* ---------- Redes ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); transition: color .25s, border-color .25s, background-color .25s, transform .25s var(--ease); }
.socials a:hover { color: #fff; border-color: var(--accent); background: var(--accent); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 40px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--muted); }

/* ---------- Páginas del blog ---------- */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 50px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 100% at 80% 0%, var(--accent-soft), transparent 70%); }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); font-style: italic; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { border: 1px solid var(--line); background: none; padding: 8px 16px; border-radius: 999px; font-size: .88rem; color: var(--muted); cursor: pointer; transition: all .2s; }
.filters button.on, .filters button:hover { border-color: var(--accent); color: var(--text); }
.filters button.on { background: var(--accent); }
.post-card[hidden] { display: none; }
.article { max-width: 720px; margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .9rem; }
.article-body { font-size: 1.08rem; line-height: 1.8; }
.article-body h2 { font-size: 2rem; margin-top: 1.8em; }
.article-body img { border-radius: var(--radius); margin: 2em 0; }
.article-body blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-size: 1.25rem; font-style: italic; color: var(--text); }
.article-body ul { padding-left: 1.2em; }
.article-body li { margin-bottom: .5em; }
.back { display: inline-flex; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.back:hover { color: var(--text); }
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 60; }

/* ---------- Animaciones de entrada (solo transform/opacity = fluidas) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.hero .reveal { transition-duration: 1s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .posts, .benefits { grid-template-columns: 1fr 1fr; }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery figure:nth-child(4), .gallery figure:nth-child(6) { grid-column: span 1; }
  .gallery figure:nth-child(7) { grid-column: span 2; }
}
@media (max-width: 820px) {
  .about-grid, .next-race, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .photo { max-width: 460px; }
}
@media (max-width: 600px) {
  .posts, .benefits { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 34px; }
  .timeline li::before { left: 0; }
  .race-row { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .race-row time { grid-column: 1 / -1; }
  .notify { flex-direction: column; }
  .notify input, .notify .btn { flex: none; width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .countdown { gap: 6px; }
}

/* ---------- Temporada: momento destacado ---------- */
.highlight { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); text-align: center; }
.highlight-label, .highlight-sub { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.highlight-pos { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 20px); margin: 14px 0; }
.highlight-pos b { font: 800 clamp(3rem, 8vw, 5rem)/1 var(--font-display); font-style: italic; color: var(--muted); }
.highlight-pos b.up { color: var(--text); }
.highlight-pos svg { width: clamp(28px, 4vw, 40px); color: var(--accent); }
.season-cta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.season-cta p { margin: 0; }

/* ---------- Estado vacío (blog) ---------- */
.empty { text-align: center; padding: clamp(40px, 7vw, 72px) 24px; border: 1px dashed var(--line); border-radius: var(--radius); }

.hero .eyebrow { color: var(--text); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero .eyebrow::before { background: var(--accent); }

/* Celular: foto vertical arriba (auto visible) y texto abajo */
@media (max-width: 600px) {
  .hero { align-items: flex-end; padding-bottom: 96px; }
  .hero .eyebrow { letter-spacing: .12em; font-size: .72rem; }
  .hero-bg img { width: 100%; height: auto; bottom: auto; aspect-ratio: 2 / 3; object-position: 50% 20%; -webkit-mask-image: none; mask-image: none; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,.05) 14%, transparent 24%, transparent 36%, rgba(10,10,12,.88) 52%, var(--bg) 64%); }
}

.highlight-photo {
  position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, rgba(10,10,12,.55), rgba(10,10,12,.82)), url(../img/fotos/mugello-curva-1000.webp) 50% 70% / cover no-repeat;
}
.highlight-photo .highlight-label, .highlight-photo .highlight-sub { color: #d6d6dc; }
.highlight-photo .highlight-pos b { color: #b9b9c2; }
.highlight-photo .highlight-pos b.up { color: #fff; }

/* ---------- Artículos del blog ---------- */
.article-title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-style: italic; }
.article-cover { margin: 32px 0 40px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; margin: 0; border-radius: 0; }
.article-cover figcaption { padding: 10px 16px; font-size: .85rem; color: var(--muted); }
.article-body p { color: #d4d4da; }
.article-body strong { color: var(--text); }
.article-cta { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.post-nav { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .25s; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav small { color: var(--accent); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.post-nav span { font-weight: 600; line-height: 1.35; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }
.back { display: flex; width: max-content; }
@media (max-width: 600px) {
  .eyebrow { letter-spacing: .14em; }
  .article-cover img { max-height: 380px; }
}
