/* Estilos compartidos de las páginas secundarias (contacto, legales, 404).
   Los tokens son los mismos que los de la home (index.html). */
:root {
  --ink: #0d1a3a;
  --ink-soft: #2a3960;
  --muted: #5a6b96;
  --primary: #0b4fc0;
  --primary-700: #0941a3;
  --navy: #06225c;
  --navy-900: #041845;
  --primary-soft: #dbe7ff;
  --tint: #f3f7ff;
  --line: rgba(11, 79, 192, 0.14);
  --line-on-blue: rgba(255, 255, 255, 0.22);
  --text-on-blue: rgba(255, 255, 255, 0.86);
  --shadow: 0 28px 70px -18px rgba(6, 34, 92, 0.32);
  --wa-green: #25d366;
  --wa-green-hover: #1fc35c;
  --radius-xl: 28px;
  --radius-md: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --blue-glow:
    radial-gradient(1100px 620px at 88% -12%, rgba(120, 170, 255, 0.28), transparent 62%),
    radial-gradient(900px 520px at -12% 112%, rgba(3, 24, 72, 0.42), transparent 62%);
}

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

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary-soft); color: var(--navy); }
.on-blue ::selection { background: #fff; color: var(--primary); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.on-blue :focus-visible, .footer :focus-visible { outline-color: #fff; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: "Sora", sans-serif; letter-spacing: -0.04em; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.on-blue { background: var(--blue-glow), var(--primary); color: #fff; }

/* ── BOTONES ── */
.btn, .btn-wa, .btn-light, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    background-color 200ms var(--ease-out);
}
.btn { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 79, 192, 0.6); }
.btn:hover { background: var(--primary-700); }
.btn-wa { background: var(--wa-green); color: var(--navy-900); box-shadow: 0 12px 26px -10px rgba(10, 120, 60, 0.55); }
.btn-wa:hover { background: var(--wa-green-hover); }
.btn-light { background: #fff; color: var(--primary); box-shadow: 0 12px 26px -12px rgba(3, 24, 72, 0.5); }
.btn-light:hover { background: var(--tint); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--line-on-blue); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.btn:active, .btn-wa:active, .btn-light:active, .btn-ghost:active { transform: scale(0.97); }

/* ── CABECERA ── */
.page-head { padding: 18px 0 64px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
}

.brand img { width: 112px; height: auto; display: block; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.page-title h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.02;
  font-weight: 800;
}

.page-title .lead {
  margin-top: 16px;
  color: var(--text-on-blue);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 58ch;
}

.updated {
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-on-blue);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ── TEXTO LEGAL ── */
.prose { padding: 56px 0 96px; }

.prose h2 {
  font-size: 1.32rem;
  line-height: 1.25;
  margin: 52px 0 14px;
}
.prose h2:first-child { margin-top: 0; }

.prose p, .prose li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.prose p + p { margin-top: 12px; }
.prose p + ul, .prose ul + p { margin-top: 12px; }

.prose ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.prose li { position: relative; padding-left: 22px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--primary);
}

.prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose ol li { padding-left: 4px; }
.prose ol li::before { content: none; }
.prose p + ol, .prose ol + p { margin-top: 12px; }

.prose strong { color: var(--ink); font-weight: 700; }

.prose a:not([class]) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(11, 79, 192, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
.prose a:not([class]):hover { text-decoration-color: currentColor; }

.highlight-box {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--line);
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--line);
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
th { font-family: "Sora", sans-serif; font-size: 0.85rem; color: var(--ink); background: var(--tint); }
code { font-size: 0.88em; background: var(--tint); color: var(--navy); padding: 2px 6px; border-radius: 6px; }

/* Botón "Configurar cookies" de la página de cookies */
.settings-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(11, 79, 192, 0.6);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.settings-btn:hover { background: var(--primary-700); }
.settings-btn:active { transform: scale(0.97); }

/* ── CONTACTO ── */
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 28px -16px rgba(6, 34, 92, 0.3);
  transition: box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.contact-item:hover { box-shadow: inset 0 0 0 1px rgba(11, 79, 192, 0.4), 0 16px 34px -16px rgba(6, 34, 92, 0.4); }
.contact-item:active { transform: scale(0.99); }

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
.contact-item-value { font-weight: 700; font-size: 1.02rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.contact-arrow { margin-left: auto; width: 20px; height: 20px; color: var(--primary); opacity: 0.5; transition: transform 200ms var(--ease-out), opacity 200ms ease; }
.contact-item:hover .contact-arrow { transform: translateX(3px); opacity: 1; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin-top: 8px;
}
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.facts dd { color: var(--ink); font-weight: 600; line-height: 1.55; }

.demo-band {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.demo-band h2 { font-size: 1.4rem; margin: 0 0 6px; color: #fff; }
.demo-band p { color: var(--text-on-blue); font-size: 0.95rem; line-height: 1.6; max-width: 44ch; }

/* ── FOOTER ── */
.footer { background: var(--navy-900); padding: 30px 0; }

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.85); font-weight: 600; transition: color 150ms ease; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ── 404 ── */
.notfound {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.notfound .topbar { margin-bottom: 0; padding: 18px 0; }
.notfound main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 96px;
}
.notfound .code {
  font-family: "Sora", sans-serif;
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #b9d2ff;
  margin-bottom: 16px;
}
.notfound h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.1; margin-bottom: 14px; }
.notfound p { color: var(--text-on-blue); line-height: 1.7; max-width: 46ch; margin-bottom: 32px; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .page-head { padding-bottom: 48px; }
  .topbar { margin-bottom: 40px; }
  .brand img { width: 92px; }
  .prose { padding: 40px 0 72px; }
  .contact-actions, .facts { grid-template-columns: 1fr; }
  .demo-band { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .topbar-actions .btn-wa { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.footer-trust { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 0.9rem; margin: 0; }
.footer-trust .icon { width: 18px; height: 18px; color: #25d366; flex: none; }
.footer-trust { flex-basis: 100%; order: 3; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.12); }
