/* ==========================================================================
   Pilar Tejedor Bello · Psiquiatra
   Paleta y tipografía tomadas de la tarjeta de visita.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Jost-normal.woff2") format("woff2");
}

:root {
  --crema: #F3F0E9;
  --crema-2: #E8E4D8;
  --verde: #2E483B;
  --verde-2: #25392F;
  --verde-texto: #2F493C;
  --salvia: #8EA68F;
  --salvia-suave: #D9E1D5;
  --salvia-clara: #AEC2AF; /* salvia legible sobre verde (5.3:1) */
  --blanco: #FEFEFE;
  --tinta-suave: rgba(47, 73, 60, 0.78); /* 4.8:1 sobre crema, 5.2:1 sobre blanco */
  --borde: rgba(47, 73, 60, 0.14);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --ancho: 1160px;
  --margen: clamp(20px, 5vw, 64px);
  --espacio-seccion: clamp(88px, 11vw, 140px);

  --r-s: 14px;
  --r-m: 28px;
  --r-l: 40px;

  --sombra: 0 24px 60px -24px rgba(46, 72, 59, 0.35), 0 6px 18px -8px rgba(46, 72, 59, 0.18);
  --sombra-suave: 0 14px 40px -20px rgba(46, 72, 59, 0.28);

  --suave: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 800ms;

  color-scheme: light;
}

/* --- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--verde-texto);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }

a, button, input, textarea, select, label { touch-action: manipulation; }

/* Foco visible con contraste suficiente (verde sobre fondos claros, crema sobre el panel verde) */
:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
}
.seccion--contacto :focus-visible,
.sobre__cifra :focus-visible {
  outline-color: var(--crema);
}

/* Las secciones enlazadas desde el menú no quedan bajo la cabecera fija */
main [id] { scroll-margin-top: 92px; }

/* Texto solo para lectores de pantalla */
.oculto-visual {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contenedor {
  width: min(100% - 2 * var(--margen), var(--ancho));
  margin-inline: auto;
}

.salto {
  position: absolute;
  top: -100px;
  left: var(--margen);
  padding: 10px 16px;
  background: var(--verde);
  color: var(--crema);
  border-radius: 999px;
  z-index: 100;
}
.salto:focus { top: 12px; }

.icono {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Etiqueta pequeña con la línea salvia de la tarjeta de visita */
.etiqueta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--verde-texto);
}
.etiqueta::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--salvia);
}
.etiqueta--clara { color: var(--salvia-clara); }

.titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 3.8vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--verde);
  text-wrap: balance;
  margin-bottom: 0.6em;
}
.titulo--claro { color: var(--crema); }

.texto-largo {
  max-width: 34em;
  line-height: 1.75;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--verde);
  color: var(--crema);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(46, 72, 59, 0.6);
  transition: background-color 300ms ease, transform 400ms var(--suave), box-shadow 400ms var(--suave);
}
.boton:hover { background: var(--verde-2); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(46, 72, 59, 0.65); }
.boton:active { transform: translateY(0); }
.boton--pequeno { padding: 11px 20px; font-size: 0.875rem; box-shadow: none; }
.boton--claro { background: var(--crema); color: var(--verde); }
.boton--claro:hover { background: #fff; }
.boton[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.enlace-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  color: var(--verde);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
}
.enlace-tel:hover { border-bottom-color: var(--salvia); }

.pendiente {
  color: #9c4f37;
  border-bottom: 1px dashed currentColor;
}

/* --- Fondo geométrico de toda la página (muy tenue, movimiento lentísimo) -- */

.fondo {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.fondo svg {
  position: absolute;
  fill: none;
  stroke: var(--salvia);
  stroke-width: 1;
  opacity: 0.22;
}
.fondo__a {
  width: min(70vw, 820px);
  top: -22vw;
  right: -18vw;
  animation: derivar-a 46s ease-in-out infinite alternate;
}
.fondo__b {
  width: min(80vw, 960px);
  bottom: -30vw;
  left: -24vw;
  animation: derivar-b 58s ease-in-out infinite alternate;
}
@keyframes derivar-a { to { transform: translate(-40px, 50px) rotate(6deg); } }
@keyframes derivar-b { to { transform: translate(50px, -40px) rotate(-5deg); } }

/* Trazos que se dibujan solos: pathLength="1" permite animar con dasharray 1 */
.dibujo {
  fill: none;
  stroke: var(--salvia);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}
.dibujo.fino { stroke-width: 1; }
.visible .dibujo {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1800ms var(--suave) calc(var(--i, 0) * 140ms);
}

/* --- Cabecera ------------------------------------------------------------ */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--crema) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 400ms ease;
}
.cabecera.con-sombra { box-shadow: 0 1px 0 var(--borde), 0 10px 30px -20px rgba(46, 72, 59, 0.3); }

.cabecera__interior {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 80px;
}

.marca {
  margin-right: auto;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.menu {
  display: flex;
  gap: 30px;
}
.menu a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 6px 0;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--salvia);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms var(--suave);
}
.menu a:hover::after,
.menu a.activo::after { transform: scaleX(1); }

.menu-boton {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-boton span {
  display: block;
  width: 24px; height: 1.5px;
  margin: 4px auto;
  background: var(--verde);
  transition: transform 350ms var(--suave), opacity 250ms ease;
}
.menu-boton[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* --- Portada ------------------------------------------------------------- */

.portada {
  position: relative;
  overflow: hidden;
}

.portada__arcos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.portada__arcos .dibujo { stroke: var(--salvia); stroke-width: 1; }
.listo .portada__arcos .dibujo {
  animation: trazar 2200ms var(--suave) forwards;
  animation-delay: calc(200ms + var(--i, 0) * 70ms);
}

.portada__interior {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - 80px - clamp(110px, 14vw, 200px));
  min-height: calc(100svh - 80px - clamp(110px, 14vw, 200px));
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
}

.portada__titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--verde);
  text-wrap: balance;
  margin-bottom: 28px;
}

.portada__sub {
  max-width: 24em;
  margin: 0 0 40px;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
}

.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.portada__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
}

.portada__figura {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 6%;
}
.portada__anillos {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: respirar 8s ease-in-out infinite alternate;
}
.portada__anillos .dibujo { stroke: var(--verde); stroke-width: 1.2; opacity: 0.9; }
.portada__anillos .dibujo:nth-child(2n) { stroke: var(--salvia); }
.listo .portada__anillos .dibujo {
  animation: trazar 1900ms var(--suave) forwards;
  animation-delay: calc(350ms + var(--i, 0) * 160ms);
}
.portada__anillos .centro {
  fill: var(--salvia-suave);
  transform-origin: 260px 260px;
  transform-box: view-box;
  transform: scale(0);
}
.listo .portada__anillos .centro { animation: brotar 1200ms var(--suave) 1100ms forwards; }
.portada__anillos .nucleo { fill: var(--verde); opacity: 0; }
.listo .portada__anillos .nucleo { animation: aparecer 800ms ease 1500ms forwards; }
.portada__anillos .orbita {
  transform-origin: 260px 260px;
  transform-box: view-box;
  animation: girar 32s linear infinite;
}
.portada__anillos .satelite { fill: var(--verde); opacity: 0; }
.listo .portada__anillos .satelite { animation: aparecer 800ms ease 2200ms forwards; }

@keyframes trazar   { to { stroke-dashoffset: 0; } }
@keyframes brotar   { to { transform: scale(1); } }
@keyframes aparecer { to { opacity: 1; } }
@keyframes girar    { to { transform: rotate(360deg); } }
@keyframes respirar { from { transform: scale(0.985); } to { transform: scale(1.03); } }

/* Ondas que se calman: separador bajo la portada */
.ondas {
  display: block;
  width: 100%;
  height: clamp(70px, 10vw, 150px);
  margin-top: clamp(16px, 3vw, 40px);
}
.ondas .dibujo { stroke: var(--salvia); stroke-width: 1.2; opacity: 0.8; }
.ondas.visible .dibujo { transition-duration: 2600ms; }

.portada__tarjeta {
  position: absolute;
  left: -48px;
  bottom: 44px;
  display: grid;
  gap: 4px;
  padding: 20px 26px;
  background: var(--blanco);
  border-radius: 22px;
  box-shadow: var(--sombra-suave);
}
.portada__tarjeta-titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--verde);
}
.portada__tarjeta-texto {
  font-size: 0.875rem;
  color: var(--tinta-suave);
}

/* Secuencia de entrada de la portada (un único momento orquestado) */
.portada__etiqueta,
.portada__titulo,
.portada__sub,
.portada__acciones,
.portada__tarjeta {
  opacity: 0;
  transform: translateY(16px);
}

.listo .portada__etiqueta,
.listo .portada__titulo,
.listo .portada__sub,
.listo .portada__acciones,
.listo .portada__tarjeta {
  animation: subir var(--dur) var(--suave) forwards;
}
.listo .portada__etiqueta  { animation-delay: 120ms; }
.listo .portada__titulo    { animation-delay: 260ms; }
.listo .portada__sub       { animation-delay: 420ms; }
.listo .portada__acciones  { animation-delay: 560ms; }
.listo .portada__tarjeta   { animation-delay: 1800ms; }

@keyframes subir {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Secciones ----------------------------------------------------------- */

.seccion { padding-block: var(--espacio-seccion); }
.seccion--banda { background: rgba(232, 228, 216, 0.82); }

.seccion__intro {
  max-width: 40em;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Revelado al hacer scroll */
.revelar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 700ms var(--suave);
}
.revelar.visible { opacity: 1; transform: none; }

/* Datos profesionales */
.datos {
  margin: 36px 0 0;
}
.datos__fila {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--borde);
}
.datos__fila:last-child { border-bottom: 1px solid var(--borde); }
.datos dt { font-weight: 500; }
.datos dd { margin: 0; }

/* --- Sobre mí ----------------------------------------------------------- */

.sobre {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.sobre__visual {
  position: relative;
  padding: 0 24px 24px 0;
}
.sobre__figura {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.sobre__figura .relleno {
  fill: var(--salvia-suave);
  transform-origin: 200px 222px;
  transform-box: view-box;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 1400ms var(--suave), opacity 900ms ease;
}
.visible .sobre__figura .relleno { transform: scale(1); opacity: 1; }
.sobre__figura .dibujo { stroke: var(--verde); stroke-width: 1.3; }
.sobre__figura .nucleo { fill: var(--verde); opacity: 0; transition: opacity 600ms ease 1200ms; }
.visible .sobre__figura .nucleo { opacity: 1; }

.sobre__cifra {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: grid;
  place-content: center;
  text-align: center;
  width: 150px;
  height: 150px;
  padding: 16px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--crema);
  box-shadow: var(--sombra);
}
.sobre__cifra strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1;
}
.sobre__cifra span {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--salvia-suave);
}

/* --- Motivos de consulta -------------------------------------------------- */

.motivos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.motivo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 172px;
  padding: 24px 24px 22px;
  background: var(--blanco);
  border-radius: var(--r-m);
  box-shadow: 0 1px 0 rgba(46, 72, 59, 0.04);
  transition: transform 500ms var(--suave), box-shadow 500ms var(--suave), opacity 800ms ease;
}
.motivo:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-suave);
}
.motivo.revelar.visible:hover { transform: translateY(-4px); }

.motivo__icono {
  width: 46px;
  height: 46px;
  padding: 10px;
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--salvia-suave);
  fill: none;
  stroke: var(--verde);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.motivo__nombre {
  margin-top: 22px;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--verde);
}
.motivo__detalle {
  font-size: 0.875rem;
  color: var(--tinta-suave);
}

/* --- Contacto ------------------------------------------------------------- */

/* Sección a pantalla completa: fondo verde de borde a borde y contenido centrado */
.seccion--contacto {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--verde);
  color: var(--crema);
}
.seccion--contacto .contenedor { position: relative; }
.contacto {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.contacto__anillos {
  position: absolute;
  top: 0; right: 0;
  width: min(70vw, 820px);
  height: auto;
  fill: none;
  stroke: var(--crema);
  stroke-width: 1;
  opacity: 0.08;
  pointer-events: none;
}

.contacto__texto {
  max-width: 30em;
  margin-bottom: 36px;
  color: rgba(243, 240, 233, 0.8);
}

.contacto__dato {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(243, 240, 233, 0.14);
  font-weight: 400;
  transition: color 300ms ease;
}
.contacto__dato:last-child { border-bottom: 1px solid rgba(243, 240, 233, 0.14); }
.contacto__dato .icono {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: rgba(243, 240, 233, 0.1);
  color: var(--salvia-suave);
  transition: background-color 300ms ease;
}
.contacto__dato:hover .icono { background: rgba(243, 240, 233, 0.2); }
.contacto__dato span { display: grid; line-height: 1.3; overflow-wrap: anywhere; }
.contacto__dato small {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--salvia-clara);
  margin-bottom: 3px;
}
.contacto__dato:first-of-type span { font-size: 1.35rem; }

/* Formulario */
.formulario {
  display: grid;
  gap: 18px;
  align-content: start;
}
.campo { display: grid; gap: 8px; }
.campo--doble {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.campo--doble > div { display: grid; gap: 8px; }
.campo--oculto {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.formulario label {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(243, 240, 233, 0.88);
}
.obligatorio { color: var(--salvia-clara); }
.formulario__nota {
  margin: -4px 0 0;
  font-size: 0.875rem;
  color: rgba(243, 240, 233, 0.8);
}
.campo__ayuda {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(243, 240, 233, 0.75);
}
.campo__error {
  display: none;
  margin: 0;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 400;
  color: #f0b9a6;
}
.campo__error.visible { display: flex; }
.campo__error .icono { width: 1.1em; height: 1.1em; margin-top: 0.15em; stroke-width: 2; }
.formulario input,
.formulario textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(243, 240, 233, 0.22);
  border-radius: var(--r-s);
  background: rgba(243, 240, 233, 0.07);
  color: var(--crema);
  font: inherit;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 300ms ease, background-color 300ms ease;
}
.formulario textarea { resize: vertical; min-height: 140px; }
.formulario input::placeholder,
.formulario textarea::placeholder { color: rgba(243, 240, 233, 0.6); }
.formulario input:focus,
.formulario textarea:focus {
  border-color: var(--salvia-clara);
  background: rgba(243, 240, 233, 0.11);
}
.formulario input.invalido,
.formulario textarea.invalido { border-color: #f0b9a6; border-width: 2px; padding: 13px 17px; }

.consentimiento {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(243, 240, 233, 0.8);
}
.consentimiento input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--salvia);
  flex: none;
}
.consentimiento a { border-bottom: 1px solid var(--salvia); }

.formulario__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px;
}
.formulario__estado {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--salvia-suave);
}
.formulario__estado.error { color: #f0b9a6; }
.formulario__estado.ok { color: #cfe3c9; }

/* --- Pie ------------------------------------------------------------------ */

.pie {
  font-size: 0.875rem;
  font-weight: 400;
}
.pie__interior {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px 32px;
}
.pie p { margin: 0; color: var(--tinta-suave); }
.pie nav { display: flex; gap: 22px; }
.pie nav a { display: inline-block; padding: 10px 0; border-bottom: 1px solid transparent; transition: border-color 300ms ease; }
.pie nav a:hover { border-bottom-color: var(--salvia); }

/* Botón flotante de llamada (solo móvil) */
.llamar-flotante {
  display: none;
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--verde);
  color: var(--crema);
  font-weight: 400;
  font-size: 0.9375rem;
  box-shadow: 0 16px 36px -14px rgba(46, 72, 59, 0.7);
}

/* --- Página legal --------------------------------------------------------- */

.legal {
  padding-block: clamp(56px, 8vw, 96px) var(--espacio-seccion);
  max-width: 40em;
}
.legal h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--verde);
}
.legal h1 + h1, .legal h2 + h1, .legal p + h1, .legal ul + h1 { margin-top: 2em; }
.legal h2 {
  margin: 2.2em 0 0.6em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1.15;
  color: var(--verde);
}
.legal p, .legal li { font-size: 1rem; line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal a { border-bottom: 1px solid var(--salvia); }
.legal .volver { display: inline-block; margin-bottom: 40px; font-size: 0.9375rem; font-weight: 400; border-bottom-color: transparent; }
.legal .volver:hover { border-bottom-color: var(--salvia); }

/* --- Adaptación a pantallas medianas y pequeñas ------------------------- */

@media (max-width: 1100px) {
  .motivos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .menu { display: none; }
  .menu-boton { display: block; }
  .menu {
    position: absolute;
    top: 80px; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--margen) 20px;
    background: var(--crema);
    box-shadow: 0 20px 40px -20px rgba(46, 72, 59, 0.3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, transform 350ms var(--suave), visibility 0s linear 350ms;
  }
  .menu.abierto {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 300ms ease, transform 350ms var(--suave), visibility 0s;
  }
  .menu a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--borde); }
  .menu a::after { display: none; }
  .menu--siempre { display: none; }

  .sobre, .contacto { grid-template-columns: 1fr; }
  .sobre__visual { max-width: 560px; }
  .motivos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cabecera__interior { height: 68px; gap: 16px; }
  .menu { top: 68px; }
  .marca { font-size: 1.3rem; }
  .cabecera__cita span {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .cabecera__cita { position: relative; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .cabecera__cita .icono { width: 1.25em; height: 1.25em; }

  .portada__interior {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 40px 56px;
    gap: 48px;
  }
  .portada__visual { justify-self: center; width: min(100%, 340px); }
  .portada__figura { padding: 0; }
  .portada__tarjeta { left: -8px; bottom: 8px; padding: 16px 20px; }
  .ondas { margin-top: 0; }
  .portada__tarjeta-titulo { font-size: 1.15rem; }
  .portada__sub { margin-bottom: 30px; }

  .sobre__visual { padding: 0 12px 12px 0; }
  .sobre__cifra { width: 120px; height: 120px; right: 0; bottom: 0; }
  .sobre__cifra strong { font-size: 2.4rem; }
  .sobre__cifra span { font-size: 0.68rem; }

  .motivos { grid-template-columns: 1fr; gap: 12px; }
  .motivo { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; row-gap: 2px; align-items: center; min-height: 0; padding: 18px 20px; }
  .motivo__icono { grid-row: 1 / span 2; margin-bottom: 0; }
  .motivo__nombre { margin-top: 0; align-self: end; }
  .motivo__detalle { grid-column: 2; align-self: start; }
  .motivo:not(:has(.motivo__detalle)) .motivo__icono { grid-row: 1; }
  .motivo:not(:has(.motivo__detalle)) .motivo__nombre { align-self: center; }

  .seccion--contacto { min-height: 0; padding-block: 64px 72px; }
  .contacto__anillos { width: 120vw; }
  .contacto__dato:first-of-type span { font-size: 1.2rem; }
  .contacto__dato span { font-size: 0.875rem; letter-spacing: -0.01em; }
  .contacto__dato { gap: 14px; }
  .contacto__dato .icono { width: 40px; height: 40px; padding: 10px; }
  .campo--doble { grid-template-columns: 1fr; }
  .datos__fila { grid-template-columns: 1fr; gap: 2px; }

  .llamar-flotante { display: inline-flex; }
  .pie__interior { padding-bottom: 90px; }
}

/* --- Movimiento reducido -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portada__etiqueta, .portada__titulo, .portada__sub, .portada__acciones,
  .portada__tarjeta, .revelar, .motivo, .fondo svg, .portada__anillos,
  .portada__anillos .orbita, .portada__anillos .centro, .portada__anillos .nucleo,
  .portada__anillos .satelite, .sobre__figura .relleno, .sobre__figura .nucleo {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .dibujo { stroke-dashoffset: 0 !important; animation: none !important; transition: none !important; }
  .portada__arcos .dibujo { opacity: 0.3 !important; }
}
