/* =========================================================
   VALNERA LEGAL — Hoja de estilos global
   Editorial mediterráneo contemporáneo
   ========================================================= */

/* ---------- Fuentes locales ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-variable.woff2") format("woff2-variations"), url("../fonts/newsreader-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-variable-italic.woff2") format("woff2-variations"), url("../fonts/newsreader-variable-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2-variations"), url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --color-ivory: #F4F0E8;
  --color-ink: #17211F;
  --color-terracotta: #A9533B;
  --color-stone: #D7D0C4;
  --color-graphite: #4C504D;
  --color-white: #FFFFFF;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;

  --radius-min: 2px;
  --radius-max: 6px;

  --container-max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --header-h: 96px;
  --mobilebar-h: 64px;

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
input, select, textarea { font: inherit; }

/* ---------- Utilidades ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  display: inline-block;
  margin-bottom: 0.9em;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-ink);
  color: var(--color-ivory);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: var(--radius-max);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.rule {
  height: 1px;
  background: var(--color-graphite);
  opacity: 0.2;
  border: 0;
  margin: 0;
}
.section {
  padding-block: clamp(56px, 9vw, 120px);
}
.section--stone { background: var(--color-stone); }
.section--ink { background: var(--color-ink); color: var(--color-ivory); }
.section--ink h2 { color: var(--color-ivory); }
.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 52px);
  margin-inline: auto;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head .lede { margin-inline: auto; }

/* Centrado global de titulares principales (H1, H2, H3 visibles) dentro del contenido principal.
   Párrafos, listas, cuerpo de tarjetas, preguntas de FAQ (no son encabezados), textos legales,
   labels, navegación y footer quedan fuera de esta regla y conservan su alineación por defecto. */
main section h1,
main section h2,
main section h3 {
  text-align: center;
  text-wrap: balance;
}

/* Titulares partidos intencionalmente en dos frases: cada frase en su propia línea */
.title-line {
  display: block;
}

/* Composición de títulos en dos frases: más aire y ancho cuando el viewport lo permite */
.section-head--two-sentence {
  max-width: 980px;
}
.hero-copy--two-sentence {
  max-width: 980px;
}
@media (min-width: 900px) {
  .section-head--two-sentence .title-line {
    white-space: nowrap;
  }
  .section-head--two-sentence h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  }
  .hero-copy--two-sentence h1 {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  }
}

.lede {
  font-size: 1.08rem;
  color: var(--color-graphite);
  max-width: 640px;
}
.section--ink .lede { color: var(--color-stone); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--radius-max);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
}
.btn-primary:hover { background: #8f4530; }
.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-secondary:hover { background: var(--color-ink); color: var(--color-ivory); }
.section--ink .btn-secondary { color: var(--color-ivory); border-color: var(--color-ivory); }
.section--ink .btn-secondary:hover { background: var(--color-ivory); color: var(--color-ink); }
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-stone);
}
.btn-ghost:hover { border-color: var(--color-ink); }
.link-editorial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--color-terracotta);
  padding-bottom: 2px;
  color: var(--color-ink);
  transition: opacity .2s var(--ease);
}
.link-editorial:hover { opacity: 0.65; }
.section--ink .link-editorial { color: var(--color-ivory); }

/* ---------- Franja DEMO (integrada en el header sticky) ---------- */
.demo-strip {
  background: var(--color-ink);
  color: var(--color-ivory);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px var(--gutter);
  transition: padding .25s var(--ease), font-size .25s var(--ease);
}
.demo-strip strong { color: var(--color-terracotta); }
.site-header.is-compact .demo-strip { padding: 5px var(--gutter); font-size: 0.7rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-ivory);
  border-bottom: 1px solid rgba(23,33,31,0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  transition: padding .25s var(--ease);
}
.site-header.is-compact .header-inner { padding-block: 10px; }
.logo-link { display: inline-flex; }
.logo-link svg { height: 34px; width: auto; }
.site-header.is-compact .logo-link svg { height: 28px; }

.nav-desktop { display: none; }
@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 34px;
  }
}
.nav-desktop ul { display: flex; align-items: center; gap: 30px; }
.nav-desktop ul > li { margin-right: 30px; }
.nav-desktop ul > li:last-child { margin-right: 0; }
.nav-desktop a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
  position: relative;
  padding: 6px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-terracotta);
  transition: width .2s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { width: 100%; }

.has-dropdown { position: relative; }
.dropdown-toggle {
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-ink); font-weight: 600; font-size: 0.95rem;
  padding: 6px 0;
}
.dropdown-toggle .caret { margin-left: 6px; transition: transform .2s var(--ease); }
.dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-max);
  min-width: 300px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(23,33,31,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-max);
}
.dropdown-menu a:hover { background: var(--color-ivory); color: var(--color-terracotta); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-primary { display: none; }
@media (min-width: 900px) {
  .header-actions .btn-primary { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-max);
  cursor: pointer;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle .bar { display: block; width: 20px; height: 2px; background: var(--color-ink); position: relative; }
.menu-toggle .bar::before, .menu-toggle .bar::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--color-ink); transition: transform .2s var(--ease);
}
.menu-toggle .bar::before { top: -6px; }
.menu-toggle .bar::after { top: 6px; }

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--color-ink);
  color: var(--color-ivory);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
}
.mobile-menu-head .logo-link svg { height: 30px; }
.mobile-menu-close {
  width: 44px; height: 44px;
  background: none; border: 1.5px solid var(--color-ivory);
  border-radius: var(--radius-max);
  color: var(--color-ivory); font-size: 1.4rem; cursor: pointer;
}
.mobile-menu-body { padding: 12px var(--gutter) 40px; overflow-y: auto; }
.mobile-menu-body ul { display: flex; flex-direction: column; }
.mobile-menu-body a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244,240,232,0.14);
  text-decoration: none;
  color: var(--color-ivory);
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.mobile-submenu { padding-left: 14px; }
.mobile-submenu a { font-family: var(--font-body); font-size: 1rem; padding: 12px 0; border: none; color: var(--color-stone); }
.mobile-menu-body .btn-primary { margin-top: 24px; width: 100%; justify-content: center; }
body.menu-open { overflow: hidden; }

/* ---------- Barra móvil de conversión ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--color-ink);
  border-top: 1px solid rgba(244,240,232,0.14);
  transition: transform .25s var(--ease);
}
.mobile-bar.is-hidden { transform: translateY(100%); }
@media (min-width: 900px) { .mobile-bar { display: none; } }
.mobile-bar button, .mobile-bar a {
  background: none; border: none;
  color: var(--color-ivory);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 12px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none;
  cursor: pointer;
  border-right: 1px solid rgba(244,240,232,0.14);
}
.mobile-bar > :last-child { border-right: none; }
.mobile-bar svg { width: 18px; height: 18px; }
body.has-mobile-bar { padding-bottom: var(--mobilebar-h); }
@media (min-width: 900px) { body.has-mobile-bar { padding-bottom: 0; } }

/* ---------- Modal demostrativo ---------- */
.demo-modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(23,33,31,0.55);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.demo-modal-overlay.is-open { display: flex; }
.demo-modal {
  background: var(--color-ivory);
  border-radius: var(--radius-max);
  max-width: 440px;
  width: 100%;
  padding: 32px;
  position: relative;
}
.demo-modal h2 { font-size: 1.4rem; margin-bottom: 0.5em; text-align: center; }
.demo-modal p { color: var(--color-graphite); }
.demo-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: var(--radius-max);
  border: 1.5px solid var(--color-stone);
  background: none; cursor: pointer; font-size: 1.1rem;
}
.demo-modal .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(20px, 4vw, 40px);
}
.hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero-lede { font-size: 1.15rem; color: var(--color-graphite); max-width: 620px; margin-bottom: 1.6em; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-photo-wrap {
  margin-top: clamp(36px, 6vw, 64px);
  position: relative;
  max-width: 520px;
  margin-inline: auto;
}
.hero-photo-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-max);
}
@media (max-width: 767px) {
  .hero-photo-wrap { max-width: min(90vw, 340px); }
}
.hero-plate {
  position: absolute;
  left: var(--gutter);
  bottom: -20px;
  background: var(--color-white);
  padding: 12px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-max);
  box-shadow: 0 10px 30px rgba(23,33,31,0.14);
  max-width: 80%;
}
.hero--page .hero-photo-wrap img { aspect-ratio: 3/2; }

/* ---------- Hero de portada: fotografía integrada de Málaga (día, cielo despejado) ---------- */
.home-hero {
  position: relative;
  min-height: clamp(520px, 76vh, 840px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 44%;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 72% 62% at 50% 47%, rgba(23,33,31,0.34) 0%, rgba(23,33,31,0.26) 42%, rgba(23,33,31,0.12) 70%, rgba(23,33,31,0.02) 100%),
    linear-gradient(180deg, rgba(23,33,31,0.06) 0%, rgba(23,33,31,0.08) 48%, rgba(23,33,31,0.18) 100%);
}
.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  color: var(--color-ivory);
  padding-block: clamp(28px, 5vw, 48px);
}
.home-hero-content .eyebrow {
  color: var(--color-ivory);
  text-shadow: 0 1px 6px rgba(23,33,31,0.58);
}
.home-hero-content h1 {
  color: var(--color-ivory);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  text-shadow: 0 2px 12px rgba(23,33,31,0.58);
}
.home-hero-lede {
  font-size: 1.1rem;
  color: var(--color-ivory);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 1.5em;
  text-shadow: 0 1px 7px rgba(23,33,31,0.60);
}
.home-hero-context {
  margin-top: 22px;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--color-ivory);
  text-shadow: 0 1px 6px rgba(23,33,31,0.58);
}
.btn-secondary--on-photo {
  color: var(--color-ivory);
  border-color: var(--color-ivory);
}
.btn-secondary--on-photo:hover {
  background: var(--color-ivory);
  color: var(--color-ink);
}
@media (max-width: 767px) {
  .home-hero {
    min-height: min(80vh, 620px);
  }
  .home-hero-media img {
    object-position: 62% center;
  }
  .home-hero-content {
    padding-block: 24px;
  }
  .home-hero-lede {
    font-size: 1rem;
    margin-bottom: 1.2em;
  }
  .home-hero-context {
    margin-top: 16px;
  }
}

/* ---------- Accesos por situación ---------- */
.situations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-graphite);
  border-radius: var(--radius-max);
  overflow: hidden;
}
@media (min-width: 720px) {
  .situations-grid { grid-template-columns: 1fr 1fr; }
}
.situation-card {
  background: var(--color-ivory);
  padding: clamp(24px, 3vw, 40px);
}
.situation-card h3 { font-size: 1.35rem; margin-bottom: 0.5em; }
.situation-card p { color: var(--color-graphite); margin-bottom: 1.2em; }

/* ---------- Áreas numeradas ---------- */
.areas-list { display: flex; flex-direction: column; }
.area-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 28px;
  border-top: 1px solid rgba(23,33,31,0.14);
}
.areas-list .area-row:last-child { border-bottom: 1px solid rgba(23,33,31,0.14); }
.area-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-terracotta);
  display: block;
  margin-bottom: 0.3em;
}
.area-row h3 { font-size: 1.3rem; margin-bottom: 0.5em; max-width: 46ch; }
.area-row p { color: var(--color-graphite); margin: 0 auto; max-width: 56ch; text-align: left; }

/* Listas de situaciones de las especialidades: marcador discreto alineado con el texto */
.areas-list--situations .area-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  text-align: left;
  padding-block: 22px;
}
.areas-list--situations .area-num {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--color-terracotta);
}
.areas-list--situations .area-row > div {
  min-width: 0;
}
.areas-list--situations .area-row p {
  margin: 0;
  max-width: none;
  text-align: left;
}

/* ---------- Despacho / imagen editorial ---------- */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .editorial-split { grid-template-columns: 1fr 1fr; }
  .editorial-split.reverse { direction: rtl; }
  .editorial-split.reverse > * { direction: ltr; }
}
.editorial-split img {
  border-radius: var(--radius-max);
  aspect-ratio: 4/5;
  object-fit: cover;
  height: auto;
  max-width: 280px;
  margin-inline: auto;
  display: block;
}
@media (min-width: 900px) {
  .editorial-split img { max-width: 360px; }
}

.editorial-split h2 + .eyebrow {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Retrato individual del bloque "Profesional" en páginas de especialidad: reducido y centrado en su columna */
.professional-photo {
  max-width: 170px;
  margin-inline: auto;
}
.professional-photo img {
  border-radius: var(--radius-max);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  height: auto;
}
@media (min-width: 768px) {
  .professional-photo { max-width: 205px; }
}

/* Bloque doble de retratos (Herencias): Elena + Lucía juntas, mismo tamaño y proporción */
.professional-photo--duo {
  max-width: 250px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.professional-photo--duo img {
  border-radius: var(--radius-max);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  height: auto;
}
@media (min-width: 768px) {
  .professional-photo--duo { max-width: 310px; }
}

/* ---------- Proceso numerado ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .process-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
.process-step .area-num { display: block; margin-bottom: 0.4em; }
.process-step h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.process-step p { color: var(--color-graphite); margin: 0; }
.process-note { margin-top: 28px; font-size: 0.88rem; color: var(--color-graphite); font-style: italic; }

/* ---------- Módulo contextual ---------- */
.contextual-module {
  background: var(--color-ink);
  color: var(--color-ivory);
  border-radius: var(--radius-max);
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .contextual-module { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}
.contextual-module h2 { color: var(--color-ivory); font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.contextual-module p { color: var(--color-stone); }

/* ---------- Equipo ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
.team-card img {
  border-radius: var(--radius-max);
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 18px;
  margin-inline: auto;
  width: 100%;
  height: auto;
  max-width: 170px;
}
@media (min-width: 768px) {
  .team-card img { max-width: 200px; }
}
.team-card h3 { font-size: 1.25rem; margin-bottom: 0.2em; }
.team-card .role { color: var(--color-terracotta); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 0.8em; display: block; text-align: center; }
.team-card p { color: var(--color-graphite); }
.team-card ul.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.team-card ul.tags li {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
  background: var(--color-stone); padding: 6px 12px; border-radius: var(--radius-max);
}
.ficticio-notice {
  background: var(--color-stone);
  border-radius: var(--radius-max);
  padding: 18px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 720px;
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid rgba(23,33,31,0.14); }
.faq-item { border-bottom: 1px solid rgba(23,33,31,0.14); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: inherit;
}
.faq-question .plus { font-size: 1.4rem; color: var(--color-terracotta); transition: transform .2s var(--ease); flex-shrink: 0; }
.faq-question[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s var(--ease);
}
.faq-answer p { padding-bottom: 22px; color: var(--color-graphite); max-width: 68ch; margin: 0; }
.faq-item.is-open .faq-answer { max-height: 400px; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
}
.cta-final .section-head { margin-inline: auto; }
.cta-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-stone);
  padding-block: 56px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(244,240,232,0.14);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand svg { height: 30px; margin-bottom: 14px; }
.footer-brand p { color: var(--color-stone); max-width: 32ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ivory); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: var(--color-stone); font-size: 0.94rem; }
.footer-col a:hover { color: var(--color-ivory); }
.footer-bottom {
  padding-top: 22px;
  font-size: 0.82rem;
  color: var(--color-stone);
  opacity: 0.8;
}

/* ---------- Formularios ---------- */
.form-block { max-width: 640px; }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-stone);
  border-radius: var(--radius-max);
  background: var(--color-white);
  color: var(--color-ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--color-terracotta);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea,
.contact-group.has-error input {
  border-color: #8f4530;
}
.field-error {
  display: none;
  color: #8f4530;
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 6px;
}
.form-row.has-error .field-error { display: block; }
.contact-group.has-error + .field-error { display: block; }
.field-hint {
  font-size: 0.85rem;
  color: var(--color-graphite);
  margin-top: 6px;
}
.form-note {
  background: var(--color-stone);
  border-radius: var(--radius-max);
  padding: 16px 20px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.contact-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 4px;
}
@media (min-width: 560px) {
  .contact-group { grid-template-columns: 1fr 1fr; }
}
fieldset { border: none; padding: 0; margin: 0 0 20px; }
legend { font-weight: 700; font-size: 0.88rem; margin-bottom: 10px; padding: 0; }
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.radio-group label, .checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 500; font-size: 0.95rem; cursor: pointer;
}
.radio-group input, .checkbox-row input { margin-top: 3px; }
.form-success {
  display: none;
  background: var(--color-ink);
  color: var(--color-ivory);
  border-radius: var(--radius-max);
  padding: 26px 28px;
  margin-top: 24px;
}
.form-success.is-visible { display: block; }
.form-success h3 { color: var(--color-ivory); font-size: 1.2rem; }
.form-success p { color: var(--color-stone); margin-bottom: 1.2em; }

/* ---------- Contacto alternativo / consulta ---------- */
.alt-contact-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.alt-contact-note { font-size: 0.85rem; color: var(--color-graphite); margin-top: 14px; }

/* ---------- Páginas legales ---------- */
.legal-content { max-width: 72ch; }
.legal-content h1 { text-align: center; margin-inline: auto; }
.legal-content p { color: var(--color-graphite); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.error-page .eyebrow { display: block; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; }

/* ---------- Animaciones sutiles ---------- */
/* Progressive enhancement: el contenido es visible por defecto.
   Solo se oculta para animar si JS confirma que puede revelarlo (clase .js-anim en <html>). */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js-anim .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; }
}
