/* PayKid — paykid.es landing styles (see DESIGN.md) */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

:root {
  --primary: #5B5BD6;
  --primary-dark: #4746B8;
  --primary-soft: #EEEEFB;
  --navy: #1E1B39;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --background: #F7F7FC;
  --surface: #FFFFFF;
  --border: #ECECF4;
  --success: #22C55E;
  --success-soft: #E9F9EF;
  --danger: #EF4444;
  --danger-soft: #FDECEC;
  --warning: #F59E0B;
  --warning-soft: #FEF3E2;
  --info: #3B82F6;
  --info-soft: #EAF2FE;
  --pink: #EC4899;
  --pink-soft: #FCE7F3;
  --neutral: #9CA3AF;
  --shadow-card: 0 4px 12px rgba(30, 27, 57, 0.06);
  --shadow-pop: 0 12px 32px rgba(30, 27, 57, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html, body { overflow-x: clip; }

h1, h2, h3, .display { font-family: 'Outfit', 'Inter', sans-serif; color: var(--navy); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid rgba(91, 91, 214, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

section[id] { scroll-margin-top: 76px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand .word { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 21px; color: var(--navy); }
.brand .word .kid { color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--text-secondary); font-weight: 500; font-size: 14px; position: relative; }
.site-nav a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav a:not(.btn-primary):hover::after { transform: scaleX(1); }
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-nav .btn-primary { color: #fff; }

@media (max-width: 720px) {
  .site-nav a:not(.btn-primary) { display: none; }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; box-shadow: 0 6px 16px rgba(91, 91, 214, 0.35); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 14px;
  border: 1.5px solid var(--primary);
  cursor: pointer;
}
.btn-outline:hover { background: var(--primary-soft); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #F1EFFF 0%, #F7F7FC 55%, #FFFFFF 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.hero-copy { text-align: left; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--primary); }
.hero .subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 540px;
  margin: 0 0 32px;
}

/* Entrada del hero */
.anim-1, .anim-2, .anim-3, .anim-4, .anim-5 {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.15s; }
.anim-3 { animation-delay: 0.28s; }
.anim-4 { animation-delay: 0.42s; }
.anim-5 { animation-delay: 0.55s; }
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Confeti sutil del hero */
.hero-confetti { position: absolute; inset: 0; pointer-events: none; }
.hero-confetti span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0.45;
  animation: confetti-drift 9s ease-in-out infinite;
}
.hero-confetti span:nth-child(1) { top: 12%; left: 6%;  background: var(--primary); }
.hero-confetti span:nth-child(2) { top: 24%; left: 44%; background: var(--warning); border-radius: 999px; animation-delay: -2s; }
.hero-confetti span:nth-child(3) { top: 70%; left: 10%; background: var(--pink); animation-delay: -4s; }
.hero-confetti span:nth-child(4) { top: 16%; left: 88%; background: var(--success); border-radius: 999px; animation-delay: -1s; }
.hero-confetti span:nth-child(5) { top: 78%; left: 90%; background: var(--info); animation-delay: -5s; }
.hero-confetti span:nth-child(6) { top: 55%; left: 50%; background: var(--danger); border-radius: 999px; animation-delay: -3s; }
.hero-confetti span:nth-child(7) { top: 40%; left: 3%;  background: var(--warning); animation-delay: -6s; }
.hero-confetti span:nth-child(8) { top: 88%; left: 40%; background: var(--primary); border-radius: 999px; animation-delay: -7s; }
@keyframes confetti-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(140deg); }
}

/* Store badges + QR block */
.download-block {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.store-buttons { display: flex; flex-direction: column; gap: 12px; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 10px 20px;
  min-width: 210px;
  text-align: left;
  transition: transform 0.1s, box-shadow 0.15s;
}
.store-badge:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30, 27, 57, 0.25); }
.store-badge:active { transform: scale(0.97); }
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge .small { font-size: 11px; opacity: 0.85; }
.store-badge .big { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 600; }

.qr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  display: flex;
  gap: 22px;
}
.qr-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-item svg { width: 108px; height: 108px; }
.qr-item .qr-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.qr-hint { font-size: 13px; color: var(--text-secondary); margin-top: 14px; }

/* Fila de confianza */
.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding: 0;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.trust-row svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }

/* ---------- Mockup del teléfono (hero) ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.device {
  width: 290px;
  border-radius: 40px;
  border: 9px solid var(--navy);
  background: var(--background);
  box-shadow: 0 24px 60px rgba(30, 27, 57, 0.22);
  position: relative;
  overflow: hidden;
  animation: device-float 7s ease-in-out infinite;
}
@keyframes device-float {
  0%, 100% { transform: translateY(0) rotate(0.4deg); }
  50% { transform: translateY(-10px) rotate(-0.4deg); }
}
.device-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 20px;
  background: var(--navy);
  border-radius: 999px;
  z-index: 2;
}
.app-screen {
  padding: 44px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 480px;
}
.app-greeting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2px 2px 4px;
}
.app-greeting strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.app-greeting span { font-size: 11.5px; color: var(--text-secondary); }
.app-bell {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.app-bell svg { width: 16px; height: 16px; }
.app-bell i {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--danger);
  border: 1.5px solid #fff;
}
.app-section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 2px 0;
}
.app-section-row span { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13.5px; color: var(--navy); }
.app-section-row em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--primary); }

.app-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 10px 10px;
}
.app-tile {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}
.app-tile svg { width: 18px; height: 18px; }
.tile-red   { background: var(--danger-soft);  color: var(--danger); }
.tile-green { background: var(--success-soft); color: var(--success); }
.tile-blue  { background: var(--info-soft);    color: var(--info); }
.tile-indigo{ background: var(--primary-soft); color: var(--primary); }
.app-card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-card-body strong { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-body span { font-size: 10px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.chip-green { background: var(--success-soft); color: #15803D; }
.chip-amber { background: var(--warning-soft); color: #B45309; }
.chip-red   { background: var(--danger-soft);  color: #B91C1C; }
.chip-gray  { background: #F3F4F6; color: var(--text-secondary); }

.app-tabbar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-left: -14px;
  margin-right: -14px;
  padding: 10px 18px 16px;
}
.app-tabbar .tab { color: var(--neutral); display: flex; }
.app-tabbar .tab.active { color: var(--primary); }
.app-tabbar .tab svg { width: 20px; height: 20px; }
.tab-fab {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -26px;
  box-shadow: 0 6px 16px rgba(91, 91, 214, 0.35);
}

/* Tarjetas flotantes */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  padding: 10px 14px;
  animation: float-bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 12px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.float-card em { font-style: normal; font-size: 11px; color: var(--text-secondary); }
.float-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.float-icon svg { width: 15px; height: 15px; }
.fi-green  { background: var(--success-soft); color: var(--success); }
.fi-indigo { background: var(--primary-soft); color: var(--primary); }
.float-1 { top: 16%; right: -8%; animation-delay: -1.5s; }
.float-2 { bottom: 14%; left: -12%; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { text-align: center; }
  .hero .subtitle { margin-left: auto; margin-right: auto; }
  .download-block { justify-content: center; }
  .trust-row { justify-content: center; }
  .float-1 { right: 2%; }
  .float-2 { left: 2%; }
}
@media (max-width: 640px) {
  .qr-card { display: none; } /* en el móvil ya estás: se toca el botón */
  .qr-hint { display: none; }
  .store-buttons { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
  .store-badge { justify-content: center; }
  .device { width: 280px; }
  .app-screen { min-height: 470px; }
  .hero h1 br { display: none; }
  .hero h1 { font-size: clamp(27px, 7.8vw, 34px); }
  .float-1 { top: -10px; right: 0; }
  .float-2 { bottom: -14px; left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section-title { font-size: clamp(24px, 3.4vw, 30px); font-weight: 700; text-align: center; margin-bottom: 8px; letter-spacing: -0.3px; }
.section-sub { color: var(--text-secondary); text-align: center; max-width: 540px; margin: 0 auto 44px; }
.section-eyebrow {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Aparición al hacer scroll (solo si hay JS que añada .in-view) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Problema ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}
.chat-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}
.unread-badge {
  position: absolute;
  top: -6px;
  right: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  z-index: 1;
}
.bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-card);
  padding: 10px 16px;
  font-size: 13.5px;
  color: #3a3f4b;
  max-width: 92%;
  transition: transform 0.2s ease;
}
.bubble:hover { transform: translateX(4px); }
.b1 { transform: rotate(-1.2deg); }
.b2 { transform: rotate(0.8deg); align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.b3 { transform: rotate(-0.6deg); }
.b4 { transform: rotate(1deg); align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.b5 { transform: rotate(-1deg); }

.problem-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}
.problem-arrow span { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; white-space: nowrap; }
.problem-arrow svg { width: 30px; height: 30px; animation: arrow-nudge 2.2s ease-in-out infinite; }
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.solved-card {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(91, 91, 214, 0.16);
  padding: 20px;
}
.solved-head { display: flex; align-items: center; gap: 12px; }
.solved-head .app-card-body strong { font-size: 15px; white-space: normal; }
.solved-head .app-card-body span { font-size: 12.5px; }
.solved-chips { display: flex; gap: 8px; margin: 14px 0 12px; }
.solved-chips .chip { font-size: 12px; padding: 5px 12px; }
.solved-note { font-size: 13px; color: var(--text-secondary); border-top: 1px solid var(--border); padding-top: 12px; }

@media (max-width: 860px) {
  .problem-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .problem-arrow { flex-direction: row; }
  .problem-arrow svg { transform: rotate(90deg); animation: none; }
  .solved-card { max-width: 440px; margin: 0 auto; }
  .chat-stack { max-width: 440px; margin: 0 auto; width: 100%; }
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.section.alt .feature-card { background: var(--background); box-shadow: none; }
.section.alt .feature-card:hover { box-shadow: var(--shadow-card); }
.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}
.feature-card:hover .icon-tile { transform: scale(1.08) rotate(-3deg); }
.icon-tile svg { width: 22px; height: 22px; }
.tint-indigo { background: var(--primary-soft); color: var(--primary); }
.tint-green  { background: var(--success-soft); color: var(--success); }
.tint-red    { background: var(--danger-soft);  color: var(--danger); }
.tint-blue   { background: var(--info-soft);    color: var(--info); }
.tint-pink   { background: var(--pink-soft);    color: var(--pink); }
.tint-amber  { background: var(--warning-soft); color: var(--warning); }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; }

/* ---------- Screenshots ---------- */
.screens {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}
.phone {
  width: 230px;
  border-radius: 32px;
  border: 8px solid var(--navy);
  background: linear-gradient(170deg, var(--primary-soft), #F7F7FC 70%);
  box-shadow: 0 12px 32px rgba(30, 27, 57, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.phone:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(30, 27, 57, 0.18); }
.phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: var(--navy);
  border-radius: 999px;
  z-index: 2;
}
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .ph-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  padding: 12px 16px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--border);
}

/* Mini pantallas dentro de cada .phone (placeholder hasta capturas reales) */
.mini-screen {
  flex: 1;
  padding: 40px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 360px;
}
.ms-greeting strong { display: block; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); }
.ms-greeting span { font-size: 10px; color: var(--text-secondary); }
.ms-label { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 600; color: var(--navy); margin-top: 4px; }
.ms-kids { display: flex; gap: 8px; }
.ms-kid {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--primary-soft);
}
.ka-1 { background: var(--info-soft); color: var(--info); }
.ka-2 { background: var(--pink-soft); color: var(--pink); }
.ms-kid-add { background: var(--surface); color: var(--primary); border: 1.5px dashed var(--primary); font-weight: 500; }
.ms-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 9px;
}
.ms-row .app-tile { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.ms-row-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ms-row-txt strong { font-size: 11px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-row-txt span { font-size: 9.5px; color: var(--text-secondary); }
.ms-chev { color: var(--neutral); font-size: 15px; }

.ms-hero {
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--pink-soft), var(--primary-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}
.ms-event-title strong { display: block; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); }
.ms-event-title span { display: block; font-size: 10px; color: var(--text-secondary); }
.ms-price { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); }
.ms-price em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--text-secondary); }
.ms-btn {
  border-radius: 11px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  padding: 9px 8px;
}
.ms-btn-green { background: var(--success); color: #fff; }
.ms-btn-red { background: #fff; color: var(--danger); border: 1.5px solid var(--danger); }

.ms-pay-title { margin-bottom: 2px; }
.ms-pay-title strong { display: block; font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); }
.ms-pay-title span { font-size: 10px; color: var(--text-secondary); }
.ms-pay-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--background);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.ms-lock { font-size: 9px; color: var(--text-secondary); text-align: center; margin-top: auto; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.section.alt .step { background: var(--background); box-shadow: none; }
.section.alt .step:hover { box-shadow: var(--shadow-card); }
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 6px 16px rgba(91, 91, 214, 0.3);
}
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 14px; }

/* ---------- Organizadores ---------- */
.organizer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.organizer-copy h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.3px; }
.organizer-copy > p { color: var(--text-secondary); margin-bottom: 22px; }
.organizer-list { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; }
.organizer-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #3a3f4b; }
.organizer-list svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; margin-top: 3px; }

.organizer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-pop);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.op-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px; color: var(--navy); display: flex; align-items: baseline; justify-content: space-between; }
.op-title span { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); font-family: 'Inter', sans-serif; }
.op-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op-stat {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.op-stat-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.op-stat-num { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); }
.op-stat-cap { font-size: 10.5px; color: var(--text-secondary); }
.op-bar { display: block; height: 7px; border-radius: 999px; background: #E9E9F5; overflow: hidden; margin-top: 6px; }
.op-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--success);
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.in-view .op-bar-fill { width: var(--w); }

.op-pay-label { font-size: 12.5px; font-weight: 600; color: var(--navy); font-family: 'Outfit', sans-serif; margin-bottom: -6px; }
.op-segbar { display: flex; height: 9px; border-radius: 999px; overflow: hidden; background: #E9E9F5; }
.op-segbar .seg { width: 0; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }
.op-segbar .seg:nth-child(2) { transition-delay: 0.2s; }
.op-segbar .seg:nth-child(3) { transition-delay: 0.4s; }
.in-view .op-segbar .seg { width: var(--w); }
.seg-green { background: var(--success); }
.seg-amber { background: var(--warning); }
.seg-gray  { background: #D2D5DC; }
.op-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--text-secondary); }
.op-legend .ld { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 5px; }
.ld-green { background: var(--success); }
.ld-amber { background: var(--warning); }
.ld-gray  { background: #D2D5DC; }

.op-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.op-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--info-soft);
  color: var(--info);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.op-avatar.av-2 { background: var(--pink-soft); color: var(--pink); }
.op-row .app-card-body strong { font-size: 13px; }
.op-row .app-card-body span { font-size: 11px; }
.op-row .chip { font-size: 11px; padding: 4px 10px; }

@media (max-width: 860px) {
  .organizer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .organizer-panel { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* ---------- FAQ ---------- */
.faq-container { max-width: 720px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.section:not(.alt) .faq-item { background: var(--surface); }
.faq-item[open] { border-color: var(--primary); box-shadow: 0 8px 20px rgba(91, 91, 214, 0.1); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary-soft);
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.25s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 20px 16px; }
.faq-body p { color: var(--text-secondary); font-size: 14px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  border-radius: 24px;
  padding: 56px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta h2 { color: #fff; font-size: clamp(22px, 3.2vw, 28px); font-weight: 700; margin-bottom: 8px; position: relative; }
.cta p { opacity: 0.9; margin-bottom: 24px; position: relative; }
.cta .store-badge { background: #fff; color: var(--navy); }
.cta .store-buttons { flex-direction: row; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-confetti { position: absolute; inset: 0; pointer-events: none; }
.cta-confetti span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  animation: confetti-drift 8s ease-in-out infinite;
}
.cta-confetti span:nth-child(1) { top: 18%; left: 8%; }
.cta-confetti span:nth-child(2) { top: 68%; left: 16%; border-radius: 999px; animation-delay: -2s; }
.cta-confetti span:nth-child(3) { top: 30%; left: 46%; animation-delay: -4s; }
.cta-confetti span:nth-child(4) { top: 22%; left: 86%; border-radius: 999px; animation-delay: -1s; }
.cta-confetti span:nth-child(5) { top: 72%; left: 78%; animation-delay: -5s; }
.cta-confetti span:nth-child(6) { top: 82%; left: 50%; border-radius: 999px; animation-delay: -3s; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 64px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 13px; }
.footer-links a:hover { color: var(--primary); }
.copyright { color: var(--text-secondary); font-size: 13px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(30, 27, 57, 0.15);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner p { flex: 1 1 320px; font-size: 13px; color: var(--text-secondary); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; }
.cookie-banner .btn-primary, .cookie-banner .btn-outline { font-size: 13px; padding: 9px 18px; }
.cookie-banner[hidden] { display: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.legal h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.legal .updated { color: var(--text-secondary); font-size: 13px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.legal p, .legal li { color: #3a3f4b; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.legal th { background: var(--primary-soft); color: var(--navy); font-weight: 600; }
.legal .placeholder-box {
  background: var(--warning-soft);
  border: 1px solid var(--warning);
  border-radius: 14px;
  padding: 16px 18px;
  color: #7a5200;
  font-size: 14px;
}

/* ---------- Móvil real (360 / 390 px) ----------
   La queja del cliente era que "la información queda dispersa": a estas
   anchuras todo pasa a una sola columna y nada desborda. */
@media (max-width: 520px) {
  /* Nada de anchuras fijas: el móvil manda. */
  .device { width: min(290px, 78vw); }
  .phone { width: min(230px, 70vw); }
  .screens { gap: 18px; }

  /* Rejillas a una columna (los minmax de 240–290px desbordan a 360px). */
  .features { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .op-stats { grid-template-columns: minmax(0, 1fr); }

  /* Los pasos en columna: la flecha gira para seguir leyéndose de arriba abajo. */
  .problem-grid { grid-template-columns: minmax(0, 1fr); }
  .problem-arrow svg { transform: rotate(90deg); animation: none; }

  /* Botones de tienda a ancho completo, apilados. */
  .store-buttons { width: 100%; max-width: none; }
  .store-badge { min-width: 0; width: 100%; justify-content: center; }

  /* Tipografías del hero fluidas para que no se partan en palabras sueltas. */
  .hero h1 { font-size: clamp(26px, 8.2vw, 34px); }
  .hero .subtitle { font-size: clamp(15px, 4.2vw, 17px); }

  /* Menos aire: a 360px cada píxel de contenido cuenta. */
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-sub { margin-bottom: 28px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .anim-1, .anim-2, .anim-3, .anim-4, .anim-5 { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; }
  .in-view .op-bar-fill, .in-view .op-segbar .seg { width: var(--w); }
}
