/* BUILDEX — sitio de ventas (versión corta). Colores = identidad de la app. */
:root {
  --brand: #15233b;
  --brand-dark: #0b1424;
  --tint: #f3f5f9;
  --line: #e6eaf0;
  --accent: #e4572e;
  --accent-dark: #c2441f;
  --accent-soft: #fdeee8;
  --ink: #0f172a;
  --muted: #5b6575;
  --ok: #1f9d6b;
  --display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

section { padding: 96px 0; }
section h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; color: var(--brand-dark); text-align: center; }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 12px; border: 2px solid transparent; font: 700 16px/1 Inter, sans-serif; cursor: pointer; transition: .15s; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
a:focus-visible { outline: 3px solid #ff8a66; outline-offset: 2px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 18px var(--display); letter-spacing: .05em; color: var(--brand-dark); }
.logo.light { color: #fff; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a:hover, .nav-login { color: var(--brand-dark); }
.nav-login { font-weight: 700; }
@media (max-width: 720px) {
  .nav-links a:not(.nav-login) { display: none; }
  .nav-links { gap: 0; }
  .nav-in { gap: 16px; }
}

/* 1. hero */
.hero { background: var(--brand-dark); color: #fff; padding: 104px 0; }
.hero-in { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 64px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff8a66; margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 800; }
.hero h1 .acc { color: var(--accent); }
.lead { margin-top: 22px; font-size: 20px; color: #c7cfdb; max-width: 460px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.mock { background: #fff; color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.mock-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mock-top small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mock-top b { font: 700 18px var(--display); }
.pill { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: #e3f6ee; color: var(--ok); }
.mock-big { display: flex; align-items: center; gap: 26px; margin-top: 24px; }
.ring { --p: 50; flex: none; width: 128px; height: 128px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--tint) 0); }
.ring b { font: 800 30px var(--display); color: var(--brand-dark); }
.ring small { font-size: 12px; color: var(--muted); }
.mock-big ul { flex: 1; }
.mock-big li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mock-big li:last-child { border: 0; }
.mock-big li span { color: var(--muted); }
.mock-big li b { font-family: var(--display); }

@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero-in { grid-template-columns: minmax(0,1fr); gap: 44px; }
  .lead { font-size: 18px; }
}
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .mock { padding: 20px; }
  .mock-big { gap: 18px; }
  .ring { width: 104px; height: 104px; }
  .ring b { font-size: 24px; }
}

/* 2. reemplaza */
.replace { background: var(--tint); }
.replace-row { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 44px; }
.old { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; max-width: 560px; }
.old li { padding: 10px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(214,69,69,.6); text-decoration-thickness: 2px; }
.old em { font-style: normal; font-weight: 400; }
.arrow { font-size: 34px; color: var(--accent); font-weight: 700; }
.new { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 18px; background: var(--brand-dark); box-shadow: 0 16px 40px rgba(11,20,36,.25); }
.new b { font: 800 22px var(--display); letter-spacing: .05em; color: #fff; }
@media (max-width: 760px) {
  .replace-row { flex-direction: column; gap: 18px; margin-top: 32px; }
  .old { justify-content: center; }
  .old li { font-size: 14px; padding: 8px 14px; }
  .arrow { transform: rotate(90deg); }
}

/* 3. cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 48px; }
.step { padding: 30px 26px; border-radius: 20px; border: 1px solid var(--line); }
.step .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-dark); color: #fff; font: 800 20px var(--display); }
.step h3 { margin-top: 20px; font-size: 26px; font-weight: 800; color: var(--brand-dark); }
.step > p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li { font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 32px; } .step { padding: 24px 22px; } }

/* 4. roles */
.roles { background: var(--tint); }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 44px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.role small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.role b { display: block; margin-top: 8px; font: 800 22px/1.2 var(--display); color: var(--brand-dark); }
.role.hl { background: var(--brand-dark); border-color: var(--brand-dark); }
.role.hl small { color: #ff8a66; }
.role.hl b { color: #fff; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 32px; font-size: 15px; font-weight: 600; color: var(--brand); }
.facts span::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 800; }
@media (max-width: 760px) { .role-grid { grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 32px; } .role { padding: 20px 22px; } .role b { font-size: 20px; } .facts { flex-direction: column; align-items: center; } }

/* 5. planes */
.sub { text-align: center; color: var(--muted); font-size: 17px; margin-top: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 44px; }
.plan { position: relative; text-align: center; border: 1px solid var(--line); border-radius: 18px; padding: 30px 22px; }
.plan h3 { font-size: 22px; color: var(--brand-dark); }
.plan p { margin-top: 6px; color: var(--muted); }
.price { display: inline-block; margin-top: 18px; font: 700 15px var(--display); color: var(--brand); padding: 8px 16px; border-radius: 10px; background: var(--tint); }
.plan.hl { border: 2px solid var(--accent); box-shadow: 0 18px 44px rgba(228,87,46,.14); }
.tag-top { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: var(--accent); color: #fff; white-space: nowrap; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: minmax(0,1fr); gap: 18px; margin-top: 32px; } .plan { padding: 24px 20px; } }

/* 6. acción */
.cta { background: var(--brand-dark); }
.cta h2 { color: #fff; }
.cta-in { text-align: center; }
.cta .hero-cta { justify-content: center; }

/* pie */
.foot { background: #070d18; color: #7b8594; padding: 28px 0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* aparición suave */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

/* qué hace */
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 44px; }
.feat-grid li { display: grid; grid-template-columns: 40px minmax(0,1fr); column-gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.fi { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; }
.fi svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat-grid b { font: 700 15px/1.25 var(--display); color: var(--brand-dark); align-self: end; }
.feat-grid small { font-size: 13px; color: var(--muted); line-height: 1.35; align-self: start; margin-top: 2px; }
@media (max-width: 960px) { .feat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) {
  .feat-grid { gap: 8px; margin-top: 28px; }
  .feat-grid li { grid-template-columns: minmax(0,1fr); align-content: start; padding: 14px; row-gap: 8px; }
  .feat-grid b, .feat-grid small { align-self: auto; }
  .fi { grid-row: auto; width: 34px; height: 34px; }
  .fi svg { width: 18px; height: 18px; }
  .feat-grid b { font-size: 14px; }
  .feat-grid small { font-size: 12px; }
}

/* por qué */
.why { background: var(--brand-dark); }
.why h2 { color: #fff; }
.why-grid { list-style: none; counter-reset: d; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.why-grid li { counter-increment: d; padding: 24px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.why-grid li::before { content: "0" counter(d); display: block; font: 800 13px var(--display); letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }
.why-grid b { display: block; font: 800 20px/1.2 var(--display); color: #fff; }
.why-grid span { display: block; margin-top: 8px; font-size: 15px; color: #b6c0ce; }
@media (max-width: 860px) { .why-grid { grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 32px; } .why-grid li { padding: 18px 20px; } .why-grid b { font-size: 18px; } }

/* =========================================================
   ANIMACIONES (sencillas, colores de la marca)
   ========================================================= */
/* 1. Logo: el último ladrillo "se coloca" al cargar */
.bricks .b { --base: .25s; animation: colocar .45s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--base) + var(--i) * .11s); }
@keyframes colocar { from { transform: translateY(-22px); opacity: 0; } to { transform: none; opacity: 1; } }
/* en "cinco programas", el muro se arma cuando aparece el bloque BUILDEX */
.replace-row .bricks .b { --base: 1.15s; animation-play-state: paused; }
.replace-row.in .bricks .b { animation-play-state: running; }

/* 2. Hero: el título sube línea por línea; luego texto, botones y tablero */
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; animation: subir .9s cubic-bezier(.16,1,.3,1) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .acc { color: var(--accent); }
@keyframes subir { from { transform: translateY(105%); } to { transform: none; } }
.hero .eyebrow, .lead, .hero-copy .hero-cta { animation: aparecer .8s ease both; }
.hero .eyebrow { animation-delay: .05s; } .lead { animation-delay: .35s; } .hero-copy .hero-cta { animation-delay: .5s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mock { animation: entrar 1s cubic-bezier(.16,1,.3,1) .45s both, flotar 6s ease-in-out 1.6s infinite; }
@keyframes entrar { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes flotar { 50% { transform: translateY(-8px); } }

/* 3. Cinco programas: se tachan uno por uno y BUILDEX entra al final */
.old li { text-decoration: none; background-image: linear-gradient(rgba(214,69,69,.75), rgba(214,69,69,.75)); background-repeat: no-repeat; background-position: 0 52%; background-size: 0% 2px; transition: background-size .45s ease, opacity .45s ease, color .45s ease; }
.replace-row.in .old li { background-size: 100% 2px; opacity: .6; }
.replace-row.in .old li:nth-child(2) { transition-delay: .15s; }
.replace-row.in .old li:nth-child(3) { transition-delay: .3s; }
.replace-row.in .old li:nth-child(4) { transition-delay: .45s; }
.replace-row.in .old li:nth-child(5) { transition-delay: .6s; }
.replace-row .new, .replace-row .arrow { opacity: 0; transform: scale(.8); transition: opacity .5s ease, transform .6s cubic-bezier(.34,1.56,.64,1); }
.replace-row.in .arrow { opacity: 1; transform: none; transition-delay: .8s; }
.replace-row.in .new { opacity: 1; transform: none; transition-delay: 1s; }
@media (max-width: 760px) { .replace-row.in .arrow { transform: rotate(90deg); } .replace-row .arrow { transform: rotate(90deg) scale(.8); } }

/* 4. Tarjetas: entran en cascada (el retraso lo pone main.js) */
.reveal { transition-delay: var(--d, 0s); }

/* 5. Botón de demo: brillo cada pocos segundos */
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: brillo 3.5s ease-in-out 1s infinite; }
@keyframes brillo { 0%, 60% { left: -60%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  .bricks .b, .hero h1 .ln > span, .hero .eyebrow, .lead, .hero-copy .hero-cta, .mock, .shine::after { animation: none !important; }
  .old li, .replace-row .new, .replace-row .arrow { transition: none !important; }
  .replace-row .new, .replace-row .arrow { opacity: 1; transform: none; }
}

/* planes (2) */
.plans .plan-grid { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 880px; margin-left: auto; margin-right: auto; align-items: start; }
.plans .plan { text-align: left; display: flex; flex-direction: column; padding: 32px 30px; }
.plan h3 { font-size: 28px; }
.plan .plus { color: var(--accent); }
.plan .for { margin-top: 6px; color: var(--muted); min-height: 48px; }
.plans .price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 22px; padding: 0; background: none; }
.plans .price b { font: 800 46px var(--display); letter-spacing: -.03em; color: var(--brand-dark); }
.plans .plan.hl .price b { color: var(--accent); }
.plans .price span { font-size: 15px; color: var(--muted); }
.plan .todo { font-weight: 700; color: var(--brand-dark); margin-bottom: 10px; }
.incl { display: grid; gap: 10px; margin-bottom: 28px; }
.incl li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; }
.incl li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4572e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.plans .plan .btn { margin-top: auto; width: 100%; }
.btn-line { border-color: var(--brand-dark); color: var(--brand-dark); }
.btn-line:hover { background: var(--brand-dark); color: #fff; }
.tag-top { left: 30px; transform: none; }
@media (max-width: 760px) {
  .plans .plan-grid { grid-template-columns: minmax(0,1fr); }
  .plans .plan { padding: 26px 22px; }
  .plan .for { min-height: 0; }
  .plans .price b { font-size: 40px; }
}

/* =========================================================
   LO QUE SOLO HACE BUILDEX (diferenciadores con mini pantallas)
   ========================================================= */
.center-e { text-align: center; color: var(--accent); }
.spots h2 .acc, .spot h3 .acc { color: var(--accent); }
.spots { padding-bottom: 40px; }
.spot { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.spot:last-child { border-bottom: 0; }
.spot:nth-child(odd of .spot) .spot-copy { order: 2; }
.spot-tag { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spot-tag > span:first-child { font: 800 13px var(--display); color: #fff; background: var(--accent); border-radius: 7px; padding: 4px 8px; letter-spacing: .04em; }
.plus-chip { font-size: 11px; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; border: 1.5px solid var(--accent); color: var(--accent); }
.spot h3 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; color: var(--brand-dark); }
.spot-copy > p:last-child { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 460px; }
/* Last Planner: banda oscura a todo lo ancho */
.spot.dark { position: relative; border: 0; color: #fff; box-shadow: 0 0 0 100vmax var(--brand-dark); clip-path: inset(0 -100vmax); background: var(--brand-dark); }
.spot.dark h3 { color: #fff; }
.spot.dark .spot-copy > p:last-child { color: #b6c0ce; }
.spot.dark .spot-tag { color: #ff8a66; }
@media (max-width: 860px) {
  .spot { grid-template-columns: minmax(0,1fr); gap: 28px; padding: 48px 0; }
  .spot:nth-child(odd of .spot) .spot-copy { order: 0; }
  .spot-copy > p:last-child { font-size: 16px; }
}

/* mini pantallas */
.mk { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px rgba(11,20,36,.10); max-width: 460px; margin: 0 auto; width: 100%; color: var(--ink); }
.mk-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mk-h b { font: 700 16px var(--display); }
.mk-h small, .mk-note { font-size: 13px; color: var(--muted); }
.mk-note { display: block; margin-top: 12px; }
.mk-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--brand-dark); color: #fff; }
.mk-total b { font: 800 26px var(--display); color: #fff; }
/* animación base: los elementos internos entran cuando la tarjeta aparece */
.spot .mk > *, .spot .gantt .g, .spot .wall .pi { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .5s cubic-bezier(.16,1,.3,1); }
.spot.in .mk > *, .spot.in .gantt .g, .spot.in .wall .pi { opacity: 1; transform: none; }
.spot.in .mk > *:nth-child(2) { transition-delay: .15s; } .spot.in .mk > *:nth-child(3) { transition-delay: .3s; }
.spot.in .mk > *:nth-child(4) { transition-delay: .45s; } .spot.in .mk > *:nth-child(5) { transition-delay: .6s; }
.spot.in .mk > *:nth-child(6) { transition-delay: .75s; }

/* 01 proveedores */
.prov { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px; margin-top: 6px; border: 1px solid var(--line); font-size: 15px; }
.prov b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.prov em { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: #e3f6ee; color: var(--ok); }
.spot.in .prov.best { border-color: var(--ok); background: #f3fcf8; transition-delay: .3s, .3s; }
/* 02 cotización */
.mk-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 2px solid var(--accent); border-radius: 10px; margin-bottom: 8px; font-size: 15px; }
.mk-search i { width: 14px; height: 14px; border: 2.5px solid var(--muted); border-radius: 50%; }
.caret { width: 2px; height: 20px; background: var(--accent); animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.qrow { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.qrow em { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
.qrow small { color: var(--muted); }
.qrow b { font-variant-numeric: tabular-nums; }
/* 03 gantt */
.ok-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #e3f6ee; color: var(--ok); }
.gantt { display: grid; gap: 10px; }
.g { display: grid; grid-template-columns: 100px minmax(0,1fr); align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.g i { display: block; height: 18px; position: relative; background: transparent; }
.g i::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 5px; background: #2e5b93; transform-origin: left; transform: scaleX(0); transition: transform .7s cubic-bezier(.16,1,.3,1); }
.g i.crit::after { background: var(--accent); }
.spot.in .g i::after { transform: scaleX(1); }
.spot.in .g:nth-child(1), .spot.in .g:nth-child(1) i::after { transition-delay: .3s; }
.spot.in .g:nth-child(2), .spot.in .g:nth-child(2) i::after { transition-delay: .45s; }
.spot.in .g:nth-child(3), .spot.in .g:nth-child(3) i::after { transition-delay: .6s; }
.spot.in .g:nth-child(4), .spot.in .g:nth-child(4) i::after { transition-delay: .75s; }
.spot.in .g:nth-child(5), .spot.in .g:nth-child(5) i::after { transition-delay: .9s; }
/* 04 residente */
.phone-mk { max-width: 300px; border-radius: 32px; border: 8px solid var(--brand-dark); background: var(--tint); padding: 18px 14px; }
.ph-t { display: block; text-align: center; font-size: 12px; font-weight: 600; color: var(--brand); margin-bottom: 10px; }
.bigbtn { background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; border-left: 5px solid var(--accent); box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.bigbtn b { display: block; font: 800 20px var(--display); color: var(--brand-dark); }
.bigbtn span { font-size: 13px; color: var(--ok); font-weight: 600; }
.offline { display: block; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
/* 05 planos */
.plano svg { width: 100%; height: auto; display: block; }
.area { opacity: 0; transition: opacity .6s ease; }
.area.done { fill: rgba(31,157,107,.22); } .area.today { fill: rgba(228,87,46,.28); }
.spot.in .area.done { opacity: 1; transition-delay: .3s; } .spot.in .area.today { opacity: 1; transition-delay: .7s; animation: latido 2s ease-in-out 1.4s infinite; }
@keyframes latido { 50% { fill: rgba(228,87,46,.45); } }
.legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legend span { width: 14px; height: 14px; border-radius: 4px; margin-left: 6px; }
.ld { background: rgba(31,157,107,.4); } .lt { background: rgba(228,87,46,.5); }
/* 06 last planner */
.lps { background: #13203a; border-color: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.wall { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.pi { display: block; font-style: normal; font-size: 13px; font-weight: 600; line-height: 1.25; color: #1a1a1a; padding: 12px 10px; min-height: 64px; border-radius: 4px; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.pi.a { background: #ffd666; } .pi.b { background: #8fd3ff; } .pi.c { background: #ff9f8a; } .pi.d { background: #b8f2a0; }
.spot.in .pi { transform: rotate(var(--r, -1.5deg)); }
.pi:nth-child(2) { --r: 1.5deg; } .pi:nth-child(3) { --r: -.5deg; } .pi:nth-child(4) { --r: 2deg; } .pi:nth-child(5) { --r: -2deg; } .pi:nth-child(6) { --r: 1deg; }
.spot.in .pi:nth-child(1) { transition-delay: .2s; } .spot.in .pi:nth-child(2) { transition-delay: .3s; } .spot.in .pi:nth-child(3) { transition-delay: .4s; }
.spot.in .pi:nth-child(4) { transition-delay: .5s; } .spot.in .pi:nth-child(5) { transition-delay: .6s; } .spot.in .pi:nth-child(6) { transition-delay: .7s; }
.ppc { display: flex; align-items: center; gap: 16px; margin-top: 18px; font-size: 14px; color: #b6c0ce; }
.ring2 { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #13203a 76%, transparent 77%), conic-gradient(var(--accent) 84%, rgba(255,255,255,.12) 0); }
.ring2 b { font: 800 20px var(--display); color: #fff; }
/* 07 raya */
.rl { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rl small { color: var(--muted); font-size: 13px; }
.rl b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.raya .mk-total { background: var(--accent); }
/* 08 sheets */
.gs { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: #e6f4ea; color: #188038; }
.cells { display: grid; grid-template-columns: 32px repeat(3, minmax(0,1fr)); border: 1px solid #dadce0; border-radius: 6px; overflow: hidden; }
.cells i { font-style: normal; font-size: 13px; padding: 9px 8px; border-right: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; white-space: nowrap; overflow: hidden; }
.cells i:nth-child(-n+4), .cells i:nth-child(4n+1) { background: #f1f3f4; color: #5f6368; text-align: center; font-size: 12px; }
.cells i:nth-child(6) ~ i:nth-child(4n+2) { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .spot .mk > *, .spot .gantt .g, .spot .wall .pi, .area { opacity: 1 !important; transform: none !important; transition: none !important; }
  .g i::after { transform: none !important; transition: none !important; }
  .caret, .area.today { animation: none !important; }
}

/* Planes: línea de más de 20 en oficina */
.plans .price s { font: 600 18px var(--display); color: var(--muted); }
.plans .price { flex-wrap: wrap; }
.plans .mas-20 { max-width: 880px; margin: 26px auto 0; text-align: center; color: var(--muted); }
.plans .mas-20 a { color: var(--accent); font-weight: 700; }

/* planes: contratar en línea o agendar demo */
.plans .plan .o-demo { display: block; margin-top: 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.plans .plan .o-demo:hover { color: var(--brand-dark); }
.capa-incl { max-width: 640px; margin: 28px auto 0; text-align: center; font-size: 15px; color: var(--muted); }
.capa-incl b { color: var(--brand-dark); }

/* agenda tu demo (sin comprar) */
.cta-sub { margin: 14px auto 0; max-width: 520px; color: #b6c0ce; font-size: 17px; }
.demo-form { max-width: 720px; margin: 32px auto 0; text-align: left; }
.demo-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-campos label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #dbe1ea; }
.demo-campos input, .demo-campos select { height: 48px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 0 14px; font: 400 16px Inter, sans-serif; color: #fff; background: rgba(255,255,255,.06); width: 100%; }
.demo-campos select option { color: var(--ink); }
.demo-campos input::placeholder { color: #7b8594; }
.demo-campos input:focus, .demo-campos select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,87,46,.25); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.demo-form .btn { display: flex; width: 100%; margin-top: 20px; }
.demo-error { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(214,69,69,.15); color: #ffb4b4; font-size: 14px; }
.demo-wa { margin-top: 14px; text-align: center; font-size: 14px; color: #b6c0ce; }
.demo-wa a { color: #ff8a66; font-weight: 600; }
.demo-ok { max-width: 520px; margin: 32px auto 0; padding: 24px; border-radius: 16px; background: rgba(46,229,157,.1); border: 1px solid rgba(46,229,157,.35); display: grid; gap: 6px; }
.demo-ok b { font: 800 22px var(--display); color: #fff; }
.demo-ok span { color: #b6c0ce; }
@media (max-width: 640px) { .demo-campos { grid-template-columns: minmax(0,1fr); } }
.demo-ok[hidden], .demo-form[hidden] { display: none; }

/* =========================================================
   EMPEZAR SOLO: botones a la app, "Así empiezas", preguntas, WhatsApp
   ========================================================= */
.plans .plan .con-google { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.plans .plan .btn-demo2 { margin-top: 14px; }
.plans .plan.hl .btn-demo2 { border-color: var(--brand-dark); color: var(--brand-dark); background: transparent; }

.asi { padding-bottom: 24px; }
.asi-pasos { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; counter-reset: none; }
.asi-pasos li { position: relative; display: grid; gap: 6px; padding: 26px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.ae-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 8px; }
.ae-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ae-n { position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-dark); color: #fff; display: grid; place-items: center; font: 800 15px var(--display); }
.asi-pasos b { font: 800 20px var(--display); color: var(--brand-dark); }
.asi-pasos li > span:last-child { font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .asi-pasos { grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 28px; } .asi-pasos li { padding: 20px; } }

.faq { background: var(--tint); }
.faq-in { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 17px; color: var(--brand-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

.wa-flota { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 99px; background: #25d366; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.wa-flota[hidden] { display: none; }
.wa-flota svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 520px) { .wa-flota { padding: 0 16px; } }

/* =========================================================
   PRECIOS: selector Mensual / Anual
   ========================================================= */
.periodo { display: flex; width: max-content; margin: 28px auto 0; padding: 5px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); }
.periodo button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: transparent; font: 700 15px var(--display); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.periodo button[aria-pressed="true"] { background: var(--brand-dark); color: #fff; }
.periodo button:focus-visible { outline: 3px solid #ff8a66; outline-offset: 2px; }
.ahorra { font: 700 12px Inter, sans-serif; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: #fff; }

.plans .precio { margin: 20px 0 22px; }
.plans .precio p { margin: 0; }
.plans .precio .p-m, .plans .precio .p-a:not(.p-eq):not(.p-ahorro) { display: flex; align-items: baseline; gap: 8px; }
.plans .precio b { font: 800 46px/1.05 var(--display); letter-spacing: -.03em; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.plans .plan.hl .precio b { color: var(--accent); }
.plans .precio span { font-size: 16px; color: var(--muted); }
.p-iva { margin-top: 4px !important; font-weight: 700; font-size: 14px; color: var(--brand); }
.p-eq { margin-top: 10px !important; font-size: 15px; color: var(--brand); }
.p-ahorro { margin-top: 4px !important; font-weight: 700; font-size: 15px; color: var(--ok); }

/* qué se ve en cada periodo */
#planes[data-periodo="mensual"] .p-a { display: none !important; }
#planes[data-periodo="anual"] .p-m { display: none !important; }
.plans .plan .btn.p-a { margin-top: auto; width: 100%; }

.letra-chica { list-style: none; padding: 0; margin: 28px auto 0; max-width: 720px; display: grid; gap: 6px; text-align: center; font-size: 14px; color: var(--muted); }
.letra-chica a { color: var(--accent-dark); font-weight: 600; }
.plans .mas-20 { display: none; }

@media (max-width: 760px) {
  .periodo { width: 100%; }
  .periodo button { flex: 1; justify-content: center; padding: 0 10px; }
  .plans .precio b { font-size: 40px; }
}

/* aviso en el formulario y pie con legales */
.demo-legal { margin-top: 12px; text-align: center; font-size: 13px; color: #b6c0ce; }
.demo-legal a, .foot-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a:hover { color: #fff; }

/* páginas legales */
.legal-main { padding: 48px 0 80px; }
.legal-wrap { max-width: 760px; }
.legal-volver { font-size: 14px; font-weight: 600; color: var(--muted); }
.legal-main h1 { margin-top: 12px; font-size: clamp(30px, 4vw, 42px); font-weight: 800; color: var(--brand-dark); }
.legal-main h2 { margin-top: 32px; font-size: 22px; text-align: left; }
.legal-main p, .legal-main li { margin-top: 12px; color: var(--ink); line-height: 1.65; }
.legal-pendiente { margin-top: 28px; padding: 20px 22px; border-radius: 14px; border: 2px dashed var(--accent); background: var(--accent-soft); }
.legal-pendiente b { color: var(--accent-dark); }
.legal .nav-in { justify-content: space-between; }

/* =========================================================
   MÁS BOTONES: filas "Agenda tu demo / Contratar" y barra fija en celular
   ========================================================= */
.cta-fila { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.cta-fila .btn { min-width: 200px; }
.cta-media { padding: 8px 0 48px; margin-top: 0; border-bottom: 1px solid var(--line); }
.btn-line { border-color: var(--brand-dark); color: var(--brand-dark); background: transparent; }
.btn-line:hover { background: var(--brand-dark); color: #fff; }
.demo-campos .campo-ancho { grid-column: 1 / -1; }

.barra-cta { display: none; }
@media (max-width: 760px) {
  .cta-fila .btn { flex: 1 1 100%; min-width: 0; }
  .barra-cta { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 6px; border-radius: 14px; background: rgba(255,255,255,.96); border: 1px solid var(--line); backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(11,20,36,.12); transition: transform .3s ease, opacity .3s ease; }
  .barra-cta[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
  .barra-cta .btn { flex: 1; height: 42px; padding: 0 12px; font-size: 15px; border-radius: 10px; }
  .barra-link { flex: none; padding: 0 16px; font-weight: 700; font-size: 15px; color: var(--brand-dark); }
  .wa-flota { bottom: 80px; }
}
