/* Plan 150 (nov 2026), parte de diseño: menos saturación, más claro. Se carga después de pulido.css.
   JavaScript en static/js/sencillo.js. Las opciones de cada uno van en <html data-sx-*> (Personalización → Interfaz). */

/* ---- B1: un solo botón flotante para Chat y Tu opinión (los originales siguen en la página, ocultos) */
html.sx-docked .ch-fab, html.sx-docked .fb-pill { display: none !important; }
.sx-dock { position: fixed; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 85; }
.sx-dock-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--peak-card); color: var(--peak-text, #fff); border: 1px solid var(--peak-border); box-shadow: var(--sh-2);
  transition: transform 0.2s var(--ease, ease), border-color 0.2s ease; }
.sx-dock-btn:hover { border-color: rgba(var(--peak-red-rgb), 0.55); }
.sx-dock-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sx-dock-btn i { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--peak-red); box-shadow: 0 0 0 2px var(--peak-card); }
.sx-dock.is-open .sx-dock-btn { transform: rotate(-8deg); }
.sx-dock-menu { position: absolute; left: 0; bottom: 56px; display: grid; gap: 6px; min-width: 170px; padding: 6px; border-radius: var(--r-md);
  background: var(--peak-card); border: 1px solid var(--peak-border); box-shadow: var(--sh-3); transform-origin: bottom left; animation: sxPop 0.18s var(--ease, ease) both; }
.sx-dock-menu[hidden] { display: none; }
.sx-dock-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-radius: var(--r-sm); background: none;
  color: inherit; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.sx-dock-menu button:hover, .sx-dock-menu button:focus-visible { background: rgba(var(--peak-red-rgb), 0.12); }
.sx-dock-menu svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sx-dock-menu b { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--peak-red); }
@keyframes sxPop { from { opacity: 0; transform: translateY(6px) scale(0.96); } }
body:has(.mesa) .sx-dock, html.pl-focus .sx-dock { display: none !important; }
@media print { .sx-dock { display: none !important; } }

/* ---- B2: los flotantes se apartan mientras bajas y vuelven al parar o subir */
.sx-dock, .peak-assistant { transition: transform 0.28s var(--ease, ease), opacity 0.28s ease; }
html.sx-hide-float .sx-dock:not(.is-open), html.sx-hide-float .peak-assistant:not(:has(.pa-panel:not([hidden]))) { transform: translateY(90px); opacity: 0; pointer-events: none; }

/* ---- B3: la barra de arriba se encoge al bajar */
.site-header .navbar { transition: padding 0.25s ease, min-height 0.25s ease; }
html.sx-scrolled .site-header .navbar { padding-top: 6px; padding-bottom: 6px; }
html.sx-scrolled .brand-tag { opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.2s ease; }
html.sx-scrolled .brand-logo { transform: scale(0.88); transition: transform 0.25s ease; }

/* ---- B4: la campana con un punto en vez de «9+» (el número sigue para el lector de pantalla) */
html:not([data-sx-badge="numero"]) .notif-badge:not([hidden]) { width: 10px; height: 10px; min-width: 0; padding: 0; font-size: 0; line-height: 0; top: 7px; right: 7px;
  border: 2px solid var(--peak-bg, #000); }
/* ---- B32: y se balancea una vez cuando llega algo nuevo */
.notif-toggle.sx-ring svg { animation: sxRing 0.9s ease both; transform-origin: 50% 4px; }
@keyframes sxRing { 15% { transform: rotate(14deg); } 30% { transform: rotate(-11deg); } 45% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 75% { transform: rotate(2deg); } }

/* ---- B5: como mucho dos avisos a la vez; los demás esperan su turno */
.flash-list .flash:nth-child(n+3) { display: none; }

/* ---- B6: un solo botón principal por grupo de botones: los demás principales pasan a contorno */
:is(.btn-row, .form-actions, .fb-foot, .pl-dlg-f, .hub-actions, .card-actions) > .btn-primary ~ .btn-primary { background: transparent; color: inherit;
  border-color: var(--peak-border); box-shadow: none; }

/* ---- B7 y B8: una sola capa por tarjeta (borde, sin sombra en reposo) y el cristal solo en barra, menús y ventanas */
html:not([data-sx-capas="ricas"]) :is(.stat-card, .tool-tile, .profile-card, .info-card, .uc-card, .ms-card, .compare-card, .art-card2, .news-shell):not(:hover) { box-shadow: none; }
html:not([data-sx-capas="ricas"]) :is(.profile-card, .tool-tile, .news-shell, .btn-glass) { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- B9: lo que se mueve sin parar, solo si está en vivo: los adornos que flotan o brillan se quedan quietos */
html:not([data-sx-anim="todas"]) :is(.pa-fab, .community-block .peak-icon, .go-peaky, .vip-lock-ico, .ed-empty-art span, .sn-seg-glow, .hub-art *, .pill-vip),
html:not([data-sx-anim="todas"]) .pa-fab::after { animation: none !important; }

/* ---- B10: apartados plegables que se recuerdan (details[data-sx-fold]) */
details[data-sx-fold] > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 700; }
details[data-sx-fold] > summary::-webkit-details-marker { display: none; }
details[data-sx-fold] > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s ease; opacity: 0.6; }
details[data-sx-fold][open] > summary::after { transform: rotate(225deg); }

/* ---- B13 y B14: interfaz Esencial (lo de cada día; lo avanzado sigue a un clic en «Ver todo») */
html[data-sx-ui="esencial"] :is(.presence-pill:not(.presence-pill-mobile), .hub-poll, .hub-reto, .hub-vipbar, .hub-news, .hub-more) { display: none !important; }
html[data-sx-ui="esencial"] .za-nav .za-group:is([data-group="rotacion"], [data-group="institucional"], [data-group="cuantitativo-vip"]):not(.sx-keep) { display: none; }
html[data-sx-ui="esencial"] .md-item small { display: none; }
.sx-esencial-note { margin: 10px 4px 0; font-size: 12px; color: var(--peak-muted); }
.sx-esencial-note button { padding: 0; border: 0; background: none; color: var(--peak-red-light, var(--peak-red)); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
html:not([data-sx-ui="esencial"]) .sx-esencial-note { display: none; }

/* ---- B15: un consejo la primera vez que entras en cada sección */
.sx-tip { position: fixed; right: 18px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 95; max-width: min(330px, calc(100vw - 32px)); padding: 13px 40px 13px 15px;
  border-radius: var(--r-md); background: var(--peak-card); border: 1px solid rgba(var(--peak-red-rgb), 0.4); box-shadow: var(--sh-3); font-size: 13.5px; line-height: 1.45;
  animation: sxPop 0.25s var(--ease, ease) both; }
.sx-tip b { display: block; margin-bottom: 3px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--peak-red-light, var(--peak-red)); }
.sx-tip button { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--peak-muted); font-size: 18px; cursor: pointer; }
.sx-tip button:hover { color: inherit; background: rgba(255, 255, 255, 0.06); }

/* ---- B16: «Deshacer» durante 5 s en vez de preguntar */
.sx-undo { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 9990; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--peak-card); border: 1px solid var(--peak-border); box-shadow: var(--sh-3); font-size: 13.5px;
  animation: sxUp 0.25s var(--ease, ease) both; overflow: hidden; }
.sx-undo button { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(var(--peak-red-rgb), 0.5); background: rgba(var(--peak-red-rgb), 0.12); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.sx-undo i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--peak-red); transform-origin: left; animation: sxBar 5s linear both; }
@keyframes sxUp { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes sxBar { to { transform: scaleX(0); } }

/* ---- B17: el error al lado del campo, en el momento */
.sx-err { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: #ff8a8a; }
:root[data-mode="claro"] .sx-err { color: #c62828; }
input.sx-bad, select.sx-bad, textarea.sx-bad { border-color: rgba(255, 107, 107, 0.7) !important; }

/* ---- B18: «Guardado» discreto */
.sx-saved { position: fixed; right: 16px; top: 78px; z-index: 9991; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--peak-card); border: 1px solid rgba(61, 220, 132, 0.4); color: #3ddc84; font-size: 12.5px; font-weight: 700; box-shadow: var(--sh-2);
  animation: sxPop 0.2s ease both; }
.sx-saved svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-saved.is-out { opacity: 0; transition: opacity 0.4s ease; }

/* ---- B21 y B45: recientes y fijados arriba del menú */
.sx-quick { display: grid; gap: 4px; margin: 4px 0 8px; }
.sx-quick > span { padding: 4px 10px 2px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--peak-muted); }
.sx-quick a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: inherit; text-decoration: none; }
.sx-quick a:hover { background: rgba(var(--peak-red-rgb), 0.1); }
.sx-quick a svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.7; }
.md-item { position: relative; }
.sx-pin { position: absolute; right: 8px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border: 0; border-radius: 50%; background: none; color: var(--peak-muted);
  display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity 0.15s ease; }
.md-item:hover .sx-pin, .sx-pin:focus-visible, .sx-pin.is-on { opacity: 1; }
.sx-pin.is-on { color: var(--peak-red-light, var(--peak-red)); }
.sx-pin svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.sx-pin.is-on svg { fill: currentColor; }
@media (hover: none) { .sx-pin { opacity: 0.55; } }

/* ---- B24: el precio cambia dígito a dígito */
.sx-roll { display: inline-block; animation: sxRoll 0.38s var(--ease, ease) both; }
.sx-roll.dn { animation-name: sxRollDn; }
@keyframes sxRoll { from { transform: translateY(0.55em); opacity: 0; } }
@keyframes sxRollDn { from { transform: translateY(-0.55em); opacity: 0; } }

/* ---- B25: el botón enseña que está trabajando y no admite un segundo clic */
.sx-busy { position: relative; pointer-events: none; color: transparent !important; }
.sx-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -9.5px 0 0 -9.5px; border-radius: 50%;
  border: 2px solid currentColor; border-color: rgba(255, 255, 255, 0.85) rgba(255, 255, 255, 0.85) transparent transparent; animation: sxSpin 0.7s linear infinite; }
:root[data-mode="claro"] .btn-ghost.sx-busy::after, :root[data-mode="claro"] .btn-outline.sx-busy::after { border-color: #333 #333 transparent transparent; }
@keyframes sxSpin { to { transform: rotate(360deg); } }

/* ---- B26: las ventanas crecen desde el botón que las abre */
dialog.sx-grow[open] { animation: sxGrow 0.24s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both; }
@keyframes sxGrow { from { opacity: 0; transform: scale(0.86); } }

/* ---- B27: la línea de la pestaña activa se desliza */
.sx-tabline { position: relative; }
.sx-tabline > .sx-tl { position: absolute; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--peak-red); pointer-events: none;
  transition: transform 0.28s var(--ease, ease), width 0.28s var(--ease, ease); }

/* ---- B29: subrayado que se dibuja en los enlaces del texto */
:is(main, .container) :is(p, li) > a:not(.btn):not([class*="chip"]) { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.25s ease; padding-bottom: 1px; box-shadow: inset 0 -1px 0 rgba(var(--peak-red-rgb), 0.35); }
:is(main, .container) :is(p, li) > a:not(.btn):not([class*="chip"]):hover { background-size: 100% 1px; }

/* ---- B30: al arrastrar, sombra y hueco */
.hub-tile.is-drag { opacity: 0.55; outline: 2px dashed rgba(var(--peak-red-rgb), 0.6); outline-offset: -4px; box-shadow: none; }
.hub-grid.is-sorting .hub-tile[draggable="true"]:hover { box-shadow: var(--sh-3); transform: translateY(-2px); cursor: grab; }

/* ---- B39: esquinas rectas */
html[data-sx-esquinas="rectas"] { --r-sm: 3px; --r-md: 4px; --r-lg: 6px; }
html[data-sx-esquinas="rectas"] :is(.hub-tile, .tool-tile, .stat-card, .btn, .zone-section, .card, input, select, textarea, .dropdown, dialog) { border-radius: 5px; }

/* ---- B40: sin fondo animado en las páginas de trabajo (Mesa y gráficas) */
html:not([data-sx-fondo-trabajo="si"]) body:is([data-ep="mesa"], [data-ep="graficas"]) :is(.bg-canvas, canvas.bg-fx, .bg-media) { display: none !important; }
html:not([data-sx-fondo-trabajo="si"]) body:is([data-ep="mesa"], [data-ep="graficas"])::before { animation: none !important; opacity: 0.35; }

/* ---- B46: apartados de la Zona que ocultas */
.za-group.sx-zhid { display: none !important; }
.sx-zeye { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--peak-muted); display: none; place-items: center; cursor: pointer; }
.za-nav.sx-editing .sx-zeye { display: grid; }
.za-nav.sx-editing .za-group.sx-zhid { display: block !important; opacity: 0.45; }
.sx-zeye svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.za-row { display: flex; align-items: center; }
.za-row > .za-link { flex: 1; min-width: 0; }
.sx-zedit { display: block; margin: 10px 4px 0; padding: 0; border: 0; background: none; color: var(--peak-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---- B49: tablas aireadas o ajustadas */
html[data-sx-tablas="ajustada"] :is(table td, table th) { padding-top: 4px !important; padding-bottom: 4px !important; font-size: 0.94em; }
html[data-sx-tablas="aireada"] :is(table td, table th) { padding-top: 12px !important; padding-bottom: 12px !important; }

/* ---- B50: la barra de arriba solo con lo que eliges */
html[data-sx-barra-gente="no"] .presence-pill { display: none !important; }
html[data-sx-barra-nombre="no"] .user-chip .user-name, html[data-sx-barra-nombre="no"] .user-chip .caret { display: none; }
html[data-sx-barra-idioma="no"] .lang-menu { display: none; }
.sx-bar-price { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--peak-border); font-size: 12.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: inherit; text-decoration: none; }
.sx-bar-price small { color: var(--peak-muted); font-weight: 700; }
.sx-bar-price .up { color: #3ddc84; } .sx-bar-price .dn { color: #ff8a8a; }
@media (max-width: 760px) { .sx-bar-price { display: none; } }

/* ---- Personalización → Interfaz */
.sx-opts .font-card.is-selected { border-color: rgba(var(--peak-red-rgb), 0.7); box-shadow: 0 0 0 1px rgba(var(--peak-red-rgb), 0.5) inset; }
.sx-prof { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sx-prof .pz-chip { display: inline-flex; align-items: center; gap: 6px; }
.sx-prof .pz-chip i { font-style: normal; opacity: 0.6; }
.sx-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sx-vol { display: flex; align-items: center; gap: 12px; max-width: 420px; }
.sx-vol input { flex: 1; accent-color: var(--peak-red); }
.sx-tabpick { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-tabpick label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--peak-border); font-size: 13px; cursor: pointer; }
.sx-tabpick input { accent-color: var(--peak-red); }

/* ---- B20: página «Todo PEAK» */
.sx-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.sx-all a { display: block; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--peak-border); background: var(--peak-card); color: inherit; text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease; }
.sx-all a:hover { border-color: rgba(var(--peak-red-rgb), 0.55); transform: translateY(-2px); }
.sx-all b { display: block; font-size: 15px; margin-bottom: 4px; }
.sx-all small { color: var(--peak-muted); font-size: 12.5px; line-height: 1.45; }
.sx-all-g { margin: 26px 0 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peak-muted); }
.sx-all-find { width: 100%; max-width: 420px; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .sx-roll, dialog.sx-grow[open], .notif-toggle.sx-ring svg, .sx-dock-menu, .sx-tip, .sx-undo { animation: none !important; }
}

/* ---- B11: ayudas largas en una línea */
.sx-clamp { display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 2px !important; }
.sx-more { display: inline-block; margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--peak-red-light, var(--peak-red)); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }

/* sugerencias y equipo (plan 150) */
.sg-new { display: flex; gap: 10px; align-items: flex-end; margin: 6px 0 16px; }
.sg-new textarea { flex: 1; min-height: 56px; }
.sg-tabs { margin-bottom: 12px; }
.sg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sg-item { display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--peak-border); background: var(--peak-card); }
.sg-vote button { display: grid; justify-items: center; gap: 2px; width: 52px; padding: 8px 0; border-radius: var(--r-sm); border: 1px solid var(--peak-border); background: none; color: inherit; cursor: pointer; font: inherit; }
.sg-vote button svg { width: 18px; height: 18px; fill: currentColor; opacity: 0.7; }
.sg-vote button.is-on { border-color: rgba(var(--peak-red-rgb), 0.6); color: var(--peak-red-light, var(--peak-red)); background: rgba(var(--peak-red-rgb), 0.1); }
.sg-body { flex: 1; min-width: 0; }
.sg-body > p { margin: 0 0 4px; font-size: 14.5px; }
.sg-body small { color: var(--peak-muted); }
.sg-st { font-weight: 700; }
.sg-hecha .sg-st { color: #3ddc84; } .sg-estudio .sg-st { color: #f5c96b; } .sg-no .sg-st { color: var(--peak-muted); text-decoration: line-through; }
.sg-reply { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--r-sm); background: rgba(var(--peak-red-rgb), 0.07); font-size: 13.5px; }
.sg-admin { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sg-admin input { flex: 1; min-width: 180px; }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.eq-card { display: grid; justify-items: center; gap: 6px; padding: 20px 14px; border-radius: var(--r-md); border: 1px solid var(--peak-border); background: var(--peak-card); text-align: center; }
.eq-card .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; font-size: 24px; display: grid; place-items: center; }
.eq-card small { color: var(--peak-muted); }
.ch-flag.is-on { color: #ff8a8a; }
@media (max-width: 560px) { .sg-new { flex-direction: column; align-items: stretch; } }
/* .seg con enlaces (no solo botones): mismo aspecto en toda la web */
.seg > a { padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--peak-muted); text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.seg > a:hover { color: var(--peak-white, #fff); }
.seg > a.is-active { background: var(--peak-red); color: var(--peak-on-accent, #fff); }
/* formación (plan 150): errores típicos, lecturas, cuestionario del día, vitrina y nivel del perfil */
.fx-err-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 16px; }
.fx-err { position: relative; padding: 16px 16px 14px 54px; border-radius: var(--r-md); border: 1px solid var(--peak-border); background: var(--peak-card); }
.fx-err-n { position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: rgba(var(--peak-red-rgb), 0.14); color: var(--peak-red-light, var(--peak-red)); }
.fx-err h2 { margin: 2px 0 6px; font-size: 15.5px; }
.fx-err p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; }
.fx-err-g { color: var(--peak-muted); } .fx-err-h b { color: #3ddc84; }
.fx-read { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.fx-read li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--peak-border); background: var(--peak-card); }
.fx-read label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.fx-read label span { display: grid; } .fx-read small { color: var(--peak-muted); }
.fx-read input { width: 18px; height: 18px; accent-color: #3ddc84; }
.fx-read li.is-done b { text-decoration: line-through; opacity: 0.7; }
.fx-quiz { display: grid; gap: 12px; margin-top: 14px; max-width: 760px; }
.fx-q { margin: 0; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--peak-border); background: var(--peak-card); display: grid; gap: 6px; }
.fx-q legend { padding: 0; margin-bottom: 4px; font-weight: 700; font-size: 14.5px; line-height: 1.45; }
.fx-q legend > span:first-child { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; font-size: 12px; background: rgba(var(--peak-red-rgb), 0.14); }
.fx-q label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; font-size: 14px; }
.fx-q label:hover { background: rgba(255, 255, 255, 0.03); }
.fx-q label:has(input:checked) { border-color: rgba(var(--peak-red-rgb), 0.5); }
.fx-q.is-ok { border-color: rgba(61, 220, 132, 0.5); } .fx-q.is-bad { border-color: rgba(255, 107, 107, 0.5); }
.fx-q label.is-right { border-color: rgba(61, 220, 132, 0.6); background: rgba(61, 220, 132, 0.08); }
.fx-q-exp { margin: 4px 0 0; font-size: 13px; color: var(--peak-muted); }
.fx-q-result { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--peak-border); background: var(--peak-card); max-width: 760px; }
.fx-q-result b { font-size: 22px; } .fx-q-result.is-ok b { color: #3ddc84; }
.pu-vitrina { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pu-vit { display: grid; gap: 4px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--peak-border); background: var(--peak-card); color: inherit; text-decoration: none; }
.pu-vit b { font-size: 22px; color: #f5c96b; } .pu-vit small { color: var(--peak-muted); }
.pu-vit:hover { border-color: rgba(var(--peak-red-rgb), 0.5); }
.pu-nivel { margin-left: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: middle; border: 1px solid rgba(245, 185, 66, 0.45); color: #f5c96b; }
.tool-page .fx-err h2 { font-size: 16px; line-height: 1.3; letter-spacing: 0; }
.fx-q legend { float: left; width: 100%; }
.fx-q legend + * { clear: both; }

.sd-sum { margin-top: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--peak-border); background: none; color: var(--peak-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.sd-sum:hover { color: inherit; border-color: rgba(var(--peak-red-rgb), 0.5); }
/* Mi PEAK: desde tu última visita */
.hub-since { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 13px; }
.hub-since b { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--peak-muted); margin-right: 4px; }
.hub-since a { padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(var(--peak-red-rgb), 0.35); background: rgba(var(--peak-red-rgb), 0.08); color: inherit; text-decoration: none; font-weight: 600; }
.hub-since a:hover { border-color: rgba(var(--peak-red-rgb), 0.7); }
/* tu año / el año de la comunidad */
.ya-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 16px; }
.ya-card { display: grid; gap: 4px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--peak-border); background: var(--peak-card); }
.ya-card b { font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ya-card span { color: var(--peak-muted); font-size: 13.5px; }
:root[data-xmas] .ya-card b { color: #f5c96b; }
/* temporadas (navidad.temporada): Año Nuevo y verano, una franja fina que se quita */
.season-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px auto 0; max-width: min(1100px, calc(100% - 32px)); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(245, 201, 107, 0.4); background: rgba(245, 201, 107, 0.08); color: #f5c96b; }
.season-verano { border-color: rgba(86, 204, 242, 0.4); background: rgba(86, 204, 242, 0.08); color: #8fd8f2; }
.season-bar button { border: 0; background: none; color: inherit; font-size: 18px; cursor: pointer; padding: 0 4px; }
.tfa-setup { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 10px 0; }
.tfa-qr { width: 180px; padding: 10px; border-radius: var(--r-md); background: #fff; }
.tfa-qr svg { display: block; width: 100%; height: auto; }
.rr-box { margin: 0 0 22px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--peak-border); background: var(--peak-card); }
.rr-list { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; }
.rr-list li { display: flex; gap: 12px; align-items: baseline; }
.rr-list small { color: var(--peak-muted); }
.rr-list .pos { color: #3ddc84; } .rr-list .neg { color: #ff8a8a; }
.nv-list { display: grid; gap: 8px; }
.nv-week ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; }
/* móvil: las pestañas que ya no caben se desplazan de lado en vez de salirse de la pantalla */
@media (max-width: 760px) {
  .dp-tabs, .pz-tabs, .sg-tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dp-tabs::-webkit-scrollbar, .pz-tabs::-webkit-scrollbar { display: none; }
  .dp-tabs > a, .pz-tabs > button { flex: none; white-space: nowrap; }
}
.sx-clamp { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.pz-layout > *, .pz-main { min-width: 0; }
/* nada se sale de lado: los adornos (brillos, estrellas de la intro) se recortan en el borde; clip no rompe position: sticky */
html, body { overflow-x: clip; }
@media (max-width: 1000px) { .pz-side .pz-save { position: fixed !important; left: 66px; right: 84px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; z-index: 60; } }
