/* ============================================
   WONDERLAB × CELEBRATION — estilos propios
   Cotizador · Packs · Partnership · Config oculto
   Hereda tokens de styles.css (:root --f-*)
   ============================================ */

/* ──────────────────────────────────────────
   COTIZADOR (vive dentro de .form-window / .fm-body)
   ────────────────────────────────────────── */
.cotz { display: flex; flex-direction: column; gap: 12px; }

.cotz-group {
  display: flex; flex-direction: column; gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(157,108,255,.16);
}

.cotz-field { display: flex; flex-direction: column; gap: 4px; }
.cotz-field > .cotz-label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--f-ink-soft);
}

/* input numérico con stepper */
.cotz-num {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.cotz-num:focus-within { border-color: var(--f-fucsia); background: rgba(31,230,196,.06); }
.cotz-num input {
  flex: 1; min-width: 0;
  font-family: var(--f-sans);
  font-size: 15px; font-weight: 600;
  color: var(--f-ink);
  background: transparent; border: none; outline: none;
  padding: 9px 11px;
  -moz-appearance: textfield;
}
.cotz-num input::-webkit-outer-spin-button,
.cotz-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cotz-step {
  width: 34px; border: none; cursor: pointer;
  background: rgba(0,0,0,.25);
  color: var(--f-ink-dim);
  font-size: 16px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.cotz-step:hover { color: var(--f-fucsia); background: rgba(31,230,196,.1); }
.cotz-step--minus { border-right: 1px solid rgba(255,255,255,.08); }
.cotz-step--plus  { border-left:  1px solid rgba(255,255,255,.08); }

/* toggle Sí/No (segmented) */
.cotz-toggle {
  display: inline-flex;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.cotz-toggle button {
  flex: 1;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--f-ink-soft);
  background: transparent; border: none; cursor: pointer;
  padding: 7px 10px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.cotz-toggle button.is-on {
  color: #07120f;
  background: var(--f-grad);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(31,230,196,.3);
}

/* fila de servicio (toggle + nombre clickeable que mueve el timeline) */
.cotz-svc { display: flex; flex-direction: column; gap: 6px; }
.cotz-svc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cotz-svc-name {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-sans);
  font-size: 12.5px; font-weight: 600;
  color: var(--f-ink);
  background: none; border: none; cursor: pointer;
  padding: 0; text-align: left;
}
.cotz-svc-name .dotc { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cotz-svc-name .seec {
  font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--f-violet);
  opacity: 0; transition: opacity .2s;
}
.cotz-svc-name:hover .seec { opacity: 1; }
.cotz-svc-name:hover { color: var(--f-cyan); }
.dot-base { background: var(--f-violet); box-shadow: 0 0 8px var(--f-violet); }
.dot-ia   { background: var(--f-teal);   box-shadow: 0 0 8px var(--f-teal); }
.dot-play { background: var(--f-cyan);   box-shadow: 0 0 8px var(--f-cyan); }

/* desglose de resultados */
.cotz-out { display: flex; flex-direction: column; gap: 7px; }
.cotz-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: var(--f-sans); font-size: 12.5px;
  color: var(--f-ink-dim);
}
.cotz-row .lbl { letter-spacing: 0; }
.cotz-row .val { font-family: var(--f-mono); font-weight: 500; color: var(--f-ink); white-space: nowrap; }
.cotz-row--muted { font-size: 11px; color: var(--f-ink-soft); }
.cotz-row--muted .val { color: var(--f-ink-soft); }
.cotz-row--disc .val { color: var(--f-teal); }
.cotz-row.is-off { opacity: .38; }

.cotz-sep { height: 1px; background: rgba(157,108,255,.16); margin: 2px 0; }

/* total grande */
.cotz-total {
  margin-top: 2px;
  padding: 13px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31,230,196,.12), rgba(157,108,255,.12));
  border: 1px solid rgba(31,230,196,.3);
  box-shadow: 0 0 28px rgba(31,230,196,.12), inset 0 0 0 1px rgba(255,255,255,.04);
}
.cotz-total .ct-lbl {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--f-ink-soft); display: block; margin-bottom: 2px;
}
.cotz-total .ct-val {
  font-family: var(--f-display); font-weight: 800;
  font-size: 30px; line-height: 1;
  background: var(--f-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
}
.cotz-total .ct-sub {
  margin-top: 5px; font-family: var(--f-mono); font-size: 10.5px;
  color: var(--f-ink-dim); display: flex; justify-content: space-between; align-items: baseline;
}
.cotz-total .ct-sub b { color: var(--f-cyan); font-weight: 600; }

.cotz-note {
  font-family: var(--f-sans); font-size: 10px; line-height: 1.4;
  color: var(--f-ink-soft); text-align: center;
}

/* gear oculto para abrir config */
.cotz-gear {
  position: absolute; bottom: 8px; right: 10px; z-index: 5;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--f-ink); opacity: .08;
  transition: opacity .2s, transform .3s;
}
.cotz-gear:hover { opacity: .9; transform: rotate(45deg); }
body.form-collapsed .cotz-gear { display: none; }

/* ── Panel de CONFIG (oculto, datos no visibles para el cliente) ── */
.cfg-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.cfg-modal.is-open { display: block; }
.cfg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.cfg-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(560px, 92vw); max-height: 88vh; overflow-y: auto;
  background: rgba(13,6,30,.97);
  border: 1px solid rgba(157,108,255,.4);
  border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.cfg-panel h3 { font-family: var(--f-display); font-size: 18px; margin-bottom: 2px; }
.cfg-panel .cfg-sub { font-family: var(--f-mono); font-size: 10.5px; color: var(--f-ink-soft); margin-bottom: 16px; letter-spacing: .04em; }
.cfg-sec { margin-bottom: 16px; }
.cfg-sec > h4 {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--f-teal); margin-bottom: 8px;
}
.cfg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cfg-cell { display: flex; flex-direction: column; gap: 3px; }
.cfg-cell label { font-family: var(--f-mono); font-size: 9px; letter-spacing: .04em; color: var(--f-ink-soft); text-transform: uppercase; }
.cfg-cell input {
  font-family: var(--f-sans); font-size: 13px; color: #fdf6c8;
  background: rgba(255,242,178,.06); border: 1px solid rgba(255,242,178,.25);
  border-radius: 7px; padding: 7px 9px; outline: none; width: 100%;
}
.cfg-cell input:focus { border-color: var(--f-gold, #F4B740); background: rgba(255,242,178,.1); }
.cfg-actions { display: flex; gap: 8px; justify-content: space-between; margin-top: 18px; align-items: center; }
.cfg-actions .cfg-reset {
  font-family: var(--f-mono); font-size: 10.5px; color: var(--f-ink-soft);
  background: none; border: none; cursor: pointer; text-decoration: underline; padding: 6px;
}
.cfg-actions .cfg-reset:hover { color: var(--f-pink-soft); }
.cfg-actions-right { display: flex; gap: 8px; }
.cfg-btn {
  font-family: var(--f-sans); font-size: 12.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 9px; cursor: pointer; border: none;
}
.cfg-btn--ghost { background: rgba(255,255,255,.06); color: var(--f-ink-dim); border: 1px solid rgba(255,255,255,.12); }
.cfg-btn--apply { background: var(--f-grad); color: #07120f; box-shadow: 0 8px 22px rgba(31,230,196,.3); }

/* ──────────────────────────────────────────
   PACKS — sección que aparece al click (los 3 paquetes)
   ────────────────────────────────────────── */
.packs { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 72px); position: relative; }
.packs-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); }
.packs-head .eyebrow { display: inline-block; margin-bottom: 12px; }
.packs-head h2 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.05; margin-bottom: 12px; }
.packs-head p { color: var(--f-ink-dim); font-size: clamp(14px, 1.7vw, 17px); }

.packs-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1.35fr 1fr 1fr;
  align-items: stretch;
}
.pack {
  position: relative;
  display: flex; align-items: stretch;
  background: #050507;
  border: 1px solid var(--pk, rgba(157,108,255,.5));
  border-radius: 14px;
  overflow: hidden;
  min-height: 280px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 18px 50px rgba(0,0,0,.5);
}
.pack--wide { grid-column: 1 / 2; }
.pack-rail {
  flex: none; width: 56px;
  background: var(--pk);
  display: flex; align-items: center; justify-content: center;
}
.pack-rail span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .02em; color: #07060b; text-transform: uppercase;
  white-space: nowrap;
}
.pack-body { flex: 1; padding: 22px 22px; display: flex; flex-direction: column; justify-content: center; }
.pack-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pack--wide .pack-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.pack-list li {
  font-family: var(--f-sans); font-size: 12px; letter-spacing: .01em;
  color: #fff; text-transform: uppercase; line-height: 1.2;
  display: flex; gap: 8px;
}
.pack-list li::before { content: var(--mk, '+'); color: var(--pk); font-weight: 800; flex: none; }
.packs-foot {
  margin-top: 26px; text-align: center;
  font-family: var(--f-mono); font-size: 12px; color: var(--f-ink-soft); letter-spacing: .03em;
}
.packs-foot b { color: var(--f-cyan); }

/* ──────────────────────────────────────────
   PARTNERSHIP — propuesta de valor del acuerdo
   ────────────────────────────────────────── */
.partner { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.partner-head { text-align: center; max-width: 820px; margin: 0 auto clamp(34px, 5vw, 56px); }
.partner-head .eyebrow { display: inline-block; margin-bottom: 12px; }
.partner-head h2 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.04; margin-bottom: 14px; }
.partner-head p { color: var(--f-ink-dim); font-size: clamp(14px, 1.8vw, 18px); max-width: 680px; margin: 0 auto; }

/* aporte de cada parte */
.partner-split {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch;
  max-width: 980px; margin: 0 auto clamp(30px, 4vw, 50px);
}
.psplit-card {
  background: rgba(13,6,30,.55);
  border: 1px solid rgba(157,108,255,.22);
  border-radius: 16px; padding: 24px 24px 20px;
}
.psplit-card h3 {
  font-family: var(--f-display); font-size: 20px; margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 9px;
}
.psplit-card h3::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.psplit-card.is-wl h3::before  { background: var(--f-teal);   box-shadow: 0 0 10px var(--f-teal); }
.psplit-card.is-cel h3::before { background: var(--f-violet); box-shadow: 0 0 10px var(--f-violet); }
.psplit-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.psplit-card li {
  font-family: var(--f-sans); font-size: 14px; color: var(--f-ink-dim);
  display: flex; gap: 9px; line-height: 1.3;
}
.psplit-card li::before { content: '✓'; color: var(--f-teal); font-weight: 700; flex: none; }
.psplit-card.is-cel li::before { color: var(--f-violet); }
.psplit-x {
  align-self: center;
  font-family: var(--f-display); font-weight: 800; font-size: 26px;
  color: var(--f-ink-ghost);
}

/* modelo comercial — 4 cards */
.partner-model {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 1040px; margin: 0 auto clamp(30px, 4vw, 50px);
}
.pmodel {
  background: rgba(13,6,30,.5); border: 1px solid rgba(157,108,255,.2);
  border-radius: 14px; padding: 20px 18px;
  position: relative; overflow: hidden;
}
.pmodel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--f-grad);
}
.pmodel .pm-ico {
  width: 36px; height: 36px; border-radius: 9px; margin-bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(31,230,196,.12); color: var(--f-teal);
}
.pmodel h4 { font-family: var(--f-display); font-size: 15px; margin-bottom: 6px; line-height: 1.15; }
.pmodel p { font-family: var(--f-sans); font-size: 12.5px; color: var(--f-ink-soft); line-height: 1.4; }

/* escalera de descuento */
.partner-ladder { max-width: 1040px; margin: 0 auto; }
.pladder-title {
  text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--f-ink-soft); margin-bottom: 16px;
}
.pladder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pladder-step {
  text-align: center; padding: 18px 12px; border-radius: 12px;
  background: rgba(13,6,30,.5); border: 1px solid rgba(157,108,255,.2);
}
.pladder-step .ev { font-family: var(--f-mono); font-size: 12px; color: var(--f-ink-dim); }
.pladder-step .ev small { display: block; font-size: 9px; color: var(--f-ink-soft); margin-top: 2px; letter-spacing: .06em; }
.pladder-step .pc {
  margin-top: 10px; font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 3vw, 34px);
  background: var(--f-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pladder-step:nth-child(4) { border-color: rgba(31,230,196,.45); box-shadow: 0 0 26px rgba(31,230,196,.14); }
.pladder-bonus {
  margin-top: 16px; text-align: center;
  font-family: var(--f-sans); font-size: 13.5px; color: var(--f-ink-dim);
  padding: 14px; border-radius: 12px; border: 1px dashed rgba(157,108,255,.35);
  background: rgba(157,108,255,.05);
}
.pladder-bonus b { color: var(--f-violet); }

/* próximos pasos */
.partner-steps { max-width: 820px; margin: clamp(34px,5vw,56px) auto 0; }
.psteps-list { display: flex; flex-direction: column; gap: 12px; }
.pstep {
  display: flex; gap: 16px; align-items: center;
  background: rgba(13,6,30,.5); border: 1px solid rgba(157,108,255,.2);
  border-radius: 12px; padding: 16px 18px;
}
.pstep .pn {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-size: 15px; color: #07120f;
  background: var(--f-grad);
}
.pstep p { font-family: var(--f-sans); font-size: 14.5px; color: var(--f-ink); }

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */
@media (max-width: 980px) {
  .packs-grid { grid-template-columns: 1fr; }
  .pack--wide { grid-column: auto; }
  .pack--wide .pack-list { grid-template-columns: 1fr 1fr; }
  .partner-split { grid-template-columns: 1fr; }
  .psplit-x { transform: rotate(90deg); }
  .partner-model { grid-template-columns: 1fr 1fr; }
  .pladder-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pack--wide .pack-list { grid-template-columns: 1fr; }
  .partner-model { grid-template-columns: 1fr; }
  .pack-rail { width: 44px; }
}

/* ──────────────────────────────────────────
   TOPBAR branding (Wonderlab × Celebration)
   ────────────────────────────────────────── */
.topbar-logo { gap: 9px; text-decoration: none; }
.topbar-x { color: var(--f-ink-ghost); font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.topbar-cel {
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  color: var(--f-ink); letter-spacing: -.01em;
}
.hero-eyebrow { display: inline-block; margin-bottom: 14px; }

/* Lockup "FiestÓN.IA en Celebration" debajo del wordmark del hero */
.hero-en-cel {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 14px;
}
.hec-en {
  font-family: var(--f-mono); font-size: clamp(13px, 1.6vw, 17px);
  color: var(--f-ink-soft); letter-spacing: .04em; font-style: italic;
}
.hec-logo {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(24px, 3.6vw, 42px);
  color: #fff; letter-spacing: -.01em; line-height: 1;
  text-shadow: 0 0 22px rgba(157,108,255,.4);
}
.hec-logo-img {
  display: block; height: clamp(30px, 5vw, 58px); width: auto;
  filter: drop-shadow(0 0 18px rgba(157,108,255,.4));
}

/* Divisor entre secciones principales (menú) — bien notable */
.sec-divider {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  max-width: var(--f-maxw); margin: clamp(28px, 6vw, 64px) auto;
  padding: 0 var(--f-gutter);
}
.sec-divider .sd-line {
  height: 3px; flex: 1; max-width: 460px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(157,108,255,.65) 35%, rgba(31,230,196,.8) 70%, transparent);
  box-shadow: 0 0 16px rgba(157,108,255,.35);
}
.sec-divider .sd-line:last-child {
  background: linear-gradient(90deg, transparent, rgba(31,230,196,.8) 30%, rgba(52,238,255,.65) 65%, transparent);
}
.sec-divider .sd-gem {
  width: 16px; height: 16px; flex: none; transform: rotate(45deg);
  background: var(--f-grad);
  box-shadow:
    0 0 0 6px rgba(157,108,255,.12),
    0 0 22px rgba(31,230,196,.85),
    0 0 44px rgba(157,108,255,.5);
  animation: sdPulse 2.6s var(--f-ease) infinite;
}
@keyframes sdPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(157,108,255,.12), 0 0 22px rgba(31,230,196,.85), 0 0 44px rgba(157,108,255,.5); }
  50%      { box-shadow: 0 0 0 10px rgba(157,108,255,.05), 0 0 30px rgba(31,230,196,1), 0 0 60px rgba(157,108,255,.7); }
}

/* LATAM arriba, "+ EEUU" abajo (dos líneas), sin cortar palabras */
.bignum .bn-num.bn-stack { white-space: nowrap; word-break: keep-all; font-size: clamp(22px, 3.2vw, 42px); line-height: 1.04; }
.bignum .bn-num.bn-stack .bn-plus { display: block; }
@media (max-width: 760px) {
  .bignum .bn-num.bn-stack { font-size: clamp(20px, 5.4vw, 34px); }
}

/* flash al saltar desde el cotizador a un pack */
.pack.tl-flash { box-shadow: 0 0 0 2px var(--pk), 0 0 44px rgba(52,238,255,.4); transition: box-shadow .4s; }

/* offset para que las anclas (#packs, #partnership, tl-ia…) no queden bajo el topbar */
html { scroll-padding-top: 88px; }

/* flash al saltar desde el cotizador a un punto de la timeline */
.tl-flash { animation: tlFlash 1.4s var(--f-ease); }
@keyframes tlFlash {
  0%   { filter: none; }
  18%  { filter: drop-shadow(0 0 0 rgba(52,238,255,0)); }
  35%  { filter: drop-shadow(0 0 26px rgba(52,238,255,.55)); }
  100% { filter: none; }
}
.tl-flash .tl-media .ph,
.tl-flash .tl-media .ph-transparent { box-shadow: 0 0 0 2px rgba(52,238,255,.6), 0 0 40px rgba(52,238,255,.35); transition: box-shadow .4s; }
