/* ============================================================
   HUB KFC Ecuador · v5 "Atlas" · hoja de estilos de la portada
   Móvil primero · tema oscuro por defecto con modo claro
   ============================================================ */
:root {
  --bg: #0b0b0d; --bg-2: #121216; --surface: #17171c; --surface-2: #1f1f26; --surface-3: #27272f;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #f6f6f7; --muted: #9a9aa6; --muted-2: #6f6f7a;
  --red: #e4002b; --red-2: #ff2d4f; --red-deep: #8a0019; --red-soft: rgba(228,0,43,.16);
  --ok: #22c55e; --warn: #f59e0b;
  --glass: rgba(16,16,20,.82); --glass-strong: rgba(14,14,17,.9);
  --tile-bg: var(--surface); --tile-line: rgba(255,255,255,.07);
  --shadow: 0 18px 50px rgba(0,0,0,.55); --shadow-sm: 0 8px 24px rgba(0,0,0,.35);
  --font-display: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --topbar-h: 64px; --gutter: 16px; --radius: 16px; --radius-lg: 24px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --dock-h: 66px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f3f6; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f1f1f5; --surface-3: #e7e7ee;
  --line: rgba(10,10,20,.08); --line-2: rgba(10,10,20,.14);
  --text: #121216; --muted: #62626e; --muted-2: #8a8a96;
  --red-soft: rgba(228,0,43,.1);
  --glass: rgba(255,255,255,.82); --glass-strong: rgba(255,255,255,.92);
  --tile-bg: #ffffff; --tile-line: rgba(10,10,20,.08);
  --shadow: 0 18px 50px rgba(20,20,40,.14); --shadow-sm: 0 8px 24px rgba(20,20,40,.1);
  color-scheme: light;
}

/* ---------- Paletas de los accesos ---------- */
.pal-red      { --p1:#ff2d4f; --p2:#8a0019; --pglow: rgba(228,0,43,.45); }
.pal-neon-red { --p1:#ff4d6d; --p2:#c1001f; --pglow: rgba(255,45,79,.6); }
.pal-black, .pal-ink { --p1:#3a3a44; --p2:#0a0a0c; --pglow: rgba(0,0,0,.5); }
.pal-graphite { --p1:#5b6170; --p2:#1f232c; --pglow: rgba(60,70,90,.45); }
.pal-gray     { --p1:#8b8f9a; --p2:#3d414b; --pglow: rgba(100,105,120,.4); }
.pal-blue     { --p1:#3b82f6; --p2:#1e3a8a; --pglow: rgba(59,130,246,.5); }
.pal-neon-blue{ --p1:#38bdf8; --p2:#1d4ed8; --pglow: rgba(56,189,248,.6); }
.pal-ocean    { --p1:#06b6d4; --p2:#0e4a6b; --pglow: rgba(6,182,212,.5); }
.pal-sky      { --p1:#7dd3fc; --p2:#0369a1; --pglow: rgba(125,211,252,.5); }
.pal-teal     { --p1:#14b8a6; --p2:#0f4f49; --pglow: rgba(20,184,166,.5); }
.pal-green    { --p1:#22c55e; --p2:#14532d; --pglow: rgba(34,197,94,.5); }
.pal-neon-green { --p1:#4ade80; --p2:#15803d; --pglow: rgba(74,222,128,.6); }
.pal-lime     { --p1:#a3e635; --p2:#3f6212; --pglow: rgba(163,230,53,.5); }
.pal-purple   { --p1:#a855f7; --p2:#4c1d95; --pglow: rgba(168,85,247,.5); }
.pal-neon-purple { --p1:#c084fc; --p2:#6d28d9; --pglow: rgba(192,132,252,.6); }
.pal-pink, .pal-rose { --p1:#f472b6; --p2:#9d174d; --pglow: rgba(244,114,182,.5); }
.pal-orange   { --p1:#fb923c; --p2:#9a3412; --pglow: rgba(251,146,60,.5); }
.pal-neon-orange { --p1:#ffb347; --p2:#ea580c; --pglow: rgba(255,179,71,.6); }
.pal-yellow, .pal-gold { --p1:#fbbf24; --p2:#92400e; --pglow: rgba(251,191,36,.5); }
.pal-sand     { --p1:#e7d3b1; --p2:#8c6a3f; --pglow: rgba(231,211,177,.45); }
.pal-white    { --p1:#ffffff; --p2:#cfd2dc; --pglow: rgba(255,255,255,.35); }
.pal-aurora   { --p1:#f472b6; --p2:#3b82f6; --pglow: rgba(168,85,247,.5); }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
  padding-bottom: calc(var(--dock-h) + var(--safe-b));
  transition: background .3s ease, color .3s ease;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { flex: 0 0 auto; }

/* Fondo ambiental */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(42% 32% at 12% 8%, rgba(228,0,43,.26), transparent 70%),
    radial-gradient(36% 30% at 90% 14%, rgba(255,45,79,.12), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(228,0,43,.08), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 60%);
}
:root[data-theme="light"] .ambient::before { opacity: .55; }
:root[data-theme="light"] .ambient::after { background-image: radial-gradient(rgba(10,10,20,.1) 1px, transparent 1px); }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(2%, 3%, 0) scale(1.06); } }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60; height: calc(var(--topbar-h) + var(--safe-t));
  padding: var(--safe-t) var(--gutter) 0; display: flex; align-items: center; gap: 10px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.topbar.is-solid { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 0; }
.brand-logo { height: 40px; width: auto; }
.brand-logo.for-light { display: none; }
:root[data-theme="light"] .brand-logo.for-dark { display: none; }
:root[data-theme="light"] .brand-logo.for-light { display: block; }
.brand-word { font-family: var(--font-display); font-size: 27px; letter-spacing: .09em; line-height: 1; padding-top: 3px; }
.brand-word em { font-style: normal; color: var(--red-2); }
.brand-sub { display: none; font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 1px; }
.topbar-search {
  display: none; flex: 1; max-width: 520px; margin: 0 auto; align-items: center; gap: 10px; height: 42px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px;
  transition: border-color .2s, background .2s, box-shadow .2s; cursor: text;
}
.topbar-search:hover { border-color: var(--line-2); }
.topbar-search span { flex: 1; text-align: left; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); font-size: 11px; font-weight: 700; color: var(--muted); font-family: var(--font-body); }
.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); transition: background .2s, transform .15s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-3); border-color: var(--line-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .ico-sun { display: none; }
:root[data-theme="light"] .icon-btn .ico-sun { display: block; }
:root[data-theme="light"] .icon-btn .ico-moon { display: none; }
.badge-dot { position: absolute; top: 7px; right: 7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; display: none; place-items: center; border: 2px solid var(--bg); line-height: 1; }
.badge-dot.on { display: grid; }
.admin-link { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s, border-color .2s; }
.admin-link:hover { color: var(--text); background: var(--surface-3); border-color: var(--line-2); }
.admin-link span { display: none; }
.admin-link.is-on { color: #fff; background: linear-gradient(135deg, var(--red), #b3001f); border-color: transparent; box-shadow: 0 6px 18px rgba(228,0,43,.35); }
@media (min-width: 760px) {
  .topbar { gap: 16px; }
  .topbar-search { display: inline-flex; }
  .admin-link span { display: inline; }
  .brand-sub { display: block; }
  .brand-text { display: flex; flex-direction: column; }
  .mobile-only { display: none !important; }
}
@media (max-width: 759px) { .desktop-only { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px var(--gutter) 10px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--red-soft); border: 1px solid rgba(228,0,43,.4); color: var(--red-2);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px;
}
:root[data-theme="light"] .hero-kicker { color: #b3001f; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,45,79,.6);} 70% { box-shadow: 0 0 0 10px rgba(255,45,79,0);} 100% { box-shadow: 0 0 0 0 rgba(255,45,79,0);} }
.hero-title { font-family: var(--font-display); font-size: clamp(64px, 17vw, 132px); line-height: .86; margin: 0; letter-spacing: .015em; text-shadow: 0 14px 40px rgba(0,0,0,.35); }
.hero-title em { font-style: normal; color: var(--red); }
.hero-sub { margin: 14px 0 0; max-width: 560px; color: var(--muted); font-size: 15px; }
:root[data-theme="light"] .hero-sub { color: #4b4b57; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; align-items: center; color: var(--muted); font-size: 13px; }
.hero-meta .date { font-weight: 600; color: var(--text); }
.stat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stat-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.stat-chip strong { font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: .04em; }
.stat-chip span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat-chip.red strong { color: var(--red-2); }
@media (min-width: 900px) {
  .hero { padding: 48px var(--gutter) 14px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; max-width: 1440px; margin: 0 auto; }
  .stat-chips { margin-top: 0; justify-content: flex-end; }
  .stat-chip { padding: 12px 16px; border-radius: 14px; }
  .stat-chip strong { font-size: 30px; }
}
@media (min-width: 1200px) { .hero { padding-inline: 32px; } :root { --gutter: 32px; } }
@media (max-width: 1199px) { :root { --gutter: 16px; } }
@media (min-width: 760px) and (max-width: 1199px) { :root { --gutter: 24px; } }

/* ---------- Navegación de secciones (pegajosa) ---------- */
.secnav-wrap { position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); z-index: 50; margin-top: 10px; background: var(--glass); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid var(--line); }
.secnav { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; max-width: 1440px; margin: 0 auto; }
.secnav::-webkit-scrollbar { display: none; }
.secnav .chip-nav {
  flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.secnav .chip-nav:hover { color: var(--text); border-color: var(--line-2); }
.secnav .chip-nav.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.secnav .chip-nav b { font-weight: 700; font-size: 11px; opacity: .7; }
.secnav .chip-nav.is-active b { opacity: .8; }
.secnav .chip-nav .ico { width: 15px; height: 15px; }
.view-toggle { display: none; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-left: auto; flex: 0 0 auto; }
.view-toggle button { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.view-toggle button.is-active { background: var(--text); color: var(--bg); }
@media (min-width: 760px) { .view-toggle { display: inline-flex; } .secnav { padding-block: 12px; } }

/* ---------- Contenedor ---------- */
.page { max-width: 1440px; margin: 0 auto; padding: 0 0 40px; }
.block { padding: 26px 0 4px; scroll-margin-top: calc(var(--topbar-h) + 70px); }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); margin-bottom: 12px; }
.block-head .titles { min-width: 0; }
.block-head h2 { font-family: var(--font-display); font-size: 28px; letter-spacing: .05em; margin: 0; font-weight: 400; line-height: 1; display: flex; align-items: center; gap: 10px; }
.block-head h2 .sec-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--p1, #ff2d4f), var(--p2, #8a0019)); box-shadow: 0 6px 16px var(--pglow, rgba(228,0,43,.4)); flex: 0 0 auto; }
.block-head h2 .sec-ico .ico { width: 16px; height: 16px; }
.block-head h2 small { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 600; white-space: nowrap; }
.block-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.block-head .count { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 760px) { .block { padding-top: 34px; } .block-head h2 { font-size: 34px; } }

/* ---------- Rejilla de tiles ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px var(--gutter) 10px; }
@media (min-width: 560px)  { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; } }
@media (min-width: 900px)  { .grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (min-width: 1500px) { .grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }

/* El tile: tarjeta con zona visual (portada o gradiente) + cuerpo */
.tile {
  position: relative; border-radius: var(--radius-lg); background: var(--tile-bg); border: 1px solid var(--tile-line);
  overflow: hidden; isolation: isolate; box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s;
  animation: tileIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 28ms);
}
@keyframes tileIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.tile-main { display: block; width: 100%; text-align: left; color: inherit; -webkit-tap-highlight-color: transparent; }
.tile-visual {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 0%, color-mix(in srgb, var(--p1) 70%, #fff) 0%, var(--p1) 38%, var(--p2) 100%);
}
.tile-visual::before { /* brillo diagonal */
  content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,0) 62%, rgba(0,0,0,.22) 100%); mix-blend-mode: soft-light; pointer-events: none;
}
.tile-visual .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tile-visual .cover-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.05) 50%, rgba(0,0,0,0) 100%); pointer-events: none; }
.tile-visual .deco { position: absolute; right: -14%; bottom: -24%; width: 70%; height: 90%; color: #fff; opacity: .14; transform: rotate(-12deg); pointer-events: none; }
.tile-visual .deco .ico { width: 100%; height: 100%; stroke-width: 1.2; }
.tile-visual .deco-letter { position: absolute; right: -2%; bottom: -24%; font-family: var(--font-display); font-size: 128px; line-height: 1; color: rgba(255,255,255,.1); pointer-events: none; }
.tile-app {
  position: absolute; left: 14px; top: 14px; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; overflow: hidden;
  background: rgba(255,255,255,.94); color: var(--p2); box-shadow: 0 10px 26px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.3) inset;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.tile-app img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.tile-app .ico { width: 30px; height: 30px; }
.tile-app .emoji { font-size: 30px; line-height: 1; }
.tile-app .letter { font-family: var(--font-display); font-size: 32px; line-height: 1; padding-top: 3px; }
.tile.pal-white .tile-app { background: #15151a; color: #fff; }
.tile.mode-portada .tile-app { left: 12px; top: 12px; width: 44px; height: 44px; border-radius: 13px; }
.tile.mode-portada .tile-app .ico { width: 22px; height: 22px; }
.tile.mode-portada .tile-app .letter { font-size: 24px; }
.tile.mode-portada .tile-app .emoji { font-size: 22px; }
.tile.mode-portada.no-logo .tile-app { display: none; }
.tile-state {
  position: absolute; right: 12px; top: 12px; height: 28px; padding: 0 9px 0 7px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11px; font-weight: 700; letter-spacing: .04em; border: 1px solid rgba(255,255,255,.14);
}
.tile-state .ico { width: 13px; height: 13px; }
.tile-state.lock { background: rgba(20,20,26,.72); }
.tile-state.blocked { background: rgba(120,20,30,.8); }
.tile-state.hidden { background: rgba(80,80,90,.7); }
.tile-body { padding: 12px 12px 12px; }
.tile-body h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-body p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.tile-meta .cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta .go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); flex: 0 0 auto; transition: background .2s, color .2s, transform .2s; }
.tile-meta .go .ico { width: 15px; height: 15px; }
.tile-more { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); opacity: 0; transition: opacity .2s, background .2s; }
.tile-fav { position: absolute; left: 12px; bottom: 56px; display: none; color: #ffcc33; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.tile.is-fav .tile-fav { display: block; }
.tile.is-fav .tile-fav .ico { fill: #ffcc33; stroke: #ffcc33; width: 16px; height: 16px; }
.tile.is-destacado .tile-visual::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #fff, rgba(255,255,255,.2)); opacity: .7; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 0 1px var(--line-2), 0 0 40px -10px var(--pglow); border-color: transparent; z-index: 2; }
  .tile:hover .cover { transform: scale(1.06); }
  .tile:hover .tile-app { transform: translateY(-2px) scale(1.04); }
  .tile:hover .tile-meta .go { background: var(--text); color: var(--bg); }
  .tile:hover .tile-more { opacity: 1; }
  .tile-more:hover { background: var(--surface-3); color: var(--text); }
}
.tile:active { transform: scale(.985); }
.tile.is-blocked .tile-main { cursor: not-allowed; }
.tile.is-blocked .tile-visual { filter: saturate(.3) brightness(.7); }
.tile.is-hidden { outline: 1px dashed var(--line-2); opacity: .75; }

/* ---------- Vista lista ---------- */
body.view-list .grid { display: flex; flex-direction: column; gap: 8px; }
body.view-list .tile { border-radius: 16px; animation: none; display: flex; }
body.view-list .tile-main { display: flex; align-items: center; gap: 14px; padding: 10px 12px; }
body.view-list .tile-visual { aspect-ratio: auto; width: 58px; height: 58px; border-radius: 16px; flex: 0 0 auto; }
body.view-list .tile-visual .deco, body.view-list .tile-visual .deco-letter, body.view-list .cover-fade, body.view-list .tile-visual .cover { display: none; }
body.view-list .tile.mode-portada.no-logo .tile-app { display: grid; }
body.view-list .tile-app { left: 0; top: 0; width: 100%; height: 100%; border-radius: 16px; box-shadow: none; background: transparent; color: #fff; }
body.view-list .tile.has-logo .tile-app { background: rgba(255,255,255,.94); color: var(--p2); }
body.view-list .tile-app .ico { width: 26px; height: 26px; }
body.view-list .tile-app .letter { font-size: 28px; }
body.view-list .tile-state { right: auto; left: 60px; top: auto; bottom: 12px; display: none; }
body.view-list .tile-body { padding: 0; flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
body.view-list .tile-body h3 { -webkit-line-clamp: 1; font-size: 15px; }
body.view-list .tile-body p { -webkit-line-clamp: 1; min-height: 0; grid-column: 1; }
body.view-list .tile-meta { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
body.view-list .tile-meta .cat { display: none; }
body.view-list .tile-more { position: static; opacity: 1; align-self: center; margin-right: 6px; }
body.view-list .tile-fav { left: auto; right: 54px; bottom: auto; top: 50%; transform: translateY(-50%); }
body.view-list .tile.is-destacado .tile-visual::after { display: none; }

/* ---------- Destacados (tarjetas grandes) ---------- */
.feature-rail { display: flex; gap: 14px; overflow-x: auto; padding: 6px var(--gutter) 18px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.feature-rail::-webkit-scrollbar { display: none; }
.feature {
  position: relative; flex: 0 0 min(86vw, 440px); scroll-snap-align: start; aspect-ratio: 16 / 9.5; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(130% 100% at 0% 0%, color-mix(in srgb, var(--p1) 70%, #fff) 0%, var(--p1) 35%, var(--p2) 100%);
  color: #fff; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.08); text-align: left; cursor: pointer;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.feature .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.feature .fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.05) 100%), linear-gradient(to right, rgba(0,0,0,.35), transparent 60%); }
.feature .deco { position: absolute; right: -8%; top: -10%; width: 62%; height: 120%; opacity: .14; transform: rotate(-10deg); pointer-events: none; }
.feature .deco .ico { width: 100%; height: 100%; stroke-width: 1; }
.feature .deco-letter { position: absolute; right: 2%; top: -18%; font-family: var(--font-display); font-size: 260px; line-height: 1; color: rgba(255,255,255,.1); pointer-events: none; }
.feature .f-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; align-items: flex-end; gap: 14px; }
.feature .f-app { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.94); color: var(--p2); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.feature .f-app img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.feature .f-app .ico { width: 32px; height: 32px; }
.feature .f-app .letter { font-family: var(--font-display); font-size: 34px; line-height: 1; padding-top: 3px; }
.feature .f-app .emoji { font-size: 32px; line-height: 1; }
.feature.pal-white .f-app { background: #15151a; color: #fff; }
.feature .f-text { flex: 1; min-width: 0; }
.feature .f-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.feature h3 { margin: 2px 0 0; font-family: var(--font-display); font-size: 30px; letter-spacing: .03em; line-height: .95; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature p { margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature .f-cta { flex: 0 0 auto; height: 40px; padding: 0 16px; border-radius: 12px; background: #fff; color: #111; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.feature .f-cta .ico { width: 15px; height: 15px; }
@media (max-width: 559px) { .feature .f-cta { width: 42px; padding: 0; border-radius: 50%; } .feature .f-cta span { display: none; } .feature .f-app { width: 54px; height: 54px; border-radius: 16px; } .feature .f-body { gap: 10px; padding: 14px; } .feature p { -webkit-line-clamp: 1; } }
.feature .f-state { position: absolute; top: 12px; left: 12px; }
.feature .tile-state { position: static; }
@media (hover: hover) {
  .feature:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 60px -10px var(--pglow); }
  .feature:hover .cover { transform: scale(1.05); }
}
@media (min-width: 900px) {
  .tile-visual { aspect-ratio: 16 / 11; }
  .feature-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding-bottom: 8px; }
  .feature-rail.count-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .feature-rail.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-rail.count-4, .feature-rail.count-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature { flex: initial; aspect-ratio: 16 / 9; }
  .feature .f-body { padding: 20px; }
  .feature h3 { font-size: 36px; }
}

/* ---------- Más usados (rail compacto) ---------- */
.mini-rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px var(--gutter) 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.mini-rail::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .15s; max-width: 260px; }
.mini:hover { background: var(--surface-2); border-color: var(--line-2); }
.mini:active { transform: scale(.97); }
.mini .m-app { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--p1), var(--p2)); flex: 0 0 auto; }
.mini.has-logo .m-app { background: #fff; color: var(--p2); }
.mini .m-app img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mini .m-app .ico { width: 18px; height: 18px; }
.mini .m-app .letter { font-family: var(--font-display); font-size: 20px; line-height: 1; padding-top: 2px; }
.mini .m-app .emoji { font-size: 18px; }
.mini .m-text { min-width: 0; text-align: left; }
.mini .m-text strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.mini .m-text span { display: block; font-size: 11px; color: var(--muted); }

/* ---------- Estados vacíos / carga ---------- */
.skeleton-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px var(--gutter); }
@media (min-width: 560px) { .skeleton-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 900px) { .skeleton-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 1200px) { .skeleton-grid { grid-template-columns: repeat(5,1fr); } }
.skeleton { aspect-ratio: 5/6; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 100% 0;} to { background-position: 0 0;} }
.empty { margin: 20px var(--gutter) 40px; padding: 38px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); text-align: center; color: var(--muted); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.empty strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 28px; letter-spacing: .05em; margin-bottom: 6px; }
.empty .ico { color: var(--red-2); margin: 0 auto 10px; }
.error-box { margin: 20px var(--gutter); padding: 16px 18px; border-radius: 16px; background: rgba(228,0,43,.1); border: 1px solid rgba(228,0,43,.35); color: var(--text); font-size: 14px; }
.error-box code { font-size: 12px; color: var(--muted); }

/* ---------- Pie ---------- */
.footer { display: flex; align-items: center; gap: 14px; padding: 30px var(--gutter) 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; max-width: 1440px; margin: 20px auto 0; }
.footer-mark { width: 38px; }
.footer strong { color: var(--text); }
.footer .foot-note { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.footer .foot-keys { margin-left: auto; display: none; gap: 10px; align-items: center; white-space: nowrap; }
@media (min-width: 900px) { .footer .foot-keys { display: inline-flex; } }

/* ---------- Dock móvil ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 70; height: var(--dock-h);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 6px;
  background: var(--glass-strong); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.dock button { position: relative; height: 100%; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; transition: color .2s, background .2s; }
.dock button .ico { width: 22px; height: 22px; }
.dock button.is-active { color: var(--text); background: var(--surface-2); }
.dock button .badge-dot { top: 6px; right: calc(50% - 18px); }
@media (min-width: 760px) { .dock { display: none; } body { padding-bottom: 0; } }

/* ---------- Paleta de búsqueda ---------- */
.palette { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: rgba(5,5,8,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn .2s ease both; }
:root[data-theme="light"] .palette { background: rgba(40,40,60,.35); }
.palette-box { width: 100%; max-width: 720px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 0 0 24px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: 100%; animation: slideDown .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slideDown { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) { .palette { padding: 8vh 16px 0; } .palette-box { border-radius: 24px; max-height: 76vh; } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 14px 10px; border-bottom: 1px solid var(--line); }
.palette-input .ico { color: var(--muted); }
.palette-input input { flex: 1; background: transparent; border: 0; outline: 0; font-size: 17px; padding: 10px 0; color: var(--text); min-width: 0; }
.palette-input input::placeholder { color: var(--muted-2); }
.palette-input input::-webkit-search-cancel-button, .palette-input input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.palette-close { height: 36px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.palette-body { overflow-y: auto; padding: 8px; -webkit-overflow-scrolling: touch; }
.palette-group { padding: 10px 8px 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.pal-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; text-align: left; transition: background .15s; }
.pal-item.is-sel, .pal-item:hover { background: var(--surface-2); }
.pal-item .m-app { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--p1), var(--p2)); flex: 0 0 auto; }
.pal-item.has-logo .m-app { background: #fff; color: var(--p2); }
.pal-item .m-app img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.pal-item .m-app .ico { width: 20px; height: 20px; }
.pal-item .m-app .letter { font-family: var(--font-display); font-size: 22px; line-height: 1; padding-top: 2px; }
.pal-item .m-app .emoji { font-size: 20px; }
.pal-item .p-text { flex: 1; min-width: 0; }
.pal-item .p-text strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item .p-text strong mark { background: transparent; color: var(--red-2); font-weight: 800; }
.pal-item .p-text span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item .p-right { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; color: var(--muted-2); }
.pal-item .p-right .ico { width: 15px; height: 15px; }
.palette-foot { display: none; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; gap: 14px; }
@media (min-width: 760px) { .palette-foot { display: flex; } }
.palette-empty { padding: 36px 16px; text-align: center; color: var(--muted); }

/* ---------- Hojas (bottom sheet / modal) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 110; display: flex; align-items: flex-end; justify-content: center; background: rgba(5,5,8,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .2s ease both; }
:root[data-theme="light"] .sheet-wrap { background: rgba(40,40,60,.4); }
.sheet { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 26px 26px 0 0; box-shadow: var(--shadow); animation: sheetUp .32s cubic-bezier(.2,.8,.2,1) both; padding-bottom: calc(12px + var(--safe-b)); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet-grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 10px auto 0; }
@media (min-width: 760px) { .sheet-wrap { align-items: center; padding: 20px; } .sheet { border-radius: 26px; animation-name: popIn; } .sheet-grab { display: none; } }
@keyframes popIn { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); }
.sheet-hero { position: relative; height: 170px; overflow: hidden; border-radius: 0; background: radial-gradient(130% 100% at 0% 0%, color-mix(in srgb, var(--p1) 70%, #fff) 0%, var(--p1) 35%, var(--p2) 100%); color: #fff; }
@media (min-width: 760px) { .sheet-hero { border-radius: 26px 26px 0 0; } }
.sheet-hero .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-hero .fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-2) 0%, rgba(0,0,0,.1) 60%, transparent 100%); }
.sheet-hero .deco { position: absolute; right: -6%; top: -16%; width: 50%; height: 130%; opacity: .14; transform: rotate(-10deg); }
.sheet-hero .deco .ico { width: 100%; height: 100%; stroke-width: 1; }
.sheet-app { position: absolute; left: 20px; bottom: -2px; width: 76px; height: 76px; border-radius: 22px; background: rgba(255,255,255,.96); color: var(--p2); display: grid; place-items: center; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 0 4px var(--bg-2); }
.sheet-app img { width: 100%; height: 100%; object-fit: contain; padding: 9px; }
.sheet-app .ico { width: 38px; height: 38px; }
.sheet-app .letter { font-family: var(--font-display); font-size: 40px; line-height: 1; padding-top: 4px; }
.sheet-app .emoji { font-size: 38px; line-height: 1; }
.pal-white .sheet-app { background: #15151a; color: #fff; }
.sheet-body { padding: 22px 20px 10px; }
.sheet-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-kicker .pill { padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: none; font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.sheet-kicker .pill .ico { width: 12px; height: 12px; }
.sheet-kicker .pill.lock { color: #ffb3c0; border-color: rgba(228,0,43,.4); background: var(--red-soft); }
:root[data-theme="light"] .sheet-kicker .pill.lock { color: #b3001f; }
.sheet-body h2 { margin: 8px 0 0; font-family: var(--font-display); font-size: 36px; letter-spacing: .03em; line-height: .95; font-weight: 400; }
.sheet-body .desc { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
:root[data-theme="light"] .sheet-body .desc { color: #4b4b57; }
.sheet-url { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.sheet-url span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.sheet-url .ico { width: 14px; height: 14px; flex: 0 0 auto; }
.sheet-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sheet-tags span { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 8px; }
.sheet-actions .btn { grid-column: 1 / -1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 800; font-size: 15px; transition: transform .15s, background .2s, box-shadow .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.btn-primary:hover { opacity: .92; }
.btn-red { background: linear-gradient(135deg, var(--red), #b3001f); color: #fff; box-shadow: 0 10px 26px rgba(228,0,43,.35); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-ghost.is-on { color: #ffcc33; border-color: rgba(255,204,51,.4); }
.btn-ghost.is-on .ico { fill: #ffcc33; stroke: #ffcc33; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn .ico { width: 18px; height: 18px; }
.sheet-admin { margin: 6px 20px 8px; padding: 10px 12px; border-radius: 14px; background: var(--red-soft); border: 1px solid rgba(228,0,43,.3); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sheet-admin a { margin-left: auto; font-weight: 800; color: var(--red-2); display: inline-flex; align-items: center; gap: 4px; }
:root[data-theme="light"] .sheet-admin a { color: #b3001f; }
.sheet-admin .ico { width: 16px; height: 16px; }

/* Clave de acceso privado */
.priv-box { padding: 6px 20px 10px; }
.priv-box label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: var(--red-2); box-shadow: 0 0 0 4px rgba(228,0,43,.15); }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 18px; letter-spacing: .12em; color: var(--text); }
.field .eye { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.field .eye:hover { background: var(--surface-2); color: var(--text); }
.priv-err { margin: 10px 0 0; color: var(--red-2); font-size: 13px; font-weight: 600; display: none; align-items: center; gap: 6px; }
.priv-err.on { display: flex; }
.priv-err .ico { width: 15px; height: 15px; }
.priv-ok { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: var(--text); font-size: 14px; align-items: center; gap: 10px; }
.priv-ok.on { display: flex; }
.priv-ok .ico { color: var(--ok); }

/* Avisos */
.aviso { padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin: 0 20px 10px; }
.aviso-head { display: flex; align-items: flex-start; gap: 10px; }
.aviso-head .a-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-2); flex: 0 0 auto; }
.aviso-head .a-ico .ico { width: 17px; height: 17px; }
.aviso-head strong { display: block; font-size: 14.5px; line-height: 1.3; }
.aviso-head span { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.aviso p { margin: 10px 0 0; font-size: 14px; color: var(--muted); white-space: pre-line; }
:root[data-theme="light"] .aviso p { color: #4b4b57; }
.aviso.is-new { border-color: rgba(228,0,43,.4); }
.sheet-title { padding: 18px 20px 12px; display: flex; align-items: center; gap: 10px; }
.sheet-title h2 { margin: 0; font-family: var(--font-display); font-size: 30px; letter-spacing: .04em; font-weight: 400; line-height: 1; }
.sheet-title small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: auto; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 20px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 200; padding: 11px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { width: 16px; height: 16px; }
.toast.err { background: var(--red); color: #fff; }
@media (min-width: 760px) { .toast { bottom: 28px; } }

/* ---------- Accesibilidad / movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
