/* Estilos de las páginas legales. Son HTML estático servido tal cual desde
   public/ (no pasan por React ni Tailwind): URLs reales e indexables, cero JS
   y sin cargar el bundle ni los vídeos de la landing. */
@font-face { font-family: "LT Wave"; src: url("/fonts/ltwave/LTWave-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LT Wave"; src: url("/fonts/ltwave/LTWave-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "LT Wave Text"; src: url("/fonts/ltwave/LTWaveText-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LT Wave Text"; src: url("/fonts/ltwave/LTWaveText-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: hsl(260 87% 3%);
  --ink: hsl(40 6% 95%);
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "LT Wave Text", "LT Wave", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: #fff; color: #000; }

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); transition: text-decoration-color .3s; }
a:hover { text-decoration-color: #fff; }

/* ── cabecera ── */
.top { border-bottom: 1px solid var(--line); }
.top-in {
  max-width: 860px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.top a { text-decoration: none; }
.top img { display: block; width: auto; height: 23px; }
.back { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.back:hover { color: #fff; }

/* ── documento ── */
main { max-width: 860px; margin: 0 auto; padding: 64px 24px 88px; }

.eyebrow {
  font-family: "LT Wave", sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 18px;
}
h1 {
  font-family: "LT Wave", sans-serif;
  font-weight: 400; font-size: clamp(34px, 6vw, 52px); line-height: 1.05;
  letter-spacing: -0.024em; margin: 0 0 14px;
}
.updated { color: var(--faint); font-size: 13px; margin: 0 0 52px; }

h2 {
  font-family: "LT Wave", sans-serif;
  font-weight: 500; font-size: 21px; line-height: 1.3; letter-spacing: -0.02em;
  margin: 52px 0 14px; padding-top: 26px; border-top: 1px solid var(--line);
}
h3 { font-family: "LT Wave", sans-serif; font-weight: 500; font-size: 16px; margin: 28px 0 8px; }
p, li { color: var(--muted); }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 7px; }
li::marker { color: var(--faint); }
strong { color: var(--ink); font-weight: 500; }

/* ── tabla de tratamientos ── */
.tw { overflow-x: auto; margin: 0 0 18px; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
th { font-family: "LT Wave", sans-serif; font-weight: 500; color: var(--ink); border-bottom-color: rgba(255,255,255,0.2); white-space: nowrap; }
/* Movil (2026-09-25): en vez de una tabla que se desplaza de lado (casi nadie se da cuenta),
   cada fila es un bloque y cada dato lleva delante el nombre de su columna (data-et). */
@media (max-width: 640px) {
  .tw { overflow: visible; }
  table { min-width: 0; }
  table thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  td { padding: 0; border: 0; margin: 0 0 10px; }
  td:last-child { margin-bottom: 0; }
  td:first-child { color: var(--ink); }
  td[data-et]::before {
    content: attr(data-et); display: block; margin-bottom: 2px;
    font-family: "LT Wave", sans-serif; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
  }
}

/* ── aviso de dato pendiente (no debe llegar a producción) ── */
.todo { color: #fcd34d; font-weight: 500; }

/* ── pie ── */
footer { border-top: 1px solid var(--line); }
.foot {
  max-width: 860px; margin: 0 auto; padding: 26px 24px 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  font-size: 13px; color: var(--faint);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .sep { flex: 1 1 auto; }

/* ── botón flotante de WhatsApp (el mismo que la portada: src/components/WhatsAppBoton.tsx) ── */
.whatsapp {
  position: fixed; z-index: 40; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform .3s, background-color .3s;
}
.whatsapp:hover { background: #1ebe5b; transform: scale(1.05); }
.whatsapp:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.whatsapp svg { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) { .whatsapp { transition: none; } .whatsapp:hover { transform: none; } }
