/* ─── Landing y pantallas de acceso (misma estructura que EVA PRO) ─── */
:root {
  --ink-deep: #140B36;
  --ink-mid: #2A1670;
  --violeta: #7C5CFF;
  --violeta-neon: #A993FF;
  --rosa: #FF5FA2;
  --amarillo: #FFD23F;
  --amarillo-claro: #FFE98A;
  --naranja: #FF9F1C;
  --verde: #2DBE6C;
  --turquesa: #22D3C5;

  --font-display: "Baloo 2", sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --r-sm: 10px; --r-md: 18px; --r-lg: 26px; --r-xl: 48px;

  --bg: var(--ink-deep);
  --bg-card: rgba(124,92,255,.09);
  --bg-card-strong: rgba(124,92,255,.15);
  --border: rgba(169,147,255,.22);
  --text: #FFFFFF;
  --text-dim: rgba(255,255,255,.68);
  --text-dimmer: rgba(255,255,255,.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overscroll-behavior-y: none; }
[hidden] { display: none !important; }
body.landing-body { font-family: var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
.container { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Navbar: solido y sticky, SIN backdrop-filter (bug de WebKit con sticky,
   ver EVA PRO); el difuminado vive en el velo fixed de debajo. */
.landing-navbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
  background: linear-gradient(to bottom, rgba(20,11,54,.97) 0%, rgba(20,11,54,.97) 78%, rgba(20,11,54,.6) 100%);
  border-bottom: 1px solid var(--border); box-shadow: 0 2px 16px rgba(0,0,0,.28);
}
.landing-velo-difuminado { position: fixed; top: 0; left: 0; right: 0; height: 140px; z-index: 9; pointer-events: none; transform: translateZ(0); }
.landing-velo-difuminado span { position: absolute; inset: 0; display: block; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .landing-velo-difuminado span:nth-child(1) { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(#000 62px, transparent 128px); mask-image: linear-gradient(#000 62px, transparent 128px); }
  .landing-velo-difuminado span:nth-child(2) { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask-image: linear-gradient(#000 62px, transparent 112px); mask-image: linear-gradient(#000 62px, transparent 112px); }
  .landing-velo-difuminado span:nth-child(3) { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); -webkit-mask-image: linear-gradient(#000 62px, transparent 92px); mask-image: linear-gradient(#000 62px, transparent 92px); }
}
.landing-navbar-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 23px; }
.landing-navbar-name img { width: 34px; height: 34px; border-radius: 10px; }
.landing-navbar-name b { background: linear-gradient(90deg, var(--violeta-neon), var(--rosa), var(--amarillo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.landing-navbar-links { display: flex; align-items: center; gap: 10px; }
.landing-navbar-entrar { font-weight: 800; font-size: 14px; color: var(--text-dim); padding: 8px 10px; }
.landing-navbar-cta { background: linear-gradient(135deg, var(--violeta), var(--rosa)); color: #fff; font-weight: 900; font-size: 14px; padding: 10px 18px; border-radius: var(--r-xl); }

/* Hero */
.hero { position: relative; padding: 48px 0 40px; overflow: hidden; z-index: 1; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(ellipse 75% 55% at 10% -5%, rgba(124,92,255,.6) 0%, transparent 58%),
  radial-gradient(ellipse 60% 45% at 95% 15%, rgba(255,95,162,.32) 0%, transparent 52%),
  radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255,210,63,.22) 0%, transparent 58%);
  animation: heroPulse 9s ease-in-out infinite alternate; }
@keyframes heroPulse { to { filter: brightness(1.12) saturate(1.2); } }
.estrellitas { position: absolute; inset: 0; pointer-events: none; }
.estrellitas i { position: absolute; color: var(--amarillo); font-style: normal; animation: titila 3s ease-in-out infinite; }
@keyframes titila { 50% { opacity: .25; transform: scale(.7) rotate(20deg); } }
.hero-content { position: relative; z-index: 2; display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero-content { grid-template-columns: 1.1fr .9fr; } }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(124,92,255,.16); border: 1px solid rgba(169,147,255,.45); border-radius: var(--r-xl); padding: 6px 14px; font-size: 11px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; color: var(--violeta-neon); margin-bottom: 16px; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amarillo); animation: dotPulse 1.4s ease-in-out infinite; }
@keyframes dotPulse { 50% { opacity: .4; transform: scale(.75); } }
.hero-promo-banner { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(255,210,63,.16), rgba(255,95,162,.12)); border: 1px solid rgba(255,210,63,.45); border-radius: var(--r-xl); padding: 9px 16px; margin: 0 0 16px 6px; animation: promoGlow 2.4s ease-in-out infinite; }
@keyframes promoGlow { 50% { box-shadow: 0 0 26px rgba(255,210,63,.32); } }
.hero-promo-tachado { text-decoration: line-through; text-decoration-color: var(--rosa); color: var(--text-dimmer); font-size: 13px; font-weight: 700; }
.hero-promo-gratis { font-family: var(--font-display); font-size: 18px; color: var(--amarillo-claro); font-weight: 800; }
.hero-title { font-family: var(--font-display); font-size: clamp(42px, 11vw, 70px); line-height: .95; margin-bottom: 16px; font-weight: 800; }
.t-violeta { background: linear-gradient(90deg, var(--violeta-neon), var(--turquesa)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.t-oro { background: linear-gradient(90deg, var(--amarillo), var(--rosa)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--text-dim); margin-bottom: 26px; max-width: 470px; }
.hero-sub strong { color: var(--text); font-weight: 800; }
.cta-group { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: var(--r-md); font-weight: 900; padding: 14px 20px; font-size: 16px; transition: transform .1s; }
.btn:active { transform: scale(.98); }
.btn-lg { font-size: 17px; padding: 16px 28px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--violeta), var(--rosa)); color: #fff; box-shadow: 0 0 32px rgba(124,92,255,.4); }
.btn-gold { background: linear-gradient(135deg, var(--amarillo), var(--naranja)); color: #2B1500; box-shadow: 0 0 32px rgba(255,210,63,.35); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--border); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Movil girando con capturas reales */
.showcase-wrap { perspective: 1400px; display: flex; justify-content: center; position: relative; }
.showcase-mascota { position: absolute; z-index: 3; width: 130px; left: calc(50% - 175px); bottom: -10px; animation: flota 3s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
@keyframes flota { 50% { transform: translateY(-12px) rotate(-4deg); } }
.showcase-phone { position: relative; width: min(250px, 64vw); background: linear-gradient(160deg, #2E1E6E, var(--ink-deep)); border-radius: 36px; padding: 8px; box-shadow: 0 40px 70px -25px rgba(0,0,0,.65), 0 0 0 1px rgba(169,147,255,.3), 0 0 50px rgba(124,92,255,.35); transform-style: preserve-3d; animation: showcaseFloat 6s ease-in-out infinite; }
@keyframes showcaseFloat { 0%, 100% { transform: rotateY(-10deg) rotateX(3deg); } 50% { transform: rotateY(8deg) rotateX(-1deg) translateY(-10px); } }
.showcase-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 16px; background: var(--ink-deep); border-radius: 0 0 14px 14px; z-index: 3; }
.showcase-screen { position: relative; width: 100%; aspect-ratio: 390 / 844; border-radius: 28px; overflow: hidden; background: #FFF7EC; }
.showcase-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: rotateY(50deg) scale(.9); transform-origin: left center; transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1); }
.showcase-slide.es-activa { opacity: 1; transform: none; z-index: 1; }
.showcase-slide.es-saliendo { opacity: 0; transform: rotateY(-50deg) scale(.9); transform-origin: right center; }

/* Franja de datos */
.strip { background: linear-gradient(90deg, #1E0F55, var(--ink-mid), #6B2FA0, var(--ink-mid), #1E0F55); background-size: 200% 100%; animation: stripSlide 6s ease-in-out infinite alternate; padding: 16px 0; position: relative; z-index: 1; }
@keyframes stripSlide { to { background-position: 100%; } }
.strip-inner { display: flex; justify-content: space-around; align-items: center; }
.strip-stat { text-align: center; }
.strip-num { font-family: var(--font-display); font-size: 26px; color: #fff; line-height: 1; font-weight: 800; }
.strip-label { font-size: 10px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255,255,255,.78); margin-top: 3px; }
.strip-div { width: 1px; height: 32px; background: rgba(255,255,255,.22); }
.precio-tachado { text-decoration: line-through; text-decoration-color: var(--rosa); color: var(--text-dimmer); font-size: .55em; }
.precio-gratis { color: var(--amarillo-claro); }
.texto-gratis { color: var(--amarillo); }

/* Secciones */
.landing-section { position: relative; z-index: 1; padding: 46px 0; }
.section-eyebrow { font-size: 12px; font-weight: 900; letter-spacing: 2.5px; text-transform: uppercase; color: var(--violeta-neon); margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: clamp(30px, 8vw, 44px); line-height: 1; margin-bottom: 10px; font-weight: 800; }
.section-desc { font-size: 15px; color: var(--text-dim); line-height: 1.6; margin-bottom: 26px; max-width: 640px; }
.feat-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
.feat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 16px; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; position: relative; overflow: hidden; }
.feat-card.tiene-captura { background: linear-gradient(180deg, var(--bg-card-strong), var(--bg-card) 55%); }
.feat-icon { font-size: 30px; line-height: 1; }
.feat-body { flex: 1; min-width: 200px; }
.feat-body h3 { font-size: 17px; margin-bottom: 4px; font-weight: 900; }
.feat-body p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.feat-shot { flex-basis: 100%; position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 390 / 300; border: 1px solid rgba(255,255,255,.08); opacity: 0; transform: scale(.88) translateY(18px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.feat-shot.en-vista { opacity: 1; transform: none; }
.feat-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.feat-shot.en-vista img { animation: featKenBurns 9s ease-in-out infinite; }
@keyframes featKenBurns { 50% { transform: scale(1.1) translate(-1.5%, -1.5%); } }
.feat-card[data-accent="violeta"] .feat-shot.en-vista { box-shadow: 0 22px 45px -16px rgba(124,92,255,.6); }
.feat-card[data-accent="rosa"] .feat-shot.en-vista { box-shadow: 0 22px 45px -16px rgba(255,95,162,.55); }
.feat-card[data-accent="oro"] .feat-shot.en-vista { box-shadow: 0 22px 45px -16px rgba(255,210,63,.55); }
.feat-card[data-accent="turquesa"] .feat-shot.en-vista { box-shadow: 0 22px 45px -16px rgba(34,211,197,.5); }

.mascotas-desfile { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.mascotas-desfile svg { width: 104px; height: 104px; animation: flota 3s ease-in-out infinite; }
.mascotas-desfile svg:nth-child(2n) { animation-delay: -1s; } .mascotas-desfile svg:nth-child(3n) { animation-delay: -2s; }

.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 16px; }
.step-left { display: flex; flex-direction: column; align-items: center; }
.step-num { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--violeta), var(--rosa)); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.step-line { flex: 1; width: 2px; background: var(--border); min-height: 24px; }
.step:last-child .step-line { display: none; }
.step-body { padding-bottom: 24px; }
.step-body h3 { font-size: 17px; margin-bottom: 4px; font-weight: 900; }
.step-body p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

.landing-footer { position: relative; z-index: 1; padding: 32px 0 48px; }
.app-footer { text-align: center; padding: 28px 18px 24px; }
.app-footer-mark { width: 44px; height: 44px; border-radius: 13px; margin: 0 auto 10px; }
.app-footer p { font-size: 12px; color: var(--text-dimmer); line-height: 1.6; }
.app-footer p a { color: var(--text-dim); text-decoration: underline; }
.link-contacto { color: var(--violeta-neon); font-weight: 800; }
.contacto-form { max-width: 560px; }
.campo-señuelo { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aviso-cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 560px; margin: 0 auto; background: #251662; border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.aviso-cookies p { font-size: 13px; color: var(--text-dim); flex: 1; min-width: 200px; }
.aviso-cookies a { color: var(--violeta-neon); font-weight: 800; }

/* Banner de instalacion (PWA) */
.install-banner { position: fixed; z-index: 41; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; padding: 16px 40px 16px 16px; background: #251662; border: 1px solid var(--border); border-radius: var(--r-lg); max-width: 420px; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.install-banner h3 { font-size: 15px; margin-bottom: 6px; }
.install-banner p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.install-banner .close { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: none; background: transparent; color: var(--text-dim); font-size: 18px; }
.install-banner #btn-install { margin-top: 10px; }
.install-banner-flecha { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 9px solid #251662; }

/* Acceso (login / registro / peques) */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(28px + env(safe-area-inset-top)) 0 60px; max-width: 480px; }
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-logo img { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto; box-shadow: 0 0 34px rgba(124,92,255,.45); }
.auth-logo h1 { font-family: var(--font-display); font-size: clamp(36px, 10vw, 48px); line-height: 1; margin-top: 10px; font-weight: 800; background: linear-gradient(90deg, var(--violeta-neon), var(--rosa), var(--amarillo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-logo p { color: var(--text-dim); font-size: 14px; margin-top: 6px; font-weight: 700; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.tab { padding: 15px 6px; font-size: 14px; font-weight: 900; text-align: center; color: var(--text-dimmer); background: transparent; border: none; }
.tab.active { color: #fff; background: rgba(124,92,255,.16); box-shadow: inset 0 -3px 0 var(--violeta-neon); }
.tab.peque.active { box-shadow: inset 0 -3px 0 var(--amarillo); background: rgba(255,210,63,.12); }
.panel { padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.panel form { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px 14px; }
.field:focus-within { border-color: var(--violeta-neon); }
.field input, .field textarea { background: none; border: none; outline: none; width: 100%; color: var(--text); font-size: 16px; font-weight: 700; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dimmer); }
.field-textarea textarea { resize: vertical; min-height: 90px; }
.field-hint { font-size: 12px; color: var(--text-dimmer); padding-left: 2px; }
.error-box { background: rgba(255,95,95,.15); border: 1px solid rgba(255,95,95,.45); color: #FFB3B3; border-radius: var(--r-sm); padding: 11px 13px; font-size: 14px; font-weight: 700; }
.success-box { background: rgba(45,190,108,.15); border: 1px solid rgba(45,190,108,.45); color: #8EF0B6; border-radius: var(--r-sm); padding: 11px 13px; font-size: 14px; font-weight: 700; }
.auth-links { text-align: center; font-size: 14px; color: var(--text-dim); font-weight: 700; }
.auth-links a { color: var(--violeta-neon); font-weight: 900; }
.check-terminos { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-dim); line-height: 1.4; }
.check-terminos input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--violeta); }
.check-terminos a { color: var(--violeta-neon); font-weight: 800; }
.separador { display: flex; align-items: center; gap: 10px; color: var(--text-dimmer); font-size: 12px; font-weight: 800; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Entrada de los peques: usuario + teclado de PIN gigante */
.peque-panel { align-items: center; text-align: center; }
.peque-hola { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.peque-hola span { display: inline-block; animation: saluda 1.6s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes saluda { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
.peque-panel .field { width: 100%; }
.peque-panel .field input { text-align: center; font-size: 22px; font-family: var(--font-display); }
.pin-puntos { display: flex; gap: 14px; justify-content: center; margin: 4px 0; }
.pin-puntos i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--violeta-neon); transition: all .15s; }
.pin-puntos i.lleno { background: var(--amarillo); border-color: var(--amarillo); transform: scale(1.15); }
.pin-puntos.mal { animation: sacude .4s; }
@keyframes sacude { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pin-teclado { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; justify-content: center; }
.pin-teclado button { height: 68px; border-radius: 22px; border: none; background: rgba(255,255,255,.1); color: #fff; font-family: var(--font-display); font-size: 30px; font-weight: 800; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.pin-teclado button:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.25); background: rgba(124,92,255,.35); }
.pin-teclado .vacio-tecla { visibility: hidden; }

.simple-page { max-width: 440px; margin: 0 auto; padding: 70px 20px; text-align: center; }
.simple-page .emoji { font-size: 56px; margin-bottom: 12px; }
.simple-page h1 { font-family: var(--font-display); font-size: 32px; margin-bottom: 10px; font-weight: 800; }
.simple-page p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.legal { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; }
.legal h1 { font-family: var(--font-display); font-size: 36px; margin-bottom: 18px; }
.legal h2 { font-size: 18px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text-dim); line-height: 1.65; font-size: 15px; margin-bottom: 8px; }
.legal ul { padding-left: 20px; }

@media (prefers-reduced-motion: reduce) {
  .showcase-phone, .showcase-mascota, .mascotas-desfile svg, .hero-bg, .strip { animation: none; }
  .showcase-slide, .feat-shot { transition-duration: .3s; }
  .feat-shot.en-vista img { animation: none; }
}

/* Avisos flotantes (comun.js) */
#toasts { position: fixed; z-index: 400; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 460px; padding: 12px 18px; border-radius: 14px; background: #fff; color: #140B36; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: translateY(-20px); opacity: 0; transition: all .3s; }
.toast.visible { transform: none; opacity: 1; }
.toast.error { background: #FF5A5F; color: #fff; }
.toast.ok { background: #2DBE6C; color: #fff; }
