/* =========================================================
   Propuesta · Droguería Italiana & Farmacias Atenea
   ========================================================= */

:root {
  --bg: #060F1E;
  --bg-2: #0A1830;
  --stroke: rgba(255, 255, 255, .09);
  --stroke-2: rgba(255, 255, 255, .16);
  --ink: #F3F6FA;
  --ink-2: #B7C2D3;
  --ink-3: #7D8BA2;

  --green: #2BD58C;
  --green-2: #19A86C;
  --green-soft: rgba(43, 213, 140, .12);
  --sky: #7CC0FF;
  --sky-2: #3D8FE0;
  --sky-soft: rgba(124, 192, 255, .12);
  --amber: #F2B84B;

  --it-green: #009246;
  --it-white: #F4F5F0;
  --it-red: #CE2B37;

  /* Farmacias Atenea: azul y amarillo de su marca */
  --yellow: #FFD23F;
  --yellow-soft: rgba(255, 210, 63, .14);

  --accent: var(--green);
  --accent-soft: var(--green-soft);
  --on-accent: #04140C;

  --radius: 20px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.22, .8, .2, 1);

  --top: 64px;
  --bottom: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  font-feature-settings: "cv11", "ss01";
}
button { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3 { margin: 0; }
b { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

.ic {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic--flip { transform: scaleX(-1); }

/* ---------- Fondo ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* Cada negocio tiene su ambiente: Droguería un azul apenas verdoso, Atenea azul con amarillo */
body { transition: background-color 1s var(--ease); }
body[data-accent="green"] { --bg: #04161B; --bg-2: #08212A; }
body[data-accent="atenea"] { --bg: #0A1D44; --bg-2: #0F2754; }
body[data-accent="atenea"] .nav__btn--next, body[data-accent="atenea"] .dot.is-on { background: var(--yellow); }
body[data-accent="atenea"] .nav__btn--next { color: #0A1D44; }
.bg__tone { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.bg__tone--green {
  background:
    radial-gradient(60vmax 55vmax at 92% -8%, rgba(43, 213, 140, .2), transparent 70%),
    radial-gradient(70vmax 60vmax at -8% 108%, rgba(18, 130, 112, .22), transparent 70%);
}
.bg__tone--atenea {
  background:
    radial-gradient(55vmax 50vmax at 96% -10%, rgba(255, 210, 63, .17), transparent 65%),
    radial-gradient(85vmax 70vmax at 0% 110%, rgba(45, 115, 235, .42), transparent 70%);
}
body[data-accent="green"] .bg__tone--green, body[data-accent="atenea"] .bg__tone--atenea { opacity: 1; }
body[data-accent="green"] .bg__glow, body[data-accent="atenea"] .bg__glow { opacity: 0; }
.bg__glow { position: absolute; border-radius: 50%; filter: blur(10px); transition: opacity 1.1s var(--ease); }
.bg__glow--a {
  width: 70vmax; height: 70vmax; right: -25vmax; top: -35vmax;
  background: radial-gradient(closest-side, rgba(43, 213, 140, .13), transparent);
}
.bg__glow--b {
  width: 80vmax; height: 80vmax; left: -35vmax; bottom: -45vmax;
  background: radial-gradient(closest-side, rgba(52, 110, 210, .22), transparent);
}
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 70%);
}

/* ---------- Detalle italiano ---------- */
.tricolor {
  display: inline-block; width: 24px; height: 4px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--it-green) 0 33.3%, var(--it-white) 33.3% 66.6%, var(--it-red) 66.6%);
}
.tricolor--lg { width: 56px; height: 5px; }

/* ---------- Barras de navegación ---------- */
.chrome {
  position: fixed; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 3vw, 40px);
}
.chrome--top {
  top: 0; height: var(--top);
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(var(--bg) 35%, rgba(6, 15, 30, 0));
}
.chrome--bottom {
  bottom: 0; height: var(--bottom);
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(rgba(6, 15, 30, 0), var(--bg) 60%);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: .01em; min-width: 0; }
.brand__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sep { color: var(--ink-3); margin: 0 4px; }
.chrome__right { display: flex; align-items: center; gap: 10px; flex: none; }
.counter { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.08); border-color: var(--stroke-2); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; background: rgba(255,255,255,.05); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--yellow)); transition: width .8s var(--ease); }

.hint { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; flex: 1; }
kbd {
  font-family: var(--font); font-size: 11px; min-width: 22px; height: 22px; padding: 0 5px;
  display: inline-grid; place-items: center; border-radius: 6px;
  border: 1px solid var(--stroke-2); color: var(--ink-2); background: rgba(255,255,255,.03);
}
.dots { display: flex; gap: 8px; align-items: center; justify-content: center; }
.dot {
  width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.22); transition: width .5s var(--ease), background .3s;
  position: relative;
}
.dot::after { content: ""; position: absolute; inset: -10px -4px; }
.dot:hover { background: rgba(255,255,255,.45); }
.dot.is-on { width: 28px; background: var(--accent); }
.nav { display: flex; gap: 10px; flex: 1; justify-content: flex-end; }
.nav__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--stroke-2); background: rgba(255,255,255,.04);
  transition: background .2s, border-color .2s, opacity .2s, transform .2s;
}
.nav__btn .ic { width: 20px; height: 20px; stroke-width: 2; }
.nav__btn:hover:not(:disabled) { background: rgba(255,255,255,.1); }
.nav__btn:active:not(:disabled) { transform: scale(.94); }
.nav__btn--next { background: var(--accent); border-color: transparent; color: #04140C; }
.nav__btn--next:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
.nav__btn:disabled { opacity: .3; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Diapositivas ---------- */
.deck { position: fixed; inset: 0; z-index: 1; }
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent;
  padding: calc(var(--top) + 12px + env(safe-area-inset-top)) clamp(16px, 4vw, 56px) calc(var(--bottom) + 12px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden;
  transform: translateX(4%) scale(.985);
  transition: opacity .55s var(--ease), transform .8s var(--ease), visibility 0s linear .8s;
}
.slide.is-prev { transform: translateX(-4%) scale(.985); }
.slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .7s var(--ease) .1s, transform .9s var(--ease), visibility 0s;
}
.slide[data-accent="atenea"] { --accent: var(--yellow); --accent-soft: var(--yellow-soft); --on-accent: #0A1D44; }
.slide__inner { width: 100%; max-width: 1240px; margin: auto; }

/* revelado escalonado */
.rv {
  opacity: 0; transform: translateY(18px);
  transition: opacity .3s ease, transform .3s ease;
}
.is-active .rv {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms + 280ms);
}

/* ---------- Tipografía ---------- */
.eyebrow, .tag {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.tag { padding: 7px 14px 7px 12px; border: 1px solid var(--stroke); border-radius: 99px; background: rgba(255,255,255,.025); }
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tag__muted { color: var(--ink-3); font-weight: 500; }
.head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: clamp(20px, 3.2vh, 36px); }
.title {
  font-size: clamp(30px, 4.3vw, 60px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02;
  max-width: 20ch; text-wrap: balance;
}
.title em, .cover__title em, .closing__b em {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; color: var(--accent);
}
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.card__title, .mini-title { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mini-title { font-size: 11.5px; color: var(--ink-3); letter-spacing: .1em; }
.fineprint { font-size: 12px; color: var(--ink-3); margin-top: 14px; }

/* ---------- Componentes ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: clamp(16px, 1.8vw, 26px);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  padding: 5px 10px; border-radius: 99px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03);
}
.chips .ic { width: 14px; height: 14px; color: var(--accent); }
.chips--solid li { background: var(--accent-soft); border-color: rgba(43, 213, 140, .22); color: var(--ink); }
.chips--solid li:last-child { background: transparent; border-style: dashed; border-color: var(--stroke-2); color: var(--ink-3); }
.chips--atenea li { border-color: rgba(255, 210, 63, .22); }
.chips--muted li { color: var(--ink-3); border-style: dashed; border-color: var(--stroke-2); background: transparent; }
.pill {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 99px; color: var(--amber);
  background: rgba(242, 184, 75, .1); border: 1px solid rgba(242, 184, 75, .28);
}
.pill--ghost { color: var(--ink-2); background: rgba(255,255,255,.04); border-color: var(--stroke-2); }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); margin-top: 16px; line-height: 1.4; }
.note .ic { width: 15px; height: 15px; margin-top: 1px; color: var(--ink-2); }
.note--center { justify-content: center; text-align: left; margin: 14px auto 0; max-width: 760px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  height: 50px; padding: 0 22px; border-radius: 99px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .2s, filter .2s, background .2s;
}
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn--primary { background: var(--green); color: #04140C; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--primary:hover .ic { transform: translateX(3px); }
.btn--primary .ic { transition: transform .25s var(--ease); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--stroke-2); color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,.09); }
.btn:active { transform: scale(.97); }

.strip {
  display: flex; align-items: center; gap: 14px; margin-top: clamp(16px, 2.6vh, 26px);
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--accent-soft), rgba(255,255,255,.02));
  border: 1px solid rgba(43, 213, 140, .18);
  font-size: clamp(15px, 1.25vw, 18px); color: var(--ink-2);
}
.strip .ic { width: 26px; height: 26px; color: var(--accent); }

/* ---------- Portada ---------- */
.cover { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 3vh, 28px); }
.cover__title {
  font-size: clamp(44px, 8vw, 112px); font-weight: 700; letter-spacing: -.045em; line-height: .96;
}
.cover__title .atenea { color: var(--yellow); }
.cover__amp { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--ink-3); margin-left: .18em; font-size: .8em; }
.cover__meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.cover__meta b { color: var(--ink); }
.dotsep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.cover__bottom { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.agenda { display: flex; flex-wrap: wrap; gap: 6px; }
.agenda button {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px 8px 10px; border-radius: 99px; border: 1px solid var(--stroke); background: transparent;
  font-size: 13px; color: var(--ink-2); transition: background .2s, border-color .2s, color .2s;
}
.agenda button span { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--green); }
.agenda li:nth-child(4) button span { color: var(--yellow); }
.agenda button:hover { background: rgba(255,255,255,.06); border-color: var(--stroke-2); color: var(--ink); }
.cover__hint { font-size: 13px; color: var(--ink-3); }
.only-touch { display: none; }

/* ---------- 01 · Oportunidad ---------- */
.s1 { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.s1__kpis { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-rows: 1.2fr 1fr; }
.s1__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.kpi { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.kpi__label { font-size: 13.5px; color: var(--ink-2); }
.kpi__value {
  font-size: clamp(48px, 6.4vw, 92px); font-weight: 700; letter-spacing: -.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi__value--md { font-size: clamp(40px, 4.4vw, 64px); color: var(--ink); }
.kpi__cur { font-weight: 500; color: var(--accent); margin-right: .04em; font-size: .7em; vertical-align: .18em; }
.kpi__unit { font-size: 13px; color: var(--ink-3); font-weight: 500; letter-spacing: .04em; }
.kpi--hero { background: linear-gradient(160deg, rgba(43,213,140,.14), rgba(255,255,255,.02) 60%); border-color: rgba(43,213,140,.2); }
.kpi--hero .kpi__label { order: -1; margin-bottom: auto; }

.portfolio { display: flex; flex-direction: column; gap: 18px; }
.portfolio__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw--on { background: var(--green); }
.sw--off { border: 1.5px dashed var(--ink-3); }
.portfolio__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.ph {
  aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center;
  border: 1.5px dashed rgba(255,255,255,.2); color: var(--ink-3);
  opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .2s;
}
.ph .ic { width: 52%; height: 52%; stroke-width: 1.6; }
.ph--on { border: 0; background: var(--green); color: #04140C; }
.is-active .ph {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .6s cubic-bezier(.3, 1.5, .5, 1);
  transition-delay: calc(var(--i) * 40ms + 500ms);
}
.is-active .ph:not(.ph--on) { animation: phPulse 3.2s ease-in-out calc(var(--i) * 90ms + 2s) infinite; }
@keyframes phPulse {
  0%, 70%, 100% { border-color: rgba(255,255,255,.2); color: var(--ink-3); }
  80% { border-color: var(--green); color: var(--green); }
}
.split { display: flex; gap: 2px; height: 40px; border-radius: 10px; overflow: hidden; }
.split__seg {
  display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.split__seg--on { background: var(--green); color: #04140C; }
.split__seg--off { background: rgba(255,255,255,.07); color: var(--ink-2); transform-origin: left; }
.is-active .split__seg { transform: none; transition: transform 1.1s var(--ease) 1.1s; }
.is-active .split__seg--off { transition-delay: 1.35s; }
.portfolio__foot { display: flex; align-items: center; gap: 16px; font-size: 15px; color: var(--ink-2); margin-top: auto; }
.big-num { font-size: clamp(40px, 4vw, 56px); font-weight: 700; letter-spacing: -.04em; color: var(--green); line-height: 1; }

/* ---------- 02 · Plan comercial ---------- */
.s2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.levers { display: grid; gap: 12px; }
.lever { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding-block: clamp(14px, 1.6vw, 20px); }
.lever__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.lever__icon .ic { width: 24px; height: 24px; }
.lever__body { display: grid; gap: 10px; }
.lever__title { font-size: clamp(16px, 1.35vw, 19px); font-weight: 650; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; }
.lever__n { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.35em; color: var(--accent); line-height: 1; }
.flow-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
.flow-pill .ic { color: var(--accent); width: 16px; height: 16px; }
.flow-pill b { color: var(--accent); font-weight: 600; }
.lever__note { font-size: 11.5px; color: var(--ink-3); }

.chart { display: flex; flex-direction: column; }
.chart__head { display: flex; justify-content: space-between; align-items: baseline; }
.chart__unit { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .08em; }
.bars { flex: 1; display: flex; flex-direction: column; margin-top: 52px; min-height: 230px; }
.bars__plot {
  position: relative; flex: 1; min-height: 180px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12%; padding: 0 6%;
  border-bottom: 1px solid var(--stroke-2);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 100% 33.333%;
}
.bars__ref {
  position: absolute; left: 0; right: 0; bottom: calc(var(--v) / 600 * 100%);
  border-top: 1.5px dashed rgba(255,255,255,.28); pointer-events: none;
}
.bar-col { position: relative; z-index: 1; display: flex; align-items: flex-end; height: 100%; }
.bar {
  position: relative; width: 100%;
  height: calc(var(--v) / 600 * 100%);
  border-radius: 6px 6px 0 0;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .3s;
}
.bar--ref { background: rgba(255,255,255,.22); }
.bar--mid { background: #1E9E67; }
.bar--hi { background: var(--green); }
.is-active .bar { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--d) * 160ms + 650ms); }
.bar__val {
  position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: clamp(13px, 1.15vw, 16px); font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .3s;
}
.bar__val small { font-size: 11.5px; font-weight: 600; color: var(--green); }
.is-active .bar__val { opacity: 1; transition: opacity .6s ease; transition-delay: calc(var(--d) * 160ms + 1.4s); }
.bar-col:hover .bar { filter: brightness(1.15); }
.bars__labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12%; padding: 10px 6% 0; text-align: center; font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.bars__labels b { font-size: 14px; }
.chart__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.035); font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.chart__note .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--ink-2); }
.chart__note b { color: var(--ink-2); }

/* ---------- 03 · Margen y servicio ---------- */
.s3 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.s1 > *, .s2 > *, .s3 > *, .s4 > *, .s5 > * { min-width: 0; }
.panel { display: flex; flex-direction: column; gap: 16px; }
.panel__head { display: flex; gap: 14px; align-items: center; }
.panel__letter {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--on-accent); background: var(--accent);
}
.panel__title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 650; letter-spacing: -.015em; }
.panel__sub { font-size: 13.5px; color: var(--ink-3); }
.panel .note { margin-top: auto; padding-top: 4px; }

.chain { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.18); border: 1px solid var(--stroke); }
.chain__row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; }
.chain__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.chain__row--goal .chain__label { color: var(--accent); }
.chain__flow { display: flex; align-items: center; min-width: 0; }
.node {
  flex: none; display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: 12px; font-weight: 600; padding: 7px 9px; border-radius: 9px; line-height: 1.15;
  border: 1px solid var(--stroke-2); background: rgba(255,255,255,.04); color: var(--ink-2);
}
.node small { font-size: 9.5px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.node--mid { border-style: dashed; color: var(--ink-3); }
.node--us { background: var(--accent); color: #04140C; border-color: transparent; }
.link { flex: 1; min-width: 10px; height: 1.5px; background: var(--stroke-2); position: relative; }
.link::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left: 5px solid var(--stroke-2); border-right: 0; }
.chain__row--goal .link { background: var(--accent); }
.chain__row--goal .link::after { border-left-color: var(--accent); }
.is-active .chain__row--goal .link { animation: linkFlow 2.4s linear infinite; background: linear-gradient(90deg, var(--accent) 50%, rgba(43,213,140,.35) 50%) 0 0 / 12px 100%; }
@keyframes linkFlow { to { background-position: 12px 0; } }
.chain__result { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; color: var(--ink-3); padding-top: 8px; border-top: 1px solid var(--stroke); }
.chain__result .ic { width: 14px; height: 14px; color: var(--accent); }
.chain__result b { color: var(--accent); }
.evaluate { display: grid; gap: 10px; }
.evaluate__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.evaluate__list li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-2); line-height: 1.2;
  padding: 10px 6px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255,255,255,.025);
}
.evaluate__list .ic { width: 20px; height: 20px; color: var(--accent); }

/* capturas reales del portal */
.real { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.real__shots { display: flex; gap: 12px; align-items: flex-start; }
.shot { margin: 0; width: clamp(96px, 8.6vw, 124px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.shot figcaption { font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.25; }
.real__info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft);
}
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.is-active .live-badge i { animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 5px transparent; } 0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); } }
.diff-line { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.real__link {
  display: inline-flex; align-items: center; gap: 14px; min-height: 50px; padding: 8px 18px;
  border-radius: 14px; background: var(--accent); color: var(--on-accent); text-decoration: none;
  transition: filter .2s, transform .2s;
}
.real__link:hover { filter: brightness(1.08); }
.real__link:active { transform: scale(.97); }
.real__link .ic { width: 20px; height: 20px; stroke-width: 2; }
.real__link-txt { display: flex; flex-direction: column; line-height: 1.15; }
.real__link-txt b { color: inherit; font-size: 15px; }
.real__link-txt small { font-size: 12px; opacity: .75; }
.real__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* hueco para una foto que se agrega después (solo lo ve quien edita) */
.slot__empty {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; text-align: center; font-size: 11px; line-height: 1.3; color: var(--ink-3);
  background: var(--bg-2); border: 2px dashed rgba(255,255,255,.18); border-radius: inherit;
}
.slot__empty .ic { width: 26px; height: 26px; color: var(--ink-2); }
body:not(.can-edit) .slot--empty { display: none !important; }
.features { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.features li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.features .ic { width: 16px; height: 16px; color: var(--accent); }

/* ---------- 04 · Atenea ---------- */
.s4 { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.laptop__screen {
  padding: 9px; border-radius: 16px 16px 4px 4px; background: #0D1728;
  border: 1px solid var(--stroke-2); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.laptop__base { height: 12px; margin: 0 -7%; border-radius: 0 0 16px 16px; background: linear-gradient(#2A3A54, #121C2D); position: relative; }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; translate: -50% 0; border-radius: 0 0 6px 6px; background: #0D1728; }
.s4__media { display: grid; gap: 16px; min-width: 0; }
.devices { position: relative; width: 100%; margin: 0; padding: 0 9% 9% 0; }
.devices--real { padding-right: 12%; }
.devices--real .phone { width: 24%; }
.devices.has-left { padding-left: 12%; }
.screen { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #0B1530; }
.screen img, .phone__view img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.phone {
  position: absolute; right: 0; bottom: 3%; width: 27%; aspect-ratio: 9 / 19.5;
  padding: 5px; border-radius: 26px; background: #0D1728; border: 1px solid var(--stroke-2);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.85);
}
.phone--left { right: auto; left: 0; }
.phone--static { position: relative; right: auto; bottom: auto; width: 100%; border-radius: 20px; padding: 4px; }
.phone__view { height: 100%; border-radius: 21px; overflow: hidden; background: #F6F8FB; position: relative; }
.phone--static .phone__view { border-radius: 16px; }

.s4__side { display: grid; gap: 14px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefit { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.benefit .ic { width: 24px; height: 24px; color: var(--accent); margin-bottom: 8px; }
.benefit b { font-size: clamp(15px, 1.25vw, 17px); letter-spacing: -.01em; }
.benefit span { font-size: 12.5px; color: var(--ink-3); }
.status { padding: 16px 18px; display: grid; gap: 12px; }
.status__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; }
.status__list li { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.25; position: relative; }
.status__list li > i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px dashed var(--ink-3); position: relative; z-index: 1; background: var(--bg-2);
}
.status__list li::before { content: ""; position: absolute; top: 11px; left: 24px; right: -8px; height: 1.5px; background: var(--stroke-2); }
.status__list li:last-child::before { display: none; }
.status__list li.ok { color: var(--ink); }
.status__list li.ok > i { border: 0; background: var(--accent); color: #04121F; }
.status__list li.ok::before { background: var(--accent); }
.status__list li.ok + li:not(.ok)::before { background: var(--stroke-2); }
.status__list .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.status__next { font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--stroke); padding-top: 10px; }

/* ---------- 05 · Estrategia y propuesta ---------- */
.duo { display: grid; grid-template-columns: 1fr 48px 1.35fr 48px 1fr; align-items: center; }
.duo__node {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid; background: rgba(255,255,255,.03);
}
.duo__node b { font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.015em; }
.duo__node--green { border-color: rgba(43,213,140,.35); background: linear-gradient(160deg, rgba(43,213,140,.14), rgba(255,255,255,.02)); }
.duo__node--atenea { border-color: rgba(255,210,63,.4); background: linear-gradient(160deg, rgba(45,115,235,.3), rgba(10,29,68,.4)); text-align: right; align-items: flex-end; }
.duo__kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.duo__node--green .duo__kicker, .duo__node--green .duo__flow .ic { color: var(--green); }
.duo__node--atenea .duo__kicker, .duo__node--atenea .duo__flow .ic { color: var(--yellow); }
.duo__flow { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.duo__flow .ic { width: 15px; height: 15px; }
.duo__link { height: 2px; background: linear-gradient(90deg, rgba(43,213,140,.6) 50%, transparent 50%) 0 0 / 10px 100%; }
.duo__link--atenea { background-image: linear-gradient(90deg, rgba(255,210,63,.6) 50%, transparent 50%); }
.is-active .duo__link { animation: linkFlow 1.6s linear infinite; }
.is-active .duo__link--atenea { animation-direction: reverse; }
.duo__core {
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--stroke-2);
  background: rgba(255,255,255,.04); display: grid; gap: 10px; text-align: center;
}
.duo__core ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.duo__core li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); padding: 7px 9px; border-radius: 10px; background: rgba(255,255,255,.035); text-align: left; }
.duo__core .ic { width: 15px; height: 15px; color: var(--ink); }

.s5 { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(14px, 2vw, 24px); margin-top: clamp(16px, 2.6vh, 26px); align-items: stretch; }
.offer, .plan { display: flex; flex-direction: column; gap: 14px; }
.offer__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.offer__price { display: flex; align-items: baseline; gap: 2px; font-size: clamp(44px, 4.8vw, 68px); font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.offer__price .kpi__cur { vertical-align: 0; }
.offer__price small { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; margin-left: 10px; }
.offer__list { display: grid; gap: 8px; }
.offer__list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.offer__list .ic { width: 17px; height: 17px; color: var(--green); }
.offer__apart { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--stroke); }
.offer .fineprint { margin-top: auto; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; margin-top: 6px; flex: 1; }
.timeline::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 17px; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.is-active .timeline::before { transform: none; transition: transform 1.6s var(--ease) .9s; }
.timeline li {
  position: relative; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-3); line-height: 1.3;
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.is-active .timeline li { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d) * 260ms + 1s); }
.timeline__n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px;
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink);
  background: var(--bg-2); border: 1.5px solid var(--green); position: relative; z-index: 1;
}
.timeline li:nth-child(3) .timeline__n { border-color: #5FCBC4; }
.timeline li:nth-child(4) .timeline__n { border-color: var(--yellow); }
.timeline b { font-size: 15px; }
.plan .btn { align-self: flex-start; height: 44px; font-size: 14px; }

/* ---------- Cierre ---------- */
.closing {
  position: fixed; inset: 0; z-index: 15; display: grid; place-items: center;
  padding: calc(var(--top) + 20px) clamp(20px, 6vw, 80px) calc(var(--bottom) + 20px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
body.is-closing .closing { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .9s var(--ease) .25s, visibility 0s; }
body.is-closing .slide.is-active { opacity: 0; transform: scale(.96); }
body.is-closing .bg__glow--a { background: radial-gradient(closest-side, rgba(43, 213, 140, .2), transparent); }
.closing__inner { max-width: 1040px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.closing__a { font-size: clamp(20px, 2.4vw, 32px); color: var(--ink-3); font-weight: 500; letter-spacing: -.02em; }
.closing__b { font-size: clamp(36px, 6vw, 84px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.closing__b em { color: var(--green); }
.closing__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.closing__sign { font-size: 12.5px; color: var(--ink-3); }
.closing__inner > * { opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; }
body.is-closing .closing__inner > * { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); }
body.is-closing .closing__inner > :nth-child(1) { transition-delay: .3s; }
body.is-closing .closing__inner > :nth-child(2) { transition-delay: .45s; }
body.is-closing .closing__inner > :nth-child(3) { transition-delay: .9s; }
body.is-closing .closing__inner > :nth-child(4) { transition-delay: 1.5s; }
body.is-closing .closing__inner > :nth-child(5) { transition-delay: 1.7s; }

/* ---------- Presentación de cada marca ---------- */
.splash {
  position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.splash.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s ease, visibility 0s; }
.splash--drogueria { background: radial-gradient(ellipse at 50% 42%, #0E3A33 0%, #04161B 72%); }
.splash--atenea { background: radial-gradient(ellipse at 50% 42%, #1C4FA8 0%, #0A1D44 72%); }
.splash__inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  opacity: 0; transform: scale(.94) translateY(10px);
  transition: opacity .5s ease, transform 1.4s var(--ease);
}
.splash.is-on .splash__inner { opacity: 1; transform: none; transition-delay: .1s; }
.splash__kicker { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.splash__name { font-size: clamp(46px, 9vw, 124px); font-weight: 700; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.splash__name em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.splash--drogueria .splash__name em { color: var(--green); }
.splash--atenea .splash__name em { color: var(--yellow); }
.splash__sub { font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-2); }
.splash__logo { width: 72px; height: 72px; border-radius: 20px; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 20px 50px -12px rgba(255,210,63,.45); }
.splash__logo svg { width: 40px; height: 40px; fill: none; stroke: #0A1D44; stroke-width: 4; stroke-linecap: round; }

/* ---------- Guía de uso ---------- */
.guide {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(3, 8, 16, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn .4s ease;
}
.guide[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.guide__card {
  width: 100%; max-width: 540px; max-height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 4vw, 30px);
  background: #0D1D33; border: 1px solid var(--stroke-2); border-radius: 24px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9);
}
.guide__title { font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.guide__steps { display: grid; gap: 16px; }
.guide__step { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; font-size: 16.5px; line-height: 1.4; color: var(--ink-2); }
.guide__step b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 2px; }
.guide__step b.only-touch { display: none; }
.guide__ok { align-self: stretch; justify-content: center; height: 56px; font-size: 17px; }
.guide__foot { font-size: 13px; color: var(--ink-3); text-align: center; }

.demo {
  position: relative; width: 76px; height: 76px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--stroke);
}
.demo__screen {
  width: 36px; height: 56px; border-radius: 8px; border: 2px solid var(--ink-3); overflow: hidden;
  display: flex; flex-direction: column; gap: 4px; padding: 5px 4px;
}
.demo__screen i { flex: none; height: 7px; border-radius: 2px; background: rgba(255,255,255,.28); }
.demo__screen--long i:nth-child(2) { background: var(--green); }
.demo__finger {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 0 0 6px rgba(255,255,255,.18);
}
.demo--x .demo__finger { animation: swipeX 2.4s ease-in-out infinite; }
.demo--x .demo__screen i { animation: contentX 2.4s ease-in-out infinite; }
.demo--y .demo__finger { animation: swipeY 2.4s ease-in-out infinite; }
.demo--y .demo__screen i { animation: contentY 2.4s ease-in-out infinite; }
@keyframes swipeX { 0% { transform: translate(16px, 12px); opacity: 0; } 15% { opacity: 1; transform: translate(16px, 12px); } 60% { transform: translate(-16px, 12px); opacity: 1; } 75%, 100% { transform: translate(-16px, 12px); opacity: 0; } }
@keyframes contentX { 0%, 15% { transform: none; } 60%, 100% { transform: translateX(-140%); } }
@keyframes swipeY { 0% { transform: translate(12px, 16px); opacity: 0; } 15% { opacity: 1; transform: translate(12px, 16px); } 60% { transform: translate(12px, -16px); opacity: 1; } 75%, 100% { transform: translate(12px, -16px); opacity: 0; } }
@keyframes contentY { 0%, 15% { transform: none; } 60%, 100% { transform: translateY(-22px); } }
.demo--btn { display: flex; gap: 6px; justify-content: center; align-items: center; }
.demo__b {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--stroke-2); font-size: 18px; line-height: 1; color: var(--ink-2);
}
.demo__b--on { background: var(--green); color: #04140C; border-color: transparent; animation: tap 1.6s ease-in-out infinite; }
@keyframes tap { 0%, 60%, 100% { transform: none; } 70% { transform: scale(.86); } }

/* ---------- Modo edición ---------- */
.edit-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; cursor: pointer;
  border-radius: 10px; border: 1px solid rgba(124,192,255,.35); background: var(--sky-soft); color: var(--sky);
  font-size: 13px; font-weight: 600;
}
.edit-btn .ic { width: 16px; height: 16px; }
.edit-btn[hidden] { display: none; }
.editbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: calc(8px + env(safe-area-inset-top)) clamp(12px, 3vw, 40px) 8px;
  background: #0E2440; border-bottom: 1px solid rgba(124,192,255,.3);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
}
.editbar[hidden], .eb[hidden] { display: none; }
.editbar__msg { font-size: 13px; color: var(--ink-2); }
.editbar__msg.is-ok { color: var(--green); }
.editbar__msg.is-error { color: #FF8A80; }
.editbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eb { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--stroke-2); }
.eb--ghost { background: rgba(255,255,255,.05); color: var(--ink); }
.eb--primary { background: var(--sky); color: #04121F; border-color: transparent; }
.eb:disabled { opacity: .5; cursor: default; }
body.is-editing .chrome--top { visibility: hidden; }
body.is-editing [data-t] {
  outline: 1px dashed rgba(124,192,255,.45); outline-offset: 2px; border-radius: 3px; cursor: text;
  -webkit-user-select: text; user-select: text;
}
body.is-editing [data-t]:hover { background: rgba(124,192,255,.08); }
body.is-editing [data-t]:focus { outline: 2px solid var(--sky); background: rgba(124,192,255,.12); }
body.is-editing [data-t].is-dirty { outline-color: var(--amber); }

/* ---------- Responsive ---------- */
@media (min-width: 981px) and (max-height: 820px) {
  :root { --top: 52px; --bottom: 62px; }
  .slide { padding-top: calc(var(--top) + 4px); padding-bottom: calc(var(--bottom) + 2px); }
  .head { gap: 10px; margin-bottom: 16px; }
  .title { font-size: clamp(30px, 3.4vw, 46px); }
  .tag { padding-block: 5px; }
  .levers { gap: 10px; }
  .lever { padding-block: 12px; }
  .lever__body { gap: 8px; }
  .devices { max-width: calc((100vh - 230px) * 1.45); margin-inline: auto; }
  .benefit { padding: 12px 16px; }
  .benefit .ic { margin-bottom: 4px; }
  .s4__side { gap: 12px; }
  .duo__node, .duo__core { padding: 12px 16px; }
  .s5 { margin-top: 14px; }
  .offer, .plan { gap: 10px; }
  .offer__price { font-size: clamp(40px, 4vw, 56px); }
  .offer__apart { padding-top: 10px; }
  .offer .fineprint { margin-top: 2px; }
  .timeline__n { margin-bottom: 6px; }
  .note--center { margin-top: 10px; }
  .card { padding: 16px 18px; }
  .panel { gap: 12px; }
  .bars { margin-top: 44px; min-height: 200px; }
  .portal__rows li { padding: 5px 10px; }
  .portal__search { margin: 8px 12px; padding: 6px 10px; }
  .portal__foot { padding: 7px 12px; margin-top: 6px; }
  .evaluate__list li { padding: 8px 6px; flex-direction: row; justify-content: center; text-align: left; }
  .evaluate__list .ic { width: 17px; height: 17px; }
  .shot { width: clamp(88px, 7.2vw, 108px); }
  .real__info { gap: 9px; }
  .real__link { min-height: 44px; padding: 6px 16px; }
  .s4__media { gap: 10px; }
  .chain { gap: 8px; padding: 12px; }
  .diff__grid div { padding: 8px 10px; }
  .note { margin-top: 10px; }
  .kpi__value { font-size: clamp(48px, 5.4vw, 80px); }
}

/* Laptops bajas (720p) */
@media (min-width: 981px) and (max-height: 740px) {
  .slide__inner { zoom: .9; }
}

/* Pantallas grandes (TV, monitores 1080p+): todo un poco más grande */
@media (min-width: 1700px) and (min-height: 1000px) {
  .slide__inner { zoom: 1.15; }
}

@media (max-width: 1100px) {
  .evaluate__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  :root { --top: 56px; --bottom: 72px; }
  .s1, .s2, .s3, .s4, .s5 { grid-template-columns: 1fr; }
  .s1__kpis { grid-template-rows: none; }
  .kpi--hero { min-height: 170px; }
  .portfolio__grid { grid-template-columns: repeat(10, 1fr); }
  .devices { max-width: 640px; width: 100%; margin: 0 auto; }
  .duo { grid-template-columns: 1fr; gap: 0; }
  .duo__link { width: 2px; height: 22px; margin: 0 auto; background: linear-gradient(rgba(43,213,140,.6) 50%, transparent 50%) 0 0 / 100% 10px; }
  .duo__link--atenea { background-image: linear-gradient(rgba(255,210,63,.6) 50%, transparent 50%); }
  .is-active .duo__link { animation-name: linkFlowV; }
  .duo__node--atenea { text-align: left; align-items: flex-start; }
  .hint { display: none; }
  .nav, .chrome--bottom > :first-child { flex: initial; }
  .chrome--bottom { justify-content: space-between; }
  .dots { order: -1; }
}
@keyframes linkFlowV { to { background-position: 0 10px; } }

@media (max-width: 640px) {
  body { font-size: 15px; }
  .slide { padding-left: 16px; padding-right: 16px; }
  .brand__txt { font-size: 12px; }
  .brand .tricolor { width: 18px; }
  .title { font-size: clamp(28px, 8.6vw, 38px); max-width: none; }
  .tag { font-size: 10.5px; letter-spacing: .1em; gap: 8px; padding: 6px 12px 6px 10px; }
  .tag__muted { display: none; }
  .cover__title { font-size: clamp(42px, 13vw, 64px); }
  .cover__amp { display: block; margin: .05em 0 0; font-size: .6em; }
  .cover__bottom { gap: 18px; width: 100%; }
  .cover__bottom .btn--primary { width: 100%; justify-content: center; }
  .agenda button { font-size: 12.5px; padding: 7px 12px 7px 9px; }
  .portfolio__grid { grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .split { height: 36px; }
  .split__seg { font-size: 11.5px; padding: 0 9px; }
  .portfolio__foot { font-size: 14px; }
  .lever { grid-template-columns: 1fr; gap: 12px; }
  .lever__icon { width: 40px; height: 40px; border-radius: 12px; }
  .bars__plot { gap: 9%; padding: 0 3%; }
  .bars__labels { gap: 9%; padding-left: 3%; padding-right: 3%; font-size: 11.5px; }
  .bar__val { font-size: 12.5px; }
  .bar__val small { font-size: 10.5px; }
  .chain { padding: 12px 8px; }
  .chain__row { grid-template-columns: 1fr; gap: 6px; }
  .node { flex: 0 1 auto; min-width: 0; font-size: 10px; padding: 6px 5px; letter-spacing: -.01em; }
  .node small { font-size: 8.5px; }
  .link { min-width: 5px; }
  .link::after { display: none; }
  .evaluate__list { grid-template-columns: repeat(2, 1fr); }
  .evaluate__list li:last-child { grid-column: span 2; }
  .diff { grid-template-columns: minmax(0, 1fr); }
  .diff__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .diff__grid div { grid-template-columns: minmax(0, 1fr); padding: 10px 8px; font-size: 11px; }
  .diff__grid .ic { grid-row: auto; margin-bottom: 6px; }
  .diff__grid b { font-size: 12.5px; }
  .real { grid-template-columns: 1fr; gap: 16px; }
  .real__shots { justify-content: center; }
  .shot { width: 124px; }
  .real__link { align-self: stretch; justify-content: space-between; }
  .real__bar .real__link { flex: 1; }
  .guide__step { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; font-size: 16px; }
  .demo { width: 64px; height: 64px; }
  .portal__rows li { grid-template-columns: 1fr auto; }
  .portal__rows .pr__btn { display: none; }
  .benefits { gap: 10px; }
  .benefit { padding: 14px; }
  .status__list { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .status__list li::before { display: none; }
  .duo__core ul { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; background: linear-gradient(var(--green), var(--yellow)); transform: scaleY(0); transform-origin: top; }
  .timeline li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding-bottom: 14px; }
  .timeline li .timeline__n { grid-row: span 2; margin: 0; }
  .timeline li:last-child { padding-bottom: 0; }
  .offer__price small { display: block; }
  .plan .btn { width: 100%; justify-content: center; }
  .nav__btn { width: 44px; height: 44px; }
  .edit-btn { padding: 0 10px; font-size: 0; gap: 0; }
  .edit-btn .ic { width: 18px; height: 18px; }
  .editbar__msg { width: 100%; }
  body.is-editing .slide { padding-top: calc(var(--top) + 56px + env(safe-area-inset-top)); }
  .editbar__actions { width: 100%; }
  .eb { flex: 1; padding: 0 8px; }
  .closing__b { font-size: clamp(32px, 10vw, 46px); }
  .closing__actions .btn { flex: 1; justify-content: center; padding: 0 14px; }
}

@media (hover: none) and (pointer: coarse) {
  .only-desktop { display: none; }
  .only-touch { display: inline; }
  .guide__step b.only-touch { display: block; }
  .guide__step b.only-desktop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Sin JavaScript: mostrar todo en una sola página */
.no-js body { overflow: auto; }
.no-js .deck, .no-js .slide { position: relative; inset: auto; }
.no-js .slide { opacity: 1; visibility: visible; transform: none; min-height: 100vh; }
.no-js .rv, .no-js .ph, .no-js .timeline li { opacity: 1; transform: none; }
.no-js .bar, .no-js .split__seg, .no-js .timeline::before { transform: none; }
.no-js .bar__val { opacity: 1; }
.no-js .chrome--bottom, .no-js .closing { display: none; }

/* Impresión / PDF: una diapositiva por página */
@media print {
  @page { size: landscape; margin: 0; }
  body { overflow: visible; background: var(--bg); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .chrome, .progress, .bg, .closing { display: none !important; }
  .deck, .slide { position: relative !important; inset: auto; }
  .slide { opacity: 1 !important; visibility: visible !important; transform: none !important; height: 100vh; overflow: hidden; page-break-after: always; break-after: page; padding-top: 32px; padding-bottom: 32px; }
  .rv, .ph, .timeline li, .bar__val { opacity: 1 !important; transform: none !important; }
  .bar, .split__seg, .timeline::before { transform: none !important; }
}

/* Si se borra el texto de la izquierda en la portada, no queda el punto suelto */
.cover__meta span:empty, .cover__meta span:empty + .dotsep { display: none; }

/* ---------- 06 · Tablero de widgets ---------- */
.slide[hidden] { display: none; }
.wpanel { display: grid; gap: 14px; }
.wpanel__editor {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 14px; border: 1px dashed rgba(124,192,255,.45); background: var(--sky-soft);
  font-size: 13.5px; color: var(--ink-2);
}
.wpanel__editor[hidden] { display: none; }
.wpanel__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.w {
  --wc: var(--green);
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 18px;
  border-radius: 18px; border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}
.w--atenea { --wc: var(--yellow); }
.w--ambos { --wc: #7FD8C8; }
.w--wide { grid-column: span 2; }
.w.is-private { opacity: .55; border-style: dashed; }
.w.is-private:hover { opacity: .85; }
.w__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.w__head h3 { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); line-height: 1.3; }
.w__biz { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.w__biz::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wc); }
.w__toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.w__toggle input { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }
.w__body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.w__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--stroke); padding-top: 10px; }
.w__example { flex: none; padding: 2px 8px; border-radius: 99px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 10px; color: var(--amber); background: rgba(242,184,75,.12); border: 1px solid rgba(242,184,75,.3); }
.w-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: clamp(34px, 3vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.w-big small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.w-note { font-size: 12.5px; color: var(--ink-3); }
.w-note b { color: var(--ink); }
.w-delta { font-size: 13px; font-weight: 600; }
.w-delta small { font-weight: 400; color: var(--ink-3); }
.w-delta.is-up { color: var(--green); }
.w-delta.is-down { color: #FF8A80; }
.w-empty { color: var(--ink-3); }

.w-spark { width: 100%; height: 64px; overflow: visible; }
.w-spark__area { fill: var(--wc); opacity: .14; }
.w-spark__line { fill: none; stroke: var(--wc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.w-spark__dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--wc); box-shadow: 0 0 0 3px var(--bg); }
.w--tendencia { padding-bottom: 2px; }
.w--tendencia .w-spark__dot { margin-top: calc(-4.5px + 0px); }
.w-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }

.w-progress { height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.w-progress span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: var(--wc); }

.w-ring { position: relative; width: 116px; height: 116px; align-self: center; }
.w-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.w-ring__bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 10; }
.w-ring__fg { fill: none; stroke: var(--wc); stroke-width: 10; stroke-linecap: round; }
.w-ring__val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }

.w-rank { display: grid; gap: 9px; counter-reset: r; }
.w-rank li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.w-rank__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.w-rank__bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.w-rank__bar i { display: block; height: 100%; border-radius: inherit; background: var(--wc); }
.w-rank__val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }

.w-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; height: 150px; align-items: end; }
.w-bars__col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.w-bars__val { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-bars__bar { width: 100%; max-height: calc(100% - 40px); border-radius: 6px 6px 0 0; background: rgba(255,255,255,.2); }
.w-bars__bar.is-last { background: var(--wc); }
.w-bars__lbl { font-size: 11.5px; color: var(--ink-3); }

.w-line { width: 100%; height: 90px; overflow: visible; }
.w-line__goal { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 5 4; }
.w-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-3); }
.w-legend span { display: inline-flex; align-items: center; gap: 6px; }
.w-legend i { width: 14px; height: 0; border-top: 2px solid var(--wc); }
.w-legend i.is-goal { border-top: 2px dashed var(--ink-3); }

.w-funnel { display: grid; gap: 8px; }
.w-funnel li { position: relative; display: flex; align-items: center; min-height: 34px; }
.w-funnel__bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 8px; background: var(--wc); opacity: .2; }
.w-funnel__txt { position: relative; padding: 0 10px; font-size: 13px; color: var(--ink-2); }
.w-funnel__txt b { color: var(--ink); font-variant-numeric: tabular-nums; }
.w-funnel__txt small { color: var(--ink-3); margin-left: 4px; }

.w-status { display: grid; gap: 8px; }
.w-status li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.w-pill { flex: none; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.w-pill.is-ok { color: #04140C; background: var(--green); }
.w-pill.is-run { color: #7CC0FF; background: rgba(124,192,255,.14); }
.w-pill.is-wait { color: var(--ink-3); background: rgba(255,255,255,.06); }
.w-pill.is-risk { color: #FF8A80; background: rgba(255,138,128,.14); }

.w-steps { display: grid; gap: 9px; }
.w-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.w-steps i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--ink-3); }
.w-steps li.is-done { color: var(--ink); }
.w-steps li.is-done i { border: 0; background: var(--wc); }

.w-compare { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.w-compare > div { display: flex; flex-direction: column; gap: 4px; }
.w-compare span { font-size: 12px; color: var(--ink-3); }
.w-compare b { font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.w-compare .is-target b { color: var(--wc); }
.w-compare__arrow { font-size: 24px !important; }
.w-compare__arrow.is-up { color: var(--green) !important; }

.w-table { overflow-x: auto; }
.w-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.w-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 8px 0; }
.w-table td { padding: 9px 10px 9px 0; border-top: 1px solid var(--stroke); color: var(--ink-2); white-space: nowrap; }
.w-table td:first-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.w-heat { display: grid; grid-template-columns: repeat(auto-fit, minmax(34px, 1fr)); gap: 6px; }
.w-heat__cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px; border-radius: 10px; position: relative; isolation: isolate; }
.w-heat__cell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--wc); opacity: var(--a); z-index: -1; }
.w-heat__cell b { font-size: 15px; font-variant-numeric: tabular-nums; }
.w-heat__cell span { font-size: 10.5px; color: var(--ink-2); }

.w-alert { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); }
.w-alert.is-warn { background: rgba(242,184,75,.1); }
.w-alert.is-warn .w-big { color: var(--amber); }
.w-alert p { font-size: 13px; color: var(--ink-2); }

@media (max-width: 640px) {
  .w--wide { grid-column: auto; }
  .wgrid { grid-template-columns: 1fr; }
}
.w-spark-wrap { position: relative; height: 64px; }
.w-spark-wrap .w-spark { position: absolute; inset: 0; height: 100%; }
