/* =========================================================
   ZENTREN LAW — Hoja de estilos principal
   Paleta monocromática · Playfair Display + Inter
   ========================================================= */

:root {
  --black: #0a1019;
  --dark: #0d1520;
  --surface: #121b27;
  --surface-2: #17212f;
  --line: #223044;
  --line-strong: #33445b;
  --ink: #ffffff;
  --text: #d5dbe3;
  --muted: #a6b0bd;
  --subtle: #8c97a6;
  --cta: #e4e8ee;
  --cta-hover: #ffffff;
  --cta-ink: #0a1019;
  --ok: #7fd1a3;
  --error: #f08b8b;
  --wa: #25d366;

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 80px;
  --container: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: #555; color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; margin: 0; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; }
button { font: inherit; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 1040px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: #000; padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--cta); color: var(--cta-ink); }
.btn--primary:hover { background: var(--cta-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #6b6b6b; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(8,13,21,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, height .3s;
}
.header.is-scrolled { background: rgba(8,13,21,.94); border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand__mark { width: 34px; height: 32px; color: #c9d0da; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .12em; }
.brand__sub { font-family: var(--display); font-size: 10px; letter-spacing: .32em; color: var(--muted); margin-top: 5px; }
.hero__mark { display: block; width: 84px; height: 78px; color: #c9d0da; margin: 0 auto 28px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  position: relative; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: 6px 0; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; color: #fff; cursor: pointer; margin-right: -10px;
}
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    background: #090e16; padding: 16px 24px 40px;
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-size: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 28px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .wa-float, body.menu-open .to-top { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background-color: #0d1520;
  background-image:
    linear-gradient(180deg, rgba(8,13,21,.80) 0%, rgba(8,13,21,.84) 60%, rgba(10,16,25,1) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop");
  background-size: cover; background-position: center; background-attachment: fixed;
}
@media (hover: none), (max-width: 1023px) { .hero { background-attachment: scroll; } }
.hero__inner { max-width: 920px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; line-height: 1.12; margin-bottom: 24px; }
.hero h1 em { font-style: italic; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 300; color: var(--text); max-width: 640px; margin: 0 auto 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 64px; }
.scroll-cue {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid #6b6b6b; border-radius: 50%; color: var(--text);
  transition: background .3s, color .3s; animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue:hover { background: #fff; color: #000; }
.scroll-cue svg { width: 20px; height: 20px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Cifras ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--black); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 40px 16px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); line-height: 1; }
.stat__label { margin-top: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 767px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Secciones ---------- */
.section { padding: 112px 0; }
.section--dark { background: var(--surface); }
.section--black { background: var(--black); }
.section__head { text-align: center; margin-bottom: 64px; }
.section__head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.section__head p { color: var(--muted); max-width: 620px; margin: 20px auto 0; font-weight: 300; }
.rule { width: 64px; height: 1px; background: #6a7c93; margin: 24px auto 0; }
@media (max-width: 767px) { .section { padding: 80px 0; } .section__head { margin-bottom: 48px; } }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card {
  background: var(--surface); border: 1px solid var(--line); padding: 48px 44px; border-radius: var(--radius);
}
.card h3 { font-size: 1.25rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.card p { color: var(--muted); font-weight: 300; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.value { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.value h4 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 500; }
.value p { color: var(--muted); font-size: 15px; font-weight: 300; }
@media (max-width: 767px) {
  .about-grid, .values { grid-template-columns: 1fr; }
  .card { padding: 36px 28px; }
}

/* ---------- Equipo ---------- */
.member { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; margin-bottom: 96px; }
.member:last-child { margin-bottom: 0; }
.member--reverse { grid-template-columns: 1fr 340px; }
.member--reverse .member__photo { order: 2; }
.member__photo {
  position: relative; aspect-ratio: 3 / 4; background: var(--black); border: 1px solid var(--line-strong);
  overflow: hidden; border-radius: var(--radius);
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(1);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.member__photo:hover img { filter: grayscale(0); transform: scale(1.02); }
.member__initials {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  background: linear-gradient(160deg, #1a2533, #0b111a);
  font-family: var(--serif); font-size: 64px; color: #e5e5e5; letter-spacing: .06em;
}
.member__initials small { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; color: var(--subtle); text-transform: uppercase; }
.member__photo.no-photo img { display: none; }
.member__photo.no-photo .member__initials { display: flex; }

.member__name { font-size: 1.75rem; margin-bottom: 6px; font-weight: 500; }
.member__role { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); margin-bottom: 20px; line-height: 1.7; }
.member__bio { color: var(--muted); font-weight: 300; margin-bottom: 28px; }
.member__quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  font-size: 13px; color: var(--text); text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color .2s, color .2s, background .2s;
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.04); }

@media (max-width: 899px) {
  .member, .member--reverse { grid-template-columns: 1fr; gap: 32px; margin-bottom: 72px; }
  .member--reverse .member__photo { order: 0; }
  .member__photo { max-width: 360px; }
}

/* ---------- Acordeón ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; background: none; border: 0; color: var(--text); cursor: pointer; text-align: left;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: color .2s;
}
.acc-btn:hover { color: #fff; }
.acc-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor;
  transform: translateY(-50%); transition: transform .3s var(--ease);
}
.acc-icon::after { transform: translateY(-50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] { color: #fff; }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: translateY(-50%) rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-body { padding: 0 0 22px; color: var(--muted); font-size: 15px; font-weight: 300; }
.acc-body ul { padding-left: 18px; }
.acc-body li { margin-bottom: 8px; }
.acc-body a { color: var(--text); text-underline-offset: 3px; }
.acc-body a:hover { color: #fff; }

/* ---------- Áreas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  padding: 40px 36px; border-radius: var(--radius); transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.area:hover { border-color: #56687f; transform: translateY(-4px); background: #152030; }
.area__icon { width: 44px; height: 44px; color: #e5e5e5; margin-bottom: 26px; }
.area h3 { font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.area p { color: var(--muted); font-size: 15px; font-weight: 300; flex: 1; }
.area__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; align-self: flex-start;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  border-bottom: 1px solid #555; transition: color .2s, border-color .2s, gap .2s;
}
.area__link:hover { color: #fff; border-color: #fff; gap: 12px; }
.area__link svg { width: 14px; height: 14px; }
@media (max-width: 1023px) { .areas-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .areas-grid { grid-template-columns: 1fr; } .area { padding: 32px 26px; } }

/* ---------- Banda CTA (agendar) ---------- */
.cta-band { background: #e9ecf1; color: #0a1019; padding: 88px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #0a1019; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 500; max-width: 620px; }
.cta-band p { color: #3b4655; margin-top: 14px; max-width: 560px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn--primary { background: #0f1a29; color: #fff; }
.cta-band .btn--primary:hover { background: #22324a; }
.cta-band .btn--ghost { color: #0f1a29; border-color: #0f1a29; }
.cta-band .btn--ghost:hover { background: rgba(0,0,0,.06); }

/* ---------- Contacto ---------- */
.contact-head { margin-bottom: 56px; }
.contact-head .eyebrow { margin-bottom: 10px; }
.contact-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; }
.contact-grid h3 { font-size: 1.6rem; font-weight: 500; margin-bottom: 28px; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; gap: 64px; } }

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 599px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field label .req { color: var(--subtle); font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--black); color: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 13px 16px; font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #bdbdbd; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { display: none; color: var(--error); font-size: 13px; margin-top: 6px; }
.field.has-error .field__error { display: block; }
.field__meta { display: flex; justify-content: space-between; gap: 12px; }
.counter { font-size: 12px; color: var(--subtle); margin-top: 6px; white-space: nowrap; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: #e5e5e5; flex-shrink: 0; cursor: pointer; }
.check a { color: var(--text); text-underline-offset: 3px; }
.check a:hover { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.25); border-top-color: #000; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: none; padding: 16px 18px; border: 1px solid; border-radius: var(--radius); font-size: 14.5px; }
.alert.is-visible { display: block; }
.alert--ok { color: var(--ok); border-color: rgba(127,209,163,.4); background: rgba(127,209,163,.06); }
.alert--error { color: var(--error); border-color: rgba(240,139,139,.4); background: rgba(240,139,139,.06); }

.info-list { list-style: none; padding: 0; display: grid; gap: 22px; margin-bottom: 36px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); font-weight: 300; }
.info-list svg { width: 20px; height: 20px; color: var(--subtle); margin-top: 3px; flex-shrink: 0; }
.info-list strong { display: block; color: var(--ink); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.info-list a { color: var(--text); text-decoration: none; }
.info-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.map { position: relative; border: 1px solid var(--line); background: var(--black); aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.map__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { background: #070b12; border-top: 1px solid #1a2433; padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #1a2433; }
.footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer p, .footer li { font-size: 14px; color: var(--muted); font-weight: 300; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--muted); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .brand { display: inline-block; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.socials a:hover { border-color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: var(--subtle); letter-spacing: .04em; }
@media (max-width: 899px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Botones flotantes ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.45); text-decoration: none; transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float__tip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: #fff; color: #111; font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 8px 12px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: translateY(-50%); }
@media (hover: none) { .wa-float__tip { display: none; } }

.to-top {
  position: fixed; right: 30px; bottom: 94px; z-index: 89; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(18,27,39,.92); border: 1px solid var(--line-strong); color: #fff; border-radius: 50%; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Página legal ---------- */
.legal { padding: calc(var(--header-h) + 72px) 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; margin-bottom: 12px; }
.legal .updated { color: var(--subtle); font-size: 14px; margin-bottom: 48px; }
.legal h2 { font-size: 1.3rem; font-weight: 500; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--muted); font-weight: 300; margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--text); text-underline-offset: 3px; }
.pending { background: rgba(255, 214, 102, .14); color: #ffd666; padding: 1px 6px; border-radius: 2px; font-weight: 500; }


/* ---- Texto justificado (párrafos y listas de lectura) ---- */
p, .acc-body li, .info-list li div {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
/* Se mantienen centrados los textos que lo son por diseño */
.hero p, .hero__lead, .section__head p, .stat p { text-align: center; hyphens: manual; -webkit-hyphens: manual; }


/* ---- Aviso de consentimiento del formulario y enlace del pie ---- */
.form__consent { font-size: 13px; color: var(--subtle); text-align: left; hyphens: manual; -webkit-hyphens: manual; margin: 4px 0 18px; }
.form__consent a { color: var(--text); text-underline-offset: 3px; }
.footer__bottom { flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom a { color: var(--subtle); text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--text); }
