/* Landing de Prospecta: primero celular, luego escritorio. Usa las variables de app.css */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
.l-body { background: var(--bg); height: auto; font-size: 16px; line-height: 1.5; overflow-x: hidden; }
.w { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.l-body img { max-width: 100%; height: auto; }
.l-body :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.l-salto { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.l-salto:focus { top: 8px; }

/* Cabecera fija */
.l-head { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(242, 244, 238, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .25s, box-shadow .25s; }
.l-head.scrolled { background: rgba(242, 244, 238, .96); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(17, 38, 31, .35); }
.l-head-in { display: flex; align-items: center; gap: 16px; height: 68px; transition: height .25s; }
.l-head.scrolled .l-head-in { height: 56px; }
.l-head .logo { color: var(--ink); padding: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 21px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.l-head .logo:hover { text-decoration: none; }
.l-nav { display: none; gap: 26px; margin-left: 24px; }
.l-nav a { color: var(--ink-2); font-weight: 600; }
.l-nav a:hover { color: var(--ink); text-decoration: none; }
.l-acc { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.l-login { display: none; }
.l-burger { width: 42px; height: 42px; padding: 0; justify-content: center; flex-direction: column; gap: 5px; border-color: transparent; background: transparent; }
.l-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.l-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.l-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.l-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.l-menu { display: flex; flex-direction: column; padding: 8px 20px 16px; background: #fff; border-top: 1px solid var(--line); }
.l-menu a, .l-menu button { padding: 14px 4px; font-size: 17px; font-weight: 600; color: var(--ink); border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: none; justify-content: flex-start; width: 100%; }
.l-menu a:hover { text-decoration: none; }

/* Hero */
.l-hero { position: relative; padding-top: 68px; background: var(--bg); }
.l-hero-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-soft); }
.l-hero-media img, .l-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; display: block; }
.l-hero-media video { opacity: 0; transition: opacity .6s; }
.l-hero-media video.on { opacity: 1; }
.l-hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(to top, var(--bg), rgba(242, 244, 238, 0)); }
.l-hero-in { position: relative; margin-top: -28px; padding-bottom: 36px; z-index: 2; }
.l-kicker { display: inline-block; background: var(--brand-soft); color: var(--brand-2); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 99px; margin: 0 0 14px; }
.l-hero h1 { font-weight: 800; font-stretch: 108%; font-size: clamp(32px, 8.4vw, 40px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 16px; word-spacing: .05em; }
.l-lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0 0 24px; }
.l-cta { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }
.l-cta .big, .big { padding: 14px 24px; font-size: 17px; border-radius: 12px; }
button.big { min-height: 50px; justify-content: center; }
.l-sec-link { font-weight: 700; color: var(--brand); padding: 10px 2px; }
.l-nota { margin: 14px 0 0; color: var(--ink-3); font-size: 14px; font-weight: 600; }

/* Contador de mercado */
.l-med-wrap { position: relative; z-index: 3; }
.l-med { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 28px 50px -30px rgba(17, 38, 31, .4); display: grid; gap: 22px; }
.l-med h2 { font-weight: 700; font-size: 19px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -.01em; }
.l-sel { display: grid; grid-template-columns: 1fr; gap: 12px; }
.l-med label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.l-med select { padding: 10px; }
.l-num { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(50px, 14vw, 76px); line-height: 1; letter-spacing: -.04em; color: var(--brand); margin: 20px 0 6px; font-variant-numeric: tabular-nums; }
.l-num-txt { color: var(--ink-2); font-size: 15px; min-height: 2.9em; }
.l-bt { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.l-barras { margin: 10px 0 20px; display: grid; gap: 8px; }
.l-b { display: grid; grid-template-columns: 96px 1fr 60px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.l-b .p { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.l-b i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 5px; transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.l-b .n { text-align: right; font-variant-numeric: tabular-nums; }
.l-med .go { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.l-fuente { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }

/* Secciones */
.l-s { padding: 64px 0; }
.l-h2 { font-weight: 800; font-stretch: 106%; font-size: clamp(28px, 7vw, 42px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; word-spacing: .05em; }
.l-sub { color: var(--ink-2); font-size: 17px; line-height: 1.55; margin: 0 0 8px; max-width: 40em; }
#como .l-h2, #como .l-sub, #incluye .l-h2, #incluye .l-sub, #planes .l-h2, #planes .l-sub { text-align: center; margin-left: auto; margin-right: auto; }

/* Pasos */
.l-pasos { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 20px; }
.l-paso { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 14px 24px; position: relative; }
.l-paso-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-soft); display: grid; place-items: center; }
.l-paso-img img { width: 100%; height: 100%; object-fit: cover; }
.l-paso-img-c img { width: 78%; height: 100%; object-fit: contain; }
.l-paso-n { position: absolute; top: 22px; left: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--ink); font-family: var(--f-display); font-weight: 800; display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 10px rgba(17, 38, 31, .2); }
.l-paso h3 { font-size: 21px; font-weight: 800; margin: 18px 10px 6px; letter-spacing: -.01em; }
.l-paso p { margin: 0 10px; color: var(--ink-2); font-size: 16px; }

/* Conoce a Clau */
.l-clau { background: linear-gradient(180deg, var(--brand-soft), #EAF3EF); }
.l-clau-in { display: grid; gap: 28px; align-items: center; }
.l-clau-stage { text-align: center; }
.l-clau-circ { position: relative; width: min(64vw, 260px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff, #C8E0D6); box-shadow: 0 0 0 8px rgba(255, 255, 255, .6), 0 30px 50px -24px rgba(17, 38, 31, .5); overflow: hidden; }
.l-clau-circ img, .l-clau-circ video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.l-clau-circ video { opacity: 0; transition: opacity .4s; }
.l-clau-circ video.on { opacity: 1; }
.l-clau-tag { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }
.l-chat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 20px 0 22px; box-shadow: 0 20px 40px -28px rgba(17, 38, 31, .4); }
.l-chat-log { display: flex; flex-direction: column; gap: 10px; min-height: 130px; max-height: 340px; overflow-y: auto; padding: 4px 2px 10px; scroll-behavior: smooth; }
.l-chat-log .b { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; animation: l-in .25s ease-out; }
.l-chat-log .b.clau { background: var(--brand-soft); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.l-chat-log .b.yo { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.l-chat-log .b.esc { color: var(--ink-3); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.l-chat-log .pts i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 3px; animation: l-pt 1s infinite ease-in-out; }
.l-chat-log .pts i:nth-child(2) { animation-delay: .15s; }
.l-chat-log .pts i:nth-child(3) { animation-delay: .3s; }
.l-chat-qs { display: grid; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.l-chat-qs button { white-space: normal; text-align: left; justify-content: flex-start; padding: 12px 14px; border-radius: 12px; border-color: var(--brand); color: var(--brand-2); font-weight: 600; background: #fff; }
.l-chat-qs button:hover:not(:disabled) { background: var(--brand-soft); }
.l-chat-nota { margin: 10px 2px 0; font-size: 12.5px; color: var(--ink-3); }
@keyframes l-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes l-pt { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* Tarjeta digital */
.l-tarj-in { display: grid; gap: 28px; align-items: center; }
.l-tarj-img img { border-radius: 22px; box-shadow: 0 30px 50px -30px rgba(17, 38, 31, .45); width: 100%; }
.l-checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.l-checks li { padding-left: 32px; position: relative; color: var(--ink-2); font-size: 16px; }
.l-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.chip { display: inline-block; background: var(--brand-soft); color: var(--brand-2); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 99px; margin: 2px 2px 2px 0; }

/* Beneficios */
.l-ben { display: grid; gap: 14px; margin-top: 34px; }
.l-b-i { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.l-b-i .ico-svg { width: 28px; height: 28px; color: var(--brand); background: var(--brand-soft); padding: 9px; box-sizing: content-box; border-radius: 12px; }
.l-b-i h3 { font-size: 18px; font-weight: 700; margin: 14px 0 6px; }
.l-b-i p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ERP (aligerado) */
.l-erp { background: #E8F0EC; padding: 56px 0; scroll-margin-top: 0; }
.l-erp-in { display: grid; gap: 28px; align-items: center; }
.l-erp p { color: var(--ink-2); font-size: 17px; margin: 0; max-width: 34em; }
.l-erp-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.l-erp-form h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; margin: 0 0 4px; }
.l-erp-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 12px 0 5px; }
.l-erp-form input, .l-erp-form select { padding: 10px; }
.l-erp-form #erp-otro { margin-top: 8px; }
.l-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.l-erp-ok { color: #17663A !important; background: #DFF3E7; border-radius: 8px; padding: 10px 12px; font-size: 14px !important; margin-top: 10px !important; }

/* Precios */
.l-planes { display: grid; grid-template-columns: 1fr; justify-content: center; gap: 20px; margin: 34px auto 0; max-width: 860px; }
.l-plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; position: relative; }
.l-plan.dest { border: 2px solid var(--brand); padding: 27px; box-shadow: 0 30px 50px -30px rgba(15, 107, 92, .55); }
.l-plan .tag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 99px; }
.l-plan h3 { font-weight: 700; font-size: 20px; margin: 0; }
.l-precio { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: 46px; line-height: 1; letter-spacing: -.03em; margin: 12px 0 18px; font-variant-numeric: tabular-nums; }
.l-precio span { font-family: var(--f-text); font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--ink-3); }
.l-plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.l-plan li { padding: 9px 0; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 15px; }
.l-plan button { width: 100%; justify-content: center; padding: 13px; font-size: 16px; }
.l-extra { text-align: center; margin: 22px 0 0; color: var(--ink-2); font-size: 15px; }

/* Preguntas */
.l-faq-w { max-width: 820px; }
.l-faq-sec .l-h2 { text-align: center; }
.l-faq { margin-top: 28px; display: grid; gap: 10px; }
.l-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.l-faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 17px; list-style: none; position: relative; border-radius: 14px; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--brand); line-height: 1; }
.l-faq details[open] summary::after { content: "−"; }
.l-faq details p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); }

/* Cierre */
.l-cierre { background: var(--brand); color: #fff; padding: 56px 0 40px; margin-top: 24px; }
.l-cierre-in { display: grid; gap: 18px; align-items: center; text-align: center; justify-items: center; }
.l-cierre img { width: 190px; height: 190px; }
.l-cierre .l-h2 { color: #fff; }
.l-cierre p { color: #D5E8E1; font-size: 17px; margin: 0 0 22px; max-width: 32em; }
.l-cierre .l-nota { color: #D5E8E1; margin: 14px 0 0; }
.l-cierre .accent:focus-visible { outline-color: #fff; }

footer.l-foot { background: var(--ink); color: #B9CAC3; padding: 28px 0 40px; font-size: 14px; }
.l-foot-in { display: grid; gap: 10px; }
footer.l-foot p { margin: 0; max-width: 46em; }
footer.l-foot a { color: #fff; text-decoration: underline; }

/* Ventana de acceso */
.modal { position: fixed; inset: 0; background: rgba(17, 38, 31, .5); display: flex; align-items: center; justify-content: center; z-index: 80; padding: 16px; }
.modal .card { width: 100%; max-width: 420px; padding: 28px; border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(17, 38, 31, .55); max-height: 94vh; overflow: auto; }
.modal h2 { font-weight: 800; font-size: 25px; letter-spacing: -.02em; margin: 0 0 10px; }
.err { color: var(--err); font-size: 13px; min-height: 18px; margin-top: 8px; }

/* Entrada al hacer scroll (solo si hay movimiento permitido) */
html.anim .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.anim .rv.in { opacity: 1; transform: none; }
html.anim .l-paso:nth-child(2) { transition-delay: .08s; }
html.anim .l-paso:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .l-chat-log .b { animation: none; } .l-chat-log .pts i { animation: none; } }

@media (min-width: 700px) {
  .w { padding: 0 28px; }
  .l-login { display: inline-flex; }
  .l-ben { grid-template-columns: repeat(2, 1fr); }
  .l-pasos { grid-template-columns: repeat(3, 1fr); }
  .l-planes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .l-sel { grid-template-columns: 1fr 1fr; }
  .l-clau-circ { width: 300px; }
  .l-cierre-in { grid-template-columns: auto 1fr; text-align: left; justify-items: start; gap: 40px; }
  .l-cierre img { width: 240px; height: 240px; }
}
@media (min-width: 960px) {
  .l-nav { display: flex; }
  .l-burger { display: none; }
  .l-menu { display: none !important; }
  .l-hero { padding-top: 0; min-height: 680px; display: flex; align-items: center; }
  .l-hero-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .l-hero-media img, .l-hero-media video { object-position: 78% 50%; }
  .l-hero-media::after { top: 0; height: auto; background: linear-gradient(90deg, var(--bg) 0%, rgba(242, 244, 238, .96) 30%, rgba(242, 244, 238, .55) 46%, rgba(242, 244, 238, 0) 62%); }
  .l-hero-in { margin-top: 0; padding: 130px 28px 110px; }
  .l-hero-txt { max-width: 560px; }
  .l-hero h1 { font-size: clamp(42px, 4.3vw, 58px); }
  .l-lead { font-size: 19px; }
  .l-med-wrap { margin-top: -70px; }
  .l-med { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; padding: 30px 34px; }
  .l-med h2 { font-size: 21px; }
  .l-s { padding: 96px 0; }
  .l-clau-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .l-clau-circ { width: min(380px, 100%); }
  .l-tarj-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
  .l-ben { grid-template-columns: repeat(4, 1fr); }
  .l-erp { padding: 72px 0; }
  .l-erp-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
  .l-foot-in { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Oferta: pago único */
.l-sub-plan { margin: 0 0 12px; color: var(--ink-2); font-weight: 600; }
.l-nota-plan { margin: 0 0 14px; font-weight: 700; color: var(--brand); font-size: 14px; }
.l-extras { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 860px; margin: 20px auto 0; }
.l-extra-b { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.l-extra-b h4 { margin: 0 0 4px; font-size: 17px; }
.l-extra-b ul { list-style: none; padding: 0; margin: 8px 0 0; }
.l-extra-b li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.l-comp { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 0; margin: 22px auto 0; font-weight: 700; color: var(--ink-2); }
.l-comp li::before { content: "✓ "; color: var(--brand); }
.l-garantia { text-align: center; margin-top: 14px; }
@media (min-width: 760px) { .l-extras { grid-template-columns: 1fr 1fr; } }
