/* Base (previous palette kept) */
:root{
  --ink:#0e2a6e;
  --ink-soft:#2b4a95;
  --red:#d82f2f;
  --paper:#fafbfd;
  --chip:#fff;
  --accent:#e86a6a;
  --pill:#eef3ff;
  --pill-on:#cfe1ff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

.page{max-width:1100px; margin:24px auto 48px; padding:0 16px}

/* ---------- CABECERA ---------- */
.header{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:10px;
  flex-wrap:wrap;
}
.heading-left{min-width:280px;flex:1}
.line{
  margin:.2rem 0;
  font-size:clamp(15px, 2vw, 18px);
  letter-spacing:.5px;
}
.red .word{color:var(--red)}
.red-strong{font-weight:900}
.small{margin-left:.5rem; font-size:.85em; color:#c33}

/* "than LOVE" closer to the left text */
.than{
  display:flex; align-items:baseline; gap:.35rem;
  font-size:clamp(16px,2.1vw,20px);
  translate: 0 2px;
}
.than.tight{margin-left:.5rem}
.word.love{color:#c02424; font-weight:900; font-size:1.1em}

/* Botones superiores */
.actions{display:flex; flex-wrap:wrap; gap:.5rem; margin:10px 0 6px}
.chip{
  background:var(--chip);
  border:2px solid var(--ink);
  color:var(--ink);
  padding:.35rem .6rem;
  border-radius:8px;
  font-weight:700;
  font-size:.86rem;
  letter-spacing:.5px;
  box-shadow:2px 2px 0 0 var(--ink);
  cursor:pointer;
}
.chip.big{font-size:.95rem; padding:.5rem .9rem}

/* ---------- CINTA CENTRAL ---------- */
.ribbon{
  border-top:2px solid var(--accent);
  border-bottom:2px solid var(--accent);
  margin:14px 0 10px;
  padding:10px 8px;
  display:flex; justify-content:space-between; align-items:center;
  gap:16px; flex-wrap:wrap;
}
.tag{
  display:inline-block;
  padding:.2rem .5rem;
  border:2px solid var(--ink);
  border-radius:6px;
  box-shadow:2px 2px 0 0 var(--ink);
  font-weight:900;
  letter-spacing:1px;
}
.and{margin:0 .5rem; color:#d33; font-style:italic}
.arrows{color:#e33; font-weight:900; margin-right:.35rem}

/* Live phrase */
.live-phrase{
  font-weight:700;
  color:#0f2a6e;
}

/* ---------- PANELS ---------- */
.panels{display:grid; gap:10px; margin:8px 0}
.panel{
  display:none;
  border:1px dashed #b7bfdc;
  background:#f6f8ff;
  border-radius:10px;
  padding:10px 12px;
}
.panel.open{display:block}
.panel h4{margin:.1rem 0 .25rem}

/* ---------- LAYOUT PRINCIPAL ---------- */
.layout{
  display:grid;
  grid-template-columns: 1fr 220px; /* escalas + columna sentidos */
  gap:24px;
  align-items:start;
}

/* ---------- ESCALAS ---------- */
.scales{display:flex; flex-direction:column; gap:26px}

.scale{position:relative; min-height:82px; padding-bottom:24px}
.scale .lbl{
  position:absolute; top:-6px;
  font-weight:700; letter-spacing:.6px; color:var(--ink-soft);
}
.scale .lbl.left{left:0}
.scale .lbl.right{right:0}
.scale .lbl.mid{left:50%; transform:translateX(-50%)}

/* Línea con “soportes” y marca central */
.bar{
  --w: 100%;
  position:absolute; left:0; right:0; top:22px;
  height:14px;
}
.bar::before{
  content:"";
  position:absolute; top:6px;
  width:calc(var(--w)); left:0; height:2px; background:var(--ink-soft);
}
.bar::after{
  content:"";
  left:50%; width:2px; height:22px; top:-4px; background:var(--ink-soft);
  position:absolute;
}
.bar.short{--w: 75%}
.bar.long{--w: 100%}
.scale::before,
.scale::after{
  content:"";
  position:absolute; top:14px; width:14px; height:18px;
  border:2px solid var(--ink-soft);
  border-top:none; border-left:none; border-right:none;
}
.scale::before{left:-2px}
.scale::after{right:-2px}

/* Picker */
.picker{position:relative; margin-top:36px}
.picker input[type=range]{width:100%; -webkit-appearance:none; appearance:none; background:transparent}
/* Track */
.picker input[type=range]::-webkit-slider-runnable-track{height:4px; background:#2b4a95}
.picker input[type=range]::-moz-range-track{height:4px; background:#2b4a95}
/* Thumb */
.picker input[type=range]::-webkit-slider-thumb{-webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:#c02424; border:2px solid #0e2a6e; margin-top:-7px}
.picker input[type=range]::-moz-range-thumb{width:18px; height:18px; border-radius:50%; background:#c02424; border:2px solid #0e2a6e}
/* Ticks */
.ticks{display:grid; grid-template-columns:repeat(7,1fr); font-size:10px; color:#a0a8c8; margin-top:4px}
.ticks span{justify-self:center}

/* Sense mini pills per scale */
.senses-mini{display:flex; gap:6px; margin-top:8px}
.sense-pill{
  border:1px solid #b4c0ee; background:var(--pill);
  border-radius:999px; padding:4px 8px; line-height:1; cursor:pointer;
}
.sense-pill.on{background:var(--pill-on)}

/* CTA final */
.cta{margin-top:18px; display:flex; gap:10px}

/* ---------- SENTIDOS ---------- */
.senses{display:flex; flex-direction:column; gap:10px; padding-top:10px}
.sense{
  font-size:22px; letter-spacing:2px; color:var(--ink-soft);
  padding:6px 8px; border-radius:8px; border:1px dashed transparent;
}
.sense.on{background:#f1f5ff; border-color:#b7bfdc}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px){
  .layout{grid-template-columns:1fr}
  .than{margin-left:0}
}
