:root {
  --bg: #16120f;
  --bg-2: #1e1915;
  --card: #241e19;
  --line: rgb(255 255 255 / 0.08);
  --ink: #f7f1ea;
  --ink-2: #c9bfb4;
  --ink-3: #93887d;
  --warm: #ff8c42;
  --accent: #ff5a5f;
  --cool: #ec286e;
  --grad: linear-gradient(120deg, var(--warm) 0%, var(--accent) 48%, var(--cool) 100%);
  --radius: 22px;
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 { font-family: var(--display); font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.02em; max-width: 18ch; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 54ch; }
.fine { font-size: 13px; color: var(--ink-3); }
.center { text-align: center; margin-inline: auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 0;
  font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn.full { width: 100%; }
.btn.grad { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgb(255 90 95 / 0.6); }
.btn.grad:hover { filter: brightness(1.06); }
.btn.ghost { background: rgb(255 255 255 / 0.06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgb(255 255 255 / 0.1); }
.btn.light { background: #fff; color: #1a1411; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgb(22 18 15 / 0.72); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 20%, rgb(236 40 110 / 0.22), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgb(255 140 66 / 0.18), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px; border-radius: 99px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgb(255 90 95 / 0.2); }
h1 { font-family: var(--display); font-size: clamp(44px, 6.6vw, 80px); letter-spacing: -0.03em; font-weight: 800; }
.hero .lead { margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.hero-points li::before { content: '✓'; margin-right: 8px; color: var(--warm); font-weight: 800; }

/* Teléfono */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone {
  position: relative; width: 300px; height: 600px; border-radius: 46px; padding: 12px;
  background: #0b0908; box-shadow: 0 0 0 2px #3a302a, 0 40px 80px -20px rgb(0 0 0 / 0.7), 0 0 120px -20px rgb(255 90 95 / 0.35);
  transform: rotate(4deg); animation: float 7s ease-in-out infinite;
}
.notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 20px; background: #0b0908; z-index: 2; }
.screen { height: 100%; border-radius: 36px; overflow: hidden; background: #fbf6f0; color: #241a14; font-size: 12px; }
.m-hero { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 14px; background-size: cover; background-position: center; position: relative; }
.m-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / 0.75)); }
.m-hero > * { position: relative; }
.m-logo { width: 46px; height: 46px; border-radius: 14px; border: 2px solid #fff; object-fit: cover; }
.m-name { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 800; color: #fff; }
.m-sub { margin: 0; color: rgb(255 255 255 / 0.85); font-weight: 600; }
.m-tabs { display: flex; gap: 6px; padding: 12px 12px 6px; overflow: hidden; }
.m-tabs > * { padding: 6px 10px; border-radius: 99px; background: #efe5da; font-weight: 700; white-space: nowrap; }
.m-tabs b { background: #241a14; color: #fff; }
.m-item { display: flex; align-items: center; gap: 10px; margin: 8px 12px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 0.05); }
.m-item img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.m-item div { flex: 1; min-width: 0; }
.m-item p { margin: 0; font-weight: 800; font-size: 13px; }
.m-item small { display: block; color: #8a7b6f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item b { font-size: 12px; }
.m-item em { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-weight: 800; }
.m-cart { display: flex; justify-content: space-between; margin: 14px 12px; padding: 14px 16px; border-radius: 16px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; }
.nfc-tag {
  position: absolute; left: 0; bottom: 70px; z-index: 3; display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: 50%; background: #fff; color: #1a1411; font-weight: 800; letter-spacing: 0.08em;
  box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.6);
}
.nfc-tag span { position: relative; z-index: 1; }
.nfc-tag i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2.4s ease-out infinite; }
.nfc-tag i:nth-child(3) { animation-delay: 0.8s; }
.nfc-tag i:nth-child(4) { animation-delay: 1.6s; }
.toast {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 16px;
  background: rgb(36 30 25 / 0.92); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -12px rgb(0 0 0 / 0.6);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.toast i { font-style: normal; }
.t1 { top: 70px; right: -10px; animation: pop 7s ease-in-out infinite; }
.t2 { bottom: 120px; right: -30px; animation: pop 7s ease-in-out 3.5s infinite; }
@keyframes float { 50% { transform: rotate(4deg) translateY(-12px); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes pop { 0%, 100% { opacity: 0; transform: translateY(8px); } 10%, 45% { opacity: 1; transform: none; } 55% { opacity: 0; } }

/* Franja */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-in { display: flex; align-items: center; gap: 32px; padding: 26px 0; }
.strip-in p { margin: 0; flex: 1; color: var(--ink-2); font-weight: 600; }
.strip-pics { display: flex; }
.strip-pics img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-2); margin-left: -14px; }

/* Secciones */
.sec { padding: 104px 0; }
.sec.alt { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 30px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 14px; background: var(--grad); font-weight: 800; font-size: 18px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-2); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feat { padding: 26px; border-radius: var(--radius); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feat:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgb(255 140 66 / 0.35); }
.feat .ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: rgb(255 255 255 / 0.06); font-size: 24px; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Demo */
.demo { background: radial-gradient(700px 400px at 90% 50%, rgb(255 90 95 / 0.16), transparent 70%); }
.demo-in { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.demo .lead { margin: 18px 0 28px; }
.qr-card { padding: 22px; border-radius: 28px; background: #fff; color: #1a1411; text-align: center; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6); }
.qr-card img { width: 180px; height: 180px; }
.qr-card p { margin: 12px 0 0; font-weight: 800; font-size: 14px; }

/* Planes */
.cycle { display: inline-flex; gap: 4px; margin: 32px 0 28px; padding: 4px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cycle button { height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font: 700 14px var(--sans); cursor: pointer; }
.cycle button[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.cycle span { margin-left: 4px; color: #34d399; font-size: 12px; font-weight: 800; }
.cycle button[aria-selected='true'] span { color: #059669; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; }
.plan { display: flex; flex-direction: column; padding: 34px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan.pro { position: relative; overflow: hidden; background: linear-gradient(160deg, #3a2216, var(--card) 55%); box-shadow: inset 0 0 0 2px rgb(255 140 66 / 0.45); }
.plan.pro::after { content: ''; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgb(255 140 66 / 0.18); filter: blur(50px); pointer-events: none; }
.pname { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 700; }
.tag { padding: 4px 10px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.price { margin: 14px 0 0; font-family: var(--display); font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink-3); }
.psub { margin: 2px 0 22px; color: var(--ink-3); font-size: 13px; min-height: 21px; }
.plan ul { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; }
.plan li { position: relative; padding: 7px 0 7px 28px; color: var(--ink-2); font-size: 15px; }
.plan li::before { content: '✓'; position: absolute; left: 0; top: 7px; color: var(--warm); font-weight: 800; }
.plans + .fine { margin-top: 24px; max-width: 70ch; text-align: left; margin-inline: 0; }

/* Preguntas */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 36px; border-top: 1px solid var(--line); }
summary { position: relative; padding: 22px 40px 22px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--warm); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 22px; color: var(--ink-2); }

/* Cierre */
.cta-end { padding: 0 0 104px; }
.cta-end-in { padding: 64px 48px; border-radius: 36px; background: var(--grad); text-align: center; box-shadow: 0 40px 80px -30px rgb(236 40 110 / 0.6); }
.cta-end h2 { margin: 0 auto; max-width: 20ch; }
.cta-end p { margin: 16px auto 30px; max-width: 56ch; font-size: 18px; color: rgb(255 255 255 / 0.9); }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 36px 0; color: var(--ink-3); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin: 0 0 0 auto; }

/* Responsive */
@media (max-width: 980px) {
  .links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero-in { grid-template-columns: 1fr; }
  .phone-stage { min-height: 560px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .demo-in { grid-template-columns: 1fr; }
  .qr-card { justify-self: start; }
}
@media (max-width: 640px) {
  .nav-cta .ghost { display: none; }
  .brand span { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .phone { width: 260px; height: 520px; }
  .phone-stage { min-height: 500px; }
  .nfc-tag { width: 72px; height: 72px; font-size: 12px; left: 4px; }
  .t1 { right: 0; } .t2 { right: 0; }
  .toast { font-size: 12px; padding: 10px 12px; }
  .strip-in { flex-direction: column; align-items: flex-start; }
  .strip-pics img { margin-left: 0; margin-right: -14px; }
  .sec { padding: 72px 0; }
  .grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 26px; }
  .cta-end-in { padding: 48px 22px; border-radius: 28px; }
  .foot p { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Páginas legales y borrar cuenta */
.doc { padding: 56px 0 96px; }
.doc h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; margin-bottom: 8px; }
.doc h2 { font-family: var(--sans); font-size: 20px; font-weight: 800; letter-spacing: 0; max-width: none; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--warm); }
.doc .fecha { color: var(--ink-3); font-size: 14px; margin: 0 0 32px; }
.doc .caja { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.form { display: grid; gap: 14px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.04); color: var(--ink); font: inherit;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink-2); }
.form .check input { width: auto; margin-top: 5px; }
.form .msg { margin: 0; font-size: 14px; font-weight: 700; }
.form .msg.ok { color: #6ee7a8; }
.form .msg.err { color: #ff8a8d; }
