/* ═══════════════════════════════════════════════════════════════════════
   Descubre Bareyo · v3 — SUBPÁGINAS DE SECCIÓN (css/seccion.css)
   patrimonio.html · rutas.html · playas-y-costa.html · negocios.html · cumbres.html · agenda.html · oda.html · el-tiempo.html
   Va DESPUÉS de styles.css y styles-v3.css (reutiliza su barra superior, tokens, tarjetas de modo y pie).
   Solo variables semánticas de styles-v3 (--surface, --text, --border…): el modo oscuro sale gratis.
   ═══════════════════════════════════════════════════════════════════════ */

/* styles.css fija html/body a 100% con overflow:hidden (la app es un mapa a pantalla completa). Estas páginas son
   documentos normales que scrollean con la ventana. */
html.pagina-seccion, html.pagina-seccion body {
    height: auto; min-height: 100%; overflow: visible; overscroll-behavior: auto;
}
html.pagina-seccion { --sec-acento: #416930; scroll-padding-top: 132px; }
html[data-theme="dark"].pagina-seccion { --sec-acento: #ADD19E; }
@media (prefers-reduced-motion: no-preference) { html.pagina-seccion { scroll-behavior: smooth; } }
body.pagina-seccion { background: #fafbf9; color: var(--text); font-family: 'DM Sans', system-ui, sans-serif; line-height: 1.5; }
html[data-theme="dark"] body.pagina-seccion { background: #0a1810; }

.pagina-seccion a.ltb-cta { display: inline-flex; align-items: center; text-decoration: none; }
.pagina-seccion .ltb-brand { color: inherit; text-decoration: none; }
/* En móvil el logo se aplastaba entre el selector de idioma y el botón: aquí el botón sobra (la cabecera ya tiene «Ver todo en el mapa») */
@media (max-width: 560px) {
    .pagina-seccion a.ltb-cta { display: none; }
    .pagina-seccion .ltb-brand img { flex-shrink: 0; }
}
.sec-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Cabecera de la sección ── */
.sec-hero {
    position: relative; color: #fff;
    padding: clamp(24px, 4vw, 48px) var(--s-5) clamp(34px, 6vw, 68px);
    background:
        linear-gradient(180deg, rgba(8, 28, 14, 0.50) 0%, rgba(8, 28, 14, 0.80) 100%),
        var(--cover) center 40% / cover no-repeat,
        linear-gradient(160deg, #223819, #416930);
}
.sec-hero-inner { max-width: 1160px; margin: 0 auto; }
.sec-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 var(--s-6); font: 600 13px/1 'DM Sans', system-ui, sans-serif; color: rgba(255, 255, 255, 0.86); }
.sec-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; }
.sec-crumbs a:hover { text-decoration: underline; }
.sec-hero .landing-eyebrow { margin-bottom: var(--s-3); }
.sec-title {
    margin: 0 0 var(--s-3); font: 800 clamp(36px, 6.4vw, 68px)/0.98 'Signika', system-ui, sans-serif;
    letter-spacing: -0.035em; text-wrap: balance; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.sec-sub { max-width: 640px; margin: 0; font-size: clamp(15px, 1.7vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, 0.92); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); text-wrap: balance; }
.sec-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: var(--s-6); }
.sec-count { padding: 9px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); font: 700 14px/1 'DM Sans', system-ui, sans-serif; }
.sec-count:empty { display: none; }

/* ── Botones ── */
.sec-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent;
    font: 700 14px/1.1 'DM Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s, filter .15s;
}
.sec-btn[hidden] { display: none; }
.sec-btn .ico { width: 18px; height: 18px; flex: none; }
.sec-btn--prim { background: #416930; color: #fff; }
.sec-btn--prim:hover { background: #355626; }
.sec-btn--sec { background: var(--surface); color: var(--sec-acento); border-color: var(--border-strong); }
.sec-btn--sec:hover { background: var(--surface-muted); border-color: var(--sec-acento); }
.sec-btn--hero { background: linear-gradient(135deg, #ADD19E, #7BB663); color: #223819; font-family: 'Signika', system-ui, sans-serif; font-size: 15px; padding: 0 22px; min-height: 48px; }
.sec-btn--hero:hover { filter: brightness(1.05); transform: translateY(-1px); }
.sec-btn--ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.55); font-size: 15px; padding: 0 20px; min-height: 48px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.sec-btn--ghost:hover { background: rgba(255, 255, 255, 0.24); border-color: #fff; }
.sec-btn--ghost:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Copia estática (HTML generado, en castellano) mientras la persona usa otro idioma: oculta sin mover el diseño hasta que seccion.js pinte la suya (js/seccion-pre.js) */
html[data-sin-estatico] [data-estatico] { visibility: hidden; }

/* ── Navegación entre las 8 secciones (pegada bajo la barra superior) ── */
.sec-tabs {
    position: sticky; top: 58px; z-index: 9;
    background: var(--surface-glass); backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
    border-bottom: 1px solid var(--border);
}
.sec-tabs-in { display: flex; gap: 6px; max-width: 1160px; margin: 0 auto; padding: 8px var(--s-5); overflow-x: auto; scrollbar-width: none; }
.sec-tabs-in::-webkit-scrollbar { display: none; }
.sec-tab {
    display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 44px; padding: 0 13px; border-radius: 999px;
    border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text);
    font: 600 14px/1 'DM Sans', system-ui, sans-serif; text-decoration: none; white-space: nowrap;
}
.sec-tab .ico { width: 18px; height: 18px; flex: none; }
.sec-tab:hover { border-color: var(--sec-acento); }
.sec-tab[aria-current="page"] { background: #416930; border-color: #416930; color: #fff; }

/* ── Cuerpo ── */
.sec-main { max-width: 1160px; margin: 0 auto; padding: var(--s-7) var(--s-5) var(--s-6); outline: none; min-height: 40vh; }
.sec-grupo { margin: 0 0 var(--s-9); }
.sec-h2 { margin: 0 0 var(--s-5); font: 800 var(--type-h2)/1.1 'Signika', system-ui, sans-serif; letter-spacing: -0.02em; color: var(--text); }
.sec-h4 { margin: 0 0 var(--s-2); font: 700 12px/1 'DM Sans', system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-5); align-items: start; }   /* alturas propias: al abrir «Historia» solo crece esa tarjeta */
.sec-nota { margin: 12px 2px 0; font-size: 13px; color: var(--text-muted); }
.sec-estado { padding: var(--s-8) 0; text-align: center; color: var(--text-muted); grid-column: 1 / -1; }
.sec-estado--err { color: #B3261E; }
html[data-theme="dark"] .sec-estado--err { color: #ff9a92; }
.sec-aviso { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; padding: 14px 16px; border-radius: var(--r-md); background: rgba(46, 155, 192, 0.1); border: 1px solid rgba(46, 155, 192, 0.32); font-size: 14.5px; }
.sec-aviso .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; color: #226EA3; }
html[data-theme="dark"] .sec-aviso .ico { color: #7cc4e6; }
.sec-mas { display: flex; justify-content: center; margin-top: var(--s-6); }

/* ── Tarjeta de lugar / negocio / noticia ── */
.sec-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--e-out); }
.sec-card:hover { box-shadow: var(--shadow-md); }
.sec-card-foto { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #0E6C86, #416930); }
.sec-card-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sec-card-ico { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.92); }
.sec-card-ico .ico { width: 54px; height: 54px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3)); }
.sec-card-foto:not(.is-fallback) .sec-card-ico { display: none; }
.sec-card--neg .sec-card-foto { background: linear-gradient(135deg, var(--cat, #5865C0), #223819); }
.sec-card--noticia .sec-card-foto { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #B96A3C, #8E4A63); }
.sec-badge { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: #223819; font: 700 12px/1 'DM Sans', system-ui, sans-serif; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.sec-badge--s { position: static; box-shadow: none; background: var(--surface-muted); color: var(--sec-acento); border: 1px solid var(--border); font-size: 11.5px; padding: 5px 9px; }
.sec-card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: var(--s-5); }
.sec-card-t { margin: 0; font: 700 20px/1.2 'Signika', system-ui, sans-serif; letter-spacing: -0.01em; color: var(--text); }
.sec-loc, .sec-hor { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 13.5px; color: var(--text-muted); }
.sec-loc .ico, .sec-hor .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.sec-hor b { color: var(--text); }
.sec-desc { margin: 0; font-size: 15px; line-height: 1.58; color: var(--text); overflow-wrap: anywhere; }
.sec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sec-tags li { padding: 5px 10px; border-radius: 999px; background: var(--surface-muted); color: var(--text-muted); font: 600 12px/1 'DM Sans', system-ui, sans-serif; }
.sec-card-act { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--s-5) var(--s-5); }
/* Negocios: correo/redes que aporta el propio negocio y la puerta «¿Es tu negocio?» (formulario de autogestión) */
.sec-redes { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.sec-redes a { color: var(--text); font-weight: 600; }
.sec-claim { margin: calc(-1 * var(--s-2)) 0 0; padding: 0 var(--s-5) var(--s-4); font-size: 12.5px; }
.sec-claim a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.sec-claim a:hover { color: var(--text); }
.sec-card--noticia .sec-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sec-card--neg .sec-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.sec-sched { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-muted); font-size: 13.5px; }
.sec-sched dl { margin: 0; }
.sec-sched-t { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.sec-sched-t .ico { width: 16px; height: 16px; }
.sec-sched dl > div { display: flex; gap: 10px; padding: 3px 0; }
.sec-sched dt { flex: none; min-width: 52px; color: var(--text-muted); font-weight: 700; }
.sec-sched dd { margin: 0; }

.sec-hist { padding-top: 4px; border-top: 1px solid var(--border); }
.sec-hist summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; color: var(--sec-acento); font: 700 14px/1.2 'DM Sans', system-ui, sans-serif; }
.sec-hist summary::-webkit-details-marker { display: none; }
.sec-hist summary .ico { width: 18px; height: 18px; flex: none; }
.sec-hist summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.sec-hist[open] summary::after { transform: rotate(-135deg); }
.sec-hist p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.62; color: var(--text-muted); }

/* ── Banderas y mar (playas y costa) ── */
.sec-mar { margin: 0 0 var(--s-8); padding: var(--s-5); border-radius: var(--r-xl); color: #fff; background: linear-gradient(135deg, #0B5870, #1F7FA6); box-shadow: var(--shadow-md); }
.sec-mar-t { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s-4); font: 800 22px/1 'Signika', system-ui, sans-serif; }
.sec-mar-t .ico { width: 26px; height: 26px; }
.sec-mar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.sec-mar-d { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.14); }
.sec-mar-d .ico { grid-row: 1 / 3; width: 24px; height: 24px; }
.sec-mar-v { font: 800 24px/1.05 'Signika', system-ui, sans-serif; }
.sec-mar-r { font-size: 12.5px; opacity: 0.92; }
.sec-mar .sec-nota { color: rgba(255, 255, 255, 0.92); }
.sec-bandera-slot:empty { display: none; }
.sec-bandera { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 12px; border-left: 5px solid var(--bn, #888); background: var(--surface-muted); font-size: 13.5px; }
.sec-bandera .ico { width: 18px; height: 18px; flex: none; color: var(--bn); }
.sec-bandera small { color: var(--text-muted); }
.sec-bandera--verde { --bn: #2E9D4F; } .sec-bandera--amarilla { --bn: #D49A00; } .sec-bandera--roja { --bn: #D33A3A; }

/* ── Rutas ── */
.sec-tabla-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.sec-tabla { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 14.5px; }
.sec-tabla th, .sec-tabla td { padding: 12px 14px; text-align: left; white-space: nowrap; }
.sec-tabla thead th { font: 700 12px/1 'DM Sans', system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }
.sec-tabla tbody tr + tr > * { border-top: 1px solid var(--border); }
.sec-tabla tbody th a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 700; text-decoration: none; }
.sec-tabla tbody th a:hover { text-decoration: underline; }
.sec-rutas { display: grid; gap: var(--s-6); margin-bottom: var(--s-8); }
.sec-ruta { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--ruta); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.sec-ruta-h { display: flex; align-items: center; gap: 14px; }
/* «Mejor día» (llega por red tras pintar: js/seccion.js → mejorDiaRutas) */
.sec-mejor { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 9px 12px; border-radius: var(--r-md); background: rgba(84, 137, 62, 0.1); border: 1px solid rgba(65, 105, 48, 0.28); font-size: 14px; line-height: 1.35; color: var(--text); }
.sec-mejor .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #416930; }
.sec-mejor small { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.sec-ruta-num { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ruta-fondo, var(--ruta)); color: #fff; font: 800 20px/1 'Signika', system-ui, sans-serif; }
.sec-ruta-num--s { width: 28px; height: 28px; font-size: 14px; }
.sec-ruta-cuerpo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.sec-sil { display: block; width: 100%; height: auto; border-radius: var(--r-lg); background: var(--surface-muted); }
.sec-sil-ini { fill: #fff; stroke: #223819; stroke-width: 2; }
.sec-sil-hito { fill: #fff; stroke: var(--ruta); stroke-width: 1.6; }
.sec-sil-n { font: 700 8px 'DM Sans', system-ui, sans-serif; fill: #223819; }
.sec-ruta-info { display: flex; flex-direction: column; gap: var(--s-4); }
.sec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.sec-stat { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-muted); }
.sec-stat-r { display: flex; align-items: center; gap: 6px; font: 700 11px/1.2 'DM Sans', system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.sec-stat-r .ico { width: 15px; height: 15px; flex: none; }
.sec-stat b { display: block; margin-top: 5px; font: 800 19px/1.15 'Signika', system-ui, sans-serif; color: var(--text); }
.sec-pf-wrap { padding-top: var(--s-3); border-top: 1px solid var(--border); }
.sec-pf { display: block; width: 100%; height: auto; color: var(--text); }
.sec-pf-g { stroke: currentColor; stroke-opacity: 0.1; }
.sec-pf-t { fill: currentColor; fill-opacity: 0.62; font: 500 10px 'DM Sans', system-ui, sans-serif; }
@media (max-width: 720px) { .sec-pf-t { font-size: 19px; fill-opacity: 0.8; } }
.sec-hitos ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.sec-hitos li { display: flex; gap: 12px; align-items: flex-start; }
.sec-hitos li > div p { margin: 3px 0 0; }
.sec-hito-n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ruta-fondo, var(--ruta)); color: #fff; font: 800 13px/1 'Signika', system-ui, sans-serif; }
.sec-chips-ruta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.sec-ruta-chip { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--ruta); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; }
.sec-ruta-chip:hover { box-shadow: var(--shadow-md); }
.sec-ruta-chip b { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ruta-fondo, var(--ruta)); color: #fff; font: 800 18px/1 'Signika', system-ui, sans-serif; }
.sec-ruta-chip span { font: 700 16px/1.2 'Signika', system-ui, sans-serif; }
.sec-ruta-chip small { color: var(--text-muted); font-size: 13px; }

/* ── Negocios ── */
.sec-barra { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-3); }
.sec-buscar { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--text-muted); }
.sec-buscar:focus-within { border-color: #416930; box-shadow: 0 0 0 3px rgba(123, 182, 99, 0.4); }
.sec-buscar .ico { width: 20px; height: 20px; flex: none; }
.sec-buscar input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; color: var(--text); font: 500 16px/1 'DM Sans', system-ui, sans-serif; }
.sec-buscar input::placeholder { color: var(--text-faint); }
.sec-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 14px/1 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.sec-chip .ico { width: 17px; height: 17px; flex: none; }
.sec-chip small { color: var(--text-muted); font-weight: 700; font-size: 12px; }
.sec-chip:hover { border-color: var(--sec-acento); }
.sec-chip[aria-pressed="true"] { background: #416930; border-color: #416930; color: #fff; }
.sec-chip[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.88); }
.sec-cuenta { margin: 0 2px var(--s-4); }

/* ── Cumbres ── */
.sec-picos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sec-pico { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.sec-pico-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sec-pico-n { font: 700 18px/1.2 'Signika', system-ui, sans-serif; }
.sec-pico-star { color: #D49A00; }
.sec-pico-e { font: 800 20px/1 'Signika', system-ui, sans-serif; color: var(--sec-acento); white-space: nowrap; }
.sec-barra-ele { height: 6px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; }
.sec-barra-ele i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7BB663, #416930); }
.sec-pico-m { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.sec-pico .sec-card-act { padding: 4px 0 0; }
#secHorizonte { box-shadow: var(--shadow-lg); }

/* ── Agenda ── */
.sec-actos { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sec-acto { display: flex; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.sec-fecha { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 60px; height: 64px; border-radius: var(--r-md); background: #416930; color: #fff; font-family: 'Signika', system-ui, sans-serif; }
.sec-fecha b { font-size: 24px; line-height: 1; }
.sec-fecha span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.sec-fecha .ico { width: 28px; height: 28px; }
.sec-acto-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sec-acto-b .sec-card-act { padding: 6px 0 0; }
.sec-acto-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font: 600 13px/1.3 'DM Sans', system-ui, sans-serif; color: var(--text-muted); }

/* ── Sigue explorando (reutiliza las tarjetas de la portada) ── */
html[data-theme="dark"] .sec-more .lm-go { color: #ADD19E; }   /* --bareyo (#416930) sobre la tarjeta oscura no llega a 4,5:1 */
.sec-more { padding-top: var(--s-6); }
.sec-more .modes-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* 7 tarjetas: 4 + 3 (≤ 720 px: de dos en dos, abajo) */
.sec-more .landing-mode[data-mode="agenda"] { grid-column: auto; }

@media (max-width: 720px) {
    .sec-main { padding-top: var(--s-6); }
    .sec-ruta-cuerpo { grid-template-columns: 1fr; }
    .sec-ruta-sil { max-width: 240px; margin: 0 auto; width: 100%; }
    .sec-acto { gap: 12px; padding: 14px; }
    .sec-fecha { width: 54px; height: 58px; }
    .sec-more .modes-grid { grid-template-columns: repeat(2, 1fr); }
    .sec-more .landing-mode:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 400px) {
    .sec-card-act .sec-btn { flex: 1 1 100%; }
    .sec-card-body { padding: var(--s-4); }
    .sec-card-act { padding: 0 var(--s-4) var(--s-4); }
    .sec-claim { padding: 0 var(--s-4) var(--s-4); }
}

/* ═══════════════════════════════════════════════════════════════════════
   EL TIEMPO (el-tiempo.html · js/tiempo.js) — la ficha del tiempo de la primera versión de la guía, con el diseño actual
   ═══════════════════════════════════════════════════════════════════════ */
.sec-wx-ahora {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-5); align-items: center;
    margin: 0 0 var(--s-8); padding: var(--s-6); border-radius: var(--r-xl); color: #fff;
    background: linear-gradient(135deg, #2F5223 0%, #416930 42%, #226EA3 100%); box-shadow: var(--shadow-md);
}
.sec-wx-rot { margin: 0 0 var(--s-3); font: 700 12px/1 'DM Sans', system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #DDEFD5; }
.sec-wx-temp { display: flex; align-items: center; gap: 14px; margin: 0; }
.sec-wx-temp b { font: 700 clamp(64px, 11vw, 96px)/0.95 'Signika', system-ui, sans-serif; letter-spacing: -0.03em; }
.sec-wx-ico .ico { width: clamp(52px, 9vw, 76px); height: clamp(52px, 9vw, 76px); stroke-width: 1.5; }
.sec-wx-desc { margin: 10px 0 2px; font: 700 22px/1.2 'Signika', system-ui, sans-serif; }
.sec-wx-sub { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.92); }
.sec-wx-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sec-wx-chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.22); min-width: 0; }   /* oscurece: blanco ≥ 4,5:1 también sobre el azul */
.sec-wx-chip .ico { width: 24px; height: 24px; flex: none; }
.sec-wx-chip span { display: grid; min-width: 0; }
.sec-wx-chip small { font-size: 12px; color: #fff; overflow-wrap: anywhere; hyphens: auto; }
.sec-wx-chip b { font: 700 17px/1.2 'Signika', system-ui, sans-serif; overflow-wrap: anywhere; }

/* por horas: tira que se desliza */
.sec-wx-horas-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); scrollbar-width: thin; }
.sec-wx-horas-wrap:focus-visible, .sec-tabla-wrap:focus-visible { outline: 3px solid #226EA3; outline-offset: 2px; }
.sec-wx-horas { display: flex; gap: 2px; margin: 0; padding: 10px; list-style: none; width: max-content; }
.sec-wx-horas li { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 64px; padding: 10px 6px; border-radius: var(--r-md); }   /* relative: el texto oculto (.sec-vh) de cada hora se queda dentro de la tira; suelto, ensanchaba la página entera */
.sec-wx-horas li.is-ahora { background: rgba(65, 105, 48, 0.1); }
.sec-wx-h { font: 700 12.5px/1 'DM Sans', system-ui, sans-serif; color: var(--text-muted); white-space: nowrap; }
.sec-wx-horas li.is-ahora .sec-wx-h { color: var(--sec-acento); }
.sec-wx-hi .ico { width: 26px; height: 26px; color: #2A5B7C; }
.sec-wx-horas b { font: 700 18px/1 'Signika', system-ui, sans-serif; color: var(--text); }
.sec-wx-hp { display: inline-flex; align-items: center; gap: 2px; min-height: 14px; font: 700 11.5px/1 'DM Sans', system-ui, sans-serif; color: #226EA3; white-space: nowrap; }
.sec-wx-hp .ico { width: 12px; height: 12px; }

/* 7 días: mínima ─── barra ─── máxima sobre el rango de la semana */
.sec-wx-tabla { width: 100%; border-collapse: collapse; }
.sec-wx-tabla tr + tr { border-top: 1px solid var(--border); }
.sec-wx-tabla th, .sec-wx-tabla td { position: relative; padding: 13px 12px; text-align: left; vertical-align: middle; font-size: 15px; }
.sec-wx-tabla th { width: 9.5em; font-weight: 400; }
.sec-wx-dn { display: block; font-weight: 700; color: var(--text); }
.sec-wx-dn-c { display: none; }                 /* nombre corto del día: solo en móvil (abajo) */
.sec-wx-tabla th small { display: block; font-size: 12.5px; color: var(--text-muted); }
.sec-wx-dc { color: var(--text-muted); }
.sec-wx-di { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.sec-wx-di .ico { width: 26px; height: 26px; color: #2A5B7C; }
.sec-wx-dp { width: 4.6em; white-space: nowrap; font: 700 13px/1 'DM Sans', system-ui, sans-serif; color: #226EA3; }
.sec-wx-dp .ico { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }
.sec-wx-tabla td.sec-wx-dt { width: 3em; text-align: right; font: 700 17px/1 'Signika', system-ui, sans-serif; color: var(--text); white-space: nowrap; }
.sec-wx-tabla td.sec-wx-dt--min { color: var(--text-muted); }
.sec-wx-db { width: 34%; min-width: 90px; }
.sec-wx-barra { position: relative; display: block; height: 8px; border-radius: 999px; background: var(--surface-muted); }
.sec-wx-barra i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #5CA6CC, #E0A23B); }

/* en detalle: fichas */
.sec-wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--s-4); }
.sec-wx-ficha { padding: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.sec-wx-ft { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s-3); font: 700 12px/1.15 'DM Sans', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.sec-wx-ft span { min-width: 0; overflow-wrap: anywhere; }
.sec-wx-ft .ico { width: 18px; height: 18px; flex: none; color: var(--sec-acento); }
.sec-wx-v { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 0; }
.sec-wx-v b { font: 700 34px/1 'Signika', system-ui, sans-serif; letter-spacing: -0.02em; color: var(--text); }
.sec-wx-v span { font: 700 15px/1.2 'DM Sans', system-ui, sans-serif; color: var(--text-muted); }
.sec-wx-n { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.sec-wx-viento { display: flex; align-items: center; gap: 14px; }
.sec-wx-bruj { width: 92px; height: 92px; flex: none; }
.sec-wx-bruj-c { fill: var(--surface-muted); stroke: var(--border-strong); stroke-width: 1.5; }
.sec-wx-bruj-t { font: 700 11px 'DM Sans', system-ui, sans-serif; fill: var(--text-muted); }
.sec-wx-bruj-f { fill: #416930; }
.sec-wx-bruj-l { stroke: #416930; stroke-width: 3; stroke-linecap: round; }
.sec-wx-bruj-p { fill: #416930; }
.sec-wx-uv { position: relative; height: 8px; margin-top: 14px; border-radius: 999px; background: linear-gradient(90deg, #4B9B3F 0%, #E6C229 30%, #E8872B 55%, #D7372F 80%, #7A3FB5 100%); }
.sec-wx-uv i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 3px solid #223819; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.sec-wx-sol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 86px), 1fr)); gap: 10px; margin: 0; }   /* 86 px: «19:41» a 26 px también con una fuente de reserva ancha */
.sec-wx-sol dt { font-size: 12.5px; color: var(--text-muted); }
.sec-wx-sol dd { margin: 2px 0 0; font: 700 26px/1 'Signika', system-ui, sans-serif; color: var(--text); }
.sec-wx-enl { margin: 0 0 var(--s-4); }
@media (max-width: 720px) {
    .sec-wx-ahora { grid-template-columns: 1fr; padding: var(--s-5); }
    /* el icono basta a la vista; el texto del cielo se queda para los lectores de pantalla (el icono es aria-hidden) */
    .sec-wx-dd { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .sec-wx-di { margin-right: 0; }
    .sec-wx-tabla th, .sec-wx-tabla td { padding: 12px 8px; }
    .sec-wx-tabla th { width: 6.6em; }
    .sec-wx-db { width: auto; min-width: 70px; }
    .sec-wx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }      /* dos por fila; el viento (con su brújula) ocupa las dos */
    .sec-wx-grid .sec-wx-ficha:first-child { grid-column: 1 / -1; }
    .sec-wx-ficha { padding: var(--s-4); }
    .sec-wx-v b { font-size: 30px; }
}
/* Móviles (≤ 480 px): la tabla de 7 días tiene que caber ENTERA a 320 px (antes la máxima quedaba fuera, a la derecha):
   día con nombre corto (el largo sigue para los lectores de pantalla), celdas más prietas y barra más corta */
@media (max-width: 480px) {
    .sec-wx-dn-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .sec-wx-dn-c { display: inline; }
    .sec-wx-tabla th, .sec-wx-tabla td { padding: 12px 4px; font-size: 14.5px; }
    .sec-wx-tabla th { width: auto; padding-left: 12px; white-space: nowrap; }
    .sec-wx-tabla th small { font-size: 12px; }
    .sec-wx-tabla td:last-child { padding-right: 12px; }
    .sec-wx-di .ico { width: 24px; height: 24px; }
    .sec-wx-dp { width: auto; font-size: 12.5px; }
    .sec-wx-dp .ico { width: 11px; height: 11px; margin-right: 1px; }
    .sec-wx-tabla td.sec-wx-dt { width: auto; font-size: 16px; }
    .sec-wx-db { min-width: 44px; }
    .sec-wx-chip { gap: 8px; padding: 10px; }
    .sec-wx-chip .ico { width: 20px; height: 20px; }
    .sec-wx-ft { letter-spacing: 0.04em; }
}
/* Las cuatro pastillas de «Ahora», de una en una: de dos en dos «3 · Moderado» y «Probabilidad de lluvia» se partían por la mitad */
@media (max-width: 380px) {
    .sec-wx-chips { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 340px) {
    .sec-wx-dp .ico { display: none; }
    .sec-wx-db { min-width: 34px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ODA · OBSERVATORIO DIGITAL AÉREO (oda.html · js/oda.js)
   ═══════════════════════════════════════════════════════════════════════ */
.sec-oda-intro { max-width: 72ch; margin: 0 0 var(--s-7); font-size: 16.5px; line-height: 1.6; color: var(--text); }
.sec-card--oda .sec-card-foto { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #226EA3, #5CA6CC); }
.sec-oda-zona { margin: 0 0 var(--s-7); }
.sec-oda-zona .sec-h4 { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s-3); font-size: 13px; }
.sec-oda-zona .sec-h4 small { padding: 3px 8px; border-radius: 999px; background: var(--surface-muted); border: 1px solid var(--border); font: 700 11.5px/1 'DM Sans', system-ui, sans-serif; letter-spacing: 0; color: var(--sec-acento); }
.sec-grid--mini { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--s-4); }
.sec-card--mini .sec-card-t { font-size: 16px; }
.sec-card--mini .sec-badge { left: 8px; top: 8px; padding: 5px 9px; font-size: 11px; }
.sec-card--mini .sec-btn { font-size: 13.5px; }
