/* ============================================================================
 * Presentación de Onboarding Otimify
 * Branding oficial oscuro — tokens de .claude/skills/otimify-branding/SKILL.md
 *
 * El deck es un canvas FIJO de 1440×810 (16:9). En pantalla se escala con
 * transform:scale(); en modo print se imprime a tamaño real, una slide por
 * página. Así el PDF sale pixel-idéntico a lo que se ve en la call.
 * ========================================================================== */

/* ---- Montserrat self-hosted (sin dependencia de red en el render del PDF) - */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: block;
  src: url('fonts/montserrat-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: block;
  src: url('fonts/montserrat-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: block;
  src: url('fonts/montserrat-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: block;
  src: url('fonts/montserrat-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: block;
  src: url('fonts/montserrat-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: block;
  src: url('fonts/montserrat-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: block;
  src: url('fonts/montserrat-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: block;
  src: url('fonts/montserrat-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: block;
  src: url('fonts/montserrat-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: block;
  src: url('fonts/montserrat-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---- Tokens de marca ----------------------------------------------------- */
:root {
  --bg:        #070a0c;
  --bg-card:   #0d1215;
  --bg-input:  #111619;
  --border:      #1e2a2f;
  --border-glow: rgba(0, 210, 100, 0.35);
  --green:      #00d264;
  --green-dim:  #009e4a;
  --green-glow: rgba(0, 210, 100, 0.18);
  --text:       #e8ede9;
  --text-dim:   #9aada2;
  --text-muted: #6b7b72;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   18px;
  --radius-pill: 999px;
  --font: 'Montserrat', system-ui, sans-serif;
  --shadow-card: 0 2px 24px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 28px rgba(0, 210, 100, 0.22);
  --s: 1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; background: var(--bg); }

body {
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Stage: escala el canvas fijo al viewport ---------------------------- */
#stage {
  width: 1440px;
  height: 810px;
  position: relative;
  flex: none;
  transform: scale(var(--s));
  transform-origin: center center;
}

/* ---- Slide --------------------------------------------------------------- */
.slide {
  position: absolute;
  inset: 0;
  width: 1440px;
  height: 810px;
  overflow: hidden;
  background:
    radial-gradient(58% 46% at 78% 6%, rgba(0,210,100,0.13) 0%, transparent 68%),
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 40px 40px, 40px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.slide.active { opacity: 1; pointer-events: auto; }

.pad {
  position: absolute; inset: 0; padding: 76px 88px 72px;
  display: flex; flex-direction: column; align-items: stretch;
  /* centrado vertical: las slides con menos contenido quedan equilibradas
     en vez de dejar un hueco muerto abajo */
  justify-content: center;
}
/* en flex-column las imagenes se estiran al ancho: las anclamos a la izquierda */
.pad > img { align-self: flex-start; width: auto; flex: none; }

/* Marca de agua: logo chico + numero de slide */
.slide .mark {
  position: absolute; left: 88px; bottom: 34px; height: 20px; opacity: .5;
}
.slide .pageno {
  position: absolute; right: 88px; bottom: 34px;
  font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: .5px;
}

/* ---- Tipografia ---------------------------------------------------------- */
h1 { font-size: 84px; font-weight: 800; letter-spacing: -2.4px; line-height: 1.02; }
h2 { font-size: 46px; font-weight: 800; letter-spacing: -1.1px; line-height: 1.08; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.lead { font-size: 21px; font-weight: 400; color: var(--text-dim); line-height: 1.5; }
.g { color: var(--green); }
.eyebrow {
  color: var(--green); text-transform: uppercase; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 18px;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(0,210,100,0.1); color: var(--green);
  border: 1px solid rgba(0,210,100,0.25); border-radius: var(--radius-pill);
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 9px var(--green);
}

.rule {
  height: 3px; border-radius: 2px; margin: 26px 0;
  background: linear-gradient(90deg, var(--green), rgba(0,210,100,0.05));
}
.rule.short { width: 190px; }

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 24px 26px;
}
.card.hi {
  background: linear-gradient(158deg, rgba(0,210,100,0.11), rgba(0,210,100,0.02));
  border-color: var(--border-glow); box-shadow: var(--shadow-glow);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16px; color: var(--text-dim); line-height: 1.45; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cols-wide { grid-template-columns: 1.15fr 1fr; }

/* ---- Listas con check --------------------------------------------------- */
.checks { display: flex; flex-direction: column; gap: 15px; }
.checks li { list-style: none; display: flex; align-items: flex-start; gap: 13px; font-size: 20px; font-weight: 500; }
.checks li .ck {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: rgba(0,210,100,0.16); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.checks li span.t { line-height: 1.35; }
.checks.sm li { font-size: 17px; }
.checks.sm li .ck { width: 22px; height: 22px; font-size: 12px; }

.bullets li { list-style: none; display: flex; align-items: center; gap: 12px; font-size: 19px; color: var(--text-dim); }
.bullets { display: flex; flex-direction: column; gap: 13px; }
.bullets li::before {
  content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
}

/* ---- Chips de feature --------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 9px 18px 9px 14px;
  font-size: 16px; font-weight: 600;
}
.chip .ck {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(0,210,100,0.16);
  color: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex: none;
}

/* ---- Numeros / stats --------------------------------------------------- */
.stat { font-size: 52px; font-weight: 800; letter-spacing: -1.6px; color: var(--green); line-height: 1; }
.stat.sm { font-size: 34px; letter-spacing: -1px; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 10px; }

.numbox {
  flex: none; width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(0,210,100,0.1); border: 1px solid rgba(0,210,100,0.22);
  color: var(--green); font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Tabla de precios -------------------------------------------------- */
table.prices { width: 100%; border-collapse: collapse; font-size: 17px; }
table.prices th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.3px; padding: 0 14px 12px;
  border-bottom: 1px solid var(--border);
}
table.prices th.num, table.prices td.num { text-align: right; }
table.prices td { padding: 11px 14px; border-bottom: 1px solid rgba(30,42,47,0.6); }
table.prices tr:last-child td { border-bottom: none; }
table.prices td.concept { font-weight: 600; }
table.prices td.sub { font-size: 14px; color: var(--text-muted); font-weight: 400; }
table.prices td.price { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.prices td.free { font-weight: 700; color: var(--green); }
table.prices tr.hi td { background: rgba(0,210,100,0.05); }

/* ---- Controles (select / input) --------------------------------------- */
label.field { display: flex; flex-direction: column; gap: 7px; }
label.field .lab { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; }
select, input[type=number] {
  background: var(--bg-input); color: var(--text); font-family: var(--font);
  font-size: 17px; font-weight: 600;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px;
  width: 100%; -moz-appearance: textfield;
}
select:focus, input:focus { border-color: var(--green); outline: none; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* valores congelados en modo print */
.frozen {
  display: block; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 17px; font-weight: 600;
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green); color: var(--bg); border: none;
  border-radius: var(--radius-pill); font-family: var(--font); font-weight: 700;
  font-size: 15px; padding: 12px 26px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,210,100,0.3);
}
.btn.ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  box-shadow: none;
}

/* ---- Desglose de la calculadora --------------------------------------- */
.breakdown { display: flex; flex-direction: column; }
.breakdown .row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid rgba(30,42,47,0.7);
}
.breakdown .row .l { font-size: 17px; font-weight: 600; }
.breakdown .row .d { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.breakdown .row .v { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown .total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 20px; padding-top: 18px; border-top: 2px solid var(--green);
}
.breakdown .total .l { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-dim); }
.breakdown .total .v { font-size: 44px; font-weight: 800; letter-spacing: -1.4px; color: var(--green); font-variant-numeric: tabular-nums; }

.note { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.note a { color: var(--green-dim); text-decoration: none; }
.src {
  position: absolute; left: 88px; right: 88px; bottom: 62px;
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}

/* ---- Timeline ventana 24 h -------------------------------------------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ''; position: absolute; left: 12px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--green), rgba(0,210,100,0.12));
}
.timeline .step { position: relative; padding-bottom: 26px; }
.timeline .step:last-child { padding-bottom: 0; }
.timeline .step::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(0,210,100,0.15);
}
.timeline .step.off::before { background: var(--text-muted); box-shadow: 0 0 0 4px rgba(107,123,114,0.15); }
.timeline .step .st { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.timeline .step .sd { font-size: 16px; color: var(--text-dim); line-height: 1.45; }

/* ---- Portada ----------------------------------------------------------- */
.cover .logo-big { height: 54px; width: auto; margin-bottom: 42px; }
.closing img { align-self: center; }
.cover h1 { font-size: 104px; letter-spacing: -3.4px; }
.orb {
  position: absolute; right: -130px; top: 50%; transform: translateY(-50%);
  width: 720px; height: 720px; pointer-events: none; overflow: visible;
}

/* Tarjetas flotantes decorativas de la portada */
.float-card {
  position: absolute; background: rgba(13,18,21,0.92); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 14px 18px;
  backdrop-filter: blur(6px);
}
.float-card .fc-l { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; }
.float-card .fc-v { font-size: 22px; font-weight: 800; color: var(--green); letter-spacing: -0.6px; margin-top: 3px; }

/* ---- Cierre ------------------------------------------------------------ */
.closing { align-items: center; justify-content: center; text-align: center; }
.closing h1 { font-size: 120px; letter-spacing: -4px; }

/* ---- Barra de control (solo pantalla) --------------------------------- */
#controls {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; z-index: 60;
  background: rgba(13,18,21,0.9); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 10px;
  backdrop-filter: blur(14px); box-shadow: var(--shadow-card);
  transition: opacity .35s ease;
}
#controls.idle { opacity: .14; }
#controls button {
  background: transparent; border: none; color: var(--text); cursor: pointer;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  width: 34px; height: 34px; border-radius: 50%;
}
#controls button:hover { background: rgba(255,255,255,0.07); }
#counter {
  font-size: 13px; font-weight: 700; color: var(--text-dim);
  min-width: 52px; text-align: center; font-variant-numeric: tabular-nums;
}
.dots { display: flex; gap: 6px; padding: 0 8px; }
.dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--border);
  cursor: pointer; transition: all .2s;
}
.dots i.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
#pdf-btn {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: var(--green); color: var(--bg); border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; padding: 9px 18px; margin-left: 4px;
  white-space: nowrap;
}
#pdf-btn.loading { opacity: .6; pointer-events: none; }

/* ---- Modo PRINT / export PDF ------------------------------------------ */
@page { size: 1440px 810px; margin: 0; }

body.print {
  overflow: visible; display: block; height: auto;
}
body.print #controls { display: none; }
body.print #stage {
  width: 1440px; height: auto; transform: none; margin: 0;
}
body.print .slide {
  position: relative; inset: auto; opacity: 1; pointer-events: auto;
  page-break-after: always; break-after: page; transition: none;
}
body.print .slide:last-child { page-break-after: auto; break-after: auto; }

@media print {
  #controls { display: none !important; }
}
