/* ==========================================================================
   TEMA 2026 – «Filosofía y Ciencia» (brandbook Día Mundial de la Filosofía 2026)
   Solo se carga en las páginas de la edición 2026 (llevan <body class="… tema-2026">).
   Cada año se crea un tema nuevo (tema-2027.css) y las demás páginas no se tocan.

   PIEZAS QUE ENTREGARÁ EL DISEÑO (cuando lleguen, ver docs/GUIA.md, sección 8):
   - Textura de fondo  → cambiar --ruido (más abajo) por url('../img/tema-2026-fondo.webp')
   - Círculo con la leyenda «Diálogo entre filosofía y ciencia» → hoy hay uno PROVISIONAL (recortado del brandbook): cambiar el src del <figure class="hero-arte"> en la portada
   - Fotos de ciencia teñidas de azul → usarlas en .hero-arte o como fondo de la portada
   La cabecera de 2026 usa el azul de marca y el logo conjunto DIF / Nueva Acrópolis.
   Colores y tipografía son los del brandbook: azul #2a6394, verde-azulado #28a090, dorado #deb759, Figtree.
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

body.tema-2026 {
  --oro: #deb759;                 /* dorado de marca: usar en títulos GRANDES (contraste 3,3:1 sobre el azul) */
  --azul: #2a6394;                /* azul de marca */
  --azul-claro: #2f6fa5;
  --teal: #28a090;                /* verde-azulado de marca (acentos; no usar texto dorado encima) */
  --fondo-1: #064d87;             /* degradado del brandbook: azul profundo → … */
  --fondo-2: #054f78;
  --fondo-3: #0a6270;             /* … → verde-azulado profundo */
  --ruido: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --fondo-tema: var(--ruido), radial-gradient(circle at 100% 35%, rgba(40, 160, 144, .5), transparent 48%), linear-gradient(135deg, var(--fondo-1) 0%, var(--fondo-2) 55%, var(--fondo-3) 100%);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Fondos */
.tema-2026 .hero-azul, .tema-2026 .en-vivo, .tema-2026 .banda-paises { background: var(--fondo-tema); }
.tema-2026 .en-vivo { background: var(--ruido), linear-gradient(160deg, var(--fondo-2) 0%, var(--fondo-3) 100%); }

/* Portada con el tema del año */
.tema-2026 .hero-azul.hero-tema { padding: 2.2rem 0 3rem; text-align: left; }
.tema-2026 .hero-tema .wrap { display: grid; gap: 1.2rem; justify-items: start; }
.tema-2026 .hero-tema .hero-logo { width: min(100%, 420px); margin: 0; }
.tema-2026 .hero-tema .sup { margin: 0; color: #fff; font-weight: 700; letter-spacing: .18em; font-size: .95rem; }
.tema-2026 .hero-tema h1 { margin: 0; color: var(--oro); font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: .01em; font-size: clamp(2.8rem, 9vw, 5.4rem); }
.tema-2026 .hero-tema .tema-titulo { display: inline-block; position: relative; text-align: center; }   /* la «Y» queda siempre al centro, entre las dos líneas */
.tema-2026 .hero-tema .t1, .tema-2026 .hero-tema .t2 { display: block; }
.tema-2026 .hero-tema .tema-y {
  position: absolute; left: 50%; top: 1.3em; transform: translateX(-50%); z-index: 1; display: grid; place-items: center; width: .9em; height: .9em;
  border-radius: 50%; background: var(--teal); color: #fff; font-size: .55em; font-weight: 800; text-transform: uppercase; line-height: 1;
}
.tema-2026 .hero-tema .lema { margin: .2rem 0 0; color: #fff; font-weight: 600; font-size: clamp(1.1rem, 2.6vw, 1.5rem); max-width: 26ch; line-height: 1.3; }
.tema-2026 .hero-tema .cta { margin-top: .8rem; }
.tema-2026 .hero-tema .hero-arte { margin: 0; }
.tema-2026 .hero-tema .hero-arte img { width: 100%; height: auto; }

/* Celular y tableta: una sola columna centrada y simétrica (logo, tema, frase, círculo, botones) */
@media (max-width: 899px) {
  .tema-2026 .hero-azul.hero-tema { padding: 1.4rem 0 2rem; text-align: center; }
  .tema-2026 .hero-tema .wrap { justify-items: center; gap: .9rem; }
  .tema-2026 .hero-tema .hero-logo { width: min(80%, 300px); }
  .tema-2026 .hero-tema .hero-arte { order: 4; width: clamp(150px, 46vw, 260px); }
  .tema-2026 .hero-tema .cta { order: 5; justify-content: center; margin-top: .3rem; }
  .tema-2026 .hero-tema h1 { font-size: clamp(2.6rem, 12vw, 4.4rem); }
}
@media (min-width: 900px) {
  .tema-2026 .hero-tema .wrap:has(.hero-arte) { grid-template-columns: 1fr minmax(320px, 500px); column-gap: 3rem; align-items: center; }
  .tema-2026 .hero-tema .wrap:has(.hero-arte) > *:not(.hero-arte) { grid-column: 1; }
  .tema-2026 .hero-tema .hero-arte { grid-column: 2; grid-row: 1 / span 5; justify-self: end; align-self: center; width: 100%; }
}

/* Botones y elementos de acento */
.tema-2026 .boton { background: var(--oro); color: #0c2f4a; }
.tema-2026 .boton--claro { background: transparent; color: #fff; }
.tema-2026 .chip[aria-pressed="true"] { background: var(--oro); border-color: var(--oro); color: #0c2f4a; }
.tema-2026 .en-vivo h2, .tema-2026 .paises h2, .tema-2026 .pais h3 { color: var(--oro); }
.tema-2026 .charla-item[aria-current="true"] { border-color: var(--oro); }
.tema-2026 .estado-proxima { background: var(--oro); color: #0c2f4a; }
.tema-2026 .acordeon > summary { background: linear-gradient(var(--azul) 85%, var(--azul-claro) 100%); }
.tema-2026 .acordeon { color: #0b4a73; }

/* Cabezote 2026: piezas entregadas por diseño en noviembre. */
.tema-2026 .cabecera { background: var(--azul); }
.tema-2026 .cabecera .logo { flex: 0 0 auto; }
.tema-2026 .cabecera .logo img { width: clamp(190px, 24vw, 280px); height: auto; }
.tema-2026 .cabecera .wrap { min-height: 88px; }
.tema-2026 .menu-btn { background: #16476e; }
@media (min-width: 861px) {
  .tema-2026 .menu a { color: #fff; }
  .tema-2026 .menu a:hover, .tema-2026 .menu a:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
  .tema-2026 .submenu { background: #16476e; }
}
@media (max-width: 860px) {
  .tema-2026 .menu { max-height: calc(100dvh - 88px); }
}

/* Arte oficial completo: evita recortar la leyenda en cualquier pantalla. */
.tema-2026 .hero-oficial { padding: 0; margin: 0; background: #113f64; }
.tema-2026 .hero-oficial .arte-oficial { display: block; width: 100%; height: auto; }
.tema-2026 .hero-oficial .cta { margin: 0; padding: 1.2rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.tema-2026 .hero-resumen { display: none; }
@media (max-width: 600px) {
 .tema-2026 .hero-resumen { display: block; color: #fff; text-align: center; padding-top: 1.2rem; }
 .tema-2026 .hero-resumen p { margin: .3rem 0; }
 .tema-2026 .hero-resumen strong { color: var(--oro); font-size: 1.5rem; }
}

/* ---------- Webinar único 2026 (inscripción por Zoom) ---------- */
/* Botón Zoom (brandbook): fondo azul con textura, círculo blanco con la cámara y texto blanco. */
.tema-2026 .boton-zoom {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: .45rem 1.3rem .45rem .45rem;
  border-radius: 999px; background: var(--ruido), linear-gradient(135deg, #1c5f97, #2a6394); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 1.05rem; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 6px 18px rgba(0,0,0,.25);
  transition: transform .15s, box-shadow .15s;
}
.tema-2026 .boton-zoom:hover, .tema-2026 .boton-zoom:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 2px var(--oro), 0 8px 22px rgba(0,0,0,.3); }
.tema-2026 .boton-zoom strong { font-weight: 800; letter-spacing: .01em; }
.tema-2026 .zoom-icono { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #1c5f97; flex: 0 0 auto; }
.tema-2026 .boton-zoom--grande { font-size: 1.2rem; min-height: 56px; padding-right: 1.6rem; }
.tema-2026 .boton-zoom--grande .zoom-icono { width: 44px; height: 44px; }
.tema-2026 .hero-oficial .cta { align-items: center; }

.tema-2026 .webinar { background: var(--ruido), linear-gradient(160deg, var(--fondo-2) 0%, var(--fondo-3) 100%); color: #fff; padding: 2.8rem 0 3rem; }
.tema-2026 .webinar .wrap { display: grid; gap: 2rem; align-items: center; }
.tema-2026 .webinar h2 { margin: 0; color: var(--oro); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; }
.tema-2026 .webinar .lema { margin: .5rem 0 1rem; font-size: 1.15rem; font-weight: 600; }
.tema-2026 .webinar-fecha { margin: 0 0 1.2rem; font-size: 1.3rem; font-weight: 700; }
.tema-2026 .webinar-nota { margin: .8rem 0 0; font-size: .9rem; opacity: .85; max-width: 46ch; }
.tema-2026 .horarios { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1.2rem 1.4rem; }
.tema-2026 .horarios h3 { margin: 0 0 .8rem; color: var(--oro); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; }
.tema-2026 .horarios dl { margin: 0; display: grid; gap: .7rem; }
.tema-2026 .horarios dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; align-items: baseline; padding-bottom: .7rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.tema-2026 .horarios dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.tema-2026 .horarios dt { font-weight: 800; font-size: 1.15rem; color: #fff; }
.tema-2026 .horarios dd { margin: 0; }
@media (min-width: 900px) { .tema-2026 .webinar .wrap { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
@media (max-width: 480px) { .tema-2026 .horarios dl > div { grid-template-columns: 1fr; gap: .1rem; } }

/* Afiches de eventos por país: se ven completos (sin recorte) con un resumen debajo. */
.tema-2026 .galeria--afiches { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; align-items: start; }
.tema-2026 .galeria--afiches .evento { background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.tema-2026 .galeria--afiches a { aspect-ratio: auto; border-radius: 0; background: transparent; }
.tema-2026 .galeria--afiches img { height: auto; object-fit: contain; }
.tema-2026 .evento-info { padding: .8rem 1rem 1rem; }
.tema-2026 .evento-info p, .tema-2026 .evento-info h4 { margin: 0; }
.tema-2026 .evento-fecha { color: var(--oro); font-weight: 700; }
.tema-2026 .evento-tipo { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-top: .3rem !important; }
.tema-2026 .evento-info h4 { font-size: 1.05rem; line-height: 1.25; margin: .2rem 0 .3rem; color: #fff; }
.tema-2026 .evento-quien { font-size: .9rem; font-style: italic; opacity: .9; }
.tema-2026 .evento-lugar { font-size: .9rem; margin-top: .4rem !important; opacity: .9; }
.tema-2026 .proximamente { background: rgba(255,255,255,.08); border-radius: 10px; padding: 1.2rem 1.4rem; max-width: 52ch; }
.tema-2026 .proximamente p:first-child strong { color: var(--oro); font-size: 1.3rem; }

/* Hero: el arte se ajusta a la altura de la pantalla para que los botones (Zoom / Actividades) se vean sin hacer scroll.
   180px = cabecera (88px) + franja de botones (~90px). En pantallas muy anchas recorta un poco arriba y abajo,
   nunca más de lo necesario (mínimo 36vw de alto) para no tocar el texto del arte. En celular no recorta nada. */
.tema-2026 .hero-oficial .arte-oficial {
  height: min(56.25vw, max(calc(100vh - 180px), 36vw));
  height: min(56.25vw, max(calc(100svh - 180px), 36vw));
  object-fit: cover; object-position: 50% 40%;
}
