
:root {
  color-scheme: light;
  --ink: #191819;
  --black: #141414;
  --paper: #dbdadd;
  --surface: #eeecef;
  --white: #fff;
  --muted: #625d5d;
  --line: #c9c4c9;
  --input-border: #827a7a;
  --focus: #2673b1;
  --red: #b52029;
  --red-light: #ff7776;
  --accent-hover: #982028;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}
.background-claro { --paper: #f4f2ef; --surface: #fff; --line: #dcd7d5; }
.background-grafito, .background-victorias {
  color-scheme: dark;
  --ink: #f2eef1;
  --paper: #222024;
  --surface: #302d31;
  --muted: #c3bec6;
  --line: #615d65;
  --input-border: #a397a4;
  --focus: #92c9ff;
}
.background-victorias {
  --black: #0c0a0b;
  --paper: #120e11;
  --surface: #211a1f;
  --line: #52404a;
  --input-border: #8c7783;
  --focus: #f5b5b7;
  background: radial-gradient(ellipse at 92% 8%, #341118, var(--paper) 57%, #0d0a0c) fixed;
}
*, *::before, *::after { box-sizing: border-box; }
body { --accent-text: var(--red); margin: 0; font-size: 1rem; line-height: 1.55; }
:is(.background-grafito, .background-victorias) body { --accent-text: var(--red-light); }
.background-victorias body { isolation: isolate; }
.season-collage {
  --collage-bleed: 10vh;
  position: fixed;
  z-index: -1;
  inset: 5rem 0 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  overflow: hidden;
  opacity: .15;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 77%, transparent);
}
.season-collage > div {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin-inline: -1px;
  transform: skewX(-11deg);
  outline: 2px solid #40121c;
}
.season-collage > div::before {
  content: '';
  display: block;
  width: calc(100% + 2 * var(--collage-bleed));
  height: 100%;
  margin-inline: calc(-1 * var(--collage-bleed));
  background: var(--rider-photo) var(--rider-position, 50%) 43% / cover no-repeat;
  transform: skewX(11deg);
  filter: grayscale(1) contrast(1.08);
}
.season-photo-vian { --rider-photo: url("media/fondo-2026/europeo.webp"); }
.season-photo-cepa { --rider-photo: url("media/fondo-2026/bidasoa.webp"); }
.season-photo-alvarez { --rider-photo: url("media/fondo-2026/ataque.webp"); }
.season-photo-valenti { --rider-photo: url("media/fondo-2026/lluvia.webp"); }
.season-photo-ormazabal { --rider-photo: url("media/fondo-2026/sanroma.webp"); --rider-position: 30%; }
.season-photo-perez { --rider-photo: url("media/fondo-2026/subida.webp"); }
@media (max-width: 50rem) {
  .season-collage {
    --collage-bleed: 5vh;
    inset: 7rem 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: minmax(0, 1fr);
  }
}
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.04; }
h1, h2 { font-family: var(--display); font-weight: 800; }
h1 { font-size: clamp(2.65rem, 6.5vw, 5rem); letter-spacing: -.012em; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.7vw, 2.65rem); }
img { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 5; padding: .7rem; background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: none; }
.header, .footer { background: var(--black); color: var(--white); }
.header { border-bottom: 3px solid var(--red); }
.header-line { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4.35rem; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .54rem; font: italic 400 clamp(1.55rem, 4.7vw, 2.4rem)/1 var(--headline); letter-spacing: -.02em; color: var(--white); text-decoration: none; }
.brand-art { position: relative; display: block; width: clamp(8rem, 31vw, 11rem); aspect-ratio: 3; overflow: hidden; mix-blend-mode: screen; }
.brand-art img { position: absolute; top: 50%; left: 50%; width: 176%; max-width: none; height: auto; transform: translate(-47.05%, -51.2%); }
.bolt { flex: 0 0 auto; width: .67em; height: .84em; background: var(--red-light); clip-path: polygon(45% 0, 100% 0, 66% 38%, 93% 38%, 10% 100%, 40% 52%, 0 52%); }
.header-newsletter { display: inline-flex; align-items: center; min-height: 2.75rem; border: 1px solid #6e6262; padding: .4rem .85rem; font-weight: 700; color: var(--white); text-decoration: none; font-size: .875rem; }
.header-newsletter:hover { background: #302727; }
.nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.65rem, 2.3vw, 1.9rem); }
.nav a { display: inline-flex; align-items: center; min-height: 2.8rem; padding: .4rem 0; border-bottom: 3px solid transparent; color: #dedada; font-size: .9rem; font-weight: 700; text-decoration: none; }
.nav a[aria-current], .nav a:hover { color: var(--white); border-color: var(--red-light); }
.main { min-height: 62vh; padding-block: clamp(1.35rem, 4vw, 2.7rem) 4rem; }
.front-grid { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(16rem, 1fr); gap: clamp(1rem, 3vw, 1.85rem); }
.hero { position: relative; isolation: isolate; display: flex; align-items: end; overflow: hidden; min-height: clamp(24rem, 44vw, 31rem); background: #241e20; color: var(--white); }
.hero img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { z-index: -2; object-fit: cover; object-position: 55% 50%; }
.hero::after { content: ''; z-index: -1; background: linear-gradient(0deg, #160e10 0%, rgba(28,15,18,.84) 26%, rgba(26,17,18,.22) 68%, rgba(20,12,13,.12) 100%); }
.hero-content { padding: clamp(1.3rem, 4vw, 2.7rem); }
.hero h1 { margin: .4rem 0 .75rem; font-size: clamp(3rem, 7.4vw, 6rem); line-height: .83; letter-spacing: -.025em; }
.hero p { max-width: 39ch; color: #f0e9e8; margin-bottom: 1.15rem; }
.tag { display: inline-block; width: fit-content; color: var(--accent-text); font-size: .78rem; font-weight: 800; line-height: 1.25; letter-spacing: .07em; text-transform: uppercase; }
.hero .tag { color: var(--red-light); padding-left: .55rem; border-left: 3px solid var(--red-light); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
.tags time, .muted-label { color: var(--muted); font-size: .825rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .35rem; min-height: 2.75rem; width: fit-content; padding: .58rem .9rem; border: 1px solid var(--red); background: var(--red); color: var(--white); font: 700 .9rem/1.35 var(--body); text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.white { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.button.white:hover { background: var(--paper); border-color: var(--ink); }
.button.outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.button.outline:hover { background: var(--ink); color: var(--paper); }
.board { display: flex; flex-direction: column; padding: 1.2rem 1.25rem 1.25rem; border-top: 4px solid var(--red); background: var(--surface); }
.board h2, .section-head h2, .compose h2 { text-transform: uppercase; }
.board-head p { color: var(--muted); margin: .25rem 0 .45rem; }
.board-item { display: flex; flex-direction: column; gap: .18rem; padding: .85rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.board-item:hover strong { color: var(--accent-text); text-decoration: underline; }
.board-item strong { font-size: 1rem; line-height: 1.35; }
.board-location { color: var(--muted); font-size: .875rem; }
.board-button { margin-top: auto; min-width: 100%; }
.home-block { margin-top: clamp(2rem, 5vw, 3.4rem); }
.section-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem; align-items: baseline; padding-top: .85rem; border-top: 2px solid var(--ink); margin-bottom: 1rem; }
.text-link, .back { font-size: .875rem; font-weight: 700; }
.story-grid, .event-grid, .list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2.6vw, 1.5rem); }
.story { background: var(--surface); }
.story-link { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.story-link:hover :is(h2,h3) { color: var(--accent-text); text-decoration: underline; }
.story img { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; filter: saturate(.8) contrast(1.05); }
.story-copy { padding: .85rem 1rem 1rem; }
.story-copy :is(h2,h3) { font: 800 clamp(1.45rem, 3vw, 2.2rem)/1.02 var(--display); margin: .3rem 0 .45rem; }
.story-copy p { color: var(--muted); font-size: .9375rem; }
.event { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); border-top: 2px solid var(--red); padding: .95rem; }
.event-date { min-width: 2.6rem; display: flex; flex-direction: column; align-items: center; color: var(--accent-text); font-family: var(--display); line-height: .95; text-transform: uppercase; }
.event-date strong { font-size: 2.2rem; }
.event-date span { font-weight: 800; font-size: .95rem; letter-spacing: .06em; }
.event-info { min-width: 0; }
.event h3 { font: 800 1.45rem/1.03 var(--display); margin: .2rem 0; }
.event p { font-size: .9rem; color: var(--muted); }
.event .text-link { display: inline-block; margin-top: .5rem; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: .8rem 1.5rem; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.page-head p, .dek { max-width: 61ch; color: var(--muted); margin-top: .55rem; }
.dek { font-size: clamp(1.05rem, 2.5vw, 1.3rem); }
.filters, .form { display: grid; gap: .8rem; }
.filters { display: flex; align-items: end; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filters label { min-width: min(100%, 14rem); }
label { display: grid; gap: .3rem; color: var(--ink); font-weight: 600; font-size: .875rem; }
input, select, textarea { min-width: 0; width: 100%; min-height: 2.75rem; padding: .58rem .7rem; border: 1px solid var(--input-border); border-radius: 0; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--surface); }
select { appearance: none; padding-right: 1.9rem; background-image: linear-gradient(45deg, transparent 48%, var(--ink) 52%), linear-gradient(135deg, var(--ink) 48%, transparent 52%); background-position: calc(100% - 1.06rem) center, calc(100% - .76rem) center; background-size: .32rem .32rem; background-repeat: no-repeat; }
textarea { resize: vertical; }
.checkbox { display: flex; align-items: start; gap: .6rem; font-weight: 400; }
.checkbox input { flex: 0 0 1.12rem; width: 1.12rem; height: 1.12rem; min-height: 0; margin: .18rem 0 0; padding: 0; accent-color: var(--accent-text); }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.list-item, .compose, .empty { border-top: 2px solid var(--red); background: var(--surface); padding: 1.15rem; }
.list-item h2, .topics h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin: .3rem 0 .45rem; }
.list-item h2 a, .topics h2 a { color: var(--ink); text-decoration: none; }
:is(.list-item,.topics) h2 a:hover { color: var(--accent-text); text-decoration: underline; }
.list-item p { margin-top: .3rem; }
.form, .compose > p, .compose > form, .compose > a, .empty > a { margin-top: .8rem; }
.main > .compose { max-width: 48rem; margin-bottom: 1.5rem; }
.note { color: var(--muted); font-size: .875rem; }
.main > .note { margin-top: 1rem; }
.article { max-width: 51rem; }
.article > :is(.tags,.tag), .detail-grid .tags { margin-bottom: .5rem; }
.article h1, .detail-grid h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); overflow-wrap: anywhere; }
.article figure { margin: 1.35rem 0; }
.article figure img { width: 100%; height: auto; max-height: 32rem; object-fit: cover; }
.article figcaption { font-size: .825rem; color: var(--muted); margin-top: .28rem; }
.prose p, .prose li { margin: .85rem 0; max-width: 68ch; }
.article-sources { margin: 1.65rem 0; padding: 1rem 1.15rem; border-left: 2px solid var(--red); background: var(--surface); }
.article-sources h2 { font-size: 1.2rem; }
.article-sources ul { margin: .55rem 0 0; padding-left: 1.2rem; }
.article-sources li { margin: .35rem 0; }
.back { display: inline-block; margin-bottom: 1rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16.5rem, 1fr); align-items: start; gap: 1.45rem; }
.metadata { display: grid; gap: .5rem; margin: .9rem 0; }
.metadata dt { font-weight: 700; font-size: .875rem; }
.metadata dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.body-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.topics > article { display: flex; justify-content: space-between; align-items: center; gap: .4rem 1rem; border-top: 1px solid var(--line); padding: .9rem 0; }
.topics > article:last-child { border-bottom: 1px solid var(--line); }
.topics p, .response-count { color: var(--muted); font-size: .875rem; }
.response-count { flex-shrink: 0; }
.thread-body { margin-top: 1rem; }
.thread-replies { margin-block: 1.4rem; }
.thread-replies h2 { margin-bottom: .5rem; }
.reply { padding-block: .8rem; border-bottom: 1px solid var(--line); }
.reply h3 { font-size: 1.02rem; }
.reply p { margin-top: .35rem; overflow-wrap: anywhere; }
.feedback { margin-bottom: 1rem; padding: .7rem .95rem; border-left: 3px solid #227954; background: #e8f5ec; color: #184635; font-weight: 600; }
.feedback.error { border-color: var(--red); background: #f9e2e1; color: #7f151b; }
.footer-line { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; }
.footer p { color: #d4cbcb; margin-top: .45rem; font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; }
.footer-links a { color: #f5e9e9; font-size: .875rem; }
@media (max-width: 56rem) {
  .event-grid, .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 1.6rem); }
  .front-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 23rem; }
  .hero h1 { font-size: clamp(3.35rem, 10vw, 4.75rem); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-button { margin-top: .55rem; min-width: 0; }
  .page-head { flex-wrap: wrap; align-items: start; }
}
@media (max-width: 31rem) {
  .story-grid, .event-grid, .list-grid, .form-pair { grid-template-columns: minmax(0, 1fr); }
  .topics > article { align-items: start; flex-direction: column; }
  .filters label { flex-basis: 100%; }
  .hero img { object-position: 55% 50%; }
}
.header-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .45rem; }
.header-line > .brand { min-width: 0; overflow-wrap: anywhere; }
.brand-image { height: auto; max-height: 3.25rem; max-width: min(13rem, 40vw); object-fit: contain; }
.hero h1 { max-width: 13ch; overflow-wrap: anywhere; }
.article-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.editor-grid { grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 1fr); }
.media-field { display: grid; gap: .7rem; min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--line); }
.media-field legend { padding: 0 .25rem; font-weight: 700; }
.media-field input[type="file"] { text-overflow: ellipsis; }
.media-preview { width: 100%; height: 8rem; object-fit: cover; }
.logo-preview { justify-content: center; padding: .7rem; height: 5rem; background: var(--black); object-fit: contain; }
.edit-links { list-style: none; margin: .7rem 0 0; padding: 0; }
.edit-links li { border-top: 1px solid var(--line); }
.edit-links a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: .65rem; padding: .65rem 0; text-decoration: none; color: var(--ink); }
.edit-links a:hover strong { text-decoration: underline; }
.edit-links img { width: 100%; height: 3.5rem; object-fit: cover; }
.edit-links strong { display: block; margin-top: .1rem; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 44rem) {
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
}

@font-face {
  font-family: Anton;
  src: url("fonts/anton-latin.woff2") format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root { --headline: Anton, 'Arial Narrow', Impact, sans-serif; }
h1, h2, h3, .story-copy :is(h2,h3), .event h3 {
  font-family: var(--headline);
  font-weight: 400;
  text-transform: none;
}
:is(.board, .section-head, .compose) h2 { text-transform: none; }
.header-line { min-height: 5rem; }
.header-account { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem .82rem; background: var(--red); color: var(--white); text-decoration: none; font-size: .875rem; font-weight: 700; }
.header-account:hover { background: var(--accent-hover); }
.hero h1 { line-height: .99; letter-spacing: .005em; font-size: clamp(2.55rem, 5.4vw, 4.6rem); }
.editor-sidebar { display: grid; gap: 1.25rem; }
@media (max-width: 34rem) {
  .header-line { gap: .55rem; padding-block: .5rem; flex-wrap: wrap; }
  .header-actions { justify-content: flex-start; gap: .3rem; }
}

.palette-azul { --red: #2455a6; --red-light: #a9c9ff; --accent-hover: #1c4080; }
.palette-verde { --red: #225c45; --red-light: #9ee1bd; --accent-hover: #194333; }
.palette-naranja { --red: #8f430d; --red-light: #ffc38f; --accent-hover: #753608; }
.hero.cover-arriba img { object-position: 55% top; }
.hero.cover-abajo img { object-position: 55% bottom; }
.front-news { margin-bottom: 1.2rem; padding: .7rem 1rem .85rem; border-top: 3px solid var(--red); background: var(--surface); }
.front-news-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .45rem 1rem; }
.front-news-title h2 { font-size: clamp(1.45rem,2.5vw,1.85rem); }
.front-news ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem 1rem; list-style: none; padding: 0; margin: .6rem 0 0; }
.front-news li { display: grid; align-content: start; gap: .18rem; padding-top: .42rem; border-top: 1px solid var(--line); }
.front-news li strong { font-size: .91rem; line-height: 1.36; }
:is(.front-news,.news-list) h2 a, .front-news li a { color: var(--ink); text-decoration: none; }
:is(.front-news,.news-list) :is(h2,li) a:hover { color: var(--accent-text); text-decoration: underline; }
.news-list { display: grid; gap: 1rem; max-width: 54rem; }
.news-list article { padding: .95rem 1rem; border-left: 2px solid var(--red); background: var(--surface); }
.news-with-photo { display: grid; grid-template-columns: clamp(5rem, 19vw, 8rem) minmax(0, 1fr); align-items: start; gap: .75rem 1.05rem; }
.news-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.news-list h2 { margin-block: .32rem .45rem; font-size: clamp(1.4rem,3vw,2.15rem); }
.news-list p { color: var(--muted); }
.article-instagram figure { max-width: 32rem; }
.article-instagram figure img { max-height: none; object-fit: contain; }
.event-date .event-year { margin-top: .22rem; color: var(--muted); font: 600 .8rem/1 var(--body); letter-spacing: 0; }
.event-sources { margin-top: .42rem; }
.event-sources .text-link { margin-top: 0; }
.event-status { margin-top: .27rem; font-weight: 800; }
@media (max-width: 44rem) {
  .front-news ul { grid-template-columns: 1fr; }
}

.front-grid { grid-template-columns: minmax(0, 1fr); }

/* --- Pulido dic 2026 --- */
.news-photo { object-fit: cover; border-radius: 2px; }
.news-list article { position: relative; transition: background-color .15s ease; }
.news-list article:hover { background: color-mix(in srgb, var(--surface) 88%, var(--red)); }
.news-list h2 a::after { content: ""; position: absolute; inset: 0; }
.news-list h2 a:focus-visible { outline: none; }
.news-list article:has(h2 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.prose h2 { margin: 1.9rem 0 .4rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.15; max-width: 34ch; }
.prose ul { padding-left: 1.2rem; }
.prose li strong { color: var(--ink); }
.prose a { color: var(--accent-text); }
.article-gallery { margin: 1.8rem 0; }
.article-gallery h2 { font-size: 1.2rem; margin-bottom: .7rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .6rem; }
.article .gallery-grid figure { margin: 0; max-width: none; }
.article .gallery-grid img { aspect-ratio: 4 / 5; object-fit: cover; max-height: none; }
.ig-link { margin-top: 1.4rem; }
.ig-link a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid var(--red-light); color: var(--ink); font-weight: 700; text-decoration: none; }
.ig-link a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
@media (max-width: 380px) { .nav { gap: 0 .55rem; } .nav a { font-size: .84rem; } }

/* Fondo 2026: dúo tono rojo con las fotos del archivo */
.season-collage { opacity: .34; inset: 4.5rem 0 0; mask-image: linear-gradient(180deg, transparent, #000 10%, #000 62%, transparent 96%); }
.season-collage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(181,32,41,.55), rgba(20,10,14,.35) 55%, rgba(181,32,41,.4)); mix-blend-mode: multiply; }
.season-collage > div { outline: 3px solid #0c0a0b; }
.season-collage > div::before { filter: grayscale(1) contrast(1.25) brightness(.9); background-position: var(--rider-position, 50%) 30%; }
@media (max-width: 50rem) { .season-collage { opacity: .28; inset: 7rem 0 0; } }

/* Noticia de la semana en la portada */
.hero-week { display: block; max-width: 34rem; margin-top: 1.1rem; padding: .7rem .9rem; border-left: 3px solid var(--red); background: rgba(10, 10, 10, .62); color: var(--white); font-weight: 700; line-height: 1.3; text-decoration: none; }
.hero-week span { display: block; margin-bottom: .2rem; color: var(--red-light); font-size: .78rem; font-weight: 800; }
.hero-week:hover { background: rgba(10, 10, 10, .8); }

/* ===== Comunidad: foro, cuenta y comentarios ===== */
.nav-cuenta { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.comunidad { margin-top: 1.4rem; }
.tarjeta { padding: clamp(1rem, 2.4vw, 1.5rem); border: 1px solid var(--line); border-radius: 2px; background: var(--surface); }
.tarjeta h2 { margin: 0 0 .9rem; font-size: 1.35rem; }
.cargando, .vacio { color: var(--muted); }
.puerta { max-width: 40rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-left: 4px solid var(--red); background: var(--surface); }
.puerta p { margin: 0 0 .6rem; }
.puerta-acciones, .form-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem 1.1rem; border: 1px solid var(--red); background: var(--red); color: var(--white); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.1); }
.button:disabled { opacity: .55; cursor: wait; }
.button-secundario { background: transparent; border-color: var(--line); color: var(--ink); }
.button.peligro { background: transparent; border-color: #c0392b; color: #ff8a7a; }
.enlace { padding: .35rem 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: .88rem; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 2.75rem; }
.enlace.peligro { color: #ff8a7a; }
.formulario { display: grid; gap: .9rem; }
.formulario label { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; }
.formulario label small { color: var(--muted); font-weight: 400; }
.formulario input:not([type=checkbox]), .formulario select, .formulario textarea, .buscar input {
  width: 100%; min-height: 2.75rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 2px;
  background: #0f0f10; color: var(--ink); font: inherit; font-size: 1rem; }
.formulario textarea { resize: vertical; line-height: 1.5; }
.formulario input:focus-visible, .formulario select:focus-visible, .formulario textarea:focus-visible, .buscar input:focus-visible,
.button:focus-visible, .enlace:focus-visible, .chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.formulario .check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
.formulario .check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: none; accent-color: var(--red); }
.nota { margin: 0; color: var(--muted); font-size: .88rem; }
.mensaje { margin: 0; padding: .6rem .75rem; border-left: 3px solid #3fb27f; background: rgba(63, 178, 127, .12); }
.mensaje-error { border-left-color: #e74c3c; background: rgba(231, 76, 60, .12); }
.dos-columnas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.estrecho { max-width: 28rem; }
.cuenta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; align-items: start; }
.cuenta-grid details { margin-top: .6rem; }
.cuenta-grid summary { cursor: pointer; color: var(--muted); }
.mis-anuncios { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .4rem; }
.mis-anuncios small { color: var(--muted); }
/* Foro */
.foro-barra { display: grid; gap: .9rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { min-height: 2.5rem; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.chip span { color: var(--muted); font-weight: 400; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.chip[aria-pressed="true"] span { color: rgba(255,255,255,.8); }
.foro-acciones { display: flex; flex-wrap: wrap; gap: .7rem; }
.buscar { flex: 1 1 16rem; }
#foro-form { margin-bottom: 1.2rem; }
.foro-resumen { margin: 0 0 .7rem; color: var(--muted); font-size: .9rem; }
.anuncios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.anuncio h3 { margin: .5rem 0; font-size: 1.15rem; line-height: 1.2; }
.anuncio-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: 0; color: var(--muted); font-size: .82rem; }
.anuncio-texto p, .comentario p { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.anuncio .contacto { margin: .4rem 0; overflow-wrap: anywhere; }
.anuncio .autor { margin: .6rem 0 0; color: var(--muted); font-size: .88rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.oculto { opacity: .55; }
.tag-aviso { background: #6b2a22; }
/* Comentarios */
.comentarios { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.comentarios h2 { margin-bottom: 1rem; }
.com-lista { display: grid; gap: .8rem; margin-bottom: 1.2rem; }
.comentario { padding: .8rem 1rem; border-left: 3px solid var(--line); background: var(--surface); }
.comentario-meta { margin: 0 0 .35rem; color: var(--muted); font-size: .85rem; }
.comentario-meta strong { color: var(--ink); }
/* Páginas legales */
.legal h1 { margin-bottom: 1rem; }
@media (max-width: 40rem) { .dos-columnas { grid-template-columns: 1fr; } .nav-cuenta { margin-left: 0; } }
.formulario > .enlace { justify-self: start; }
.formulario .check span small { display: inline; }

/* Portada: toda la foto lleva a la noticia de la semana */
.hero-foto { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 1; pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero:has(.hero-foto) { cursor: pointer; }
.hero:has(.hero-foto:hover) img { transform: scale(1.015); }
.hero img { transition: transform .4s ease; }
/* Carreras: toda la tarjeta lleva a su fuente */
.event { position: relative; transition: background-color .15s ease; }
.event-sources a:first-child::after { content: ""; position: absolute; inset: 0; }
.event:hover { background: color-mix(in srgb, var(--surface) 86%, var(--red)); }
.event:has(.event-sources a:first-child:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hero img { transition: none; } }
