/* Para cambiar la imagen de marca basta con editar estas variables. */
:root {
  --brand: #9c040c;
  --brand-dark: #6f0309;
  --accent: #dcac14;
  --accent-soft: #fbf1cf;
  --ok: #1d7a4b;
  --ok-soft: #e4f4ea;
  --warn: #9a6200;
  --warn-soft: #fff4d6;
  --err: #b3261e;
  --err-soft: #fdeceb;
  --ink: #2c2c2c;
  --muted: #66625e;
  --line: #e4dfda;
  --bg: #f6f4f1;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 30, 45, .06), 0 4px 14px rgba(15, 30, 45, .05);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
a { color: var(--brand); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .pad { padding: 1.5rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 2px; }

/* Barra superior */
.topbar { background: #fff; color: var(--ink); border-bottom: 3px solid var(--accent); display: flex; align-items: center; gap: 1rem; padding: .5rem 1rem; position: sticky; top: 0; z-index: 20; }
.topbar .brand { font-weight: 700; letter-spacing: .02em; white-space: nowrap; color: var(--brand); text-decoration: none; display: flex; align-items: center; }
.topbar nav { display: flex; gap: .25rem; overflow-x: auto; flex: 1; scrollbar-width: none; }
.topbar nav a { color: var(--ink); text-decoration: none; padding: .45rem .7rem; border-radius: 8px; white-space: nowrap; font-size: .95rem; }
.topbar nav a:hover { background: #f4eeee; }
.topbar nav a[aria-current] { background: var(--brand); color: #fff; }
.topbar .badge-dot { background: var(--accent); color: var(--ink); font-weight: 700; border-radius: 99px; font-size: .72rem; padding: 0 .4rem; margin-left: .25rem; }
.topbar .linklike { color: var(--ink); }

main { max-width: 1040px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }

/* Tarjetas y rejillas */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card.flat { box-shadow: none; }
.card.highlight { border-color: var(--accent); background: var(--accent-soft); }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.events { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.past article.card.with-poster .card-poster img { aspect-ratio: 2 / 1; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }
.person { display: flex; gap: .8rem; align-items: flex-start; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.person .who { min-width: 0; flex: 1; }
.person .who strong { display: block; }
.reasons { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }

/* Insignias */
.badge { display: inline-block; font-size: .78rem; padding: .1rem .55rem; border-radius: 99px; background: #e8edf2; color: #33414f; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); } .badge.brand { background: #f7e3e4; color: var(--brand); }
.badge.accent { background: var(--accent-soft); color: #6b5000; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }

/* Botones y formularios */
button, .btn { font: inherit; cursor: pointer; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: .5rem .9rem; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: #bdb4ad; }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover { background: var(--brand-dark); }
button.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
button.danger { color: var(--err); border-color: #e7bdb9; }
button.ghost { border-color: transparent; background: transparent; color: var(--brand); }
button.small, .btn.small { padding: .25rem .6rem; font-size: .875rem; }
button:disabled { opacity: .55; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .25rem; }
label.inline { display: inline-flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  font: inherit; width: 100%; padding: .55rem .65rem; border: 1px solid #c5ced8; border-radius: 9px; background: #fff; color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--brand); }
.field { margin-bottom: .9rem; } .field .hint { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.form-grid { display: grid; gap: .9rem 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.filters { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1rem; }
.need-row { display: grid; gap: .5rem; grid-template-columns: 130px 1fr 1.4fr auto; align-items: center; margin-bottom: .5rem; }
@media (max-width: 720px) { .need-row { grid-template-columns: 1fr 1fr; } .need-row input[type=text] { grid-column: 1 / -1; } }

/* Pestañas */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a[aria-current] { color: var(--brand); border-bottom-color: var(--accent); font-weight: 600; }

/* Tablas */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0f3f6; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td input[type=number] { width: 4.5rem; padding: .25rem .4rem; }

/* Estadísticas */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; } .stat span { color: var(--muted); font-size: .85rem; }

/* Agenda */
.slot { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; }
.slot .time { background: var(--brand); color: #fff; border-radius: 10px; padding: .6rem .5rem; text-align: center; }
.slot .time b { font-size: 1.15rem; display: block; } .slot .time span { font-size: .78rem; opacity: .85; }
.slot .time.table { background: var(--accent); }
.ticket { text-align: center; } .ticket img { width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; letter-spacing: .12em; font-weight: 700; }

/* Mensajes */
.chat { display: grid; grid-template-columns: 300px 1fr; gap: 1rem; align-items: start; }
@media (max-width: 800px) { .chat { grid-template-columns: 1fr; } .chat.open-thread .threads { display: none; } .chat:not(.open-thread) .conv { display: none; } }
.threads .t { display: block; padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.threads .t:hover, .threads .t.active { background: #f6eeee; } .threads .t.unread strong::after { content: " ●"; color: var(--accent); }
.bubbles { display: flex; flex-direction: column; gap: .4rem; max-height: 55vh; overflow-y: auto; padding: .25rem; margin-bottom: .8rem; }
.bubble { max-width: 82%; padding: .5rem .75rem; border-radius: 14px; background: #eef1f4; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; }
.bubble small { display: block; opacity: .7; font-size: .72rem; margin-top: .15rem; }

/* Avisos, toasts, modal */
.notice { border-radius: 10px; padding: .7rem .9rem; margin-bottom: 1rem; background: #f3efe9; }
.notice.warn { background: var(--warn-soft); } .notice.err { background: var(--err-soft); } .notice.ok { background: var(--ok-soft); }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 60; max-width: min(92vw, 380px); }
.toast { background: var(--ink); color: #fff; padding: .65rem .9rem; border-radius: 10px; box-shadow: var(--shadow); }
.toast.err { background: var(--err); } .toast.ok { background: var(--ok); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 30, .5); display: grid; place-items: center; padding: 1rem; z-index: 50; }
.modal { background: #fff; border-radius: 14px; padding: 1.2rem; width: min(520px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.wide { width: min(760px, 100%); }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.login-box { max-width: 440px; margin: 8vh auto 0; }

@media print {
  .topbar, .toasts, .no-print, .tabs { display: none !important; }
  body { background: #fff; } .card { box-shadow: none; break-inside: avoid; }
}

/* Programa del evento */
.program { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.program li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.program li:first-child { border-top: 0; }
.program time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brand); }
.program li > div { display: flex; flex-direction: column; gap: .15rem; }
.program li.is-round { padding: .35rem 0; }
.program li.is-round strong { font-weight: 500; }
@media (max-width: 520px) { .program li { grid-template-columns: 5.5rem 1fr; gap: .6rem; } }

.topbar .brand .logo { display: block; height: 44px; width: auto; }

.login-box .login-logo { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 auto 1rem; }
.login-box h1 { text-align: center; }

main:focus, main:focus-visible { outline: none; }

/* Consentimientos */
.consents { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin: 1rem 0; }
.consents legend { font-weight: 600; padding: 0 .4rem; }
.consents details { margin: .35rem 0 .6rem; }
.consents summary { cursor: pointer; color: var(--brand); font-size: .92rem; }
.consents .legal { max-height: 14rem; overflow: auto; background: #faf8f5; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.consents .legal p { margin: 0 0 .6rem; }
.consents label.inline { margin-bottom: .5rem; }

/* Cartel del evento */
.card.with-poster { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: start; }
.card-poster img { display: block; width: 112px; border-radius: 8px; border: 1px solid var(--line); }
.event-intro.with-poster { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 1.5rem; align-items: start; }
.event-intro .poster img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.poster-row { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.poster-preview { width: 160px; border-radius: 8px; border: 1px solid var(--line); }
.poster-empty { width: 160px; height: 110px; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.poster-admin label.btn:focus-within, .poster-admin input:focus-visible + * { outline: 3px solid var(--accent); }
@media (max-width: 640px) { .event-intro.with-poster { grid-template-columns: 1fr; } .event-intro .poster { max-width: 320px; } .card.with-poster { grid-template-columns: 84px 1fr; } .card-poster img { width: 84px; } }

/* Logo de la entidad */
.logo-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.logo-box { width: 160px; height: 90px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; background: #fff; padding: 6px; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Escáner de acreditaciones */
.scanner{position:fixed;inset:0;z-index:200;background:#000;display:flex;flex-direction:column}
.scanner video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.scanner-aim{position:absolute;left:50%;top:38%;width:min(62vw,300px);aspect-ratio:1;transform:translate(-50%,-50%);border:3px solid #fff;border-radius:18px;box-shadow:0 0 0 100vmax rgba(0,0,0,.45)}
.scanner-result{position:absolute;left:12px;right:12px;bottom:84px;padding:16px;border-radius:14px;background:rgba(0,0,0,.72);color:#fff;text-align:center;display:flex;flex-direction:column;gap:4px;font-size:1.05rem}
.scanner-result strong{font-size:1.5rem}
.scanner-result.ok{background:#157a3c}.scanner-result.warn{background:#a86a00}.scanner-result.err{background:#a3141c}
.scanner-bar{position:absolute;left:0;right:0;bottom:0;padding:14px;display:flex;justify-content:space-between;align-items:center;color:#fff;background:rgba(0,0,0,.6)}
.scanner-close{background:#fff;color:#111;border:0;padding:.7rem 1.2rem;border-radius:10px;font-weight:600}

/* Valoración con estrellas (DOM 5→1 con row-reverse: el hover y la selección iluminan las menores) */
.stars{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:.15rem}
.star{cursor:pointer;font-size:2rem;line-height:1;color:#c9c9c9}
.star:hover,.star:hover ~ .star,.star:has(input:checked),.star:has(input:checked) ~ .star{color:var(--gold,#dcac14)}
.star:has(input:focus-visible){outline:2px solid var(--brand,#9c040c);outline-offset:2px;border-radius:4px}
fieldset.field{border:0;padding:0;margin:0}

/* Entorno de pruebas */
.env-banner{position:sticky;top:0;z-index:300;background:#b45309;color:#fff;text-align:center;font:600 .8rem/1.2 system-ui;padding:.35rem .6rem;letter-spacing:.02em}

/* Galería de fotos y mapa de mesas */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.75rem;margin:1rem 0}
.gallery a,.gallery figure{display:block;margin:0;color:inherit;text-decoration:none}
.gallery img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.gallery a span{display:block;font-size:.8rem;color:var(--muted,#666);margin-top:.25rem}
.admin-gallery figcaption{display:flex;flex-direction:column;gap:.35rem;margin-top:.35rem}
.admin-gallery figcaption input{width:100%}
.table-maps{display:flex;flex-direction:column;gap:.4rem;margin:.6rem 0}
.table-map-row{display:grid;grid-template-columns:4.5rem 1fr;gap:.5rem;align-items:center}
.table-map{display:flex;flex-wrap:wrap;gap:2px}
.table-map i{width:10px;height:10px;border-radius:2px;background:#e5e2dc;display:block}
.table-map i.on{background:var(--brand,#9c040c)}
.announcement.pinned{border-left:4px solid var(--gold,#dcac14)}

/* Ponentes y sesiones */
.avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:none;border:2px solid #fff;box-shadow:0 0 0 1px var(--line)}
.avatar.ph{display:grid;place-items:center;background:var(--brand,#9c040c);color:#fff;font-weight:700;letter-spacing:.02em}
.speaker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;margin-top:.75rem}
.speaker{display:flex;gap:.85rem;align-items:flex-start}
.admin-speaker{flex-direction:column;border:1px solid var(--line);border-radius:12px;padding:.8rem}
.sessions{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.9rem}
.sessions li{display:grid;grid-template-columns:3.6rem 1fr;gap:.75rem;padding-bottom:.9rem;border-bottom:1px solid var(--line)}
.sessions li:last-child{border-bottom:0;padding-bottom:0}
.s-time{font-weight:700;font-variant-numeric:tabular-nums}
.s-people{display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;margin-top:.5rem}
.s-person{display:inline-flex;align-items:center;gap:.5rem}
.s-person .avatar{width:36px;height:36px;font-size:.8rem}

/* Directorio de entidades */
.org-row{display:flex;gap:.9rem;align-items:flex-start}
.logo-box.small{width:72px;height:72px;flex:none}
.org-card h3 a{color:inherit;text-decoration:none}.org-card h3 a:hover{text-decoration:underline}

/* ============================================================
   Tema 2026 · colaboración, competitividad, logística y transporte
   Rutas y nodos sobre fondo noche; rojo ALIA para la acción y dorado para destacar.
   ============================================================ */
:root {
  --night: #1c1a19;
  --night-2: #2b2624;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 26, 25, .06), 0 8px 24px rgba(28, 26, 25, .07);
  --shadow-lift: 0 2px 4px rgba(28, 26, 25, .08), 0 16px 36px rgba(28, 26, 25, .14);
  --bg: #f4f1ec;
}
body { background: var(--bg); letter-spacing: -.005em; }
h1, h2 { letter-spacing: -.02em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; margin-top: .4rem; }

/* Barra superior oscura con el logo en una pastilla clara */
.topbar { background: color-mix(in srgb, var(--night) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 24px rgba(0, 0, 0, .18); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); }
.topbar .brand { background: #fff; border-radius: 12px; padding: .2rem .6rem; }
.topbar .brand .logo { height: 36px; }
.topbar nav a { color: #e9e4de; border-radius: 99px; padding: .4rem .85rem; transition: background .15s, color .15s; }
.topbar nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.topbar nav a[aria-current] { background: var(--accent); color: var(--night); font-weight: 700; }
.topbar .linklike { color: #e9e4de; }

/* Cabecera de portada: ruta logística con nodos */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 2rem 1.6rem 1.8rem; margin: .25rem 0 1.4rem; color: #fff;
  background: url("/ruta.svg") right center / cover no-repeat, linear-gradient(135deg, var(--night) 0%, #3a1316 55%, var(--brand) 140%); box-shadow: var(--shadow-lift); }
.hero .eyebrow { margin: 0 0 .5rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.08; margin: 0 0 .6rem; }
.hero .hero-sub { max-width: 34rem; color: #e9e1da; font-size: 1.05rem; margin: 0 0 1.1rem; }
.hero .pillars { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.hero .pillars li { border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px; padding: .2rem .75rem; font-size: .85rem; background: rgba(255, 255, 255, .07); }
.hero .row { gap: .6rem; }
.btn.accent, button.accent { background: var(--accent); border-color: var(--accent); color: var(--night); font-weight: 700; }
.btn.light { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn.light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Tarjetas, botones, etiquetas */
.card { border: 1px solid rgba(28, 26, 25, .08); transition: box-shadow .18s, transform .18s; }
a.card:hover, article.card:hover { box-shadow: var(--shadow-lift); }
button, .btn { border-radius: 99px; padding: .5rem 1.05rem; transition: background .15s, border-color .15s, transform .08s; }
button:active, .btn:active { transform: translateY(1px); }
button.primary, .btn.primary { background: linear-gradient(180deg, #b30610, var(--brand)); box-shadow: 0 2px 8px rgba(156, 4, 12, .28); }
button.primary:hover, .btn.primary:hover { background: var(--brand-dark); }
button.small, .btn.small { padding: .25rem .75rem; }
.badge { border-radius: 99px; font-weight: 600; }
.badge.ok { background: var(--ok-soft); } 
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea { border-radius: 12px; border-color: #d8d2cb; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); border-color: var(--accent); }
.tabs { gap: .35rem; border-bottom: 0; padding-bottom: .15rem; }
.tabs a { border: 1px solid var(--line); border-radius: 99px; background: #fff; margin-bottom: 0; padding: .4rem .95rem; }
.tabs a[aria-current] { background: var(--night); border-color: var(--night); color: #fff; }
.stat { border-radius: var(--radius); border-left: 4px solid var(--accent); }
.notice { border-radius: 14px; }
.notice.invite-chip { background: linear-gradient(90deg, var(--accent-soft), #fff); border: 1px solid #ecd58a; }
.page-head h1 { border-left: 5px solid var(--accent); padding-left: .7rem; }

/* Tarjetas de evento: cartel arriba, a todo el ancho */
article.card.with-poster { display: block; padding: 0; overflow: hidden; }
article.card.with-poster .card-poster { display: block; }
article.card.with-poster .card-poster img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 0; border-radius: 0; }
article.card.with-poster .card-body { padding: 1rem 1.1rem 1.1rem; }
article.card:not(.with-poster) .card-body { padding: 0; }
.past-title { margin-top: 2rem; color: var(--muted); }
.grid.past .card { opacity: .82; }
.grid.past .card-poster img { filter: grayscale(.85) contrast(.95); }
.grid.past .card:hover { opacity: 1; }

/* Banner del patrocinador */
.sponsors { margin: 0 0 1rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: .9rem; }
.sponsor-tier ul { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
.sponsor-item img { display: block; width: auto; height: 38px; max-width: 150px; object-fit: contain; }
.sponsor-item a, .sponsor-item > span { display: inline-flex; align-items: center; }
.sponsor-item .sponsor-name { font-weight: 600; }
.sponsor-tier.tier-0 .sponsor-item img { height: 64px; max-width: 260px; }
.sponsors.single .sponsor-item img { height: 56px; max-width: 320px; }
.sponsor-label { margin: 0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6b6560); font-weight: 600; }
.banner-preview { width: 100%; max-width: 640px; border-radius: 12px; border: 1px solid var(--line); }

/* Eventos de portada / directorio */
.org-card, .card .person { align-items: center; }
.avatar { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.logo-box { border-radius: 12px; border-style: solid; }
.login-box { border-radius: 22px; box-shadow: var(--shadow-lift); }
@media (max-width: 640px) { .hero { padding: 1.5rem 1.15rem 1.4rem; border-radius: 18px; } .topbar .brand .logo { height: 30px; } h1 { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Formulario de inscripción incrustado en la web (sin menús) */
body.embed { background: transparent; }
body.embed .env-banner { display: none; }
body.embed #main { padding: .5rem; }
.embed-card { max-width: 40rem; margin: 0 auto; }
.embed-head h1 { font-size: 1.5rem; margin: 0 0 .2rem; }
.embed-head { margin-bottom: 1rem; }

/* Ficha de entidad completa */
.org-cover{margin:0 0 -2.2rem;border-radius:16px;overflow:hidden;max-height:260px;border:1px solid var(--line)}
.org-cover img{display:block;width:100%;height:260px;object-fit:cover}
.org-head{position:relative}
.org-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1rem;margin:1rem 0;align-items:start}
.org-contact dl{margin:0}.org-contact dt{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#666);margin-top:.7rem}.org-contact dd{margin:.1rem 0 0;overflow-wrap:anywhere}
.tags{gap:.4rem}.tag{display:inline-block;padding:.2rem .65rem;border-radius:999px;background:#f1efe9;border:1px solid var(--line);font-size:.82rem}
@media (max-width:760px){.org-layout{grid-template-columns:1fr}.org-cover img{height:170px}}

/* Fotos de perfil y de eventos */
img.avatar.photo{object-fit:cover;background:#eee}
.avatar-box .avatar{width:72px;height:72px;font-size:1.4rem}
.gallery figure{margin:0}.gallery figcaption{margin-top:.25rem}
.badge.warn{background:#fff3cd;color:#7a5b00}

/* Selector de idioma */
.langsel{appearance:auto;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:.3rem .6rem;font-size:.85rem;cursor:pointer;width:auto;max-width:9.5rem;flex:none}
.topbar .langbox{margin-left:.25rem}
.installbtn{margin-left:auto;background:var(--brand,#0a5);color:#fff;border:0;border-radius:999px;padding:.35rem .8rem;font-size:.85rem;font-weight:600;cursor:pointer;white-space:nowrap}
.installbtn + .langbox{margin-left:.25rem}
@media(max-width:640px){.installbtn{padding:.3rem .6rem;font-size:.8rem}}
.langfloat{position:fixed;top:2.6rem;right:.8rem;z-index:30}
#topbar:not([hidden]) ~ .langfloat,body.embed .langfloat{display:none}
@media print{.langfloat{display:none !important}}

/* Protección anti-bots */
.hp-wrap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.captcha-slot{min-height:0;margin:.6rem 0}

/* Guías: acreditación doblada y guía de administración */
.fold-svg { width: 100%; max-width: 720px; height: auto; display: block; margin: .5rem auto; }
.fold-svg .fold-page { fill: #fff; stroke: #4a4a4a; stroke-width: 1.5; }
.fold-svg .fold-name { fill: #fdf3d0; stroke: #d9b43c; }
.fold-svg .fold-alia { fill: #e9eef5; stroke: #9db0c8; }
.fold-svg .fold-line { stroke: #c0392b; stroke-width: 1.5; stroke-dasharray: 5 4; }
.fold-svg .fold-move { stroke: #4a4a4a; stroke-width: 2; }
.fold-svg .fold-arrow { fill: #4a4a4a; }
.fold-svg .fold-num { fill: #c0392b; }
.fold-svg .fold-numt { fill: #fff; font: 700 13px system-ui, sans-serif; }
.fold-svg .fold-txt { fill: #444; font: 600 10px system-ui, sans-serif; }
.fold-svg .fold-cap { fill: #333; font: 600 12px system-ui, sans-serif; }
.steps { padding-left: 1.3rem; } .steps li { margin: .5rem 0; }
.fold-mini { text-align: left; max-width: 46ch; margin: .25rem 0 0; padding-left: 1.2rem; } .ticket .fold-mini { margin: .25rem auto 0; max-width: 30ch; } .fold-mini li { margin: .15rem 0; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: start; }
.guide-toc { position: sticky; top: 4.5rem; } .guide-toc ol { padding-left: 1.1rem; margin: .5rem 0 0; font-size: .9rem; } .guide-toc li { margin: .3rem 0; }
.guide-body h1 { display: none; } .guide-body h2 { margin-top: 1.6rem; scroll-margin-top: 4.5rem; } .guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { margin-top: 1.1rem; } .guide-body ul, .guide-body ol { padding-left: 1.3rem; } .guide-body li { margin: .3rem 0; }
.guide-body code { background: #f3efe9; border-radius: 4px; padding: 0 .3em; font-size: .9em; }
@media (max-width: 760px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } .guide-layout pre, .guide-layout table { max-width: 100%; overflow-x: auto; display: block; } .guide-toc { position: static; } }
@media print { .guide-layout { display: block; } }

/* Alertas de administración y tablón de oportunidades */
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.alerts li { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.opp { display: grid; gap: .35rem; }
.opp-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.opp-body { white-space: pre-wrap; margin: 0; }

/* Socias y no socias */
.member-chip { margin-left: auto; padding: .2rem .65rem; border-radius: 999px; background: var(--accent-soft); color: #6b4f00 !important; border: 1px solid var(--accent); font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.member-chip:hover { background: var(--accent); color: #3d2d00 !important; }
.lock-panel { border-left: 4px solid var(--accent); background: var(--accent-soft); }
.member-status.member { border-left: 4px solid #2e7d32; }
.member-status.guest, .member-status.pending, .member-status.out { border-left: 4px solid var(--accent); background: var(--accent-soft); }

.env-banner.impersonating{background:#1d4ed8}.env-banner.impersonating button{margin-left:.5rem;background:#fff;color:#1d4ed8;border:0;border-radius:999px;padding:.15rem .7rem;font:700 .8rem system-ui;cursor:pointer}

/* Pestañas en varias filas en lugar de scroll; tabla de usuarios compacta */
.tabs { flex-wrap: wrap; overflow-x: visible; }
table.compact { width: 100%; }
table.compact td, table.compact th { vertical-align: top; padding: .5rem .6rem; }
table.compact .wrap-any { overflow-wrap: anywhere; }
@media (max-width: 700px) { .tabs a { padding: .35rem .7rem; font-size: .9rem; } }

/* Aviso de bienvenida */
.modal.has-x { position: relative; padding-top: 1.6rem; }
.modal-x { position: absolute; top: .45rem; right: .55rem; width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.modal-x:hover, .modal-x:focus-visible { background: var(--bg); color: var(--ink, #222); }
.welcome-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.welcome-list li { display: grid; gap: .1rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
.welcome-list span { color: var(--muted); font-size: .92rem; }

/* Portada: cabeceras de sección con enlace «ver todo» y tarjetas de novedades en vertical */
.sec-head { align-items: baseline; margin-top: 1.6rem; }
.sec-head h2 { margin: 0 0 .6rem; }
.news-card .news-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #f3ece6, #e8dfd7); }
.news-card .news-ph b { font-size: 2.4rem; color: var(--accent); }
article.card.news-card .card-poster img.news-logo { width: auto; max-width: 60%; max-height: 70%; aspect-ratio: auto; object-fit: contain; }
article.card.news-card { display: flex; flex-direction: column; }
.news-card .card-body { flex: 1; display: flex; flex-direction: column; }
.news-card .card-body > .row:last-child { margin-top: auto; }

/* Pie de página (como el de aliaragon.es) */
.sitefooter { margin-top: 3rem; background: #231416; color: #e9e1da; padding: 2rem 1rem 1rem; font-size: .9rem; }
.sitefooter a { color: #fff; text-decoration: none; }
.sitefooter a:hover { text-decoration: underline; }
.sf-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 1.6rem; }
.sf-inner > * { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.sf-inner strong { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.sf-about strong { color: #fff; text-transform: none; font-size: 1rem; letter-spacing: 0; }
.sf-about p { margin: 0 0 .3rem; color: #cfc6bf; }
.sf-btn { background: var(--accent); color: #231416 !important; font-weight: 700; padding: .45rem 1rem; border-radius: 99px; }
.sf-social { display: flex; gap: .9rem; margin-top: .2rem; }
.sf-copy { max-width: 1100px; margin: 1.4rem auto 0; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.15); color: #b9afa7; font-size: .8rem; }
body.embed .sitefooter { display: none; }
@media (max-width: 720px) { .sf-inner { grid-template-columns: 1fr; } }
/* El pie siempre queda abajo del todo, aunque la página tenga poco contenido */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; box-sizing: border-box; flex: 1 0 auto; }
.sitefooter { margin-top: 0; }
main { padding-bottom: 3rem; }
@media (min-width: 800px) { .topbar nav a { padding: .45rem .5rem; font-size: .92rem; } }

/* Ventajas de las socias y ranking */
.benefit details { margin: .4rem 0; } .benefit summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.code-box { gap: .6rem; align-items: center; background: var(--accent-soft); border-radius: 8px; padding: .5rem .8rem; margin-top: .6rem; }
.code-box .code { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em; }
.me-row { background: var(--accent-soft); }
.star { font-size: .8em; white-space: nowrap; vertical-align: .05em; }

/* Juego: retos, insignias, progreso */
.progress { height: .6rem; background: #ece6e0; border-radius: 99px; overflow: hidden; margin: .5rem 0 0; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.challenge.done .progress > span { background: var(--ok); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.badge-card { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border: 1px dashed var(--line); border-radius: 12px; background: #faf7f3; opacity: .7; }
.badge-card .icon { font-size: 1.5rem; line-height: 1; }
.badge-card.earned { border: 1px solid var(--accent); background: var(--accent-soft); opacity: 1; }
.award { border-left: 4px solid var(--accent); }

/* Segunda fila del menú: franja propia, bien visible bajo la barra principal */
.subnav { background: var(--accent-soft); border-bottom: 1px solid #ecd98c; display: flex; align-items: center; gap: .4rem; padding: .35rem 1rem; overflow-x: auto; scrollbar-width: none; }
.subnav[hidden] { display: none; }
.subnav .sub-label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); margin-right: .6rem; white-space: nowrap; }
.subnav a { padding: .5rem 1rem; border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; white-space: nowrap; border: 1px solid transparent; }
.subnav a:hover { background: #fff; border-color: #ecd98c; }
.subnav a[aria-current] { background: var(--brand); color: #fff; }
@media print { .subnav { display: none !important; } }

/* Novedades, Oportunidades y Talento: tarjetas de dos en dos */
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 760px) { .grid.two { grid-template-columns: 1fr; } }
.grid.two > .empty { grid-column: 1 / -1; }
/* Novedades */
article.post-v { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
article.post-v:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.09); }
article.post-v.pinned { border: 2px solid var(--accent); }
.post-media { position: relative; background: linear-gradient(135deg, #f3ece6, #e8dfd7); }
.post-media > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-media .news-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 1; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.post-media .news-ph b { font-size: 2.6rem; color: var(--accent); }
.post-media .news-ph:has(img.news-logo) { background: linear-gradient(135deg, #f3ece6, #e8dfd7); }
.post-media .news-ph img.news-logo { max-width: 55%; max-height: 65%; object-fit: contain; }
.post-cat { position: absolute; left: .7rem; top: .7rem; background: var(--night); color: #fff; }
.post-pin { position: absolute; right: .7rem; top: .7rem; }
.post-body { padding: 1rem 1.15rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.post-title { margin: .1rem 0 .1rem; font-size: 1.2rem; line-height: 1.25; }
.post-text { margin: 0; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.post-actions { margin-top: auto; padding-top: .6rem; gap: .5rem; flex-wrap: wrap; }
/* Oportunidades */
article.opp { border-top: 5px solid var(--accent); gap: .5rem; transition: transform .15s ease, box-shadow .15s ease; }
article.opp:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.09); }
article.opp-busco { border-top-color: var(--brand); }
article.opp-ofrezco { border-top-color: #2f8f5b; }
.opp-kind { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.opp-ico { font-size: 1.5rem; line-height: 1; }
.opp-label { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.opp-busco .opp-label { color: var(--brand); }
.opp-ofrezco .opp-label { color: #2f8f5b; }
.opp h3 { font-size: 1.2rem; }
.opp .row { margin-top: auto; flex-wrap: wrap; }
/* Talento */
article.talent-card { display: flex; flex-direction: column; gap: .2rem; transition: transform .15s ease, box-shadow .15s ease; }
article.talent-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.09); }
.talent-head { display: flex; gap: .85rem; align-items: center; }
.avatar-ini { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.talent-headline { font-weight: 600; }
.talent-sum { margin: .6rem 0 0; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.talent-actions { margin-top: auto; padding-top: .8rem; gap: .5rem; flex-wrap: wrap; }
.gsec { margin-top: 1.8rem; margin-bottom: .8rem; }
.incl { table-layout: fixed; } .incl th:nth-child(1) { width: 46%; } .incl th:nth-child(2) { width: 22%; }

/* Móvil: la barra principal ya no se desplaza de lado; el menú pasa a una segunda fila que se reparte en varias líneas */
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: .3rem .6rem; padding: .4rem .7rem; }
  .topbar .brand { order: 1; }
  .topbar .langbox { order: 2; margin-left: auto; }
  .topbar nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; overflow-x: visible; gap: .15rem; }
  .topbar nav a { padding: .4rem .55rem; font-size: .9rem; }
  .subnav { padding: .3rem .6rem; }
  .subnav a { padding: .4rem .8rem; font-size: .92rem; }
}
.how-points summary { cursor: pointer; }
.how-points table { width: 100%; border-collapse: collapse; }
.how-points td { padding: .4rem .3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.how-points td.pts { text-align: right; font-weight: 700; white-space: normal; overflow-wrap: anywhere; color: var(--brand); }
@media (max-width: 760px) {
  .subnav { flex-wrap: wrap; overflow-x: visible; gap: .25rem .3rem; }
  .subnav .sub-label { flex: 1 1 100%; margin: 0 0 .1rem .2rem; }
}
.guide-layout code { overflow-wrap: anywhere; }

/* Filtros de mensajes y contactos */
.list-tools { display: grid; gap: .5rem; padding: .7rem; border-bottom: 1px solid var(--line); background: #faf7f3; }
.list-tools input[type=search] { width: 100%; }
.list-tools select { max-width: 100%; }

/* Sello de socia / colaboradora / equipo */
.member-status.with-stamp { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stamp { flex: none; width: 112px; height: 112px; transform: rotate(-9deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.stamp .s-ring { fill: none; stroke: currentColor; stroke-width: 3; }
.stamp .s-ring.thin { stroke-width: 1; }
.stamp .s-text { font: 800 11.5px 'Inter', system-ui, sans-serif; fill: currentColor; letter-spacing: .08em; }
.stamp .s-star { fill: var(--accent); stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.stamp-member { color: var(--brand); }
.stamp-collab { color: #2f6f8f; }
.stamp-team { color: var(--night, #2a2523); }
@media (max-width: 520px) { .stamp { width: 84px; height: 84px; } }

/* Encuestas */
.scale { gap: .4rem; }
.scale .inline { border: 1px solid var(--line); border-radius: 99px; padding: .35rem .8rem; background: #fff; }
.survey.done { opacity: .85; }
.bars td { vertical-align: middle; }
.plain { list-style: none; padding: 0; margin: 0; }
.survey-steps p { margin: .2rem 0; }
.survey-steps > div { margin: .3rem 0 1rem; }

/* Perfil: cabecera */
.prof-hero { padding: 1.3rem 1.4rem; background: linear-gradient(135deg, #fff 55%, var(--accent-soft)); border-top: 4px solid var(--accent); }
.prof-id { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.prof-id .stamp { margin-left: auto; width: 96px; height: 96px; }
.prof-name { flex: 1; min-width: 14rem; }
.prof-name h1 { margin: 0; font-size: 1.7rem; line-height: 1.15; }
.avatar-big { position: relative; flex: none; }
.avatar-big .avatar { width: 96px; height: 96px; font-size: 2rem; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.avatar-big .cam { position: absolute; right: -4px; bottom: -4px; width: 34px; height: 34px; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; font-size: 1rem; }
.avatar-big .cam:hover { background: var(--accent-soft); }
.prof-chips { gap: .4rem; margin-top: .4rem; }
.prof-progress { margin-top: 1rem; }
.prof-todo { gap: .4rem; margin-top: .5rem; align-items: center; }
.chip { display: inline-block; padding: .2rem .65rem; border: 1px dashed var(--accent); border-radius: 99px; background: #fff; font-size: .86rem; text-decoration: none; }
.prof-done { margin: 1rem 0 0; color: #2e7d32; font-weight: 600; }
.prof-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .9rem; }
.bdg { display: inline-flex; gap: .3rem; align-items: center; padding: .2rem .65rem; border-radius: 99px; background: var(--accent-soft); border: 1px solid #f0d58a; font-size: .86rem; font-weight: 600; }
.prof-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.prof-nav a { padding: .3rem .8rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; color: inherit; }
.prof-nav a:hover { border-color: var(--accent); }
.prof-h { margin: 0 0 .6rem; font-size: 1.25rem; }
.prof-h3 { margin: 1.2rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
#prof-datos, #prof-vis, #prof-avisos, #prof-cal, #prof-seg { scroll-margin-top: 9rem; }
@media (max-width: 560px) { .prof-id .stamp { margin-left: 0; width: 80px; height: 80px; } .prof-name h1 { font-size: 1.4rem; } }

/* Bienvenida */
.welcome-h { margin: 1rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.welcome-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.welcome-steps li { display: flex; gap: .5rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .92rem; }
.welcome-steps .n { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; }
.welcome-steps li.done { background: #e8f5e9; border-color: #b7dcb9; }
.welcome-steps li.done .n { background: #2e7d32; }
.welcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.welcome-tile { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.welcome-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.welcome-tile .ico { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; font-size: 1.3rem; background: var(--accent-soft); border-radius: 10px; }
.welcome-tile .txt { display: block; color: var(--muted); font-size: .88rem; margin-top: .1rem; }
.welcome-tile.locked { opacity: .8; }
@media (max-width: 640px) { .welcome-steps, .welcome-grid { grid-template-columns: 1fr; } }

.langbox { display: inline-flex; align-items: center; gap: .45rem; flex: none; }
.guidelink { font-size: .85rem; font-weight: 600; text-decoration: none; padding: .3rem .7rem; border-radius: 999px; background: var(--accent); color: #2c2c2c; white-space: nowrap; }
.guidelink:hover { background: #f0c63a; }
@media (max-width: 420px) { .guidelink { padding: .3rem .55rem; } }

/* Café aleatorio */
.coffee-partner { border: 1px solid var(--line, #e3ddd5); border-radius: 12px; padding: .7rem .8rem; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; justify-content: space-between; }
.coffee-partner .who { display: flex; flex-direction: column; gap: .1rem; min-width: 0; overflow-wrap: anywhere; }
.coffee-pair { padding: .55rem .2rem; border-bottom: 1px solid var(--line, #e3ddd5); overflow-wrap: anywhere; }
.coffee-pair:last-of-type { border-bottom: 0; }

/* Ruleta (sorteos) */
.roulette { position: relative; height: calc(var(--row, 52px) * 3); overflow: hidden; border-radius: 14px; background: #2a1f1f; color: #fff; margin: .8rem 0; }
.roulette-reel > div { height: var(--row, 52px); display: flex; align-items: center; justify-content: center; padding: 0 .8rem; font-size: 1.15rem; font-weight: 600; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .55; }
.roulette-mark { position: absolute; left: 0; right: 0; top: var(--row, 52px); height: var(--row, 52px); border-top: 2px solid #f0c63a; border-bottom: 2px solid #f0c63a; background: rgba(240, 198, 58, .12); pointer-events: none; }
.roulette.done .roulette-mark { background: rgba(240, 198, 58, .28); box-shadow: 0 0 0 3px rgba(240, 198, 58, .35); }
.reveal-row { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: .6rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--line, #e3ddd5); }
.reveal-row .roulette { margin: 0; --row: 40px; }
.reveal-row .roulette-reel > div { font-size: 1rem; }
@media (max-width: 560px) { .reveal-row { grid-template-columns: 1fr; } }
.month-card { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; background: linear-gradient(120deg, #2a1f1f, #4a2b24); color: #fff; border-radius: 16px; padding: 1rem 1.2rem; margin: 1rem 0; }
.month-card .logo-sm { width: 84px; height: 64px; background: #fff; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.month-card .logo-sm img { max-width: 100%; max-height: 100%; object-fit: contain; }
.month-card .eyebrow { color: #f0c63a; margin: 0; }
.month-card h3 { margin: .1rem 0; color: #fff; }
.month-card .info { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.month-card p { margin: 0; opacity: .9; }
.month-card { padding: 1.4rem 1.6rem; border: 2px solid #f0c63a; box-shadow: 0 6px 22px rgba(42,31,31,.25); }
.month-card .logo-sm { width: 120px; height: 90px; }
.month-card h3 { font-size: 1.6rem; }
.feature-card { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; background: #fff; border: 1px solid var(--line, #e3ddd5); border-left: 5px solid #b0000b; border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.feature-card .feature-icon { font-size: 2rem; line-height: 1; }
.feature-card .info { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }

/* Niveles */
.lvl { margin-left: .25rem; font-size: 1em; }
.level-card { display: flex; gap: 1rem; align-items: center; }
.level-card .level-medal { font-size: 2.6rem; line-height: 1; }
.level-card .level-info { flex: 1 1 auto; min-width: 0; }
.level-card.has-bronze { border-left: 5px solid #b87333; }
.level-card.has-silver { border-left: 5px solid #9aa4ad; }
.level-card.has-gold { border-left: 5px solid #f0c63a; }
.goal-card { background: #fff; border: 1px solid var(--line, #e3ddd5); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.goal-card .progress { margin-top: .5rem; }

/* Encuestas, versión visual */
.sv-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(120deg, #2a1f1f, #6b0c14); color: #fff; border-radius: 18px; padding: 1.4rem 1.6rem; margin: .6rem 0 1.2rem; border-bottom: 4px solid #f0c63a; }
.sv-hero h1 { color: #fff; margin: .1rem 0 .3rem; font-size: clamp(1.5rem, 4vw, 2.1rem); overflow-wrap: anywhere; }
.sv-hero p { margin: 0; opacity: .9; max-width: 46rem; }
.sv-hero .eyebrow { color: #f0c63a; margin: 0; }
.sv-hero > div:first-child { flex: 1 1 260px; min-width: 0; }
.sv-count { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 5.5rem; padding: .6rem 1rem; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(240,198,58,.5); }
.sv-count strong { font-size: 2rem; line-height: 1; color: #f0c63a; }
.sv-count span { font-size: .8rem; opacity: .9; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.sv-card { display: flex; gap: .9rem; background: #fff; border: 1px solid var(--line, #e3ddd5); border-radius: 16px; padding: 1.1rem; box-shadow: 0 2px 10px rgba(42,31,31,.06); transition: transform .15s, box-shadow .15s; }
.sv-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(42,31,31,.12); }
.sv-card.done { background: #f6fbf6; border-color: #cfe6cf; }
.sv-card.closed { opacity: .8; }
.sv-ico { flex: none; width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--accent-soft, #fbeecb); }
.sv-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.sv-body h3 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.sv-body p { margin: 0; }
.sv-top { display: flex; flex-wrap: wrap; gap: .35rem; }
.sv-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.sv-prog { display: flex; align-items: center; gap: .8rem; position: sticky; top: 0; z-index: 5; background: var(--bg, #f3efe9); padding: .5rem 0; }
.sv-prog .progress { flex: 1; margin: 0; }
.sv-prog span.small { white-space: nowrap; }
.sv-form { display: flex; flex-direction: column; gap: 1rem; }
.sv-q, .sv-res { background: #fff; border: 1px solid var(--line, #e3ddd5); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: 0 2px 10px rgba(42,31,31,.05); }
.sv-qhead { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .8rem; }
.sv-num { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: #b0000b; color: #fff; font-weight: 700; font-size: .95rem; }
.sv-qtext { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.sv-req { font-size: .72rem; color: #b0000b; text-transform: uppercase; letter-spacing: .04em; margin-left: .4rem; }
.sv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .55rem; }
.sv-yn { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sv-opt { position: relative; display: block; cursor: pointer; }
.sv-opt input, .sv-dot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sv-opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3rem; padding: .6rem .9rem; border: 2px solid var(--line, #e3ddd5); border-radius: 12px; background: #fff; font-weight: 600; transition: border-color .12s, background .12s, transform .12s; overflow-wrap: anywhere; }
.sv-opts .sv-opt span { justify-content: flex-start; text-align: left; }
.sv-opt:hover span { border-color: #d9a;  }
.sv-opt:has(input:checked) span { border-color: #b0000b; background: #fdeceb; box-shadow: 0 0 0 3px rgba(176,0,11,.12); }
.sv-opt:has(input:focus-visible) span, .sv-dot:has(input:focus-visible) span { outline: 3px solid #f0c63a; outline-offset: 2px; }
.sv-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.sv-dot { position: relative; display: block; cursor: pointer; }
.sv-dot span { display: grid; place-items: center; width: 100%; height: 3.2rem; border: 2px solid var(--line, #e3ddd5); border-radius: 14px; font-size: 1.3rem; font-weight: 700; background: #fff; transition: all .12s; }
.sv-dot:has(input:checked) span { background: #b0000b; border-color: #b0000b; color: #fff; transform: scale(1.06); }
.sv-ends { display: flex; justify-content: space-between; margin-top: .35rem; font-size: .8rem; color: var(--muted, #6b625b); }
.sv-form textarea { width: 100%; border-radius: 12px; }
.sv-bars { display: flex; flex-direction: column; gap: .7rem; }
.sv-bar-l { display: flex; justify-content: space-between; gap: .6rem; font-size: .95rem; margin-bottom: .2rem; }
.sv-bar-l > span { overflow-wrap: anywhere; min-width: 0; }
.sv-track { height: 14px; border-radius: 99px; background: #efe9e0; overflow: hidden; }
.sv-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d49a9e, #b0000b); }
.sv-bar.top .sv-track span { background: linear-gradient(90deg, #f0c63a, #e0a800); }
.sv-avg { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.sv-avg strong { font-size: 2.2rem; color: #b0000b; line-height: 1; }
.sv-stars { color: #e0a800; font-size: 1.3rem; letter-spacing: .1em; }
.sv-quotes { display: flex; flex-direction: column; gap: .5rem; }
.sv-quotes blockquote { margin: 0; padding: .6rem .9rem; border-left: 4px solid #f0c63a; background: #fbf7ef; border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .sv-hero { padding: 1.1rem 1rem; } .sv-card { padding: .9rem; } .sv-yn { grid-template-columns: 1fr; } .sv-q, .sv-res { padding: .9rem; } }

/* Café: revelado al entrar */
#cf-me.roulette { --row: 56px; }

/* Empresa del mes */
.org-logo { display: grid; place-items: center; width: 72px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line, #e3ddd5); overflow: hidden; flex: none; }
.org-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; }
.org-logo b { font-size: 1.3rem; color: #b0000b; }
.org-logo.big { width: 120px; height: 90px; border: 0; }
.org-logo.big b { font-size: 2rem; }
.mo-hero { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; align-items: center; background: linear-gradient(120deg, #2a1f1f, #4a2b24); color: #fff; border: 2px solid #f0c63a; border-radius: 18px; padding: 1.5rem 1.6rem; box-shadow: 0 8px 26px rgba(42,31,31,.25); }
.mo-hero.soon { opacity: .92; border-style: dashed; }
.mo-hero .eyebrow { color: #f0c63a; margin: 0; }
.mo-hero h2 { color: #fff; margin: .15rem 0; font-size: clamp(1.4rem, 4vw, 2rem); overflow-wrap: anywhere; }
.mo-info { flex: 1 1 240px; min-width: 0; }
.mo-tag { margin: 0 0 .3rem; opacity: .92; }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.mo-card { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--line, #e3ddd5); border-radius: 16px; padding: 1rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; overflow-wrap: anywhere; }
.mo-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(42,31,31,.12); }
.mo-month { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #b0000b; font-weight: 700; margin-top: .3rem; }

/* Ranking: accesos destacados */
.rk-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: .4rem 0 1.4rem; }
.rk-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.4rem; border-radius: 18px; text-decoration: none; color: #fff; overflow: hidden; min-width: 0; transition: transform .15s, box-shadow .15s; box-shadow: 0 6px 22px rgba(42,31,31,.2); }
.rk-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(42,31,31,.28); }
.rk-card h2 { color: #fff; margin: 0; font-size: 1.45rem; overflow-wrap: anywhere; }
.rk-card p { margin: 0; opacity: .92; overflow-wrap: anywhere; }
.rk-card .eyebrow { color: #f0c63a; margin: 0; }
.rk-year { background: linear-gradient(135deg, #6b0c14, #b0000b 60%, #d9534f); }
.rk-month { background: linear-gradient(135deg, #2a1f1f, #4a2b24); border: 2px solid #f0c63a; }
.rk-spark { position: absolute; right: 1rem; top: .6rem; font-size: 2.6rem; opacity: .85; }
.rk-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.rk-chips span { background: rgba(255,255,255,.18); border-radius: 99px; padding: .2rem .7rem; font-size: .85rem; font-weight: 600; }
.rk-cta { margin-top: auto; padding-top: .6rem; font-weight: 700; color: #f0c63a; }
.rk-org { display: flex; gap: 1rem; align-items: center; margin: .3rem 0; }
.rk-org > div { min-width: 0; }
@media (max-width: 720px) { .rk-feat { grid-template-columns: 1fr; } .rk-card { padding: 1.1rem; } .rk-spark { font-size: 2rem; } .org-logo.big { width: 96px; height: 72px; } }

/* Inicio: paneles destacados, pendientes y personas */
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: .9rem; margin: 1.1rem 0; }
.home-tile { display: flex; flex-direction: column; justify-content: center; gap: .55rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: #fff; border: 1px solid var(--line, #e3ddd5); text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(42,31,31,.06); min-width: 0; overflow-wrap: anywhere; position: relative; overflow: hidden; }
a.home-tile { transition: transform .15s, box-shadow .15s; }
a.home-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(42,31,31,.16); }
.home-tile .eyebrow { margin: 0; }
.home-tile h3 { margin: .1rem 0; font-size: 1.25rem; }
.tile-sub { margin: .1rem 0 0; }
.tile-ico { font-size: 2rem; line-height: 1; }
.tile-info { min-width: 0; }
.tile-cta { font-weight: 700; color: #b0000b; margin-top: auto; }
.tile-btn { margin-top: auto; }
.tile-coffee { border-top: 4px solid #b0000b; }
.tile-goal { border-top: 4px solid #f0c63a; }
.tile-goal .progress { margin: .2rem 0; }
.tile-year { background: linear-gradient(135deg, #6b0c14, #b0000b 65%, #d9534f); color: #fff; border: 0; }
.tile-year .eyebrow, .tile-year .tile-cta { color: #f0c63a; }
.tile-month { background: linear-gradient(135deg, #2a1f1f, #4a2b24); color: #fff; border: 2px solid #f0c63a; }
.tile-month .eyebrow, .tile-month .tile-cta { color: #f0c63a; }
.tile-month h3 { color: #fff; }
.tile-month .tile-sub { opacity: .9; }
.org-logo.tile { width: 96px; height: 64px; }
.todo-card { background: #fff; border: 1px solid var(--line, #e3ddd5); border-left: 5px solid #f0c63a; border-radius: 16px; padding: .9rem 1.1rem; margin: 1rem 0; }
.todo-card h2 { margin: 0 0 .4rem; font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; }
.todo-n { background: #b0000b; color: #fff; border-radius: 99px; font-size: .8rem; padding: .05rem .55rem; }
.todo-row, .thanks-note { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--line, #e3ddd5); }
.todo-row:first-of-type { border-top: 0; }
.todo-ico { flex: none; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; background: var(--accent-soft, #fbeecb); border-radius: 10px; }
.todo-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.todo-row .btn { flex: none; }
.thanks-note { background: #fff8e6; border: 1px solid #f0dca0; border-radius: 14px; padding: .7rem .9rem; margin: 1rem 0; }
.thanks-note > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.people-sec { margin-top: 1.4rem; }
.people-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: .9rem; }
.person-card { display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 1px solid var(--line, #e3ddd5); border-radius: 16px; padding: 1rem; box-shadow: 0 2px 10px rgba(42,31,31,.05); min-width: 0; }
.person-card .chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.person-card > div:last-child { margin-top: auto; }
.newbies { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; background: #f1f8f1; border: 1px solid #cfe6cf; border-radius: 14px; padding: .7rem 1rem; margin: 1rem 0; }
.newbies-list { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 auto; }
.chip-link { background: #fff; border: 1px solid #cfe6cf; border-radius: 99px; padding: .15rem .7rem; text-decoration: none; font-size: .9rem; }
@media (max-width: 640px) {
  .home-tiles { gap: .7rem; }
  .people-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .7rem; padding-bottom: .5rem; margin-right: -1rem; padding-right: 1rem; }
  .person-card { flex: 0 0 82%; scroll-snap-align: start; }
  .todo-row { flex-wrap: wrap; }
  .todo-text { flex-basis: calc(100% - 3rem); }
  .todo-row .btn { margin-left: 2.8rem; }
  .thanks-note { flex-wrap: wrap; }
  /* Ranking: la tabla de puntos no debe desbordar */
  .how-points td.pts { white-space: normal; max-width: 45%; }
  .how-points .grid.two { grid-template-columns: 1fr; }
}

/* Ventana del café */
.cf-modal { margin: -1.2rem; }
.cf-head { background: linear-gradient(135deg, #2a1f1f, #6b0c14); color: #fff; text-align: center; padding: 1.3rem 1rem 1rem; border-radius: 14px 14px 0 0; position: relative; }
.cf-head .eyebrow { color: #f0c63a; margin: .2rem 0 0; }
.cf-head h3 { color: #fff; margin: .2rem 0 0; font-size: 1.35rem; }
.cf-cup { font-size: 2.4rem; display: inline-block; animation: cfsteam 2.4s ease-in-out infinite; }
@keyframes cfsteam { 50% { transform: translateY(-4px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .cf-cup { animation: none; } }
.cf-modal #cf-me.roulette { margin: 0; border-radius: 0; }
.cf-modal > .row, .cf-res { margin-left: 1.2rem; margin-right: 1.2rem; }
.cf-modal > .row { margin-bottom: 1.2rem; }
.cf-res { padding-top: .8rem; }
.cf-person { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; padding: .8rem; border: 1px solid var(--line, #e3ddd5); border-radius: 14px; background: #fffaf0; margin-bottom: .5rem; }
.cf-who { display: flex; flex-direction: column; gap: .1rem; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.cf-note { font-size: .88rem; background: #fff; border-left: 3px solid #f0c63a; padding: .15rem .5rem; margin-top: .2rem; }
.cf-acts { display: flex; flex-wrap: wrap; gap: .4rem; }
.cf-tip { margin: .4rem 0 0; font-size: .9rem; color: var(--muted, #6b625b); }

/* Directorio: empresa del mes */
.dir-month { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; background: linear-gradient(120deg, #2a1f1f, #4a2b24); color: #fff; border: 2px solid #f0c63a; border-radius: 18px; padding: 1.1rem 1.4rem; margin: .6rem 0 1.2rem; text-decoration: none; box-shadow: 0 6px 22px rgba(42,31,31,.22); }
.dir-month .eyebrow { color: #f0c63a; margin: 0; }
.dir-month h2 { color: #fff; margin: .1rem 0; font-size: 1.5rem; }
.dir-month p { margin: 0; opacity: .9; }
.dir-month > div { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.dir-month .tile-cta { color: #f0c63a; }
.org-card.is-month { position: relative; border: 2px solid #f0c63a; background: linear-gradient(#fffbea, #fff 40%); box-shadow: 0 4px 16px rgba(240,198,58,.3); }
.month-ribbon { position: absolute; top: -.7rem; right: .9rem; background: #f0c63a; color: #2a1f1f; font-size: .78rem; font-weight: 800; border-radius: 99px; padding: .15rem .7rem; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* Muro de gracias */
.th-hero { background: linear-gradient(120deg, #6b0c14, #b0000b 70%, #d9534f); }
.th-form { background: #fff; border: 1px solid var(--line, #e3ddd5); border-radius: 18px; padding: 1.1rem 1.2rem; margin-bottom: 1.4rem; box-shadow: 0 2px 10px rgba(42,31,31,.06); display: flex; flex-direction: column; gap: .8rem; }
.th-steps { display: flex; gap: .5rem; flex-wrap: wrap; }
.th-steps span { font-size: .82rem; font-weight: 700; padding: .2rem .8rem; border-radius: 99px; background: #f3efe9; color: var(--muted, #6b625b); }
.th-steps span.on { background: #b0000b; color: #fff; }
.th-steps span.ok { background: #e3f3e3; color: #2e7d32; }
.th-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .5rem; }
.th-pick { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; padding: .6rem .8rem; border-radius: 12px; border: 2px solid var(--line, #e3ddd5); background: #fff; cursor: pointer; color: inherit; text-transform: none; letter-spacing: 0; }
.th-pick:hover { border-color: #b0000b; background: #fdeceb; }
.th-chosen { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 14px; background: #fffaf0; border: 1px solid #f0dca0; }
.th-chosen > div { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.th-ideas { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-btn { border-radius: 99px; padding: .25rem .8rem; font-size: .85rem; background: #fff; border: 1px solid var(--line, #e3ddd5); cursor: pointer; text-transform: none; letter-spacing: 0; color: inherit; }
.chip-btn:hover { border-color: #b0000b; background: #fdeceb; }
.th-h { margin: 1.6rem 0 .7rem; }
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.th-card { position: relative; display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 1px solid var(--line, #e3ddd5); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 2px 10px rgba(42,31,31,.05); min-width: 0; }
.th-card.mine { background: linear-gradient(#fff8e6, #fff); border-color: #f0c63a; }
.th-people { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.th-who { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.th-who > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.th-who .avatar { flex: none; width: 2.4rem; height: 2.4rem; font-size: .85rem; }
.th-arrow { font-size: 1.2rem; }
.th-card blockquote { margin: 0; padding: .5rem .8rem; border-left: 4px solid #b0000b; background: #fbf7ef; border-radius: 0 10px 10px 0; font-size: 1.02rem; overflow-wrap: anywhere; }
.th-date { align-self: flex-end; font-size: .78rem; color: var(--muted, #6b625b); }

/* Nuevos socios */
.nc-hero { background: linear-gradient(120deg, #1d4d2b, #2e7d32 70%, #5aa05e); border-bottom-color: #f0c63a; }
.nc-mentor { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; background: #fff; border: 1px solid #cfe6cf; border-left: 5px solid #2e7d32; border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.nc-mentor h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.nc-mentor > div { flex: 1 1 220px; min-width: 0; }
.nc-optin { display: flex; gap: .7rem; align-items: flex-start; background: #f1f8f1; border: 1px solid #cfe6cf; border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1.2rem; cursor: pointer; }
.nc-optin input { margin-top: .25rem; }
.nc-optin span > span { display: block; }
.nc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.nc-card { display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 1px solid var(--line, #e3ddd5); border-radius: 16px; padding: 1rem 1.1rem; text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(42,31,31,.05); transition: transform .15s, box-shadow .15s; min-width: 0; }
.nc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(42,31,31,.12); }
.nc-top { display: flex; gap: .8rem; align-items: center; }
.nc-top > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.nc-since { display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; }
.nc-bar { margin: 0; }
.nc-bar span { background: linear-gradient(90deg, #5aa05e, #2e7d32); }

/* ---- Escaparate de entidad: más visual ---- */
.org-hero{margin:0 0 1rem}
.org-hero .org-cover{margin:0 0 -3.2rem;border-radius:18px;overflow:hidden;max-height:300px;border:1px solid var(--line)}
.org-hero .org-cover img{height:300px}
.org-cover-plain{height:130px;background:linear-gradient(135deg,var(--brand,#0a4d8c),var(--accent,#e07a1f));opacity:.92}
.org-hero .org-head{margin:0 1rem;box-shadow:0 10px 30px rgba(0,0,0,.12);border-radius:16px}
.org-hero .logo-box{width:150px;height:110px;border-radius:14px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.org-ini{font-size:2rem;color:var(--brand,#0a4d8c)}
.org-tagline{margin:0;font-size:1.15rem;color:var(--muted,#555)}
.org-sec h2,.org-contact h2{display:flex;align-items:center;gap:.55rem;margin-top:0}
.org-ico{display:inline-grid;place-items:center;width:2rem;height:2rem;border-radius:10px;background:var(--soft,#eef3f8);font-size:1.05rem;flex:none}
.org-sec{border-left:4px solid var(--brand,#0a4d8c)}
.org-contact{position:sticky;top:1rem;border-top:4px solid var(--accent,#e07a1f)}
@media (max-width:760px){.org-hero .org-cover{max-height:170px}.org-hero .org-cover img{height:170px}.org-cover-plain{height:90px}.org-hero .org-head{margin:0 .3rem}.org-hero .logo-box{width:100%;height:90px}.org-contact{position:static}}

/* ---- Administración: entidades en tarjetas ---- */
.oa-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,430px),1fr));gap:1rem;margin-top:1rem}
.oa-card{background:var(--card,#fff);border:1px solid var(--line);border-radius:14px;padding:1rem;display:flex;flex-direction:column;gap:.7rem;min-width:0;border-top:4px solid var(--line)}
.oa-card.socio{border-top-color:var(--brand,#0a4d8c)}.oa-card.colaborador{border-top-color:var(--accent,#e07a1f)}.oa-card.baja{border-top-color:#b33}
.oa-head{display:flex;gap:.7rem;align-items:center}
.oa-logo{width:46px;height:46px;border-radius:10px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;overflow:hidden;flex:none}
.oa-logo img{max-width:100%;max-height:100%;object-fit:contain}.oa-logo b{color:var(--brand,#0a4d8c)}
.oa-title{display:flex;flex-direction:column;min-width:0;flex:1}.oa-title strong{overflow-wrap:anywhere}
.oa-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.oa-f{display:flex;flex-direction:column;gap:.2rem;min-width:0}.oa-f>span{font-size:.78rem;font-weight:600;color:var(--muted,#555)}
.oa-f select,.oa-f input{width:100%;min-width:0}
.oa-since{grid-column:1/-1;background:#fff8e6;border:1px solid #f1d48a;border-radius:10px;padding:.55rem .7rem}
.oa-line{margin:0;display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.oa-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:auto;padding-top:.6rem;border-top:1px solid var(--line)}
@media (max-width:520px){.oa-grid{grid-template-columns:1fr}}

/* ---- Café a ciegas ---- */
.cf-scene{display:block;width:100%;max-width:340px;height:auto;margin:0 auto .2rem}
.cf-sub{color:#f3dcc0;margin:.2rem 0 0;font-size:.9rem}
.cf-steam{animation:cfsteam 2.6s ease-in-out infinite}
.cf-lamp{transform-origin:160px 0;animation:cfswing 4s ease-in-out infinite}
.cf-cupl{animation:cfl 1.2s ease-out both}.cf-cupr{animation:cfr 1.2s ease-out both}
@keyframes cfswing{50%{transform:rotate(2deg)}}
@keyframes cfl{from{transform:translateX(-24px);opacity:0}}
@keyframes cfr{from{transform:translateX(24px);opacity:0}}
.cf-table{margin:.2rem 0 .6rem;padding:.55rem .8rem;border:2px dashed #c9b08a;border-radius:12px;background:#fff8ec;font-weight:600;text-align:center;overflow-wrap:anywhere}
@media (prefers-reduced-motion:reduce){.cf-steam,.cf-lamp,.cf-cupl,.cf-cupr{animation:none}}
.org-layout:not(:has(.org-sec)){grid-template-columns:1fr}.org-layout:not(:has(.org-sec)) .org-contact{position:static}
.cf-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:1rem;align-items:center;background:linear-gradient(135deg,#2a1f1f,#6b0c14);color:#fff;border-radius:18px;padding:1.4rem 1.6rem;margin:0 0 1.2rem;overflow:hidden}
.cf-hero h1{color:#fff;margin:.1rem 0 .4rem}.cf-hero .eyebrow{color:#f0c63a;margin:0}.cf-hero p{color:#f3dcc0;margin:.2rem 0}
.cf-steps{list-style:none;margin:.8rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.cf-steps li{display:flex;align-items:center;gap:.45rem;background:rgba(255,255,255,.1);border-radius:999px;padding:.3rem .8rem .3rem .35rem;font-size:.88rem;color:#fff}
.cf-steps b{display:inline-grid;place-items:center;width:1.5rem;height:1.5rem;border-radius:50%;background:#f0c63a;color:#2a1f1f}
.cf-hero-img .cf-scene{max-width:360px}
@media (max-width:720px){.cf-hero{grid-template-columns:1fr;padding:1.1rem}.cf-hero-img{order:-1}.cf-hero-img .cf-scene{max-width:260px}}

/* ---- Administración: menú agrupado ---- */
.adm-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:.7rem 1rem;margin:.6rem 0 1.2rem;padding:.8rem 1rem;background:#fff;border:1px solid var(--line);border-radius:14px}
.adm-group{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.adm-label{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-dark,#6b0c14)}
.adm-items{display:flex;flex-wrap:wrap;gap:.3rem}
.adm-items a{padding:.28rem .7rem;border-radius:99px;border:1px solid var(--line);text-decoration:none;color:var(--ink);font-size:.92rem;font-weight:600;background:#faf8f4}
.adm-items a:hover{background:#fff;border-color:var(--brand,#a30010)}
.adm-items a[aria-current="page"]{background:var(--ink,#222);color:#fff;border-color:var(--ink,#222)}

.todo-x { margin-left: auto; background: none; border: 0; color: var(--muted, #6b625b); font-size: 1rem; line-height: 1; padding: .3rem .5rem; border-radius: 8px; cursor: pointer; }
.todo-x:hover { background: #f3efe9; color: #2a1f1f; }
.todo-min { margin: .6rem 0; }
.sv-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sv-opts .sv-opt span { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 460px) { .sv-opts { grid-template-columns: 1fr; } .sv-scale { gap: .3rem; } }
.area-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .3rem .8rem; }
form[data-form="outreach"] input:not([type="checkbox"]) { width: 100%; box-sizing: border-box; }
@media (max-width: 560px) { form[data-form="outreach"] .grid.cols-2 { grid-template-columns: 1fr; } }

/* Ficha de entidad en móvil: nada se sale de la pantalla */
.org-hero, .org-head, .org-head .logo-row > * { min-width: 0; max-width: 100%; }
.org-head h1 { overflow-wrap: anywhere; }
.org-hero .logo-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 760px) {
  .org-hero .org-head { margin: 0 .3rem; padding: .9rem; overflow: hidden; }
  .org-hero .logo-box { width: 100%; max-width: 100%; height: 90px; flex: 1 1 100%; }
  .org-head .logo-row { flex-direction: column; align-items: stretch; }
  .admin-gallery figure .row, .admin-gallery figcaption { flex-wrap: wrap; gap: .3rem; }
}
.welcome-card { position: relative; margin: 1rem 0; padding-right: 2.4rem; }
.welcome-card .todo-x { position: absolute; top: .6rem; right: .6rem; margin: 0; }


.home-big{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);margin:1.1rem 0;background:#fff;border:1px solid var(--line,#e3ddd5);border-top:4px solid #b0000b;border-radius:18px;overflow:hidden}
.home-big.solo{grid-template-columns:1fr}
.home-big>.home-tile{border:0;border-radius:0;box-shadow:none;background:none}
.home-big>.tile-retos{border-left:1px solid var(--line,#e3ddd5);justify-content:flex-start}
.home-big .tile-retos .challenge{box-shadow:none}
.home-tiles.one{grid-template-columns:1fr;margin-top:0}
.goal-new{margin-top:.6rem}
.goal-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.5rem;margin-top:.3rem}
.goal-nc{display:flex;align-items:center;gap:.6rem;padding:.5rem .7rem;border:1px solid var(--line,#e3ddd5);border-radius:12px;background:#fffdf6;text-decoration:none;color:inherit}
.goal-nc:hover{border-color:#f0c63a}
.goal-nc>span:last-child{display:flex;flex-direction:column;min-width:0}
.goal-nc strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.2}
@media(max-width:760px){.home-big{grid-template-columns:1fr}.home-big>.tile-retos{border-left:0;border-top:1px solid var(--line,#e3ddd5)}}

#subnav .sub-sep{display:inline-block;width:1px;height:1.1rem;background:currentColor;opacity:.25;margin:0 .35rem;vertical-align:middle}

.help-q{display:inline-flex;width:1.45rem;height:1.45rem;border-radius:50%;background:#f0c63a;color:#2a1f1f !important;font:700 .85rem/1 inherit;align-items:center;justify-content:center;margin-left:.6rem;text-decoration:none;vertical-align:middle;border:0}
.help-q:hover{background:#e0b52a}

/* Pantallas medianas: con ocho secciones en el menú, la barra pasa a dos filas en vez de esconder las últimas */
@media (min-width: 761px) and (max-width: 1260px) {
  .topbar { flex-wrap: wrap; gap: .3rem .8rem; }
  .topbar .brand { order: 1; }
  .topbar .installbtn { order: 2; margin-left: auto; }
  .topbar .langbox { order: 2; margin-left: .25rem; }
  .topbar nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; overflow-x: visible; }
}

/* Móvil: botones de la cabecera con texto corto («Guía», «App») y en la misma fila que el logo */
.t-short { display: none; }
@media (max-width: 760px) {
  .t-long { display: none; }
  .t-short { display: inline; }
  .topbar .brand { order: 1; }
  .topbar .installbtn { order: 2; margin-left: auto; }
  .topbar .langbox { order: 2; margin-left: .25rem; }
  .topbar nav { order: 3; }
  .guidelink { padding: .3rem .55rem; }
}

/* Empresa del mes: línea de llamada a la acción bajo la tarjeta */
.tile-month-wrap { display: flex; flex-direction: column; }
.tile-month-wrap.has-cta .tile-month { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-width: 0; }
.month-cta { display: flex; flex-wrap: wrap; gap: .6rem .9rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; background: #fff7e0; color: #3b2d00; border: 2px solid #f0c63a; border-top-width: 1px; border-radius: 0 0 14px 14px; font-size: .95rem; }
.month-cta.ok { background: #eef8ee; border-color: #8fc48f; color: #1d4d1d; }
.month-cta a:not(.btn) { color: inherit; font-weight: 700; text-decoration: underline; }

/* Tarjetas de entidad: nada se sale de la tarjeta (títulos y etiquetas largas) */
.org-row > div:last-child { min-width: 0; flex: 1 1 auto; }
.org-card h3, .org-card p { overflow-wrap: anywhere; }
.org-card .chips .badge, .org-card .chips .tag { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

/* Tablas de administración ordenables por columna */
main:has(.adm-nav) .table-wrap th { cursor: pointer; user-select: none; white-space: nowrap; }
main:has(.adm-nav) .table-wrap th:empty { cursor: default; }
main:has(.adm-nav) .table-wrap th[data-sort="asc"]::after { content: " ▲"; font-size: .7em; opacity: .7; }
main:has(.adm-nav) .table-wrap th[data-sort="desc"]::after { content: " ▼"; font-size: .7em; opacity: .7; }

/* Imagen de una ventaja */
.benefit-img { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; margin-bottom: .7rem; }

/* Índice de la página de Configuración */
.cfg-index { position: sticky; top: 3.9rem; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .55rem .2rem; margin: .5rem 0 1rem; background: color-mix(in srgb, var(--bg, #f5f2ee) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cfg-index button { white-space: nowrap; }
form[id^="cfg-"], #cfg-copias { scroll-margin-top: 8rem; }

/* Ranking: índice de secciones y versión móvil */
.rk-index { display: flex; flex-wrap: wrap; gap: .4rem; position: sticky; top: 3.9rem; z-index: 10; padding: .5rem .2rem; margin: .2rem 0 .6rem; background: color-mix(in srgb, var(--bg, #f5f2ee) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.rk-index button { white-space: nowrap; }
#rk-clasificacion, #rk-como, #rk-retos, #rk-insignias, #rk-pasaporte, #rk-socios, #rk-reconocimientos { scroll-margin-top: 7.5rem; }
.rk-mini { display: none; }
@media (max-width: 720px) {
  .rk-index { position: static; flex-wrap: wrap; gap: .3rem; background: none; backdrop-filter: none; border-bottom: 0; padding: .2rem 0; margin: .2rem 0 .4rem; }
  .rk-index button { white-space: normal; padding: .35rem .65rem; font-size: .85rem; }
  #rk-clasificacion, #rk-como, #rk-retos, #rk-insignias, #rk-pasaporte, #rk-socios, #rk-reconocimientos { scroll-margin-top: 9.5rem; }
  .rk-table .rk-x { display: none; }
  .rk-table .lvl, .rk-table .star { display: none; }
  .rk-table td, .rk-table th { padding: .55rem .5rem; }
  .rk-table .rk-mini { display: block; }
  /* Banners de «Tu año» y «Empresa del mes»: una línea cada uno para que la clasificación se vea enseguida */
  .rk-feat { gap: .6rem; margin-bottom: .8rem; }
  .rk-card { padding: .75rem 1rem; gap: .15rem; }
  .rk-card h2 { font-size: 1.1rem; }
  .rk-card p:not(.eyebrow), .rk-chips, .rk-spark { display: none; }
  .rk-cta { padding-top: .2rem; font-size: .9rem; }
  .rk-org .org-logo.big { width: 56px; height: 42px; }
}

/* Directorio: toda la tarjeta es el enlace a la entidad; inicial con color si no hay logo; filtros a todo el ancho en móvil */
.org-card { position: relative; transition: transform .15s, box-shadow .15s; }
.org-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.org-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(42,31,31,.14); }
.org-card:focus-within { outline: 3px solid var(--accent, #e0a500); outline-offset: 2px; }
.logo-box .logo-ini { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 10px; font-size: 1.4rem; letter-spacing: .02em; }
@media (max-width: 720px) { .filters { grid-template-columns: 1fr; } .filters select, .filters input { width: 100%; min-width: 0; } }

/* ===== Móvil (hasta 760 px): barra inferior, hoja «Más» y submenú en una fila ===== */
.tabbar, .moresheet { display: none; }
@media (max-width: 760px) {
  /* Cabecera de una sola fila: logo, app, guía e idioma */
  .topbar { flex-wrap: nowrap; gap: .5rem; padding: .35rem .7rem; }
  .topbar nav { display: none; }
  .topbar .brand .logo { height: 34px; }
  .topbar .langbox { margin-left: auto; }
  /* Submenú: una fila que se desliza; el degradado avisa de que hay más */
  .subnav { flex-wrap: nowrap; overflow: hidden; gap: .3rem; padding: .3rem .7rem; }
  .subnav a[hidden] { display: none; }
  #subnav .sub-sep { display: none; }
  .subnav .sub-more { flex: none; margin-left: auto; font: inherit; font-weight: 600; font-size: .9rem; padding: .42rem .75rem; border-radius: 99px; border: 1px solid #ecd98c; background: #fff; color: var(--ink); cursor: pointer; }
  .subnav .sub-label { display: none; }
  .subnav a { flex: none; padding: .42rem .68rem; font-size: .9rem; }
  /* Barra inferior */
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); border-top: 1px solid var(--line, #e3ddd5); padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(42,31,31,.08); }
  .tabbar[hidden] { display: none; }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 48px; font-size: .66rem; min-width: 0; font-weight: 600; color: #6b6258; text-decoration: none; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
  .tabbar a svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current] { color: var(--brand, #b0000b); }
  .tabbar a[aria-current]::before { content: ''; position: absolute; top: -.3rem; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand, #b0000b); }
  .tabbar a:active { background: #f4eeee; }
  .tabbar .badge-dot { position: absolute; top: 2px; left: calc(50% + 8px); background: var(--accent, #e0a500); color: var(--ink, #2a1f1f); font-weight: 700; border-radius: 99px; font-size: .62rem; padding: 0 .35rem; margin: 0; }
  body:has(#tabbar:not([hidden])) #main { padding-bottom: 4.6rem; }
  body:has(#tabbar:not([hidden])) .sitefooter { padding-bottom: 5.5rem; }
  /* Hoja «Más» */
  .moresheet { display: block; position: fixed; inset: 0; z-index: 70; }
  .ms-back { position: absolute; inset: 0; background: rgba(42,31,31,.45); animation: ms-fade .2s ease-out; }
  .ms-panel { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; padding: .7rem 1rem calc(4.6rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0,0,0,.2); animation: ms-up .28s cubic-bezier(.2,.9,.3,1); max-height: 80vh; overflow-y: auto; }
  .ms-grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: #d8d0c6; margin: 0 auto .8rem; }
  .ms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .ms-title { margin: 0 0 .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark, #7a0010); }
  .ms-grid.plain .ms-item { padding: .75rem .9rem; font-size: .95rem; }
  .ms-item { display: flex; flex-direction: column; gap: .15rem; padding: .8rem; border: 1px solid var(--line, #e3ddd5); border-radius: 14px; text-decoration: none; color: var(--ink, #2a1f1f); min-width: 0; overflow-wrap: anywhere; }
  .ms-item.on { border-color: var(--brand, #b0000b); background: #fff6f6; }
  .ms-ico { font-size: 1.5rem; line-height: 1.2; }
  .ms-item .small { line-height: 1.3; }
  @keyframes ms-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes ms-fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .ms-panel, .ms-back { animation: none; } }
@media (max-width: 760px) and (prefers-reduced-transparency: reduce) { .tabbar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media print { .tabbar, .moresheet { display: none !important; } }

/* Logos: la imagen siempre cabe dentro de su marco (antes un logo cuadrado o muy grande se salía por abajo) */
.logo-box { overflow: hidden; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.logo-box img, .org-hero .logo-box img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 760px) { .org-hero .logo-box { flex: none; height: 90px; } }

.themebtn{appearance:none;display:inline-grid;place-items:center;width:2.1rem;height:2.1rem;padding:0;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:1rem;line-height:1;cursor:pointer;flex:none}
.themebtn:hover{border-color:var(--accent)}

/* ===== Modo oscuro (se activa con el botón 🌙; por defecto la app va en claro) ===== */
  html[data-theme=dark] { color-scheme: dark;
    --brand:#e04a52; --brand-dark:#b3262e; --accent:#e2b422; --accent-soft:#3a3118;
    --ok:#6fd49c; --ok-soft:#1e3226; --warn:#e9c66a; --warn-soft:#3a3219; --err:#ff8a80; --err-soft:#3d1f1d;
    --ink:#ece6e0; --muted:#b3aaa2; --line:#3d3835; --bg:#161312; --card:#22201f;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 6px 18px rgba(0,0,0,.35); --shadow-lift:0 2px 4px rgba(0,0,0,.45),0 14px 32px rgba(0,0,0,.5); }
  :where(html[data-theme=dark]) body { background: var(--bg); color: var(--ink); }
  :where(html[data-theme=dark]) .skip:focus { background:#262221; }
  :where(html[data-theme=dark]) :focus-visible { outline:3px solid color-mix(in srgb, var(--accent) 70%, #3d3835); }
  :where(html[data-theme=dark]) .topbar { background:#262221; }
  :where(html[data-theme=dark]) .topbar nav a:hover { background:#2d2826; }
  :where(html[data-theme=dark]) .badge { background:#1f2a38; color:#ece6e0; }
  :where(html[data-theme=dark]) .badge.brand { background:#3b1e20; }
  :where(html[data-theme=dark]) .badge.accent { color:#e9c66a; }
  :where(html[data-theme=dark]) button, :where(html[data-theme=dark]) .btn { background:#262221; }
  :where(html[data-theme=dark]) button:hover, :where(html[data-theme=dark]) .btn:hover { border-color:#6b2a2d; }
  :where(html[data-theme=dark]) button.danger { border-color:#6b2a2d; }
  :where(html[data-theme=dark]) input[type=text], :where(html[data-theme=dark]) input[type=email], :where(html[data-theme=dark]) input[type=tel], :where(html[data-theme=dark]) input[type=url], :where(html[data-theme=dark]) input[type=number], :where(html[data-theme=dark]) input[type=date], :where(html[data-theme=dark]) input[type=time], :where(html[data-theme=dark]) input[type=search], :where(html[data-theme=dark]) select, :where(html[data-theme=dark]) textarea { border:1px solid #34465c; background:#262221; }
  :where(html[data-theme=dark]) th { background:#2d2826; }
  :where(html[data-theme=dark]) .ticket img { background:#262221; }
  :where(html[data-theme=dark]) .threads .t:hover, :where(html[data-theme=dark]) .threads .t.active { background:#2d2826; }
  :where(html[data-theme=dark]) .bubble { background:#2d2826; }
  :where(html[data-theme=dark]) .notice { background:#2d2826; }
  :where(html[data-theme=dark]) .modal { background:#262221; }
  :where(html[data-theme=dark]) body { background:#262221; }
  :where(html[data-theme=dark]) .consents .legal { background:#2d2826; }
  :where(html[data-theme=dark]) .logo-box { background:#262221; }
  :where(html[data-theme=dark]) .scanner-aim { border:3px solid #3d3835; }
  :where(html[data-theme=dark]) .scanner-close { background:#262221; color:#ece6e0; }
  :where(html[data-theme=dark]) .gallery a span { color:var(--muted,#ece6e0); }
  :where(html[data-theme=dark]) .table-map i { background:#2d2826; }
  :where(html[data-theme=dark]) .avatar { border:2px solid #3d3835; }
  :where(html[data-theme=dark]) .topbar .brand { background:#262221; }
  :where(html[data-theme=dark]) .btn.light:hover { border-color:#3d3835; }
  :where(html[data-theme=dark]) input[type=text], :where(html[data-theme=dark]) input[type=email], :where(html[data-theme=dark]) input[type=tel], :where(html[data-theme=dark]) input[type=url], :where(html[data-theme=dark]) input[type=number], :where(html[data-theme=dark]) input[type=date], :where(html[data-theme=dark]) input[type=time], :where(html[data-theme=dark]) input[type=search], :where(html[data-theme=dark]) select, :where(html[data-theme=dark]) textarea { border-color:#3d3835; }
  :where(html[data-theme=dark]) .tabs a { background:#262221; }
  :where(html[data-theme=dark]) .notice.invite-chip { background:linear-gradient(90deg, var(--accent-soft), #262221); border:1px solid #6b5a20; }
  :where(html[data-theme=dark]) .sponsors { background:#262221; }
  :where(html[data-theme=dark]) .sponsor-label { color:var(--muted, #ece6e0); }
  :where(html[data-theme=dark]) .org-contact dt { color:var(--muted,#ece6e0); }
  :where(html[data-theme=dark]) .tag { background:#2d2826; }
  :where(html[data-theme=dark]) img.avatar.photo { background:#2d2826; }
  :where(html[data-theme=dark]) .badge.warn { background:#3a3219; color:#e9c66a; }
  :where(html[data-theme=dark]) .langsel { background:#262221; }
  :where(html[data-theme=dark]) .guide-body code { background:#2d2826; }
  :where(html[data-theme=dark]) .member-chip { color:#e9c66a !important; }
  :where(html[data-theme=dark]) .member-chip:hover { color:#e9c66a !important; }
  :where(html[data-theme=dark]) .env-banner.impersonating button { background:#262221; color:#ece6e0; }
  :where(html[data-theme=dark]) .modal-x:hover, :where(html[data-theme=dark]) .modal-x:focus-visible { color:var(--ink, #ece6e0); }
  :where(html[data-theme=dark]) .news-card .news-ph { background:linear-gradient(135deg, #2d2826, #3b1e20); }
  :where(html[data-theme=dark]) .sf-btn { color:#ece6e0 !important; }
  :where(html[data-theme=dark]) .progress { background:#2d2826; }
  :where(html[data-theme=dark]) .badge-card { background:#2d2826; }
  :where(html[data-theme=dark]) .subnav { border-bottom:1px solid #6b5a20; }
  :where(html[data-theme=dark]) .subnav a:hover { background:#262221; border-color:#6b5a20; }
  :where(html[data-theme=dark]) .post-media { background:linear-gradient(135deg, #2d2826, #3b1e20); }
  :where(html[data-theme=dark]) .post-media .news-ph:has(img.news-logo) { background:linear-gradient(135deg, #2d2826, #3b1e20); }
  :where(html[data-theme=dark]) .opp-ofrezco .opp-label { color:#6fd49c; }
  :where(html[data-theme=dark]) .list-tools { background:#2d2826; }
  :where(html[data-theme=dark]) .stamp-collab { color:#ece6e0; }
  :where(html[data-theme=dark]) .stamp-team { color:var(--night, #ece6e0); }
  :where(html[data-theme=dark]) .scale .inline { background:#262221; }
  :where(html[data-theme=dark]) .prof-hero { background:linear-gradient(135deg, #262221 55%, var(--accent-soft)); }
  :where(html[data-theme=dark]) .avatar-big .avatar { border:3px solid #3d3835; }
  :where(html[data-theme=dark]) .avatar-big .cam { background:#262221; }
  :where(html[data-theme=dark]) .chip { background:#262221; }
  :where(html[data-theme=dark]) .prof-done { color:#6fd49c; }
  :where(html[data-theme=dark]) .bdg { border:1px solid #6b5a20; }
  :where(html[data-theme=dark]) .prof-nav a { background:#262221; }
  :where(html[data-theme=dark]) .welcome-steps li { background:#262221; }
  :where(html[data-theme=dark]) .welcome-steps li.done { background:#1e3226; border-color:#2e5a41; }
  :where(html[data-theme=dark]) .welcome-tile { background:#262221; }
  :where(html[data-theme=dark]) .guidelink { color:#ece6e0; }
  :where(html[data-theme=dark]) .coffee-partner { border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .coffee-pair { border-bottom:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .roulette-mark { border-top:2px solid #6b5a20; border-bottom:2px solid #6b5a20; }
  :where(html[data-theme=dark]) .reveal-row { border-bottom:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .month-card .logo-sm { background:#262221; }
  :where(html[data-theme=dark]) .month-card { border:2px solid #6b5a20; }
  :where(html[data-theme=dark]) .feature-card { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .level-card.has-gold { border-left:5px solid #6b5a20; }
  :where(html[data-theme=dark]) .goal-card { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .sv-hero { border-bottom:4px solid #6b5a20; }
  :where(html[data-theme=dark]) .sv-card { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .sv-card.done { background:#1e3226; border-color:#2e5a41; }
  :where(html[data-theme=dark]) .sv-ico { background:var(--accent-soft, #3a3219); }
  :where(html[data-theme=dark]) .sv-prog { background:var(--bg, #2d2826); }
  :where(html[data-theme=dark]) .sv-q, :where(html[data-theme=dark]) .sv-res { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .sv-req { color:#ff8a90; }
  :where(html[data-theme=dark]) .sv-opt span { border:2px solid var(--line, #3d3835); background:#262221; }
  :where(html[data-theme=dark]) .sv-opt:has(input:checked) span { background:#3b1e20; }
  :where(html[data-theme=dark]) .sv-opt:has(input:focus-visible) span, :where(html[data-theme=dark]) .sv-dot:has(input:focus-visible) span { outline:3px solid #6b5a20; }
  :where(html[data-theme=dark]) .sv-dot span { border:2px solid var(--line, #3d3835); background:#262221; }
  :where(html[data-theme=dark]) .sv-ends { color:var(--muted, #ece6e0); }
  :where(html[data-theme=dark]) .sv-track { background:#2d2826; }
  :where(html[data-theme=dark]) .sv-avg strong { color:#ff8a90; }
  :where(html[data-theme=dark]) .sv-quotes blockquote { border-left:4px solid #6b5a20; background:#2d2826; }
  :where(html[data-theme=dark]) .org-logo { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .org-logo b { color:#ff8a90; }
  :where(html[data-theme=dark]) .mo-hero { border:2px solid #6b5a20; }
  :where(html[data-theme=dark]) .mo-card { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .mo-month { color:#ff8a90; }
  :where(html[data-theme=dark]) .rk-month { border:2px solid #6b5a20; }
  :where(html[data-theme=dark]) .home-tile { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .tile-cta { color:#ff8a90; }
  :where(html[data-theme=dark]) .tile-goal { border-top:4px solid #6b5a20; }
  :where(html[data-theme=dark]) .tile-month { border:2px solid #6b5a20; }
  :where(html[data-theme=dark]) .todo-card { background:#262221; border:1px solid var(--line, #3d3835); border-left:5px solid #6b5a20; }
  :where(html[data-theme=dark]) .todo-row, :where(html[data-theme=dark]) .thanks-note { border-top:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .todo-ico { background:var(--accent-soft, #3a3219); }
  :where(html[data-theme=dark]) .thanks-note { background:#2d2826; border:1px solid #6b5a20; }
  :where(html[data-theme=dark]) .person-card { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .newbies { background:#1e3226; border:1px solid #2e5a41; }
  :where(html[data-theme=dark]) .chip-link { background:#262221; border:1px solid #2e5a41; }
  :where(html[data-theme=dark]) .cf-person { border:1px solid var(--line, #3d3835); background:#2d2826; }
  :where(html[data-theme=dark]) .cf-note { background:#262221; border-left:3px solid #6b5a20; }
  :where(html[data-theme=dark]) .cf-tip { color:var(--muted, #ece6e0); }
  :where(html[data-theme=dark]) .dir-month { border:2px solid #6b5a20; }
  :where(html[data-theme=dark]) .org-card.is-month { border:2px solid #6b5a20; background:linear-gradient(#2d2826, #262221 40%); }
  :where(html[data-theme=dark]) .month-ribbon { color:#ece6e0; }
  :where(html[data-theme=dark]) .th-form { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .th-steps span { background:#2d2826; color:var(--muted, #ece6e0); }
  :where(html[data-theme=dark]) .th-steps span.ok { background:#1e3226; color:#6fd49c; }
  :where(html[data-theme=dark]) .th-pick { border:2px solid var(--line, #3d3835); background:#262221; }
  :where(html[data-theme=dark]) .th-pick:hover { background:#3b1e20; }
  :where(html[data-theme=dark]) .th-chosen { background:#2d2826; border:1px solid #6b5a20; }
  :where(html[data-theme=dark]) .chip-btn { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .chip-btn:hover { background:#3b1e20; }
  :where(html[data-theme=dark]) .th-card { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .th-card.mine { background:linear-gradient(#2d2826, #262221); border-color:#6b5a20; }
  :where(html[data-theme=dark]) .th-card blockquote { background:#2d2826; }
  :where(html[data-theme=dark]) .th-date { color:var(--muted, #ece6e0); }
  :where(html[data-theme=dark]) .nc-hero { border-bottom-color:#6b5a20; }
  :where(html[data-theme=dark]) .nc-mentor { background:#262221; border:1px solid #2e5a41; }
  :where(html[data-theme=dark]) .nc-optin { background:#1e3226; border:1px solid #2e5a41; }
  :where(html[data-theme=dark]) .nc-card { background:#262221; border:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .org-ini { color:var(--brand,#ece6e0); }
  :where(html[data-theme=dark]) .org-tagline { color:var(--muted,#ece6e0); }
  :where(html[data-theme=dark]) .org-ico { background:var(--soft,#1f2a38); }
  :where(html[data-theme=dark]) .oa-card { background:var(--card,#262221); }
  :where(html[data-theme=dark]) .oa-logo { background:#262221; }
  :where(html[data-theme=dark]) .oa-logo b { color:var(--brand,#ece6e0); }
  :where(html[data-theme=dark]) .oa-f>span { color:var(--muted,#ece6e0); }
  :where(html[data-theme=dark]) .oa-since { background:#2d2826; border:1px solid #6b5a20; }
  :where(html[data-theme=dark]) .cf-table { border:2px dashed #6b5a20; background:#2d2826; }
  :where(html[data-theme=dark]) .cf-steps b { color:#ece6e0; }
  :where(html[data-theme=dark]) .adm-nav { background:#262221; }
  :where(html[data-theme=dark]) .adm-label { color:var(--brand-dark,#ece6e0); }
  :where(html[data-theme=dark]) .adm-items a { background:#2d2826; }
  :where(html[data-theme=dark]) .adm-items a:hover { background:#262221; }
  :where(html[data-theme=dark]) .todo-x { color:var(--muted, #ece6e0); }
  :where(html[data-theme=dark]) .todo-x:hover { background:#2d2826; color:#ece6e0; }
  :where(html[data-theme=dark]) .home-big { background:#262221; border:1px solid var(--line,#3d3835); }
  :where(html[data-theme=dark]) .home-big>.tile-retos { border-left:1px solid var(--line,#3d3835); }
  :where(html[data-theme=dark]) .goal-nc { border:1px solid var(--line,#3d3835); background:#2d2826; }
  :where(html[data-theme=dark]) .goal-nc:hover { border-color:#6b5a20; }
  :where(html[data-theme=dark]) .home-big>.tile-retos { border-top:1px solid var(--line,#3d3835); }
  :where(html[data-theme=dark]) .help-q { color:#ece6e0 !important; }
  :where(html[data-theme=dark]) .month-cta { background:#3a3219; color:#e9c66a; border:2px solid #6b5a20; }
  :where(html[data-theme=dark]) .month-cta.ok { background:#1e3226; color:#6fd49c; }
  :where(html[data-theme=dark]) .cfg-index { background:color-mix(in srgb, var(--bg, #2d2826) 92%, transparent); }
  :where(html[data-theme=dark]) .rk-index { background:color-mix(in srgb, var(--bg, #2d2826) 92%, transparent); }
  :where(html[data-theme=dark]) .subnav .sub-more { border:1px solid #6b5a20; background:#262221; }
  :where(html[data-theme=dark]) .tabbar { border-top:1px solid var(--line, #3d3835); }
  :where(html[data-theme=dark]) .tabbar a { color:#ece6e0; }
  :where(html[data-theme=dark]) .tabbar a[aria-current] { color:var(--brand, #ff8a90); }
  :where(html[data-theme=dark]) .tabbar a:active { background:#2d2826; }
  :where(html[data-theme=dark]) .tabbar .badge-dot { color:var(--ink, #ece6e0); }
  :where(html[data-theme=dark]) .ms-panel { background:#262221; }
  :where(html[data-theme=dark]) .ms-grip { background:#2d2826; }
  :where(html[data-theme=dark]) .ms-title { color:var(--brand-dark, #ff8a90); }
  :where(html[data-theme=dark]) .ms-item { border:1px solid var(--line, #3d3835); color:var(--ink, #ece6e0); }
  :where(html[data-theme=dark]) .ms-item.on { background:#3b1e20; }
  :where(html[data-theme=dark]) .tabbar { background:#262221; }
:where(html[data-theme=dark]) .topbar .brand, :where(html[data-theme=dark]) .topbar .brand:hover { background: #fff; }
:where(html[data-theme=dark]) .rk-index { background: transparent; }

/* Encuestas: las etiquetas largas (p. ej. «Abierta hasta el viernes, 30 de abril de 2027») pasan a otra línea en vez de salirse de la tarjeta */
.sv-top .badge { white-space: normal; max-width: 100%; border-radius: 12px; line-height: 1.35; padding-top: .15rem; padding-bottom: .15rem; }

/* Contador de pendientes en el menú «Más» (administración) */
.ms-item .badge-dot { background: var(--accent); color: var(--ink); font-weight: 700; border-radius: 99px; font-size: .72rem; padding: 0 .4rem; }

/* Barra superior más compacta en pantallas medianas, para que quepan todas las secciones y el contador */
@media (min-width: 761px) and (max-width: 1400px) { .topbar { gap: .6rem; } .topbar nav { gap: .1rem; } .topbar nav a { padding: .4rem .5rem; font-size: .9rem; } }

/* Ruleta: brillo en el título mientras gira, destello al parar y confeti */
.rl-shine { background: linear-gradient(90deg, currentColor 40%, #f0c63a 50%, currentColor 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: rl-sh 1.6s linear infinite; }
@keyframes rl-sh { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.roulette.rl-flash { animation: rl-fl .7s ease-out; }
@keyframes rl-fl { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } 30% { box-shadow: 0 0 60px 30px rgba(255,235,150,.9); } 100% { box-shadow: 0 0 0 3px rgba(240,198,58,.4); } }
.rl-confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 3000; }
.rl-confetti i { position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 2px; animation: rl-cf linear forwards; }
@keyframes rl-cf { to { transform: translate(var(--sw), 105vh) rotate(900deg); } }
@media (prefers-reduced-motion: reduce) { .rl-shine, .roulette.rl-flash { animation: none; } .rl-confetti { display: none; } }

/* Motivos en «Personas que deberías conocer»: si la lista es larga, el texto baja de línea y no se sale de la tarjeta */
.person-card .chips .badge { white-space: normal; max-width: 100%; overflow-wrap: anywhere; border-radius: 14px; line-height: 1.3; padding: .2rem .65rem; }
.person-card { min-width: 0; }

/* Inicio: «Desde tu última visita» */
.wn-card { padding: .9rem 1rem; }
.wn-card.wn-empty { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.wn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin-top: .6rem; }
.wn-item { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico n" "ico l"; column-gap: .55rem; align-items: center; padding: .5rem .65rem; border: 1px solid var(--line, #e3e6ec); border-radius: 12px; text-decoration: none; color: inherit; background: var(--bg-soft, #f7f8fb); min-width: 0; }
.wn-item:hover { border-color: var(--accent, #0a58ca); }
.wn-ico { grid-area: ico; font-size: 1.4rem; }
.wn-n { grid-area: n; font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.wn-l { grid-area: l; font-size: .8rem; line-height: 1.25; color: var(--muted, #5b6472); overflow-wrap: anywhere; }
.wn-rank { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: inherit; }
.wn-pos { font-weight: 800; font-size: 1.1rem; background: var(--accent, #0a58ca); color: #fff; border-radius: 999px; padding: .05rem .6rem; }
.wn-up { color: #138a4b; } .wn-down { color: #c0392b; }
.tag-chip { display: inline-flex; align-items: center; gap: .25rem; white-space: normal; border-radius: 14px; cursor: default; }
button.tag-chip { cursor: pointer; }
.tag-chip a { color: inherit; }
.tag-chip .link { padding: 0 .1rem; line-height: 1; }
.mention { font-weight: 600; color: var(--accent, #0a58ca); text-decoration: none; }
a.mention:hover { text-decoration: underline; }
.mention-list { display: flex; flex-direction: column; gap: .2rem; margin-top: .3rem; border: 1px solid var(--line, #e3e6ec); border-radius: 12px; padding: .3rem; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.08); max-height: 14rem; overflow: auto; }
.mention-list[hidden] { display: none; }
.mention-list button { text-align: left; border: 0; background: transparent; padding: .45rem .6rem; border-radius: 8px; font: inherit; color: inherit; cursor: pointer; }
.mention-list button:hover, .mention-list button:focus { background: var(--bg-soft, #f2f4f8); }

/* Rondas temáticas de la Cafetería */
.card.cf-theme { position: relative; overflow: hidden; }
.card.cf-navidad { border: 1px solid #c9d8c5; background: linear-gradient(135deg, #fff 60%, #f3f8f1); border-left: 5px solid #1f7a45; }
.card.cf-sanvalentin { border: 1px solid #f0c6d0; background: linear-gradient(135deg, #fff 60%, #fff1f4); border-left: 5px solid #d6336c; }

/* Diseños de temporada: la clase season-navidad | season-sanvalentin | season-verano va en <html> (automático por fechas o a mano en Configuración → Aspecto) */
.season-card { border-left: 5px solid var(--accent); }
html.season-navidad .season-card { background: linear-gradient(135deg, #fff 55%, #fdeeee); border: 1px solid #ecc4c0; border-left: 5px solid #c0392b; }
html.season-sanvalentin .season-card { background: linear-gradient(135deg, #fff 55%, #fff0f4); border: 1px solid #f0c6d0; border-left: 5px solid #d6336c; }
html.season-verano .season-card { background: linear-gradient(135deg, #fff 55%, #fff7dc); border: 1px solid #f2dc92; border-left: 5px solid #f0a500; }
html.season-sanjorge .season-card { background: linear-gradient(135deg, #fff 55%, #fff6d6); border: 1px solid #efd77a; border-left: 5px solid #da121a; }
html.season-sancristobal .season-card { background: linear-gradient(135deg, #fff 55%, #eef1f5); border: 1px solid #c9d0da; border-left: 5px solid #ffb703; }
html.season-pilar .season-card { background: linear-gradient(135deg, #fff 55%, #eef4ff); border: 1px solid #c4d6f3; border-left: 5px solid #2b5aa8; }
html.season-halloween .season-card { background: linear-gradient(135deg, #fff 55%, #fff0e0); border: 1px solid #f3c79a; border-left: 5px solid #ff7a00; }
html.season-aniversario .season-card { background: linear-gradient(135deg, #fff 55%, #fff8dc); border: 1px solid #ecd27a; border-left: 5px solid #d4a017; }
html.season-sobrio .season-card { background: #f4f4f5; border: 1px solid #d0d0d4; border-left: 5px solid #222; }
html[data-theme="dark"] .season-card { background: #26211f; border-color: #5a4a42; }
html[class*="season-"] .topbar .brand::after { margin-left: .35rem; font-size: 1.1rem; }

/* Navidad: nieve, guirnalda de lucecitas que parpadean y cinta roja y verde */
html.season-navidad .topbar .brand::after { content: '🎄'; }
html.season-navidad .topbar { border-bottom: 3px solid transparent; border-image: repeating-linear-gradient(90deg, #c0392b 0 18px, #fff 18px 26px, #1f7a45 26px 44px, #fff 44px 52px) 1; }
html.season-navidad .topbar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; bottom: auto; height: 16px; pointer-events: none; margin-top: 3px; background-color: transparent;
  background-image: radial-gradient(circle at 12px 9px, #ff3b30 0 4px, transparent 5px), radial-gradient(circle at 36px 9px, #ffd60a 0 4px, transparent 5px), radial-gradient(circle at 60px 9px, #34c759 0 4px, transparent 5px), radial-gradient(circle at 84px 9px, #0a84ff 0 4px, transparent 5px), linear-gradient(#3b3b3b, #3b3b3b);
  background-size: 96px 16px, 96px 16px, 96px 16px, 96px 16px, 100% 1px; background-repeat: repeat-x, repeat-x, repeat-x, repeat-x, no-repeat; background-position: 0 0, 0 0, 0 0, 0 0, 0 1px;
  filter: drop-shadow(0 0 3px rgba(255,214,10,.9)); animation: season-twinkle 1.8s ease-in-out infinite alternate; z-index: 1; }
@keyframes season-twinkle { from { opacity: .55; filter: drop-shadow(0 0 1px rgba(255,214,10,.6)); } to { opacity: 1; filter: drop-shadow(0 0 5px rgba(255,255,255,.95)); } }
html.season-navidad body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: .55;
  background-image: radial-gradient(circle, #fff 0 2px, transparent 3px), radial-gradient(circle, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle, #fff 0 3px, transparent 4px);
  background-size: 190px 230px, 130px 170px, 310px 270px; background-position: 0 0, 40px 60px, 90px 20px;
  filter: drop-shadow(0 0 1px rgba(120,150,190,.7)); animation: season-snow 18s linear infinite; }
@keyframes season-snow { from { background-position: 0 0, 40px 60px, 90px 20px; } to { background-position: 30px 230px, 10px 230px, 60px 270px; } }

/* San Valentín: corazones que suben suavemente y cabecera en rosa */
html.season-sanvalentin .topbar .brand::after { content: '💘'; }
html.season-sanvalentin .topbar { border-bottom: 3px solid #d6336c; box-shadow: 0 2px 10px rgba(214,51,108,.18); }
html.season-sanvalentin body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='220'%20height='260'%3E%3Cpath%20transform='translate%2860%2070%29%20scale%281.3%29'%20fill='%23e0527a'%20d='M12%2021s-7.5-4.6-9.6-9.2C.9%208.3%203%205%206.2%205c1.9%200%203.4%201%204.4%202.5h.8C12.4%206%2013.9%205%2015.8%205%2019%205%2021.1%208.3%2021.6%2011.8%2019.5%2016.4%2012%2021%2012%2021z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='150'%20height='190'%3E%3Cpath%20transform='translate%2890%2030%29%20scale%28.9%29'%20fill='%23f4a3b8'%20d='M12%2021s-7.5-4.6-9.6-9.2C.9%208.3%203%205%206.2%205c1.9%200%203.4%201%204.4%202.5h.8C12.4%206%2013.9%205%2015.8%205%2019%205%2021.1%208.3%2021.6%2011.8%2019.5%2016.4%2012%2021%2012%2021z'/%3E%3C/svg%3E"); background-size: 220px 260px, 150px 190px; background-repeat: repeat, repeat; background-position: 20px 0, 90px 60px; animation: season-hearts 26s linear infinite; }
@keyframes season-hearts { from { background-position: 20px 0, 90px 60px; } to { background-position: 50px -260px, 60px -190px; } }

/* Verano: sol, mar con olas y cabecera luminosa */
html.season-verano .topbar .brand::after { content: '☀️'; }
html.season-verano .topbar { border-bottom: 3px solid #f0a500; box-shadow: 0 2px 10px rgba(240,165,0,.2); }
html.season-verano body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(circle at 92% 6%, rgba(255,214,10,.38) 0 70px, rgba(255,214,10,.14) 71px 150px, transparent 151px); }
html.season-verano body::after { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 26px; pointer-events: none; z-index: 5; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='26'%20viewBox='0%200%20160%2026'%3E%3Cpath%20fill='%238fd8f5'%20d='M0%2013%20Q20%2024%2040%2013%20T80%2013%20T120%2013%20T160%2013%20V26%20H0Z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='26'%20viewBox='0%200%20160%2026'%3E%3Cpath%20fill='%234db6e8'%20d='M0%2013%20Q20%200%2040%2013%20T80%2013%20T120%2013%20T160%2013%20V26%20H0Z'/%3E%3C/svg%3E"); background-size: 160px 26px, 160px 26px; background-repeat: repeat-x, repeat-x; background-position: 0 4px, 0 8px; animation: season-waves 9s linear infinite; }
@keyframes season-waves { from { background-position: 0 4px, 0 8px; } to { background-position: 160px 4px, -160px 8px; } }
.card.cf-verano { border: 1px solid #f2dc92; background: linear-gradient(135deg, #fff 60%, #fff7dc); border-left: 5px solid #f0a500; }
html[data-theme="dark"] .card.cf-verano { background: #2b2616; border-color: #6b5a1e; }
@media (prefers-reduced-motion: reduce) { html[class*="season-"] body::before, html[class*="season-"] body::after, html.season-navidad .topbar::after { animation: none; } }


/* Día de Aragón / San Jorge: barras rojas y amarillas, pétalos de rosa */
html.season-sanjorge .topbar .brand::after { content: '🌹'; }
html.season-sanjorge .topbar { border-bottom: 3px solid transparent; border-image: repeating-linear-gradient(90deg, #da121a 0 14px, #fcdd09 14px 28px) 1; }
html.season-sanjorge body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: .6; border-left: 8px solid transparent; border-image: repeating-linear-gradient(180deg, #fcdd09 0 12px, #da121a 12px 24px) 1;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='280'%3E%3Cellipse%20cx='40'%20cy='50'%20rx='5'%20ry='9'%20fill='%23d6283a'%20transform='rotate%2830%2040%2050%29'/%3E%3Cellipse%20cx='150'%20cy='130'%20rx='5'%20ry='9'%20fill='%23e8505e'%20transform='rotate%28-40%20150%20130%29'/%3E%3Cellipse%20cx='90'%20cy='220'%20rx='5'%20ry='9'%20fill='%23c01f30'%20transform='rotate%2860%2090%20220%29'/%3E%3Cellipse%20cx='200'%20cy='20'%20rx='5'%20ry='9'%20fill='%23d6283a'%20transform='rotate%28-15%20200%2020%29'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='170'%20height='210'%3E%3Cellipse%20cx='30'%20cy='40'%20rx='5'%20ry='9'%20fill='%23f3c614'%20transform='rotate%28-30%2030%2040%29'/%3E%3Cellipse%20cx='120'%20cy='110'%20rx='5'%20ry='9'%20fill='%23e8505e'%20transform='rotate%2845%20120%20110%29'/%3E%3Cellipse%20cx='70'%20cy='175'%20rx='5'%20ry='9'%20fill='%23f3c614'%20transform='rotate%2810%2070%20175%29'/%3E%3C/svg%3E"); background-size: 240px 280px, 170px 210px; background-position: 0 0, 60px 80px; animation: season-fall 22s linear infinite; }
@keyframes season-fall { from { background-position: 0 0, 60px 80px; } to { background-position: 40px 280px, 20px 290px; } }

/* San Cristóbal: carretera abajo con un camión que pasa despacio */
html.season-sancristobal .topbar .brand::after { content: '🚛'; }
html.season-sancristobal .topbar { border-bottom: 3px solid #ffb703; box-shadow: 0 2px 10px rgba(255,183,3,.22); }
html.season-sancristobal body::before { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 14px; pointer-events: none; z-index: 5; opacity: .75;
  background: repeating-linear-gradient(90deg, #fff 0 20px, transparent 20px 40px) center / 100% 2px no-repeat, #3a3f47; }
html.season-sancristobal body::after { content: '🚚'; position: fixed; bottom: 10px; left: 0; font-size: 1.7rem; line-height: 1; pointer-events: none; z-index: 5; animation: season-truck 45s linear infinite; }
@keyframes season-truck { from { transform: translateX(-12vw) scaleX(-1); } to { transform: translateX(112vw) scaleX(-1); } }

/* Pilar: ofrenda de flores que caen */
html.season-pilar .topbar .brand::after { content: '💐'; }
html.season-pilar .topbar { border-bottom: 3px solid #2b5aa8; box-shadow: 0 2px 10px rgba(43,90,168,.18); }
html.season-pilar body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: .6;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='260'%20height='300'%3E%3Ccircle%20cx='56.0'%20cy='60.0'%20r='4'%20fill='%23ff8fab'/%3E%3Ccircle%20cx='51.85431345009708'%20cy='65.70627037817076'%20r='4'%20fill='%23ff8fab'/%3E%3Ccircle%20cx='45.14615945707031'%20cy='63.5270713040442'%20r='4'%20fill='%23ff8fab'/%3E%3Ccircle%20cx='45.145505948775906'%20cy='56.47382820800944'%20r='4'%20fill='%23ff8fab'/%3E%3Ccircle%20cx='51.85325600539599'%20cy='54.2933861022088'%20r='4'%20fill='%23ff8fab'/%3E%3Ccircle%20cx='50'%20cy='60'%20r='2.6'%20fill='%23ffd23f'/%3E%3Ccircle%20cx='186.0'%20cy='150.0'%20r='4'%20fill='%23ffffff'/%3E%3Ccircle%20cx='181.85431345009707'%20cy='155.70627037817076'%20r='4'%20fill='%23ffffff'/%3E%3Ccircle%20cx='175.14615945707033'%20cy='153.5270713040442'%20r='4'%20fill='%23ffffff'/%3E%3Ccircle%20cx='175.1455059487759'%20cy='146.47382820800945'%20r='4'%20fill='%23ffffff'/%3E%3Ccircle%20cx='181.853256005396'%20cy='144.29338610220879'%20r='4'%20fill='%23ffffff'/%3E%3Ccircle%20cx='180'%20cy='150'%20r='2.6'%20fill='%23ffd23f'/%3E%3Ccircle%20cx='97.2'%20cy='250.0'%20r='4.8'%20fill='%239ec9ff'/%3E%3Ccircle%20cx='92.2251761401165'%20cy='256.8475244538049'%20r='4.8'%20fill='%239ec9ff'/%3E%3Ccircle%20cx='84.17539134848437'%20cy='254.23248556485305'%20r='4.8'%20fill='%239ec9ff'/%3E%3Ccircle%20cx='84.17460713853109'%20cy='245.76859384961134'%20r='4.8'%20fill='%239ec9ff'/%3E%3Ccircle%20cx='92.22390720647519'%20cy='243.15206332265055'%20r='4.8'%20fill='%239ec9ff'/%3E%3Ccircle%20cx='90'%20cy='250'%20r='3.12'%20fill='%23ffd23f'/%3E%3Ccircle%20cx='226.0'%20cy='40.0'%20r='4'%20fill='%23ffb347'/%3E%3Ccircle%20cx='221.85431345009707'%20cy='45.70627037817076'%20r='4'%20fill='%23ffb347'/%3E%3Ccircle%20cx='215.14615945707033'%20cy='43.5270713040442'%20r='4'%20fill='%23ffb347'/%3E%3Ccircle%20cx='215.1455059487759'%20cy='36.47382820800944'%20r='4'%20fill='%23ffb347'/%3E%3Ccircle%20cx='221.853256005396'%20cy='34.2933861022088'%20r='4'%20fill='%23ffb347'/%3E%3Ccircle%20cx='220'%20cy='40'%20r='2.6'%20fill='%23ffd23f'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='180'%20height='220'%3E%3Ccircle%20cx='46.0'%20cy='50.0'%20r='4'%20fill='%23ffffff'/%3E%3Ccircle%20cx='41.85431345009708'%20cy='55.70627037817076'%20r='4'%20fill='%23ffffff'/%3E%3Ccircle%20cx='35.14615945707031'%20cy='53.5270713040442'%20r='4'%20fill='%23ffffff'/%3E%3Ccircle%20cx='35.145505948775906'%20cy='46.47382820800944'%20r='4'%20fill='%23ffffff'/%3E%3Ccircle%20cx='41.85325600539599'%20cy='44.2933861022088'%20r='4'%20fill='%23ffffff'/%3E%3Ccircle%20cx='40'%20cy='50'%20r='2.6'%20fill='%23ffd23f'/%3E%3Ccircle%20cx='136.0'%20cy='140.0'%20r='4'%20fill='%23ff8fab'/%3E%3Ccircle%20cx='131.85431345009707'%20cy='145.70627037817076'%20r='4'%20fill='%23ff8fab'/%3E%3Ccircle%20cx='125.14615945707031'%20cy='143.5270713040442'%20r='4'%20fill='%23ff8fab'/%3E%3Ccircle%20cx='125.1455059487759'%20cy='136.47382820800945'%20r='4'%20fill='%23ff8fab'/%3E%3Ccircle%20cx='131.853256005396'%20cy='134.29338610220879'%20r='4'%20fill='%23ff8fab'/%3E%3Ccircle%20cx='130'%20cy='140'%20r='2.6'%20fill='%23ffd23f'/%3E%3Ccircle%20cx='65.4'%20cy='190.0'%20r='3.6'%20fill='%23ffb347'/%3E%3Ccircle%20cx='61.66888210508737'%20cy='195.13564334035368'%20r='3.6'%20fill='%23ffb347'/%3E%3Ccircle%20cx='55.63154351136328'%20cy='193.1743641736398'%20r='3.6'%20fill='%23ffb347'/%3E%3Ccircle%20cx='55.630955353898315'%20cy='186.8264453872085'%20r='3.6'%20fill='%23ffb347'/%3E%3Ccircle%20cx='61.66793040485639'%20cy='184.86404749198792'%20r='3.6'%20fill='%23ffb347'/%3E%3Ccircle%20cx='60'%20cy='190'%20r='2.3400000000000003'%20fill='%23ffd23f'/%3E%3C/svg%3E"); background-size: 260px 300px, 180px 220px; background-position: 0 0, 70px 90px; animation: season-fall 26s linear infinite; }

/* Halloween: murciélagos, calabaza y niebla naranja */
html.season-halloween .topbar .brand::after { content: '🎃'; }
html.season-halloween .topbar { border-bottom: 3px solid #ff7a00; box-shadow: 0 2px 10px rgba(255,122,0,.22); }
html.season-halloween body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5; background: radial-gradient(ellipse at 50% 108%, rgba(255,122,0,.18) 0, rgba(255,122,0,.06) 40%, transparent 70%); }
html.season-halloween body::after { content: '🦇'; position: fixed; top: 4.5rem; left: 0; font-size: 1.5rem; pointer-events: none; z-index: 5; animation: season-bat 18s linear infinite; }
@keyframes season-bat { 0% { transform: translate(-10vw, 0) rotate(-6deg); } 25% { transform: translate(25vw, 40px) rotate(6deg); } 50% { transform: translate(55vw, -10px) rotate(-6deg); } 75% { transform: translate(85vw, 50px) rotate(6deg); } 100% { transform: translate(112vw, 0) rotate(-6deg); } }

/* Aniversario de ALIA: confeti dorado */
html.season-aniversario .topbar .brand::after { content: '🎉'; }
html.season-aniversario .topbar { border-bottom: 3px solid #d4a017; box-shadow: 0 2px 12px rgba(212,160,23,.3); }
html.season-aniversario body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: .8;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='220'%20height='260'%3E%3Crect%20x='30'%20y='40'%20width='8'%20height='4'%20fill='%23f4b400'%20transform='rotate%2825%2030%2040%29'/%3E%3Crect%20x='120'%20y='90'%20width='8'%20height='4'%20fill='%23d6336c'%20transform='rotate%28-35%20120%2090%29'/%3E%3Crect%20x='180'%20y='30'%20width='8'%20height='4'%20fill='%232b8cff'%20transform='rotate%2850%20180%2030%29'/%3E%3Crect%20x='70'%20y='170'%20width='8'%20height='4'%20fill='%232ecc71'%20transform='rotate%28-20%2070%20170%29'/%3E%3Crect%20x='150'%20y='210'%20width='8'%20height='4'%20fill='%23f4b400'%20transform='rotate%2870%20150%20210%29'/%3E%3Crect%20x='20'%20y='230'%20width='8'%20height='4'%20fill='%23c0392b'%20transform='rotate%2815%2020%20230%29'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='150'%20height='190'%3E%3Crect%20x='20'%20y='30'%20width='6'%20height='3'%20fill='%232b8cff'%20transform='rotate%28-30%2020%2030%29'/%3E%3Crect%20x='100'%20y='70'%20width='6'%20height='3'%20fill='%23f4b400'%20transform='rotate%2840%20100%2070%29'/%3E%3Crect%20x='60'%20y='150'%20width='6'%20height='3'%20fill='%23d6336c'%20transform='rotate%2815%2060%20150%29'/%3E%3Crect%20x='125'%20y='170'%20width='6'%20height='3'%20fill='%232ecc71'%20transform='rotate%28-50%20125%20170%29'/%3E%3C/svg%3E"); background-size: 220px 260px, 150px 190px; background-position: 0 0, 50px 70px; animation: season-fall 14s linear infinite; }

/* Modo sobrio: sin animaciones, lazo negro */
html.season-sobrio .topbar .brand::after { content: '🖤'; }
html.season-sobrio .topbar { border-bottom: 3px solid #222; }

/* Miniatura de vídeo de YouTube en anuncios y novedades */
.yt-card { position: relative; display: block; max-width: 28rem; margin: .5rem 0; border-radius: 12px; overflow: hidden; background: #000; line-height: 0; }
.yt-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 3.4rem; height: 2.4rem; display: grid; place-items: center; background: rgba(200,0,0,.9); color: #fff; border-radius: 12px; font-size: 1.2rem; line-height: 1; }
.yt-card:hover .yt-play { background: #e00; }
html[data-theme="dark"] .card.cf-navidad { background: #1b2a20; border-color: #2f5a3d; }
html[data-theme="dark"] .card.cf-sanvalentin { background: #2d1d23; border-color: #6b3345; }
