/* ═══════════════════════════════════════════════════════════
   Radio Emmanuel · Temporadas v1.1
   Solo aplica cuando js/temporada.js pone html[data-season].
   Sin temporada, este archivo no cambia nada.
═══════════════════════════════════════════════════════════ */

/* ── Acción de Gracias: "La mesa de la cosecha" ──────────
   Tostado (noche), calabaza (dorado), arcilla (cielo), trigo (papel). */
:root[data-season='gracias'] {
  --night: #2a1a12;
  --night-2: #3d271c;
  --night-soft: #e3cdb9;
  --deep: #1d120c;
  --gold: #eaa045;
  --gold-2: #d98a2b;
  --gold-ink: #2a1a12;
  --sky: #9f4528;
  --sky-a: #ab5233;
  --sky-b: #a24a2c;
  --sky-ink: #ffffff;
  --sky-soft: #f4d8c9;
  --paper: #f5eee3;
  --paper-2: #e9dfcf;
  --paper-ink: #2a1a12;
  --paper-soft: #6b4e3d;
  --harvest: #f5eee3;
  --harvest-ink: #2a1a12;
  --harvest-soft: #6b4e3d;
  --harvest-line: #dccdb8;
  --harvest-accent: #a2462a;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;

  --hero-bg: var(--night);  --hero-ink: #fff8f0;  --hero-soft: var(--night-soft);
  --verse-bg: var(--deep);  --verse-ink: #fff8f0; --verse-soft: var(--night-soft);
  --foot-bg: var(--deep);   --tile: var(--night-2); --tile-ink: #fff8f0;
  --bar-bg: var(--night);   --bar-ink: #fff8f0;
}
:root[data-season='gracias'][data-theme='day'] {
  --hero-bg: #f6ecdf;  --hero-ink: var(--night);  --hero-soft: #6b4e3d;
  --verse-bg: #fffaf3; --verse-ink: var(--night); --verse-soft: #6b4e3d;
  --foot-bg: #efe2d0;  --tile: #fffaf3;           --tile-ink: var(--night);
  --bar-bg: #fffaf3;   --bar-ink: var(--night);
  --harvest: #fffaf3;
}

/* Colores fijos del tema normal que pasan a la paleta de otoño */
:root[data-season='gracias'] .btn-accent:hover,
:root[data-season='gracias'] .tile-accent:hover { background: #f2b462; }
:root[data-season='gracias'] .btn-ink:hover { background: #4a2f22; }
:root[data-season='gracias'] .play-big:hover { background: #47301f; }
:root[data-season='gracias'] .reaction-btn { background: rgba(42,26,18,.12); }
:root[data-season='gracias'] .reaction-btn:hover:not(.reacted) { background: rgba(42,26,18,.2); }
:root[data-season='gracias'] .day-tab:hover { background: #b9603f; }
:root[data-season='gracias'] .round-btn:hover { background: #e0d3bf; }
:root[data-season='gracias'] .archive-item:nth-child(4n+2),
:root[data-season='gracias'] .archive-item:nth-child(4n+3) { background: #e6d9c5; }
:root[data-season='gracias'] .hs-cap { background: linear-gradient(to top, rgba(29,18,12,.84), rgba(29,18,12,0)); }
:root[data-season='gracias'][data-theme='day'] .verse-title { color: #a2462a; }
:root[data-season='gracias'] .field ::placeholder { color: #8a6d5b; }
:root[data-season='gracias'] ::selection { background: var(--gold); color: var(--night); }
:root[data-season='gracias'] .topbar[data-ink='harvest'] { --tb-bg: var(--harvest); --tb-ink: var(--harvest-ink); }
:root[data-season='gracias'] .verse-quote p { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

/* ── La sección de la temporada ─────────────────────── */
.season {
  background: var(--harvest); color: var(--harvest-ink);
  padding-top: var(--gap-section);
}
.season-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.season-copy { grid-column: 1 / span 5; }
.season-photo { grid-column: 7 / span 6; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.season-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.season-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.season-count { font-weight: 600; color: var(--harvest-accent); }
.season-date { color: var(--harvest-soft); }
.season-date::before { content: '·'; margin-right: 14px; color: var(--harvest-line); }

.season-title {
  margin-top: 28px;
  font-family: var(--serif); font-optical-sizing: auto;
  font-size: clamp(3.25rem, 1.6rem + 6vw, 7.5rem); font-weight: 400; font-style: italic;
  line-height: .92; letter-spacing: -0.015em; text-wrap: balance;
}
.season-lead {
  margin-top: clamp(28px, 3vw, 44px);
  font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.02em;
  max-width: 30ch; text-wrap: pretty;
}

/* Tres motivos: renglones con línea fina, sin tarjetas */
.season-reasons {
  list-style: none; margin: clamp(72px, 8vw, 128px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3vw, 48px);
}
.season-reason { border-top: 1px solid var(--harvest-line); padding: 28px 0 0; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.season-reason h3 { font-family: var(--serif); font-size: clamp(1.625rem, 1.2rem + 1vw, 2.25rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.season-reason p { font-size: var(--step-body); line-height: 1.5; max-width: 34ch; color: var(--harvest-ink); }
.season-reason span { font-size: var(--step-small); font-weight: 600; color: var(--harvest-soft); }

/* Franja del Salmo 100:4 sobre hojas de otoño */
.season-band {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: var(--gap-section);
  min-height: clamp(420px, 62vh, 640px);
  display: grid; align-items: center;
  color: #fff8f0; background: var(--deep);
}
.season-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.season-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(29,18,12,.86) 0%, rgba(29,18,12,.62) 48%, rgba(29,18,12,.18) 100%); }
.season-band-in { padding-block: clamp(64px, 8vw, 120px); }
.season-verse { max-width: 100%; }
.season-verse p { font-family: var(--serif); font-optical-sizing: auto; font-size: clamp(2rem, 1.1rem + 3vw, 4.25rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; max-width: 18ch; }
.season-verse footer { margin-top: 28px; font-size: var(--step-body); font-weight: 600; color: #f3c27e; }

/* Momento único: la franja se abre desde el centro al llegar a ella */
.season-band.is-waiting { clip-path: inset(8% 6% round 24px); }
.season-band.is-waiting .season-band-img { transform: scale(1.12); }
.season-band.is-waiting .season-verse { opacity: 0; transform: translateY(16px); }
.season-band, .season-band-img, .season-verse { transition: clip-path 1.1s cubic-bezier(.16,1,.3,1), transform 1.6s cubic-bezier(.16,1,.3,1), opacity .9s ease .25s; }
.season-band { clip-path: inset(0 0 round 0); }

.season-close { padding-block: clamp(64px, 7vw, 112px) clamp(56px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px 24px; align-items: end; }
.season-invite { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 26ch; text-wrap: pretty; }
.season-actions { grid-column: 8 / span 5; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.season-sign { grid-column: 1 / -1; margin-top: clamp(24px, 3vw, 40px); padding-top: 24px; border-top: 1px solid var(--harvest-line); font-family: var(--serif); font-style: italic; font-size: var(--step-body); color: var(--harvest-soft); }
.btn-season { background: var(--harvest-accent); color: #fff; }
.btn-season:hover { background: #8a3a22; }
:root[data-season='gracias'] .season :focus-visible { outline-color: var(--harvest-accent); }

@media (max-width: 1100px) {
  .season-copy { grid-column: 1 / span 6; }
  .season-photo { grid-column: 7 / span 6; aspect-ratio: 1 / 1; }
  .season-actions { grid-column: 1 / -1; }
  .season-invite { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .season-top { grid-template-columns: 1fr; gap: 40px; }
  .season-copy, .season-photo { grid-column: 1; }
  .season-photo { aspect-ratio: 4 / 3; }
  .season-reasons { grid-template-columns: 1fr; row-gap: 36px; margin-top: 64px; }
  .season-when { flex-direction: column; gap: 4px; }
  .season-date::before { content: none; }
  .season-band { min-height: 0; }
  .season::after { content: none; }
  .season-band::after { background: linear-gradient(180deg, rgba(29,18,12,.55) 0%, rgba(29,18,12,.86) 100%); }
  .season-close { grid-template-columns: 1fr; }
  .season-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .season-band, .season-band-img, .season-verse { transition: none; }
}
