/* Ficha de un evento (evento.php) y páginas de categoría (categoria.php) con la plantilla de lista. Se carga después
   de tema-plantilla.css: aquí van la base de la página (la portada la lleva dentro de index.html) y su diseño propio. */
:root { --accent:#1d1e20; --accent-bg:#f3f4f5; --accent-mid:#5f6468; --pop:#2f3033; --pop-bg:#f1f2f3; --card:#fff; --bg:#f8f9f9; --ink:#1d1e20; --mute:#8d9398; --line:#e6e7e9; --danger:#b42318; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; display:flex; flex-direction:column; color:var(--ink); font:16px/1.5 system-ui, sans-serif; }
[hidden] { display:none !important; }
button { font:inherit; color:inherit; cursor:pointer; }
button:focus-visible, a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
svg.i { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }

/* menú (arriba en pantallas grandes; barra inferior en el móvil) */
.app { flex:1; width:100%; }
.sidenav { display:flex; flex-direction:column; background:#fff; }
.brand { text-decoration:none; color:inherit; }
.logoimg { display:block; width:150px; height:auto; }
.mlogo { display:none; flex:none; } .mlogo img { display:block; height:24px; width:auto; }
.menu { display:flex; }
.menu a { position:relative; display:flex; align-items:center; gap:12px; text-decoration:none; font-weight:600; color:var(--mute); }
.menu svg.i { width:21px; height:21px; }
.content { min-width:0; display:flex; flex-direction:column; }
.topbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; }
.btn { display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); background:#fff; padding:6px 12px; color:var(--ink); text-decoration:none; }
.btn:hover { background:var(--accent-bg); }
.panel { flex:1; }
@media (max-width:860px) {
  body { padding-bottom:70px; }
  .sidenav { position:fixed; z-index:40; left:0; right:0; bottom:0; padding:6px 8px calc(6px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); box-shadow:0 -6px 20px #00000014; }
  .brand { display:none; }
  .mlogo { display:block; flex:1 1 100%; text-align:center; } .mlogo img { display:inline-block; height:36px; }
  .menu { flex-direction:row; justify-content:space-around; }
  .menu a { flex:1; flex-direction:column; gap:2px; padding:6px 2px; font-size:.72rem; border-radius:3px; text-align:center; }
  .topbar { padding:12px 14px; }
}

/* destacados: más bajos que en la portada, para que el evento se vea sin deslizar */
html.t6 .pficha #slider .slide { min-height:clamp(220px, 32vh, 300px); }

/* ficha */
.tficha { margin-top:18px; }
.thead { display:grid; grid-template-columns:62px minmax(0,1fr); align-items:start; gap:22px; padding-bottom:20px; border-bottom:1px solid var(--hair); }
.thead .rdate { grid-area:auto; padding-top:4px; }      /* en las filas del móvil la fecha usa una zona con nombre; aquí no */
.tcat { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.tcat a { display:inline-flex; align-items:center; gap:7px; color:var(--accent-mid); text-decoration:none; }
.tcat a::before { content:""; width:9px; height:9px; border-radius:50%; background:var(--c); }
.tcat a:hover { color:var(--ink); text-decoration:underline; }
.tcat em { display:inline-flex; align-items:center; gap:7px; color:#1f9d4d; font-style:normal; }
.tcat em::before { content:""; width:9px; height:9px; border-radius:50%; background:#22c55e; animation:led 1.2s ease-in-out infinite; }
.tcat .tdone { padding:3px 10px; border-radius:2px; background:var(--danger); color:#fff; }
.thead h1 { margin:6px 0 0; font-size:clamp(1.45rem, 3.4vw, 2.1rem); font-weight:800; line-height:1.18; letter-spacing:-.02em; overflow-wrap:anywhere; }
@media (prefers-reduced-motion:reduce) { .tcat em::before { animation:none; } }

.tbody { display:grid; grid-template-columns:320px minmax(0,1fr); align-items:start; gap:30px; padding-top:24px; }
.tbody.noimg { grid-template-columns:minmax(0,1fr); }
.tposter { display:block; width:100%; height:auto; border-radius:4px; background:var(--pop-bg); }
.tinfo { min-width:0; }
/* datos en casillas, como el bloque de filtros de la portada */
.tdata { display:flex; flex-wrap:wrap; gap:1px; margin:0; overflow:hidden; border:1px solid #dedee1; border-radius:4px; background:#cfd0d3; }
.tdata > div { flex:1 1 180px; min-width:0; padding:10px 16px 12px; background:#f2f2f2; }
.tdata > .full { flex-basis:100%; }
.tdata dt { color:#6b6e73; font-size:.78rem; }
.tdata dd { display:flex; align-items:flex-start; gap:8px; margin:3px 0 0; font-size:.95rem; font-weight:600; overflow-wrap:anywhere; }
.tdata dd svg.i { width:15px; height:15px; margin-top:4px; color:var(--c); stroke-width:2.6; }
.tdata dd span { min-width:0; }
.tacts { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
html.t6 .tacts a { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 20px; font-size:.84rem; }
.tacts svg.i { width:16px; height:16px; }
.tinfo h2 { margin:26px 0 6px; font-size:1rem; font-weight:800; }
.tdesc { margin:0; color:var(--accent-mid); font-size:.94rem; line-height:1.65; overflow-wrap:anywhere; }
.tmore { margin-top:30px; padding-top:20px; border-top:1px solid var(--hair); text-align:center; }
html.t6 .tmore a { display:inline-block; padding:9px 22px; }

@media (max-width:860px) {
  html.t6 .pficha #slider .slide { min-height:210px; }
  .tficha { margin-top:12px; }
  .thead { grid-template-columns:44px minmax(0,1fr); gap:14px; padding-bottom:14px; }
  .tbody { grid-template-columns:minmax(0,1fr); gap:16px; padding-top:16px; }
  .tposter { max-width:420px; margin:0 auto; }
  html.t6 .tacts a { flex:1 1 150px; }
}

/* páginas de categoría: título y las mismas filas que la portada */
.chead { margin-top:18px; padding-bottom:6px; }
.chead h1 { margin:0; font-size:clamp(1.45rem, 3.4vw, 2.1rem); font-weight:800; line-height:1.18; letter-spacing:-.02em; }
.chead p { margin:4px 0 0; color:var(--soft); font-size:.86rem; font-weight:600; }
.cmes { margin:22px 0 0; font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.evlink { color:inherit; text-decoration:none; }
html.t6 a.rimg { cursor:pointer; }
a.rimg img { display:block; width:100%; height:100%; border-radius:4px; background:var(--pop-bg); object-fit:cover; object-position:top; }
.cempty { padding:40px 12px; color:var(--mute); text-align:center; }
@media (max-width:860px) {
  html.t6 .clist .ev.row { grid-template-columns:44px 56px minmax(0,1fr); grid-template-areas:"date img body" ". act act"; align-items:start; gap:10px 12px; padding:16px 0; }
}
