/* Landing público (diseño "Dental Home — Landing"). Clases con prefijo lp- para no chocar con la app. */
.lp { background: #ffffff; color: #1e1433; font-family: "Manrope", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; color-scheme: light; }
.lp a { color: #7b1fa2; }
.lp a:hover { color: #4a2e80; }
.lp h1, .lp h2, .lp h3 { font-weight: 800; }
.lp-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, background .3s, color .3s; }
.lp-btn-primary, .lp a.lp-btn-primary { background: #4a2e80; color: #ffffff; box-shadow: 0 10px 30px -10px rgba(74, 46, 128, .65); }
.lp-btn-primary:hover, .lp a.lp-btn-primary:hover { color: #ffffff; background: #7b1fa2; transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(123, 31, 162, .7); }
.lp-btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.lp-btn-primary:hover::after { left: 130%; }
.lp-btn-ghost, .lp a.lp-btn-ghost { background: #ffffff; color: #4a2e80; box-shadow: inset 0 0 0 1.5px #e1d5e7; }
.lp-btn-ghost:hover, .lp a.lp-btn-ghost:hover { color: #4a2e80; box-shadow: inset 0 0 0 1.5px #b39ddb; transform: translateY(-2px); }
.lp-btn-light, .lp a.lp-btn-light { background: #ffffff; color: #4a2e80; }
.lp-btn-light:hover, .lp a.lp-btn-light:hover { color: #7b1fa2; transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .45); }
.lp-btn .arr { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.lp-btn:hover .arr { transform: translateX(4px); }
.lp-navlink, .lp a.lp-navlink { color: #3b2d57; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 4px; transition: color .2s; background: none; border: 0; cursor: pointer; font-family: inherit; }
.lp-navlink:hover, .lp a.lp-navlink:hover { color: #7b1fa2; }
.lp-logo { display: block; background: url("/static/img/logo.png") center / contain no-repeat; }
.lp-word { font-family: "Montserrat", sans-serif; font-weight: 700; letter-spacing: .04em; color: #4a2e80; }

.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.lp-s2 { grid-column: span 2; } .lp-s3 { grid-column: span 3; } .lp-s4 { grid-column: span 4; } .lp-r2 { grid-row: span 2; }
.lp-cell { position: relative; overflow: hidden; border-radius: 28px; background: #f4f1f8; padding: 32px; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.lp-cell:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(74, 46, 128, .45); }
.lp-cell:hover .lp-tile { transform: scale(1.08) rotate(-4deg); }
.lp-tile { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: transform .5s cubic-bezier(.2, .8, .2, 1); flex-shrink: 0; }
.lp-plan { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.lp-plan:hover { transform: translateY(-8px); }
.lp-step:hover .lp-stepnum { background: #7b1fa2; color: #ffffff; }
.lp-stepnum { transition: background .3s, color .3s; }
.lp-faqbtn { width: 100%; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; font: 700 18px "Manrope", sans-serif; color: #1e1433; text-align: left; min-height: 44px; }
.lp-faqbtn:hover { color: #7b1fa2; }
.lp-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.lp-bar { transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.lp-wave { animation: wave 9s linear infinite; }

/* ---------- Movimiento ---------- */
/* Aparición al hacer scroll (la clase lp-js la pone views.js; sin JS todo se ve normal) */
.lp-js .lp-reveal { opacity: 0; transform: translateY(38px) scale(.98); filter: blur(4px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s; transition-delay: var(--d, 0ms); }
.lp-js .lp-reveal.lp-in { opacity: 1; transform: none; filter: none; }
.lp-js .lp-cell.lp-reveal.lp-in:hover { transform: translateY(-6px); transition-delay: 0ms; }
.lp-js .lp-plan.lp-reveal.lp-in:hover { transform: translateY(-8px); transition-delay: 0ms; }

/* Cabecera y barra de progreso de lectura */
.lp-head { transition: box-shadow .4s, background .4s; }
.lp-head.lp-scrolled { box-shadow: 0 10px 30px -18px rgba(74, 46, 128, .35); }
.lp-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #4a2e80, #7b1fa2, #b39ddb); }

/* Fondos que respiran y se desplazan */
.lp-blob { animation: lp-drift 18s ease-in-out infinite alternate; will-change: transform; }
.lp-blob-b { animation-duration: 22s; animation-direction: alternate-reverse; }
.lp-blob-c { position: absolute; top: 120px; left: 38%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 31, 162, .16), rgba(123, 31, 162, 0) 70%); animation: lp-drift 14s ease-in-out infinite alternate-reverse; pointer-events: none; }
@keyframes lp-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.12); }
  100% { transform: translate(40px, -30px) scale(.94); }
}
.lp-flt { position: absolute; pointer-events: none; animation: lp-flotar 7s ease-in-out infinite; }
.lp-flt-1 { top: 70px; left: 46%; }
.lp-flt-2 { top: 300px; left: 4%; animation-duration: 5.5s; animation-delay: -2s; }
.lp-flt-3 { bottom: 60px; left: 40%; animation-duration: 9s; animation-delay: -4s; }
@keyframes lp-flotar {
  0%, 100% { transform: translateY(0) rotate(0); opacity: .55; }
  50% { transform: translateY(-22px) rotate(18deg); opacity: 1; }
}

/* Palabra que cambia en el titular */
/* La palabra va en su propia línea para que el titular no cambie de alto al rotar */
.lp-rotor { display: grid; justify-items: start; overflow: hidden; padding-bottom: .08em; }
.lp-rotor-w { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(100%); transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s; background: linear-gradient(90deg, #7b1fa2, #4a2e80, #b39ddb, #7b1fa2); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lp-brillo 6s linear infinite; }
.lp-rotor-w.on { opacity: 1; transform: none; }
.lp-rotor-w.out { transform: translateY(-100%); }
@keyframes lp-brillo { to { background-position: -300% 0; } }

/* Mockup: inclinación 3D, citas que entran y cita destacada */
.lp-mock { transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; will-change: transform; }
.lp-appt { animation: lp-entra .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.7s + var(--i, 0) * .15s); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
.lp-appt.on { transform: scale(1.03); box-shadow: 0 14px 30px -16px rgba(74, 46, 128, .55), inset 0 0 0 1.5px #e1d5e7; }
@keyframes lp-entra { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.lp-toast { animation: lp-toast 7s cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: 1.6s; opacity: 0; }
@keyframes lp-toast {
  0% { opacity: 0; transform: translateY(24px) scale(.9); }
  8%, 72% { opacity: 1; transform: translateY(0) scale(1); }
  40% { transform: translateY(-8px) scale(1); }
  82%, 100% { opacity: 0; transform: translateY(12px) scale(.96); }
}

/* Marquesina: se detiene al pasar el mouse */
.lp-marq:hover .lp-track { animation-play-state: paused; }

/* Bento: foco de luz que sigue al cursor */
.lp-cell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(179, 157, 219, .28), transparent 60%); }
.lp-cell:hover::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .lp-js .lp-reveal { opacity: 1; transform: none; filter: none; }
  .lp-toast, .lp-appt { opacity: 1; }
  .lp-rotor-w { transform: none; }
  .lp-rotor-w:not(.on) { opacity: 0; }
}
@media (max-width: 960px) {
  .lp-s2, .lp-s3, .lp-s4 { grid-column: span 6; } .lp-r2 { grid-row: auto; }
  .lp-hide-m { display: none !important; }
  .lp-toast { left: 8px !important; right: 8px; }
}

/* Agenda y odontograma se "arman" al aparecer en pantalla */
.lp-in .lp-slot { animation: lp-crece .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.25s + var(--i, 0) * .12s); transform-origin: top; }
@keyframes lp-crece { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
.lp-in .lp-diente { animation: lp-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.2s + var(--i, 0) * .05s); }
@keyframes lp-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.lp-in .lp-diente.lp-marca { animation: lp-pop .5s cubic-bezier(.3, 1.6, .5, 1) both, lp-latido 2.4s ease-in-out 1.6s infinite; animation-delay: calc(.2s + var(--i, 0) * .05s), calc(1.4s + var(--i, 0) * .1s); }
@keyframes lp-latido { 0%, 100% { transform: none; } 50% { transform: translateY(-4px) scale(1.08); } }

/* ---------- Diente protagonista del inicio ---------- */
.lp-heroart { --t: min(480px, 88vw); flex: 0 0 var(--t); position: relative; display: grid; place-items: center; width: var(--t); aspect-ratio: 1; margin: 0 auto; }
.lp-heroart > * { grid-area: 1 / 1; }
.lp-halo { width: 78%; height: 78%; border-radius: 50%; background: radial-gradient(circle, rgba(123, 31, 162, .30), rgba(179, 157, 219, .18) 45%, rgba(179, 157, 219, 0) 70%); animation: lp-respira 4.5s ease-in-out infinite; }
@keyframes lp-respira { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
.lp-onda { width: 46%; height: 46%; border-radius: 50%; border: 2px solid rgba(123, 31, 162, .35); animation: lp-onda 3.6s cubic-bezier(.2, .8, .2, 1) infinite; }
.lp-onda-2 { animation-delay: 1.8s; }
@keyframes lp-onda { from { transform: scale(.8); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

/* Órbita con los módulos */
.lp-orbita { position: relative; width: 92%; height: 92%; border-radius: 50%; border: 1.5px dashed #d9cbee; animation: lp-gira 36s linear infinite; }
.lp-orb { position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(var(--t) * -.46)) rotate(calc(-1 * var(--a))); }
.lp-orb-b { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 16px 34px -16px rgba(74, 46, 128, .55), 0 0 0 1px #eee8f4; font-size: 13px; font-weight: 800; color: #1e1433; white-space: nowrap; animation: lp-gira-b 36s linear infinite; }
.lp-orb-ic { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lp-orb-ic .i { width: 16px; height: 16px; }
@keyframes lp-gira { to { transform: rotate(360deg); } }
@keyframes lp-gira-b { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* El diente: se dibuja, se rellena, flota y brilla */
.lp-diente-wrap { position: relative; width: 52%; aspect-ratio: 1; transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.lp-diente-xl { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 26px 40px rgba(74, 46, 128, .35)); animation: lp-flota-diente 6s ease-in-out infinite 2s; }
@keyframes lp-flota-diente { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
.lp-diente-trazo { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lp-dibuja 1.8s cubic-bezier(.6, .1, .3, 1) .5s forwards; }
@keyframes lp-dibuja { to { stroke-dashoffset: 0; } }
.lp-diente-fill { opacity: 0; animation: lp-aparece .9s ease 1.6s forwards; }
.lp-diente-reflejo { opacity: 0; animation: lp-aparece .6s ease 2.2s forwards; }
@keyframes lp-aparece { to { opacity: 1; } }
.lp-diente-brillo { animation: lp-barrido 4.5s ease-in-out 2.4s infinite; }
@keyframes lp-barrido { 0% { transform: skewX(-18deg) translateX(0); } 45%, 100% { transform: skewX(-18deg) translateX(40px); } }
.lp-estrella { position: absolute; fill: #b39ddb; animation: sparkle 2.4s ease-in-out infinite; }
.lp-estrella-1 { width: 18%; top: -4%; right: 2%; animation-delay: 2.4s; }
.lp-estrella-2 { width: 10%; top: 20%; left: -6%; fill: #7b1fa2; animation-delay: 3s; }
.lp-estrella-3 { width: 8%; bottom: 8%; right: -4%; animation-delay: 3.6s; }

/* La sección de la agenda empieza a moverse cuando aparece */
.lp-js .lp-reveal:not(.lp-in) .lp-appt, .lp-js .lp-reveal:not(.lp-in) .lp-toast { animation-play-state: paused; }

@media (max-width: 600px) {
  .lp-heroart { --t: 72vw; }
  .lp-orb-b { font-size: 11px; padding: 6px 10px 6px 6px; }
  .lp-orb-ic { width: 24px; height: 24px; }
  .lp-navlink, .lp a.lp-navlink, .lp nav > a[href="#/"] { min-height: 48px; display: inline-flex; align-items: center; }
  .lp a[href^="mailto:"] { display: inline-block; padding: 14px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-diente-trazo { stroke-dashoffset: 0; }
  .lp-diente-fill, .lp-diente-reflejo { opacity: 1; }
}
