/* ==========================================================================
   Lúzuriaga & Artieda — Asociados
   Hoja de estilos principal (sin dependencias externas)
   --------------------------------------------------------------------------
   Índice
   01. Fuentes
   02. Tokens de diseño (tema claro / oscuro)
   03. Reset y base
   04. Utilidades
   05. Header y navegación
   06. Hero
   07. Barra de valor
   08. Áreas de práctica
   09. Proceso
   10. Estudio
   11. Cita
   12. Preguntas frecuentes
   13. Accesibilidad (compromiso)
   14. Contacto
   15. Mapa
   16. Footer
   17. Acciones flotantes
   18. Panel de accesibilidad
   19. Preferencias de accesibilidad aplicadas
   20. Movimiento y reveal
   21. Impresión
   ========================================================================== */

/* 01. Fuentes ------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* 02. Tokens -------------------------------------------------------------- */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Tema oscuro (por defecto) */
  --bg: #08090d;
  --bg-deep: #05060a;
  --surface: #101219;
  --surface-2: #171a24;
  --surface-3: #1e222e;
  --text: #f4f2ec;
  --text-soft: #c9c8c2;
  --muted: #a2a4ae;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);

  --gold: #d4af37;
  --gold-soft: #e8c766;
  --gold-deep: #a8871f;
  --gold-ink: #0a0a0a;
  --gold-a10: rgba(212, 175, 55, 0.10);
  --gold-a20: rgba(212, 175, 55, 0.20);
  --gold-a35: rgba(212, 175, 55, 0.35);

  --focus: #ffd75e;
  --success: #3fbf7f;
  --danger: #ff7a7a;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.85);

  --radius: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --container: 1200px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

/* Tema claro */
html[data-theme="light"] {
  --bg: #f7f4ed;
  --bg-deep: #efeae0;
  --surface: #fffdf8;
  --surface-2: #f3efe6;
  --surface-3: #eae5d9;
  --text: #14151a;
  --text-soft: #33353d;
  --muted: #565863;
  --line: rgba(20, 21, 26, 0.13);
  --line-strong: rgba(20, 21, 26, 0.26);

  --gold: #a8862a;
  --gold-soft: #7d6215;
  --gold-deep: #6b530f;
  --gold-ink: #14151a;
  --gold-a10: rgba(168, 134, 42, 0.12);
  --gold-a20: rgba(168, 134, 42, 0.22);
  --gold-a35: rgba(168, 134, 42, 0.38);

  --focus: #0b57d0;
  --success: #1c7a4a;
  --danger: #b3261e;

  --shadow-sm: 0 1px 3px rgba(20, 21, 26, 0.08);
  --shadow-md: 0 18px 40px -22px rgba(20, 21, 26, 0.35);
  --shadow-lg: 0 40px 90px -50px rgba(20, 21, 26, 0.45);

  color-scheme: light;
}

/* 03. Reset y base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img,
svg,
video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

strong { color: var(--text); font-weight: 600; }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: #0a0a0a; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* 04. Utilidades ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -200%);
  z-index: 2000;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: #0a0a0a;
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.section {
  padding-block: clamp(3.75rem, 8vw, 7rem);
  position: relative;
}
.section--dark { background: var(--bg-deep); }
.section--surface { background: var(--surface); }
.section--surface-2 { background: var(--surface-2); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.rule {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft));
  border: 0;
  margin: 1.4rem 0 0;
}
.section-head--center .rule { margin-inline: auto; }

.gold-text {
  background: linear-gradient(120deg, var(--gold-deep) 0%, var(--gold) 35%, var(--gold-soft) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html[data-theme="light"] .gold-text {
  background: linear-gradient(120deg, #6b530f, #8f6f18 55%, #6b530f);
  -webkit-background-clip: text;
  background-clip: text;
}

/* 05. Header -------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.9);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}
.brand__name .amp { color: var(--gold); }
.brand__sub {
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative;
  padding: 0.55rem 0.7rem;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.28rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="true"] { color: var(--text); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 0.45rem; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.icon-btn:hover {
  color: var(--gold);
  border-color: var(--gold-a35);
  background: var(--gold-a10);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--a11y { border-color: var(--gold-a35); color: var(--gold); }

/* Botones */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: #0a0a0a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

.btn--primary {
  background: linear-gradient(135deg, #c9a334 0%, #f0d071 48%, #c9a334 100%);
  color: #0a0a0a;
  box-shadow: 0 10px 30px -14px rgba(212, 175, 55, 0.7);
}
.btn--primary:hover { box-shadow: 0 16px 40px -14px rgba(212, 175, 55, 0.85); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); background: var(--gold-a10); }

.btn--wa {
  background: #1f9d55;
  color: #fff;
}
.btn--wa:hover { background: #178a49; color: #fff; }

.btn--sm { min-height: 44px; padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* Menú móvil */
.nav-toggle { display: none; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 890;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem 1.5rem;
  display: none;
}
.mobile-nav.is-open { display: block; animation: slideDown 0.22s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mobile-nav__list { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 1rem; }
.mobile-nav__list a {
  display: block;
  padding: 0.85rem 0.75rem;
  min-height: 48px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__list a:hover { background: var(--gold-a10); color: var(--gold-soft); }
.mobile-nav__cta { display: grid; gap: 0.6rem; }

/* 06. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(212, 175, 55, 0.16), transparent 62%),
    radial-gradient(900px 520px at 6% 92%, rgba(212, 175, 55, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
html[data-theme="light"] .hero__bg {
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(168, 134, 42, 0.18), transparent 62%),
    radial-gradient(900px 520px at 6% 92%, rgba(168, 134, 42, 0.09), transparent 60%),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 10%, transparent 75%);
  opacity: 0.55;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}

.hero__content { max-width: 640px; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .line { display: block; }
.hero__lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 1.6rem;
}
.hero__quote {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--gold-soft);
}

.hero__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.9rem;
}
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.hero__chips svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero__note svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

/* Arte del hero */
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero__art-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-a20) 0%, transparent 68%);
  filter: blur(18px);
}
/* Marco en arco con la fotografía del Palacio de Justicia */
.hero__frame {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  border: 1px solid var(--gold-a35);
  background: var(--surface-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}
.hero__frame picture { display: block; width: 100%; height: 100%; }
.hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 6, 10, 0.92) 0%, rgba(5, 6, 10, 0.4) 20%, transparent 46%),
    radial-gradient(130% 85% at 50% 0%, rgba(212, 175, 55, 0.16), transparent 62%);
}
html[data-theme="light"] .hero__frame {
  box-shadow: 0 34px 70px -34px rgba(20, 21, 26, 0.55), 0 0 0 1px rgba(20, 21, 26, 0.06);
}
html[data-theme="light"] .hero__frame::after {
  background:
    linear-gradient(to top, rgba(239, 234, 224, 0.9) 0%, rgba(239, 234, 224, 0.35) 18%, transparent 44%),
    radial-gradient(130% 85% at 50% 0%, rgba(168, 134, 42, 0.14), transparent 62%);
}

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--text);
  max-width: 220px;
}
.hero__badge strong { display: block; font-size: 0.86rem; }
.hero__badge span { color: var(--muted); }
.hero__badge--a { top: 6%; left: -2%; }
.hero__badge--b { bottom: 8%; right: -2%; }
.hero__badge .dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-a10);
  border: 1px solid var(--gold-a35);
  color: var(--gold);
  flex-shrink: 0;
}
.hero__badge .dot svg { width: 17px; height: 17px; }

.hero__scroll {
  position: absolute;
  min-height: 44px;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.hero__scroll svg { width: 18px; height: 18px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* 07. Barra de valor ------------------------------------------------------ */
.value-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.value-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.value-bar__item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
}
.value-bar__item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.value-bar__item strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.value-bar__item span { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

/* 08. Áreas --------------------------------------------------------------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.area-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.area-card:hover,
.area-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold-a35);
  box-shadow: var(--shadow-md);
}
.area-card:hover::before,
.area-card:focus-within::before { transform: scaleX(1); }

.area-card__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-a10);
  border: 1px solid var(--gold-a20);
  color: var(--gold);
  margin-bottom: 1.15rem;
}
.area-card__icon svg { width: 24px; height: 24px; }
.area-card h3 { margin-bottom: 0.5rem; font-size: 1.22rem; }
.area-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.area-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}
.area-card__tags li {
  font-size: 0.72rem;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}
.area-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  padding-block: 0.3rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-soft);
  text-decoration: none;
}
.area-card__link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.area-card__link:hover svg { transform: translateX(3px); }

.area-card--cta {
  background:
    linear-gradient(160deg, var(--gold-a10), transparent 55%),
    var(--surface);
  border-color: var(--gold-a35);
  justify-content: center;
  text-align: center;
  align-items: center;
}
.area-card--cta h3 { color: var(--gold-soft); }
.area-card--cta p { color: var(--text-soft); }

/* 09. Proceso ------------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.step__num {
  counter-increment: step;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.9rem;
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* 10. Estudio ------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__art {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 400px at 30% 20%, var(--gold-a10), transparent 70%),
    var(--surface);
  padding: 1.2rem;
}
.about__art picture { display: block; }
html[data-theme="dark"] .about__art img { filter: brightness(0.93) saturate(0.96); }
.about__art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 50%;
}
.about__art::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--gold-a20);
  border-radius: 3px;
  pointer-events: none;
}
.about__body p { color: var(--text-soft); }
.about__body .muted { color: var(--muted); font-size: 0.94rem; }

.founder {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.founder__mono {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid var(--gold-a35);
  background: var(--gold-a10);
  flex-shrink: 0;
}
.founder__name { font-weight: 600; color: var(--text); font-size: 0.98rem; }
.founder__role { font-size: 0.8rem; color: var(--gold-soft); }

.about__list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 1.4rem 0 0;
}
.about__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.about__list svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }

/* 11. Cita ---------------------------------------------------------------- */
.quote-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(700px 380px at 50% 0%, var(--gold-a10), transparent 70%),
    var(--bg-deep);
  border-block: 1px solid var(--line);
}
.quote-section__mark { width: 44px; height: 44px; color: var(--gold); opacity: 0.55; margin: 0 auto 1.4rem; }
.quote-section blockquote {
  margin: 0 auto;
  max-width: 20ch;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  line-height: 1.18;
  font-weight: 600;
}
.quote-section p {
  max-width: 58ch;
  margin: 1.6rem auto 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* 12. FAQ ----------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq__list { display: grid; gap: 0.65rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item[open] { border-color: var(--gold-a35); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  min-height: 56px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-soft); }
.faq__item summary .chev {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary .chev { transform: rotate(180deg); }
.faq__answer { padding: 0 1.25rem 1.25rem; color: var(--muted); font-size: 0.92rem; }
.faq__answer p { margin-bottom: 0.7rem; }
.faq__answer p:last-child { margin-bottom: 0; }

.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.faq__aside h3 { font-size: 1.15rem; }
.faq__aside p { color: var(--muted); font-size: 0.9rem; }
.faq__aside .btn { margin-top: 1rem; }

/* 13. Accesibilidad ------------------------------------------------------- */
.a11y-section {
  background:
    radial-gradient(800px 420px at 15% 10%, var(--gold-a10), transparent 65%),
    var(--surface);
  border-block: 1px solid var(--line);
}
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.a11y-feature {
  padding: 1.5rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.a11y-feature svg { width: 24px; height: 24px; color: var(--gold); margin-bottom: 0.85rem; }
.a11y-feature h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.a11y-feature p { font-size: 0.86rem; color: var(--muted); margin: 0; }
.a11y-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-soft);
  background: var(--gold-a10);
  border: 1px solid var(--gold-a35);
  border-radius: 999px;
}

/* 14. Contacto ------------------------------------------------------------ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__info p { color: var(--muted); }

.contact-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin-top: 1.8rem;
}
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .ico {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--gold);
}
.contact-list .ico svg { width: 19px; height: 19px; }
.contact-list strong { display: block; font-size: 0.86rem; color: var(--text); }
.contact-list a,
.contact-list span {
  display: inline-block;
  padding-block: 0.22rem;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
}
.contact-list a:hover { color: var(--gold-soft); text-decoration: underline; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.form-card > p { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.5rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}
.field label .req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 0.95rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-a20);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }

.field__error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--danger);
}
.field__error.is-visible { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.check input {
  width: 20px; height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
}
.check a { color: var(--gold-soft); }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.86rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.form-status.is-visible { display: block; }
.form-status--ok { border-color: var(--success); color: var(--success); }
.form-status--error { border-color: var(--danger); color: var(--danger); }

.form-alt {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* 15. Mapa ---------------------------------------------------------------- */
.map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  border-top: 1px solid var(--line);
}
.map__frame { position: relative; min-height: 380px; background: var(--surface-2); }
.map__frame iframe { position: relative; z-index: 1; width: 100%; height: 100%; min-height: inherit; border: 0; display: block; }
.map__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--muted);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--surface-2);
}
.map__placeholder svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 0.35rem; }
.map__placeholder span { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-soft); }
.map__placeholder small { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.map__info {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
}
.map__info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.map__info p { color: var(--muted); }
.map__meta { list-style: none; display: grid; gap: 0.75rem; margin: 1.4rem 0 1.6rem; }
.map__meta li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-soft); }
.map__meta svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.map__note { font-size: 0.78rem; color: var(--muted); margin-top: 1rem; }

/* 16. Footer -------------------------------------------------------------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-block: 3.2rem 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__brand p { color: var(--muted); font-size: 0.88rem; max-width: 36ch; margin-top: 1rem; }
.footer h3,
.footer__title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer a { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer address { font-style: normal; color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

.footer__credits {
  margin-bottom: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.footer__credits p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--muted);
}
.footer__credits a { font-size: inherit; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.footer__bottom a { font-size: 0.78rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; }

/* 17. Acciones flotantes -------------------------------------------------- */
.wa-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 940;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  color: #062e16;
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, 0.8);
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.wa-fab:hover { transform: scale(1.06); color: #062e16; box-shadow: 0 18px 40px -12px rgba(37, 211, 102, 0.95); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
.wa-fab__label {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.wa-fab:hover .wa-fab__label,
.wa-fab:focus-visible .wa-fab__label { opacity: 1; transform: none; }

.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 930;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-bar a svg { width: 18px; height: 18px; }
.mobile-bar a:first-child { color: var(--gold-soft); }
.mobile-bar a:last-child { background: #1f9d55; color: #fff; }

/* Iconos de tema: se muestra solo el del tema activo */
/* En oscuro se ofrece el sol (pasar a claro) y en claro la luna (pasar a oscuro) */
html[data-theme="dark"] .ico-moon { display: none; }
html[data-theme="light"] .ico-sun { display: none; }

/* Enlace/botón inline dentro de un párrafo */
.a11y-inline {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.a11y-inline:hover { color: var(--gold); }

/* Teclas de atajo */
.kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.4;
  padding: 0.08rem 0.35rem;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}
.a11y-sub li { font-size: 0.74rem; color: var(--muted); line-height: 1.6; }

/* Bloque que se está leyendo en voz alta */
.is-reading {
  outline: 3px solid var(--gold) !important;
  outline-offset: 6px;
  border-radius: 3px;
  background: var(--gold-a10);
  transition: outline-color 0.2s, background 0.2s;
}

/* 18. Panel de accesibilidad ---------------------------------------------- */
.a11y-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(90px + env(safe-area-inset-bottom));
  z-index: 950;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--gold);
  border: 2px solid var(--gold-a35);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.24s var(--ease), background 0.2s, border-color 0.2s;
}
.a11y-fab:hover { transform: translateY(-3px); border-color: var(--gold); background: var(--gold-a10); }
.a11y-fab svg { width: 26px; height: 26px; }
.a11y-fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: a11yHint 6s ease-out infinite;
  pointer-events: none;
}
@keyframes a11yHint {
  0%, 88% { opacity: 0; transform: scale(1); }
  90% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

.a11y-panel {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(150px + env(safe-area-inset-bottom));
  z-index: 960;
  width: min(400px, calc(100vw - 24px));
  max-height: min(calc(100dvh - 170px), 700px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--gold-a35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
}
.a11y-panel.is-open { display: block; animation: a11yIn 0.16s var(--ease); }
@keyframes a11yIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

.a11y-panel__head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.a11y-panel__head h2 {
  flex: 1;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.a11y-panel__head .ico { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.a11y-panel__head button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}
.a11y-panel__head button:hover { background: var(--gold-a10); color: var(--gold); }
.a11y-panel__head button svg { width: 17px; height: 17px; }

.a11y-panel__body { padding: 0.75rem; }

.a11y-group {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.7rem;
  margin-bottom: 0.6rem;
}
.a11y-group h3 {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem 0.15rem;
  font-weight: 700;
}
.a11y-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }

.a11y-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.5rem 0.6rem;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.a11y-btn:hover { border-color: var(--gold); }
.a11y-btn .ico {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--gold);
  flex-shrink: 0;
}
.a11y-btn .ico svg { width: 16px; height: 16px; }
.a11y-btn[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
}
.a11y-btn[aria-pressed="true"] .ico { background: rgba(0, 0, 0, 0.16); color: #0a0a0a; }

.a11y-sub {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  display: none;
}
.a11y-sub.is-open { display: block; }
.a11y-sub ol {
  list-style: none;
  display: grid;
  gap: 0.2rem;
  max-height: 180px;
  overflow: auto;
}
.a11y-sub a {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-decoration: none;
  border-left: 2px solid var(--line);
  border-radius: 0 4px 4px 0;
}
.a11y-sub a:hover { border-left-color: var(--gold); background: var(--gold-a10); color: var(--gold-soft); }
.a11y-sub .lv2 { padding-left: 1.1rem; }
.a11y-sub .lv3 { padding-left: 1.7rem; }

.a11y-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.a11y-seg button {
  min-height: 40px;
  padding: 0.35rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.a11y-seg button svg { width: 15px; height: 15px; }
.a11y-seg button[aria-pressed="true"] {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}

.a11y-note {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  padding: 0.2rem 0.4rem 0.35rem;
  line-height: 1.45;
}
.a11y-note a { color: var(--gold-soft); }

/* Máscara / guía de lectura */
.reading-guide {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  z-index: 880;
  pointer-events: none;
  display: none;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6);
  will-change: transform;
}
html.a11y-guide .reading-guide { display: block; }

/* 19. Preferencias aplicadas ---------------------------------------------- */
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 137.5%; }

html.a11y-line p,
html.a11y-line li,
html.a11y-line .area-card p,
html.a11y-line .faq__answer,
html.a11y-line .step p,
html.a11y-line .contact-list span,
html.a11y-line .contact-list a,
html.a11y-line .footer a { line-height: 2 !important; }

html.a11y-left p,
html.a11y-left li,
html.a11y-left h1,
html.a11y-left h2,
html.a11y-left h3,
html.a11y-left .hero__lead,
html.a11y-left .section-head { text-align: left !important; }
html.a11y-left .section-head--center { margin-inline: 0; }
html.a11y-left .section-head--center .rule { margin-inline: 0; }
html.a11y-left .area-card--cta { align-items: flex-start; text-align: left; }
html.a11y-left .quote-section,
html.a11y-left .quote-section blockquote,
html.a11y-left .quote-section p { text-align: left !important; }
html.a11y-left .quote-section__mark { margin-inline: 0; }

html.a11y-legible body,
html.a11y-legible button,
html.a11y-legible input,
html.a11y-legible select,
html.a11y-legible textarea,
html.a11y-legible h1,
html.a11y-legible h2,
html.a11y-legible h3,
html.a11y-legible h4,
html.a11y-legible .btn {
  font-family: Verdana, Tahoma, "Segoe UI", sans-serif !important;
  letter-spacing: 0.012em;
}

html.a11y-spacing body { letter-spacing: 0.05em; word-spacing: 0.14em; }

html.a11y-gray #page { filter: grayscale(1); }
html.a11y-contrast #page { filter: contrast(1.28); }
html.a11y-contrast body { background: #000; }
html[data-theme="light"].a11y-contrast body { background: #fff; }

html.a11y-hideimg img,
html.a11y-hideimg picture,
html.a11y-hideimg .about__art,
html.a11y-hideimg .hero__art,
html.a11y-hideimg iframe { visibility: hidden !important; }

html.a11y-noanim *,
html.a11y-noanim *::before,
html.a11y-noanim *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-noanim .fade-in { opacity: 1 !important; transform: none !important; }

html.a11y-links a:not(.btn):not(.brand):not(.skip-link) {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background-color: var(--gold-a10);
  text-decoration: underline !important;
}

html.a11y-outline a:focus,
html.a11y-outline button:focus,
html.a11y-outline input:focus,
html.a11y-outline select:focus,
html.a11y-outline textarea:focus,
html.a11y-outline summary:focus {
  outline: 4px solid var(--focus) !important;
  outline-offset: 3px !important;
}

html.a11y-cursor,
html.a11y-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M6 4 L6 38 L15 29 L21 43 L28 40 L22 26 L35 26 Z' fill='%23f4f2ec' stroke='%23000' stroke-width='2.5'/></svg>") 6 4, auto !important;
}
html.a11y-cursor a,
html.a11y-cursor button,
html.a11y-cursor summary,
html.a11y-cursor label {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M14 4 L14 34 L22 27 L28 40 L34 37 L28 24 L40 24 Z' fill='%23d4af37' stroke='%23000' stroke-width='2.5'/></svg>") 14 4, pointer !important;
}

html.a11y-big-targets a,
html.a11y-big-targets button,
html.a11y-big-targets summary,
html.a11y-big-targets input,
html.a11y-big-targets select {
  min-height: 56px !important;
}

/* 20. Movimiento ---------------------------------------------------------- */
/* Solo se oculta si JS está activo: sin JS el contenido siempre es visible. */
html.js .fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .fade-in.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* 21. Impresión ----------------------------------------------------------- */
@media print {
  .header, .wa-fab, .a11y-fab, .a11y-panel, .mobile-bar, .hero__scroll, .reading-guide { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding-top: 1rem; }
  a { color: #000; }
  .section { padding-block: 1.5rem; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .brand__name { font-size: 0.95rem; }
}

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__content { max-width: 100%; }
  .hero__art { min-height: 340px; order: 2; }
  .hero__frame { width: min(100%, 360px); }
  .hero__badge--a { left: 0; }
  .hero__badge--b { right: 0; }
  .hero { min-height: auto; padding-bottom: 4rem; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .map { grid-template-columns: 1fr; }
  .map__frame { min-height: 320px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header__actions .btn--header-cta { display: none; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .a11y-grid { grid-template-columns: 1fr 1fr; }
  .value-bar__grid { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 56px; }
  .wa-fab { display: none; }
  /* En móvil el acceso a accesibilidad ya está en el encabezado: el botón
     flotante tapaba los botones de acción del hero. El panel se ancla
     debajo del encabezado, junto al botón que lo abre. */
  .a11y-fab { display: none; }
  .a11y-panel {
    top: calc(var(--header-h) + 8px);
    bottom: auto;
    max-height: calc(100dvh - var(--header-h) - 24px);
  }
}

@media (max-width: 620px) {
  :root { --header-h: 68px; }
  .brand__name { font-size: 0.9rem; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__sub { font-size: 0.5rem; letter-spacing: 0.26em; }
  .areas-grid { grid-template-columns: 1fr; }
  .a11y-grid { grid-template-columns: 1fr; }
  .value-bar__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__badge { display: none; }
  .hero__frame { width: min(100%, 310px); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .quote-section blockquote { max-width: 100%; }
  .a11y-panel { right: 8px; left: 8px; width: auto; }
  .a11y-fab { width: 48px; height: 48px; }
  .hero__chips li { font-size: 0.74rem; }
}

/* Entre 391 y 460px la marca y los tres botones del encabezado no entran
   con los tamaños de escritorio: se comprime el conjunto antes de recurrir
   a ocultar el nombre. */
@media (max-width: 460px) {
  .header__inner { gap: 0.5rem; }
  .header__actions { gap: 0.3rem; }
  .brand { gap: 0.5rem; }
  .brand__name { font-size: 0.78rem; letter-spacing: 0.02em; white-space: nowrap; }
  .brand__sub { letter-spacing: 0.2em; }
}

@media (max-width: 400px) {
  .icon-btn { width: 40px; height: 40px; }
}

@media (max-width: 390px) {
  .a11y-grid { grid-template-columns: 1fr; }
  .a11y-panel__grid { grid-template-columns: 1fr; }
  /* El nombre se mantiene visible en teléfonos de 360 px (Samsung A22,
     Galaxy S, etc.): se comprime todo el conjunto en lugar de ocultarlo. */
  .header__inner { gap: 0.25rem; }
  .header__actions { gap: 0.25rem; }
  .brand { gap: 0.4rem; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 0.72rem; letter-spacing: 0; }
  .brand__sub { font-size: 0.46rem; letter-spacing: 0.16em; }
}

@media (max-width: 350px) {
  .brand__text { display: none; }
}

/* ==========================================================================
   Páginas legales (privacidad, términos, 404)
   ========================================================================== */
.legal-header {
  position: static;
  height: auto;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.legal-header .header__inner { gap: 1rem; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
}
.legal-back svg { width: 16px; height: 16px; }
.legal-back:hover { color: var(--gold-soft); }

.legal-page {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 2rem) clamp(3rem, 7vw, 5rem);
}
.legal-page .eyebrow { margin-bottom: 0.7rem; }
.legal-page h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-bottom: 0.6rem; }
.legal-page .updated { color: var(--muted); font-size: 0.84rem; margin-bottom: 2.2rem; }
.legal-page h2 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.7rem;
}
.legal-page h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 1.4rem 0 0.4rem;
}
.legal-page p,
.legal-page li { color: var(--text-soft); font-size: 0.95rem; }
.legal-page ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.legal-page a { color: var(--gold-soft); }
.legal-page .box {
  margin: 1.6rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-soft);
}
.legal-page .box strong { color: var(--text); }

.legal-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.legal-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.legal-footer a { color: var(--muted); }
.legal-footer a:hover { color: var(--gold-soft); }

.notfound {
  min-height: 78svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}
.notfound__code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}
.notfound h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: 0.5rem; }
.notfound p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.notfound .btn { margin-top: 1.2rem; }
