/* Página de TAAP (taap.systems). Colores y letras del kit de marca (brand/BRAND.md). */
:root {
  --violet: #4b2dc6;
  --violet-dark: #3a21a3;
  --violet-50: #f1eefc;
  --deep: #170f3a;
  --ink: #15131f;
  --muted: #5f5b76;
  --line: #e7e6ef;
  --bg: #f6f6f9;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(21, 19, 31, 0.04), 0 8px 24px rgba(21, 19, 31, 0.06);
  --display: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }

/* Idioma: sin JavaScript se ve en inglés. */
html[lang='en'] [data-lang='es'],
html[lang='es'] [data-lang='en'] { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 246, 249, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.top .logo img { height: 22px; width: auto; }
.top nav { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang button { border: 0; background: transparent; padding: 6px 12px; font: 600 14px var(--body); color: var(--muted); cursor: pointer; min-height: 36px; }
.lang button[aria-pressed='true'] { background: var(--violet); color: var(--white); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 16px; font: 700 17px var(--body); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--violet-dark); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: 0.8; line-height: 1.2; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn[aria-disabled='true'] { cursor: default; }

/* Portada */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--violet-50); color: var(--violet); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(36px, 7vw, 60px); margin-top: 16px; }
h2 { font-size: clamp(28px, 5vw, 40px); }
h3 { font-size: 20px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); margin: 16px 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.phones { display: flex; justify-content: center; gap: 16px; }
.phone { width: 46%; max-width: 240px; border-radius: 34px; padding: 8px; background: var(--ink); box-shadow: 0 30px 60px rgba(23, 15, 58, 0.25); }
.phone img { border-radius: 27px; }
.phone.offset { margin-top: 48px; }

/* Secciones */
section { padding: 56px 0; }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 12px 0 0; }
.grid { display: grid; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 8px 0 0; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--violet); color: var(--white); display: grid; place-items: center; font: 800 18px var(--display); margin-bottom: 16px; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--violet-50); color: var(--violet); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }

/* Precio */
.price { background: var(--deep); color: var(--white); border-radius: 28px; padding: 40px 28px; display: grid; gap: 24px; }
.price .big { font: 800 clamp(44px, 9vw, 72px) var(--display); line-height: 1; }
.price p { color: rgba(255, 255, 255, 0.75); margin: 0; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li::before { content: '✓'; color: #8ef0b4; font-weight: 800; }
.price .fine { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* Preguntas */
details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--violet); font-weight: 800; font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Pie */
footer { background: var(--deep); color: rgba(255, 255, 255, 0.75); padding: 48px 0 32px; margin-top: 40px; }
footer .wrap { display: grid; gap: 24px; }
footer img { height: 22px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--white); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer small { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* Páginas legales */
.legal { padding: 40px 0 24px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 6vw, 44px); margin: 0 0 8px; }
.legal h2 { font-size: 24px; margin: 36px 0 8px; }
.legal h3 { font-size: 18px; margin: 20px 0 4px; }
.legal p, .legal li { color: #34314a; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 15px; }
.legal .box { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 20px 0; }
.legal ol { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

@media (min-width: 760px) {
  .hero { padding: 80px 0 56px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .price { grid-template-columns: 1fr 1fr; padding: 56px; align-items: center; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
