/* ==========================================================================
   KitEstudio v2 — estilos
   1. Variables  2. Base  3. Cabecera  4. Botones  5. Controles  6. Tarjeta herramienta
   7. Inicio  8. Anuncios  9. Contenido/FAQ  10. Pie  11. Movimiento reducido
   ========================================================================== */

/* ---------- 1. Variables ---------- */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #f6f3ff;
  --surface: #ffffff;
  --ink: #15121f;
  --muted: #5d5872;
  --line: #15121f;
  --soft: #e9e4fb;

  --violet: #7c5cff;
  --lime: #c8f560;
  --coral: #ff7a59;
  --sky: #47c6ff;
  --yellow: #ffd84d;
  --pink: #ff6fb5;

  --accent: var(--violet);
  --accent-soft: #ece6ff;
  --flow: linear-gradient(100deg, var(--violet), var(--pink), var(--coral), var(--yellow), var(--lime), var(--sky), var(--violet));

  --radius: 20px;
  --pop: 5px 5px 0 var(--ink);
  --pop-lg: 8px 8px 0 var(--ink);
  --max: 1160px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}
body[data-accent="lime"]  { --accent: #b4e63c; --accent-soft: #effbd2; }
body[data-accent="coral"] { --accent: var(--coral); --accent-soft: #ffe7df; }
body[data-accent="violet"]{ --accent: var(--violet); --accent-soft: #ece6ff; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-image: radial-gradient(var(--soft) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.3rem; font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 28px; font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 640px; }
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::before { content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; bottom: .06em; height: .48em; background: var(--accent); border-radius: 6px; transform: rotate(-1.5deg); }
.grad-text { background: var(--flow); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 8s linear infinite; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 99px; background: var(--surface); margin-bottom: 18px; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- 3. Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.logo-dot { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--ink); background: var(--flow); background-size: 300% 100%; animation: flow 7s linear infinite; display: grid; place-items: center; font-size: 1.05rem; }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 9px 14px; border-radius: 12px; border: 2px solid transparent; }
.nav a:hover { border-color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { border-color: var(--ink); background: var(--accent); box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 760px) {
  .nav { position: fixed; left: 12px; right: 12px; bottom: 12px; justify-content: space-around; background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 6px; box-shadow: var(--pop); }
  .nav a { padding: 8px 10px; font-size: .88rem; }
  body { padding-bottom: 84px; }
}

main { padding: 44px 0 56px; }

/* ---------- 4. Botones (degradado que fluye al pasar el ratón) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 30px; border: 2px solid var(--ink); border-radius: 16px;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em;
  color: #fff; background: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: 5px 5px 0 var(--accent);
  transition: transform .15s ease, box-shadow .15s ease, color .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--flow); background-size: 300% 100%; opacity: 0; transition: opacity .25s;
}
.btn:hover::before, .btn:focus-visible::before { opacity: 1; animation: flow 2.6s linear infinite; }
.btn:hover, .btn:focus-visible { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[disabled]::before { display: none; }
.btn-ghost { color: var(--ink); background: var(--surface); box-shadow: var(--pop); }
.btn-big { min-height: 66px; padding: 0 36px; font-size: 1.25rem; }
.btn-sm { min-height: 46px; padding: 0 18px; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 5. Controles ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
  min-height: 44px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  transition: transform .12s, box-shadow .12s, background .2s;
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--flow); background-size: 300% 100%; animation: flow 6s linear infinite; box-shadow: 3px 3px 0 var(--ink); }
.chip small { display: block; font-weight: 500; font-size: .75rem; opacity: .75; margin-top: -2px; }
.chip.tall { padding: 8px 14px; text-align: left; line-height: 1.25; }
.swatch { width: 44px; min-height: 44px; padding: 0; border-radius: 12px; }
.swatch[aria-pressed="true"] { animation: none; outline: 3px solid var(--ink); outline-offset: 2px; }

.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 2px solid var(--ink); border-radius: 16px; background: var(--surface); }
.seg .chip { border-color: transparent; flex: 1 1 auto; }
.seg .chip:hover { box-shadow: none; transform: none; background: var(--accent-soft); }
.seg .chip[aria-pressed="true"] { border-color: var(--ink); }

.group { margin-bottom: 22px; }
.group-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; margin: 0 0 10px; }
.group-title .n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); border: 2px solid var(--ink); font-size: .9rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .label { font-weight: 700; font-size: .92rem; }
.hint { color: var(--muted); font-size: .88rem; margin: 4px 0 0; }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
input[type="text"], input[type="url"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 4px 4px 0 var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 28px; }
input[type="color"] { width: 52px; height: 44px; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); padding: 3px; cursor: pointer; }
.color-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.color-row label { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .92rem; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: .95rem; }
.switch input { appearance: none; width: 52px; height: 30px; border: 2px solid var(--ink); border-radius: 99px; background: var(--surface); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(22px); }
.file-btn { position: relative; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-grid .chip { width: 46px; padding: 0; font-size: 1.35rem; }

/* ---------- 6. Tarjeta de herramienta ---------- */
.tool-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.tool-badge { flex: none; width: 70px; height: 70px; border-radius: 20px; border: 2px solid var(--ink); background: var(--accent); display: grid; place-items: center; font-size: 2.1rem; box-shadow: var(--pop); transform: rotate(-4deg); }
.tool-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 26px; box-shadow: var(--pop-lg); padding: clamp(18px, 3vw, 34px); }
.tool-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .sticky { position: sticky; top: 96px; } }
@media (max-width: 899px) { .preview-first { order: -1; } }

.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; gap: 10px;
  min-height: 260px; padding: 28px; border: 3px dashed var(--ink); border-radius: 22px; cursor: pointer;
  background: var(--accent-soft); transition: background .2s, transform .15s;
}
.dropzone:hover, .dropzone.is-over { background: var(--accent); transform: scale(1.01); }
.dropzone .big-emoji { font-size: 3.2rem; line-height: 1; }
.dropzone strong { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.1; }
.dropzone small { color: var(--muted); font-size: .95rem; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .btn { pointer-events: none; margin-top: 6px; }

.progress { height: 16px; border-radius: 99px; border: 2px solid var(--ink); background: var(--surface); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--flow); background-size: 300% 100%; animation: flow 2s linear infinite; transition: width .2s; }

[data-state] .st { display: none; }
[data-state="idle"] .st-idle, [data-state="working"] .st-working, [data-state="done"] .st-done, [data-state="error"] .st-error { display: block; }

.files { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; font-size: .93rem; }
.files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.save { background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; padding: 1px 9px; font-weight: 800; white-space: nowrap; font-size: .85rem; }
.big-stat { font-family: var(--display); font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 800; line-height: 1; margin: 0 0 6px; }
.err { color: #d61f45; font-weight: 700; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 8px 0; }

.compare { position: relative; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; margin: 0 0 18px; aspect-ratio: 16/10; background: #222; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 50%); }
.compare .bar { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; box-shadow: 0 0 0 1px var(--ink); pointer-events: none; }
.compare .tag { position: absolute; top: 10px; padding: 3px 10px; border-radius: 99px; background: var(--surface); border: 2px solid var(--ink); font-size: .78rem; font-weight: 800; }
.compare .tag.l { left: 10px; } .compare .tag.r { right: 10px; background: var(--lime); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

.preview { display: grid; place-items: center; gap: 12px; background: var(--accent-soft); border: 2px solid var(--ink); border-radius: 22px; padding: 22px; min-height: 340px; }
#qr-out { display: grid; place-items: center; }
#qr-out canvas, #qr-out svg { width: min(100%, 300px) !important; height: auto !important; border-radius: 14px; }
.qr-frame { background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 14px 14px 10px; box-shadow: var(--pop); display: grid; justify-items: center; gap: 6px; }
.qr-label { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.cover-canvas { width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 12px; border: 2px solid var(--ink); box-shadow: var(--pop); background: #fff; }

.privacy { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem; margin: 22px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); border: 2px dashed var(--ink); }
.privacy b { font-size: 1.2rem; }

/* ---------- 7. Inicio ---------- */
.hero { display: grid; gap: 40px; align-items: center; padding: 20px 0 10px; }
@media (min-width: 980px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.checks li { font-weight: 700; font-size: .95rem; padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 2px solid var(--ink); }
.hero-art { position: relative; min-height: 460px; }
.sticker {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--pop);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; background: var(--surface);
  animation: bob 6s ease-in-out infinite;
}
.sticker .e { font-size: 1.8rem; }
.sticker small { display: block; font-family: "Inter", sans-serif; font-weight: 600; font-size: .8rem; color: var(--muted); }
.s1 { top: 2%; left: 4%; background: var(--lime); transform: rotate(-5deg); }
.s2 { top: 26%; right: 0; background: var(--surface); --r: 4deg; animation-delay: -2s; }
.s3 { top: 52%; left: 0; background: var(--yellow); animation-delay: -4s; }
.s4 { bottom: 0; right: 8%; background: var(--pink); animation-delay: -1s; color: var(--ink); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 979px) { .hero-art { display: none; } }

.levels { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; font-weight: 700; }
.levels span { padding: 4px 12px; border-radius: 10px; border: 2px solid var(--ink); background: var(--surface); font-size: .9rem; }

.tools { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin: 22px 0; }
.tool-link {
  position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  padding: 26px; border: 2px solid var(--ink); border-radius: 26px; background: var(--c, var(--surface));
  box-shadow: var(--pop); transition: transform .18s, box-shadow .18s; overflow: hidden; isolation: isolate;
}
.tool-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--flow); background-size: 300% 100%; opacity: 0; transition: opacity .3s; }
a.tool-link:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: var(--pop-lg); }
a.tool-link:hover::before { opacity: .35; animation: flow 3s linear infinite; }
.tool-link .ico { font-size: 2.6rem; line-height: 1; }
.tool-link h3 { font-size: 1.55rem; margin: 4px 0 0; }
.tool-link p { margin: 0; font-size: 1rem; }
.tool-link .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tool-link .tags span { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.7); border: 1.5px solid var(--ink); }
.tool-link .go { position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 1.3rem; transition: transform .2s; }
a.tool-link:hover .go { transform: rotate(-45deg); }
.tool-link.soon { background: var(--surface); box-shadow: none; border-style: dashed; }
.tool-link .pill { position: absolute; top: 22px; right: 22px; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; border: 2px solid var(--ink); background: var(--yellow); }

.scenes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 22px 0; }
.scene { display: grid; gap: 8px; text-decoration: none; padding: 22px; border-radius: 22px; border: 2px solid var(--ink); background: var(--surface); transition: transform .15s, box-shadow .15s; }
.scene:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.scene .q { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.scene .a { font-weight: 700; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.scene .a i { font-style: normal; padding: 2px 10px; border-radius: 99px; border: 2px solid var(--ink); background: var(--c); }

.trust { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 22px 0; }
.trust div { padding: 22px; border-radius: 22px; border: 2px solid var(--ink); background: var(--surface); }
.trust b { display: block; font-family: var(--display); font-size: 1.25rem; margin: 6px 0 4px; }
.trust p { margin: 0; color: var(--muted); font-size: .95rem; }
.trust .e { font-size: 2rem; }

/* ---------- 8. Huecos de anuncios (AdSense) ---------- */
.ad-slot {
  margin: 48px auto; width: min(100% - 32px, var(--max)); text-align: center;
  min-height: 120px; display: grid; place-items: center;
  border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 18px;
  color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.5);
}
.ad-slot--leader { min-height: 100px; }
.ad-slot--content { min-height: 280px; }
@media (min-width: 728px) { .ad-slot--leader { min-height: 120px; } }
.ad-slot:has(ins.adsbygoogle) { border: 0; background: none; }
.ad-slot:has(ins.adsbygoogle) .ad-label { display: none; }

/* ---------- 9. Contenido / FAQ ---------- */
.content { max-width: 780px; }
.content p, .content li { font-size: 1.04rem; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 18px 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; background: var(--accent); border: 2px solid var(--ink); }
.steps strong { font-family: var(--display); font-size: 1.15rem; }
.faq details { background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--accent); font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; }

/* ---------- 10. Pie ---------- */
.site-footer { border-top: 2px solid var(--ink); background: var(--ink); color: #d9d4ee; padding: 34px 0 40px; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; }

@keyframes flow { to { background-position: 300% 0; } }
@keyframes spin { to { --ang: 360deg; } }

/* ---------- 11. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* Rejilla de 3 bloques: A (datos) · P (vista previa) · B (opciones).
   En escritorio la vista previa va a la derecha; en móvil queda entre A y B. */
@media (min-width: 900px) {
  .tg3 > .A, .tg3 > .B { grid-column: 1; }
  .tg3 > .P { grid-column: 2; grid-row: 1 / span 2; }
  .tg3 > .B { grid-row: 2; }
}

#compressor .st-idle .tool-grid { align-items: stretch; }
#compressor .st-idle .tool-grid > div:first-child { display: grid; }

/* ---------- v3: herramientas nuevas ---------- */
body[data-accent="sky"]    { --accent: var(--sky); --accent-soft: #dcf3ff; }
body[data-accent="yellow"] { --accent: var(--yellow); --accent-soft: #fff6cc; }
body[data-accent="pink"]   { --accent: var(--pink); --accent-soft: #ffe1ef; }

.nav .m-only { display: none; }
@media (max-width: 760px) { .nav .m-hide { display: none; } .nav .m-only { display: inline-block; } }
@media (min-width: 761px) and (max-width: 1100px) { .nav a { padding: 8px 9px; font-size: .9rem; } }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tabs a { text-decoration: none; font-weight: 700; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--surface); }
.tabs a:hover { box-shadow: 3px 3px 0 var(--ink); }
.tabs a[aria-current="page"] { background: var(--accent); box-shadow: 3px 3px 0 var(--ink); }

.row-btns { display: flex; align-items: center; gap: 6px; flex: none; }
.mini { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 10px; background: var(--surface); cursor: pointer; font-weight: 800; }
.mini:hover { background: var(--accent); }
.warn-box { margin-top: 16px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 16px; background: #fff6cc; }
.warn-box p { margin: 0 0 12px; font-weight: 600; }

.hist { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
.hist-item { flex: none; width: 104px; display: grid; gap: 4px; justify-items: center; padding: 6px; border: 2px solid var(--ink); border-radius: 14px; background: var(--surface); cursor: pointer; font: 600 .72rem/1.2 inherit; font-family: inherit; }
.hist-item:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.hist-item img { width: 80px; height: 80px; border-radius: 8px; }
.hist-item span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 14px 16px; border: 2px solid var(--ink); border-radius: 16px; background: var(--surface); }
.stat b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1.05; }
.stat span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.stat.big { grid-column: 1 / -1; background: var(--accent); }
.stat.big b { font-size: 3.2rem; }
.stat.big span { color: var(--ink); }
#cnt-text { min-height: 360px; font-size: 1.05rem; line-height: 1.6; }
.progress.bad > i { background: #ff4d6d; animation: none; }
.reps { display: flex; flex-wrap: wrap; gap: 6px; }
.rep { padding: 4px 10px; border: 2px solid var(--ink); border-radius: 99px; font-size: .88rem; background: var(--surface); }
.rep.hot { background: #ffd6c9; }

.pau-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pau-opt-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; margin-bottom: 10px; }
.num-in { font-family: var(--display) !important; font-size: 1.3rem !important; font-weight: 800; }
.pau-status { font-weight: 700; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--ink); background: var(--surface); }
.pau-status.ok { background: #d8f78f; }
.pau-status.ko { background: #ffd6c9; }
.pau-status:empty { display: none; }
.feedback-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 36px 0 0; padding: 22px 24px; border: 2px solid var(--ink); border-radius: 22px; background: var(--yellow); box-shadow: var(--pop); }
.feedback-cta p { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
