/* Sazón Colombia — revista de cocina. Terracota de fogón + mostaza de achiote + crema de
   maíz de fondo. Familia visual con OIS Tamales (#C2410C). Titulares en Bricolage Grotesque, lectura en Literata. */
:root {
  --suelo: #fdf9f3;
  --tinta: #2b1a10;
  --tenue: #6e5240;
  --linea: #ecdfcd;
  --caja: #f7ecdc;
  --selva: #c2410c;
  --caribe: #a3720b;
  --sol: #f2b705;
  --sombra: 0 1px 2px rgba(43, 26, 16, .08), 0 8px 24px rgba(43, 26, 16, .1);
  --medida: 68ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --suelo: #1a120b; --tinta: #f3e9db; --tenue: #c2ab92; --linea: #3a2c1f; --caja: #241a11;
    --selva: #ff7a45; --caribe: #e0aa3d; --sol: #f5c842; --sombra: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --suelo: #1a120b; --tinta: #f3e9db; --tenue: #c2ab92; --linea: #3a2c1f; --caja: #241a11;
  --selva: #ff7a45; --caribe: #e0aa3d; --sol: #f5c842; --sombra: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--suelo); color: var(--tinta); font: 400 1.125rem/1.72 "Literata", Georgia, "Times New Roman", serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--caribe); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, .marca, .bloque-tit, .tarjeta-tit, .antetitulo, .caja-titulo, .menu a {
  font-family: "Bricolage Grotesque", system-ui, "Segoe UI", sans-serif; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; color: var(--tinta); }
h1 { font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin: .2em 0 .35em; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.05rem); margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
h3 { font-weight: 600; font-size: 1.28rem; margin: 1.8em 0 .45em; scroll-margin-top: 90px; }
p { margin: 0 0 1.05em; }

.envoltura { width: min(1180px, 100% - 32px); margin-inline: auto; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--sol); color: #111; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.saltar:focus { left: 8px; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--suelo) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.marca { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.25rem; color: var(--tinta); text-decoration: none; letter-spacing: -.02em; }
.marca b { font-weight: 800; color: var(--selva); }
.marca-sol { width: 14px; height: 14px; border-radius: 50%; background: var(--sol); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sol) 30%, transparent); }
.menu { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.menu a { padding: 8px 12px; border-radius: 999px; color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.menu a:hover, .menu a[aria-current] { background: var(--caja); color: var(--selva); }

/* Portada */
.heroe { position: relative; }
.heroe .portada { margin: 0; }
.heroe .portada img { width: 100%; height: min(78vh, 680px); object-fit: cover; }
.heroe .portada figcaption { position: absolute; right: 12px; bottom: 8px; color: #fff; font-size: .72rem; opacity: .85; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.heroe .portada figcaption a { color: #fff; }
.heroe::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,24,18,.2) 0%, rgba(6,24,18,.38) 42%, rgba(6,24,18,.86) 100%); pointer-events: none; }
.heroe-texto { text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.heroe-texto { position: absolute; left: 0; right: 0; bottom: clamp(24px, 6vw, 64px); z-index: 2; color: #fff; }
.heroe-texto h1 { color: #fff; max-width: 16ch; }
.heroe-texto .entrada { color: #eef4f0; max-width: 56ch; }
.antetitulo { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--caribe); margin: 0; }
.heroe-texto .antetitulo { color: var(--sol); }
.entrada { font-size: 1.22rem; line-height: 1.6; color: var(--tenue); max-width: var(--medida); }

/* Bloques y tarjetas */
.bloque { padding: 56px 0 8px; }
.bloque-tit { font-size: 1.5rem; font-weight: 800; margin: 0 0 20px; }
.rejilla { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rejilla-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tarjeta { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--tinta); background: var(--suelo); border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; box-shadow: var(--sombra); transition: transform .2s ease, border-color .2s ease; }
.tarjeta:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--caribe) 40%, var(--linea)); }
.tarjeta-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.tarjeta-sec { margin: 10px 16px 0; font: 600 .74rem/1 "Bricolage Grotesque", sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--caribe); }
.tarjeta-tit { margin: 0 16px; font-weight: 800; font-size: 1.14rem; line-height: 1.2; }
.ver-todas { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--caribe); text-decoration: none; }
.ver-todas:hover { text-decoration: underline; }
/* Temporada (portada): una franja con fondo para que se note qué toca ahora */
.temporada { margin-top: 48px; padding: 32px clamp(16px, 3vw, 32px) 32px; background: var(--caja); border-radius: 22px; }
.temporada .bloque-tit { margin-top: 4px; }
.tarjeta-desc { margin: 0 16px 16px; font-size: .92rem; line-height: 1.5; color: var(--tenue); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Artículo */
.articulo { padding: 28px 0 64px; }
.articulo-cab { max-width: 860px; }
.meta { font-size: .9rem; color: var(--tenue); }
.migas { font-size: .88rem; color: var(--tenue); margin-bottom: 18px; }
.migas a { color: var(--tenue); }
.portada { margin: 24px 0 8px; }
.articulo > .portada img { border-radius: 16px; width: 100%; max-height: 560px; object-fit: cover; }
figure { margin: 28px 0; }
figcaption { font-size: .86rem; color: var(--tenue); margin-top: 8px; line-height: 1.5; }
.credito { display: inline-block; font-size: .76rem; opacity: .9; }
.credito a { color: inherit; }
.foto img { border-radius: 12px; width: 100%; }
.texto { max-width: var(--medida); }
.articulo .texto { margin-top: 12px; }
.texto ul, .texto ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.texto li { margin: .35em 0; }
.texto li::marker { color: var(--caribe); }
.indice { max-width: var(--medida); background: var(--caja); border-radius: 14px; padding: 16px 20px; margin: 24px 0; }
.indice ol { margin: 6px 0 0; padding-left: 1.2em; columns: 2 220px; font-size: .96rem; }
.indice a { color: var(--tinta); }
.caja { background: var(--caja); border-radius: 14px; padding: 18px 20px; margin: 26px 0; border-left: 4px solid var(--selva); }
.caja-consejo { border-left-color: var(--sol); }
.caja-titulo { font-weight: 800; margin: 0 0 8px; font-size: 1rem; letter-spacing: -.01em; }
.caja ul { margin: 0; padding-left: 1.2em; }
.caja p:last-child { margin-bottom: 0; }
.faq { border-bottom: 1px solid var(--linea); padding: 14px 0; }
.faq summary { cursor: pointer; font: 600 1.05rem/1.35 "Bricolage Grotesque", sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--caribe); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--tenue); }
.relacionados { margin-top: 56px; }

/* Video liviano: la miniatura carga primero; YouTube solo si tocan */
.video { position: relative; margin: 32px 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video .play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--sol); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.video .play::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 22px solid #111; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video .vtitulo { position: absolute; left: 16px; right: 16px; bottom: 12px; color: #fff; font: 600 .95rem/1.3 "Bricolage Grotesque", sans-serif; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Pie */
.pie { margin-top: 48px; background: var(--selva); color: #e7f1ec; padding: 40px 0 24px; }
/* Antes: `:root:not([data-theme="light"]) .pie { color: inherit }` aplicaba también en modo claro y dejaba
   el texto del pie oscuro sobre fondo verde oscuro (ilegible). El modo oscuro va aparte, abajo. */
:root[data-theme="dark"] .pie { background: #0a1f18; color: #d9e6df; }
.pie-fila { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pie-marca { font: 600 1.3rem "Bricolage Grotesque", sans-serif; margin: 0 0 6px; color: #fff; }
.pie-marca b { color: var(--sol); font-weight: 800; }
.pie-lema { max-width: 52ch; font-size: .92rem; opacity: .9; }
.pie nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; }
.pie a { color: #fff; font-size: .95rem; }
.pie-copy { font-size: .8rem; opacity: .75; margin-top: 18px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pie { background: #0a1f18; color: #d9e6df; } }
:root[data-theme="dark"] .pie { background: #0a1f18; color: #d9e6df; }

@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .cabecera-fila { min-height: auto; padding: 10px 0 6px; }
  .menu { width: 100%; margin: 0 -8px; }
  .heroe .portada img { height: 72vh; }
  .entrada { font-size: 1.1rem; }
}
