/* Animal Gym · web pública. Móvil primero, sin dependencias. */
@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0d;
  --surface: #141418;
  --surface-2: #1c1c21;
  --line: #2c2c33;
  --text: #f4f1ec;
  --muted: #b5afa6;
  --red: #e11d2e;
  --red-text: #ff5563; /* rojo aclarado para texto pequeño: contraste ≥ 4.5:1 sobre el fondo */
  --red-deep: #b5121f;
  --focus: #f4f1ec;
  --radius: 14px;
  --gutter: 16px;
  --display: "Bebas Neue", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--red); color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
h1 { font-size: clamp(2.75rem, 11vw, 4.5rem); }
h2 { font-size: clamp(2rem, 7vw, 2.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (max-width: 380px) { .brand__name { font-size: 1.45rem; } .site-nav a { padding: 10px 8px; font-size: .9rem; } }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--text); color: var(--bg); padding: .6em 1em; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Datos pendientes en site.config.json */
mark.pendiente {
  background: #ffd400; color: #111; font-weight: 700; padding: .05em .35em; border-radius: 4px;
  font-family: var(--sans); font-size: .9em; letter-spacing: 0; text-transform: none;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ───────── Cabecera ───────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 13, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand__name { white-space: nowrap; font-family: var(--display); font-size: 1.75rem; letter-spacing: .04em; line-height: 1; padding-top: 3px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 10px 10px; border-radius: 999px; text-decoration: none;
  font-size: .95rem; font-weight: 600; color: var(--muted);
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--red); }

/* ───────── Portada ───────── */
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); margin-bottom: .75em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(225, 29, 46, .22), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(244, 241, 236, .025) 46px 50px);
}
.hero__grid { position: relative; display: grid; gap: 32px; align-items: center; }
.hero__title { font-size: clamp(4rem, 21vw, 9.5rem); line-height: .86; margin: 0 0 .25em; }
.hero__title span { display: block; }
.hero__title .accent { color: var(--red); }
.hero__note { font-size: .95rem; max-width: 46ch; margin-top: 1.25em; }
.hero__art { display: none; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: 1.3fr .7fr; }
  .hero__art { display: block; justify-self: center; }
  .hero__art img { width: min(320px, 100%); border-radius: 22%; box-shadow: 0 0 0 1px var(--line); filter: drop-shadow(0 30px 60px rgba(225, 29, 46, .35)); }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; min-height: 60px;
  padding: 8px 20px; border-radius: 12px; text-decoration: none;
  background: var(--text); color: var(--bg); border: 2px solid var(--text);
}
a.store:hover { background: var(--red); border-color: var(--red); color: #fff; }
.store__small { font-size: .75rem; font-weight: 600; line-height: 1.2; }
.store__big { font-family: var(--display); font-size: 1.6rem; line-height: 1; letter-spacing: .03em; }
.store--soon { background: transparent; color: var(--muted); border: 2px dashed var(--line); }

.section { padding: 56px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__title { margin-bottom: .8em; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: relative; overflow: hidden;
}
.feature::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); opacity: .9; }
.feature__num { font-family: var(--display); font-size: 2.25rem; line-height: 1; color: var(--red); display: block; margin-bottom: 8px; }
.feature__title { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; text-transform: uppercase; margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }

.steps { list-style: none; counter-reset: step; margin: 0 0 1.5em; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; position: relative; padding: 18px 18px 18px 72px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--red);
}

.facts { margin: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.facts dt { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }

/* ───────── Páginas interiores ───────── */
.page { padding-block: 40px 72px; }
.page-head { margin-bottom: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 768px) { .card { padding: 28px; } }
.card h2 { font-size: 2rem; }
.contact { margin-bottom: 40px; }
.contact .facts > div { background: var(--bg); }
.contact > p:last-child { margin: 1em 0 0; }

.faq { max-width: 72ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 2rem; color: var(--red); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 12px; color: var(--muted); }
.faq details > div strong { color: var(--text); }
.faq ul { padding-left: 1.2em; }
.faq li { margin-bottom: .4em; }

/* Texto legal: ancho de lectura cómodo */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.9rem, 6vw, 2.4rem); margin-top: 1.6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red-text); }
.prose .intro { font-size: 1.1rem; }

.legal-layout { padding-block: 40px 72px; display: grid; gap: 24px; }
.legal-head { max-width: 72ch; }
.legal-head h1 { margin-bottom: .2em; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.toc__title { font-size: 1.5rem; margin-bottom: .3em; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin: .25em 0; }
.toc li::marker { color: var(--red-text); font-variant-numeric: tabular-nums; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 72ch); column-gap: 56px; align-items: start; justify-content: center; }
  .legal-head { grid-column: 2; }
  .toc { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
  .legal-layout .prose { grid-column: 2; }
}

.purposes { margin: 0 0 1.25em; display: grid; gap: 10px; }
.purposes > div { border-left: 3px solid var(--red); background: var(--surface); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.purposes dt { font-weight: 700; }
.purposes dd { margin: .3em 0 0; color: var(--muted); }
.basis { color: var(--text); font-weight: 600; }

/* ───────── Eliminar cuenta ───────── */
.split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: start; } .split .form-card { position: sticky; top: 88px; } }
.split .prose h2 { margin-top: 1.2em; }
.split .prose h2:first-child { margin-top: 0; }
.form { display: grid; gap: 18px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input[type="email"], .field input[type="text"], .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid #4a4a54; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--red-text); }
.field__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.field__error { font-size: .9rem; color: var(--red-text); font-weight: 600; margin: 0; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); }
.field--check label { font-weight: 500; }
.field--check .field__error { grid-column: 1 / -1; }
.form__status:empty { display: none; }
.form__status { border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.form__status p { margin: 0; }
.form__status--ok { border: 1px solid #3fa66b; background: rgba(63, 166, 107, .12); }
.form__status--error { border: 1px solid var(--red-text); background: rgba(225, 29, 46, .12); }
.form__status:focus { outline: none; }
.form__status:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.notice { border: 1px solid var(--red-text); border-radius: 10px; padding: 12px 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid var(--text); background: var(--text); color: var(--bg);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--danger { background: var(--red); border-color: var(--red); color: #fff; width: 100%; }
.btn--danger:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--text); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ───────── 404 ───────── */
.notfound { text-align: left; padding-block: 64px 96px; }
.notfound__code { font-family: var(--display); font-size: clamp(7rem, 34vw, 14rem); line-height: .8; color: var(--red); margin: 0 0 .1em; }
.notfound__links { list-style: none; padding: 0; margin: 2em 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── Pie ───────── */
.site-footer { border-top: 1px solid var(--line); background: #08080a; padding-top: 40px; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.9rem; line-height: 1; margin-bottom: .4em; }
.site-footer__logo img { width: 48px; height: 48px; border-radius: 12px; }
.site-footer__title { font-size: 1.4rem; margin-bottom: .4em; color: var(--muted); }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin: 0; }
.site-footer__links a { display: inline-block; padding: 6px 0; }
.site-footer__links a[aria-current="page"] { color: var(--red-text); }
.site-footer__legal { margin-top: 32px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer__legal p { margin: 0 0 .3em; }
@media (min-width: 768px) { .site-footer__legal { display: flex; justify-content: space-between; gap: 24px; } }

@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
}
