/* Llama-dita · web oficial. Paleta tomada del logo (azul marino) + crema. */
:root {
  --navy: #1C2B5A;
  --navy-2: #243776;
  --navy-ink: #0E1633;
  --blue: #4A64D8;
  --blue-soft: #8FA6FF;
  --cream: #F4ECDC;
  --paper: #FBF8F2;
  --white: #FFFFFF;
  --text: #1A2240;
  --muted: #5A6283;
  --line: #E6E0D2;
  --ok: #1F8A5B;
  --error: #C0392B;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(28, 43, 90, 0.16);
  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.1; letter-spacing: -0.01em; }

.wrap { width: min(1120px, 100%); margin: 0 auto; padding-inline: 24px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: 0.85rem 1.4rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px rgba(28, 43, 90, 0.28); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: rgba(28, 43, 90, 0.06); }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; background: var(--navy); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 242, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: 0.02em; }
.brand-small { font-size: 0.95rem; }
.topnav { display: flex; align-items: center; gap: 1.4rem; font-weight: 500; }
.topnav a:not(.btn) { text-decoration: none; color: var(--muted); }
.topnav a:not(.btn):hover { color: var(--navy); }

/* Hero */
.hero { padding-block: 72px 56px; background: radial-gradient(900px 420px at 85% 10%, rgba(143, 166, 255, 0.22), transparent 70%), radial-gradient(600px 300px at 0% 100%, rgba(244, 236, 220, 0.9), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 600; font-size: 0.85rem; color: var(--navy); background: var(--cream); padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; }
.hero-meta { font-size: 0.88rem; color: var(--muted); }

/* Maqueta de la app (decorativa) */
.mock { display: grid; grid-template-columns: 38% 1fr; min-height: 320px; background: #0B1022; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(28, 43, 90, 0.4); transform: rotate(-1.2deg); }
.mock-side { background: #10183A; padding: 16px 12px; color: #C9D2F5; font-size: 0.8rem; }
.mock-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; color: var(--cream); margin-bottom: 14px; font-size: 0.8rem; letter-spacing: 0.03em; }
.mock-label { text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.1em; color: #6F7BB0; margin: 12px 4px 6px; }
.mock-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.mock-item.active { background: rgba(143, 166, 255, 0.18); color: var(--white); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4A5378; }
.dot.on { background: #34D399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.mock-main { position: relative; display: grid; grid-template-rows: 1fr 1fr; gap: 12px; padding: 16px; }
.mock-booth { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.mock-booth.host { border-color: rgba(143, 166, 255, 0.45); }
.mock-booth.guest { border-color: rgba(244, 236, 220, 0.35); }
.mock-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--white); background: linear-gradient(135deg, var(--navy-2), var(--blue)); flex-shrink: 0; }
.mock-booth.guest .mock-avatar { background: linear-gradient(135deg, #6B5B3E, #C9B07A); }
.mock-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.mock-bars i { width: 7px; border-radius: 3px; background: var(--blue-soft); animation: bar 1.1s ease-in-out infinite; }
.mock-booth.guest .mock-bars i { background: var(--cream); }
.mock-bars i:nth-child(1) { height: 30%; animation-delay: -0.1s; }
.mock-bars i:nth-child(2) { height: 70%; animation-delay: -0.5s; }
.mock-bars i:nth-child(3) { height: 45%; animation-delay: -0.3s; }
.mock-bars i:nth-child(4) { height: 90%; animation-delay: -0.8s; }
.mock-bars i:nth-child(5) { height: 55%; animation-delay: -0.2s; }
.mock-bars i:nth-child(6) { height: 35%; animation-delay: -0.6s; }
.mock-bars i:nth-child(7) { height: 65%; animation-delay: -0.4s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
.mock-bars i { transform-origin: bottom; }
.mock-live { position: absolute; top: 12px; right: 14px; display: flex; align-items: center; gap: 6px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; color: #34D399; }
.mock-live i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; }
@media (prefers-reduced-motion: reduce) { .mock-bars i { animation: none; } html { scroll-behavior: auto; } }

/* Secciones */
section h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 1.6rem; }
.features { padding-block: 64px; background: var(--white); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--cream); margin-bottom: 14px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

.steps { padding-block: 64px; }
.step-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-list li { display: flex; gap: 14px; align-items: flex-start; }
.step-list span { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: var(--cream); color: var(--navy); }
.step-list h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.step-list p { color: var(--muted); font-size: 0.95rem; }

/* Registro */
.registro { padding-block: 72px; background: linear-gradient(180deg, var(--cream), var(--paper)); }
.registro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.registro-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.2rem; max-width: 30rem; }
.checks { list-style: none; display: grid; gap: 0.6rem; }
.checks li { position: relative; padding-left: 1.7rem; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4ECDC' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.card .hint { color: var(--muted); font-size: 0.93rem; margin-bottom: 1.1rem; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 1.2rem; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 0.55rem; border-radius: 999px; font-family: var(--font-display); font-weight: 700; color: var(--muted); cursor: pointer; font-size: 0.92rem; }
.tabs button.active { background: var(--navy); color: var(--white); }
.field { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input { font: inherit; padding: 0.8rem 0.95rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--text); }
.field input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.field input.code { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.35em; text-align: center; font-weight: 700; }
.card .btn { width: 100%; }
.link { background: none; border: 0; color: var(--blue); font: inherit; font-size: 0.9rem; cursor: pointer; padding: 0.4rem 0; margin-top: 0.4rem; }
.msg { font-size: 0.9rem; margin-top: 0.8rem; }
.msg.error { color: var(--error); }
.msg.ok { color: var(--ok); }
.done-head { display: flex; align-items: center; gap: 14px; margin-bottom: 1rem; }
.done-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--cream); background: var(--navy); font-size: 1.1rem; }
.done-head small { color: var(--muted); display: block; }
.divider { height: 1px; background: var(--line); margin: 1.2rem 0; }

/* Banda de descarga */
.download-band { background: var(--navy); color: var(--cream); padding-block: 44px; }
.download-inner { display: flex; align-items: center; gap: 24px; }
.download-inner h2 { color: var(--white); margin-bottom: 0.3rem; font-size: 1.6rem; }
.download-inner p { color: #C9D2F5; }
.download-inner .btn { margin-left: auto; }

.footer { padding-block: 28px; font-size: 0.88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .registro-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topnav a:not(.btn) { display: none; }
  .hero { padding-block: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-inner { flex-direction: column; text-align: center; }
  .download-inner .btn { margin-left: 0; width: 100%; }
  .mock { grid-template-columns: 1fr; transform: none; }
  .mock-side { display: none; }
  .card { padding: 22px; }
}
