/* LoDicen — estilos exclusivos de la landing.
   Solo los carga index.html; el resto de páginas siguen con styles.css a secas.
   Todo lo animado se desactiva con prefers-reduced-motion (al final del fichero). */

:root {
  --deep: #052e22;          /* banda oscura: verde esmeralda casi negro */
  --deep-soft: #0b4436;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: .07s } .d2 { transition-delay: .14s } .d3 { transition-delay: .21s }
.d4 { transition-delay: .28s } .d5 { transition-delay: .35s } .d6 { transition-delay: .42s }

/* ---------- Navegación pegajosa ---------- */
.l-nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(248, 251, 249, .72);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.l-nav.is-stuck { background: rgba(248, 251, 249, .93); border-bottom-color: var(--line); }

/* ---------- Hero ---------- */
.l-hero { position: relative; text-align: center; padding: 76px 0 64px; overflow: hidden; }
.l-aurora { position: absolute; inset: -20% -10% auto; height: 620px; pointer-events: none; z-index: 0; filter: blur(70px); opacity: .55; }
.l-aurora i {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand), transparent 65%);
}
.l-aurora i:nth-child(1) { width: 460px; height: 460px; left: 4%;  top: 8%;  animation: flota1 18s ease-in-out infinite; }
.l-aurora i:nth-child(2) { width: 380px; height: 380px; right: 6%; top: 0;   background: radial-gradient(circle at 30% 30%, #34d399, transparent 65%); animation: flota2 22s ease-in-out infinite; }
.l-aurora i:nth-child(3) { width: 300px; height: 300px; left: 42%; top: 26%; background: radial-gradient(circle at 30% 30%, #a7f3d0, transparent 65%); animation: flota3 26s ease-in-out infinite; }
@keyframes flota1 { 50% { transform: translate(60px, 40px) scale(1.12) } }
@keyframes flota2 { 50% { transform: translate(-50px, 55px) scale(.9) } }
@keyframes flota3 { 50% { transform: translate(35px, -45px) scale(1.08) } }

.l-hero > * { position: relative; z-index: 1; }
.l-hero h1 { font-size: clamp(36px, 6.4vw, 66px); font-weight: 800; letter-spacing: -1.8px; line-height: 1.08; }

/* Palabra que rota */
.l-rota { display: block; color: var(--brand-ink); min-height: 1.1em; }
.l-rota span { display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.l-rota span.sale { opacity: 0; transform: translateY(-14px) rotate(-2deg); }
.l-rota span.entra { opacity: 0; transform: translateY(14px) rotate(2deg); }

.l-sub { max-width: 640px; margin: 22px auto 30px; font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-soft); }
.l-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.l-btn-xl { font-size: 17px; padding: 15px 34px; }
.l-micro { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.l-micro b { color: var(--ink); font-weight: 600; }

/* Tarjetas flotantes del hero */
.l-float { position: relative; height: 250px; max-width: 940px; margin: 44px auto 0; }
.l-float .l-fcard {
  position: absolute; width: 268px; text-align: left; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(5, 46, 34, .10);
  transition: transform .35s var(--ease);
}
.l-float .l-fcard:nth-child(1) { left: 2%;  top: 24px;  transform: rotate(-4deg); }
.l-float .l-fcard:nth-child(2) { left: 34%; top: 0;     transform: rotate(1.5deg); z-index: 2; }
.l-float .l-fcard:nth-child(3) { right: 2%; top: 34px;  transform: rotate(4deg); }
.l-fcard p { font-size: 14px; margin: 8px 0 12px; color: var(--ink); }
.l-fcard .rating { font-size: 13px; }
.l-who { display: flex; align-items: center; gap: 9px; }
.l-who .avatar { width: 32px; height: 32px; font-size: 12px; }
.l-who b { font-size: 13px; display: block; }
.l-who small { font-size: 11.5px; color: var(--ink-soft); }

/* ---------- Cinta de testimonios ---------- */
.l-strip { padding: 26px 0 8px; overflow: hidden; }
.l-strip-head { text-align: center; margin-bottom: 20px; }
.l-strip-head h2 { font-size: clamp(24px, 3.4vw, 30px); letter-spacing: -.7px; }
.l-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 12.5px; color: var(--ink-soft); background: #eef4f1;
  border: 1px solid var(--line); padding: 4px 12px; border-radius: 99px;
}
.l-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.l-track { display: flex; gap: 16px; width: max-content; animation: desliza 46s linear infinite; }
.l-track.rev { animation-direction: reverse; animation-duration: 58s; margin-top: 16px; }
.l-marquee:hover .l-track { animation-play-state: paused; }
@keyframes desliza { to { transform: translateX(-50%) } }
.l-mcard {
  width: 300px; flex-shrink: 0; padding: 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 3px rgba(5, 46, 34, .05);
}
.l-mcard p { font-size: 14px; margin: 8px 0 12px; }

/* ---------- Cómo funciona, interactivo ---------- */
.l-steps { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
.l-step {
  display: flex; gap: 14px; padding: 18px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid transparent; transition: background .25s, border-color .25s;
}
.l-step:hover { background: #fff; }
.l-step.on { background: var(--card); border-color: var(--brand); box-shadow: var(--shadow); }
.l-step-n {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; font-weight: 800; font-size: 14px;
  background: var(--brand-soft); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
}
.l-step.on .l-step-n { background: var(--brand-ink); color: #fff; }
.l-step h3 { font-size: 16.5px; margin-bottom: 3px; }
.l-step p { font-size: 14px; }
.l-progress { height: 3px; background: var(--line); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.l-progress i { display: block; height: 100%; width: 0; background: var(--brand-ink); border-radius: 3px; }
.l-step.on .l-progress i { animation: avanza 6s linear forwards; }
@keyframes avanza { to { width: 100% } }

.l-screen {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 44px rgba(5, 46, 34, .09); overflow: hidden; min-height: 380px;
}
.l-bar { display: flex; gap: 6px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f6faf8; }
.l-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe9e4; display: block; }
.l-bar span { margin-left: 8px; font-size: 12px; color: var(--ink-soft); font-family: ui-monospace, monospace; }
.l-panel { display: none; padding: 26px; }
.l-panel.on { display: block; animation: entra .45s var(--ease); }
@keyframes entra { from { opacity: 0; transform: translateY(10px) } }

.l-fake-field { margin-bottom: 12px; }
.l-fake-field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.l-fake-input { border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 13px; font-size: 14px; color: var(--ink-soft); background: #fff; }
.l-swatch { display: inline-block; width: 22px; height: 22px; border-radius: 6px; background: var(--brand); vertical-align: middle; margin-right: 8px; }

.l-chat { max-width: 380px; margin: 0 auto; }
.l-bubble { background: var(--brand-soft); color: var(--ink); padding: 13px 16px; border-radius: 16px 16px 16px 4px; font-size: 14.5px; margin-bottom: 10px; }
.l-bubble.mine { background: var(--brand-ink); color: #fff; border-radius: 16px 16px 4px 16px; margin-left: auto; }
.l-bubble a { color: inherit; text-decoration: underline; word-break: break-all; }
.l-typing { display: flex; gap: 4px; padding: 14px 16px; background: var(--brand-soft); border-radius: 16px; width: fit-content; }
.l-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-ink); animation: pulso 1.2s infinite; }
.l-typing i:nth-child(2) { animation-delay: .18s } .l-typing i:nth-child(3) { animation-delay: .36s }
@keyframes pulso { 0%, 60%, 100% { opacity: .3; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-4px) } }

.l-embed { background: #f6faf8; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-soft); margin-bottom: 18px; overflow-x: auto; white-space: nowrap; }
.l-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.l-mini { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 11.5px; }
.l-mini .rating { font-size: 11px; letter-spacing: 1px; }
.l-mini b { display: block; margin-top: 8px; font-size: 12px; }

/* ---------- Pruébalo (banda oscura) ---------- */
.l-try-band { background: var(--deep); color: #eaf5f1; margin: 84px 0 0; padding: 72px 0; position: relative; overflow: hidden; }
.l-try-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 15% 0%, rgba(5, 150, 105, .34), transparent 70%),
              radial-gradient(600px 300px at 88% 100%, rgba(52, 211, 153, .22), transparent 70%);
}
.l-try-band > * { position: relative; }
.l-try-band h2 { font-size: clamp(27px, 4vw, 38px); font-weight: 800; letter-spacing: -1px; text-align: center; }
.l-try-band .l-lead { text-align: center; color: #a9cec1; max-width: 560px; margin: 12px auto 40px; font-size: 16px; }
.l-try { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.l-try-box { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .13); border-radius: 18px; padding: 24px; backdrop-filter: blur(6px); }
.l-try-box h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .09em; color: #7fc0aa; margin-bottom: 18px; }
.l-try-box label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #d6ebe3; }
.l-try-box input, .l-try-box textarea {
  width: 100%; padding: 11px 14px; margin-bottom: 14px; border-radius: 10px; font: inherit; font-size: 14.5px;
  background: rgba(255, 255, 255, .95); border: 1.5px solid transparent; color: var(--ink);
}
.l-try-box input:focus, .l-try-box textarea:focus { outline: none; border-color: #34d399; }
.l-try-stars { display: flex; gap: 6px; font-size: 26px; cursor: pointer; color: rgba(255, 255, 255, .28); margin-bottom: 18px; }
.l-try-stars span:hover, .l-try-stars .on { color: #fbbf24; }
.l-try-wall { min-height: 300px; display: flex; flex-direction: column; gap: 12px; }
.l-try-empty { color: #7fc0aa; font-size: 14px; text-align: center; padding: 40px 20px; border: 1px dashed rgba(255, 255, 255, .18); border-radius: 14px; }
.l-new {
  background: #fff; color: var(--ink); border-radius: 14px; padding: 16px;
  animation: aterriza .55s var(--ease); box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
@keyframes aterriza { from { opacity: 0; transform: translateY(-16px) scale(.94) } }
.l-new p { font-size: 14px; margin: 7px 0 11px; }
.l-hint-ok { font-size: 13px; color: #7fc0aa; text-align: center; margin-top: 14px; }

/* ---------- Rejilla de motivos ---------- */
.l-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.l-why .card { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.l-why .card:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: 0 16px 36px rgba(5, 46, 34, .11); }
.l-ico { font-size: 26px; display: block; margin-bottom: 10px; }

/* ---------- Preguntas ---------- */
.l-faq { max-width: 720px; margin: 0 auto; }
.l-q { border-bottom: 1px solid var(--line); }
.l-q summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 16px;
}
.l-q summary::-webkit-details-marker { display: none; }
.l-q summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--brand-ink); transition: transform .25s;
}
.l-q[open] summary::after { content: "−"; }
.l-q p { padding: 0 0 18px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Barra pegajosa de conversión ---------- */
.l-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 20px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(5, 46, 34, .07);
  transform: translateY(120%); transition: transform .4s var(--ease);
}
.l-sticky.is-in { transform: none; }
.l-sticky p { font-size: 14.5px; font-weight: 600; margin: 0; }

/* ---------- Adaptación a móvil ---------- */
@media (max-width: 900px) {
  .l-steps { grid-template-columns: 1fr; }
  .l-try { grid-template-columns: 1fr; }
  .l-float { display: none; }          /* en móvil estorban más que suman */
  .l-try-band { margin-top: 56px; padding: 56px 0; }
}
@media (max-width: 560px) {
  .l-sticky p { display: none; }
  .l-sticky { padding: 10px 16px; }
  .l-sticky .btn { width: 100%; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .l-track, .l-aurora i, .l-typing i, .l-step.on .l-progress i { animation: none !important; }
  .l-track { transform: none; }
  .l-new, .l-panel.on { animation: none !important; }
  .l-sticky { transition: none; }
  .l-rota span { transition: none; }
}
