/* Quotea — sitio público. Sin dependencias externas. */
@font-face {
  font-family: "Playball Quotea";
  src: url("/fonts/playball-quotea.woff") format("woff");
  font-display: swap;
}

:root {
  --ink: #13233a;
  --ink-2: #33445a;
  --muted: #5a6879;
  --bg: #f4f6f9;
  --paper: #ffffff;
  --line: #dde4ec;
  --blue: #0a6fe8;
  --blue-soft: #e7f1ff;
  --green: #0f9d6b;
  --brand: linear-gradient(100deg, #0a7aff 0%, #00bfae 55%, #00e07a 100%);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 760; }
h3 { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Wordmark */
.wordmark { font-family: "Playball Quotea", "Snell Roundhand", cursive; font-weight: 400; letter-spacing: 0; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(244 246 249 / 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .wordmark { font-size: 2rem; padding: 4px 2px 6px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: rgb(19 35 58 / 0.06); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(19 35 58 / 0.06); }
.langs a { font-size: 0.8rem; font-weight: 650; color: var(--muted); text-decoration: none; padding: 5px 9px; border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(19 35 58 / 0.12); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 650; text-decoration: none; border-radius: 999px; padding: 12px 22px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -10px rgb(10 122 255 / 0.7); }
.btn-primary:hover { filter: brightness(1.05); }
.bar .btn { padding: 9px 16px; font-size: 0.92rem; }
@media (max-width: 900px) { .nav { display: none; } .langs { margin-left: auto; } }
@media (max-width: 420px) { .bar .btn { display: none; } }

/* Hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 790; letter-spacing: -0.035em; }
.hero .lead { margin-top: 22px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 0.98rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { flex: none; color: var(--green); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 176px; padding: 9px 18px 9px 14px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; line-height: 1.15; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 0.68rem; opacity: 0.85; }
.store strong { font-size: 1.08rem; font-weight: 600; }
.store.soon { background: transparent; color: var(--ink); border: 1.5px dashed #b5c1ce; cursor: default; }
.stores-note { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* Phone + paper composition */
.stage { position: relative; min-height: 560px; display: flex; justify-content: center; }
.paper { position: absolute; top: 34px; right: -10px; width: 74%; max-width: 420px; background: #fff; border-radius: 6px; box-shadow: 0 30px 60px -30px rgb(19 35 58 / 0.45), 0 2px 6px rgb(19 35 58 / 0.08); transform: rotate(4deg); }
.phone { position: relative; width: 290px; border-radius: 46px; padding: 10px; background: #0d1117; box-shadow: 0 40px 80px -36px rgb(19 35 58 / 0.6); }
.phone img { border-radius: 37px; width: 100%; aspect-ratio: 585 / 1266; object-fit: cover; object-position: top; background: #f2f3f6; }
.phone.sm { width: 236px; border-radius: 38px; padding: 8px; }
.phone.sm img { border-radius: 31px; }
.stage .phone { margin-right: 22%; z-index: 2; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; padding: 10px 0 20px; }
  .stage .phone { margin-right: 18%; width: 250px; }
  .paper { width: 58%; right: 2%; }
}

/* Audience line */
.audience { border-block: 1px solid var(--line); background: var(--paper); }
.audience p { padding: 20px 0; color: var(--ink-2); font-size: 1rem; text-align: center; }
.audience strong { color: var(--ink); }

/* Sections */
section.block { padding: clamp(64px, 9vw, 120px) 0; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head .lead { margin-top: 16px; }

/* Flow (a real sequence) */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.flow li { counter-increment: step; }
.flow .phone { margin: 0 auto 26px; }
.flow h3 { display: flex; align-items: baseline; gap: 10px; }
.flow h3::before { content: counter(step); font-size: 0.85rem; font-weight: 700; color: #fff; background: var(--ink); width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: translateY(-2px); }
.flow p { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 1080px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Reports */
.reports { background: var(--ink); color: #e9eef5; }
.reports h2, .reports h3 { color: #fff; }
.reports .lead { color: #c3cedb; }
.reports-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.reports-grid > .phone { position: sticky; top: 96px; }
.reports .phone { background: #000; box-shadow: 0 40px 90px -40px #000; }
.report-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.report-list li { padding-left: 22px; border-left: 2px solid rgb(255 255 255 / 0.16); }
.report-list li:first-child { border-left-color: #2fd6a5; }
.report-list p { margin-top: 6px; color: #c3cedb; }
.report-shots { display: flex; gap: 20px; margin-top: 40px; }
.report-shots .phone { background: #000; }
@media (max-width: 900px) { .reports-grid { grid-template-columns: 1fr; } .reports-grid > .phone { margin-inline: auto; position: static; } }
@media (max-width: 640px) { .report-shots .phone:nth-child(2) { display: none; } .report-shots { justify-content: center; } }

/* Templates switcher */
.tpl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.tpl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tpl-tabs button { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.tpl-tabs button:hover { border-color: #b5c1ce; }
.tpl-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sheet { position: relative; background: #fff; border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -32px rgb(19 35 58 / 0.4); overflow: hidden; aspect-ratio: 910 / 1287; }
.sheet img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s ease; }
.sheet-caption { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.checks svg { color: var(--green); margin-top: 4px; }
.checks strong { display: block; font-weight: 650; }
.checks span { color: var(--ink-2); font-size: 0.98rem; }
.tpl-side .phone { margin-top: 40px; }
@media (max-width: 900px) { .tpl-grid { grid-template-columns: 1fr; } .tpl-side .phone { margin-inline: auto; } }

/* More features */
.more { background: var(--paper); border-block: 1px solid var(--line); }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.feature-list div { padding: 26px 26px 26px 0; border-top: 1px solid var(--line); }
.feature-list dt { font-weight: 680; font-size: 1.06rem; display: flex; gap: 10px; align-items: center; }
.feature-list dt svg { color: var(--blue); flex: none; }
.feature-list dd { margin: 8px 0 0; color: var(--ink-2); font-size: 0.97rem; }
.more-shots { display: flex; gap: 24px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
@media (max-width: 900px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } .feature-list div { padding-right: 0; } .more-shots .phone:nth-child(n+2) { display: none; } }

/* Privacy band */
.privacy-band { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; background: var(--blue-soft); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); }
.privacy-band .icon { width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center; color: var(--blue); }
.privacy-band p { margin-top: 12px; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 600px) { .privacy-band { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.plan.free { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan.free .muted, .plan.free li { color: #c3cedb; }
.plan h3 { font-size: 1.5rem; font-weight: 760; letter-spacing: -0.02em; }
.plan .tag { color: var(--muted); font-size: 0.98rem; margin-top: -4px; }
.plan.free .tag { color: #c3cedb; }
.price { font-size: 2rem; font-weight: 760; letter-spacing: -0.03em; line-height: 1.1; }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan.free .price small { color: #c3cedb; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; font-size: 0.95rem; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }
.plan.free li::before { color: #2fd6a5; }
.plans-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); max-width: 80ch; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* Final CTA */
.final { text-align: center; }
.final .wordmark { font-size: clamp(3.4rem, 9vw, 6.5rem); display: inline-block; padding: 0 10px 12px; }
.final p { margin: 10px auto 0; max-width: 52ch; color: var(--ink-2); }
.final .stores { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 32px 0 40px; font-size: 0.92rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Language suggestion */
.lang-hint { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 420px; margin-left: auto; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6); font-size: 0.95rem; }
.lang-hint a { color: #fff; font-weight: 650; }
.lang-hint button { margin-left: auto; background: transparent; border: 0; color: #c3cedb; font: inherit; cursor: pointer; padding: 4px 8px; }
.lang-hint[hidden] { display: none; }

/* Legal pages */
.legal { padding: clamp(40px, 7vw, 80px) 0 100px; }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 780; }
.legal .updated { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.legal .summary { margin: 28px 0 8px; padding: 22px 24px; border-radius: var(--radius-m); background: var(--blue-soft); color: var(--ink-2); }
.legal .summary ul { margin: 10px 0 0; padding-left: 20px; }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin: 40px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li + li { margin-top: 4px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 650; color: var(--ink); }
.toc { margin-top: 28px; columns: 2; column-gap: 32px; padding-left: 20px; font-size: 0.95rem; }
@media (max-width: 600px) { .toc { columns: 1; } .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 2px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }
.notfound p { margin: 12px 0 24px; color: var(--ink-2); }
section[id] { scroll-margin-top: 72px; }

/* VERI*FACTU (solo ES) */
.vf { padding-top: 0; }
.vf-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); }
.vf-seal { width: 168px; height: 168px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; color: var(--ink); }
.vf-seal svg { color: var(--green); }
.vf-seal strong { font-size: 1.15rem; letter-spacing: 0.02em; }
.vf-seal span { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.vf-badge { display: inline-block; font-size: 0.85rem; font-weight: 650; color: var(--green); background: #e5f7ef; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.vf-text p { margin-top: 12px; color: var(--ink-2); max-width: 68ch; }
.vf .hero-points { margin-top: 20px; }
.vf-note { margin-top: 18px; font-size: 0.86rem; color: var(--muted); max-width: 70ch; }
@media (max-width: 700px) { .vf-grid { grid-template-columns: 1fr; } .vf-seal { width: 120px; height: 120px; } }
