/* =========================================================================
   Psicosann · Nerea Arce Psicología — hoja de estilos
   -------------------------------------------------------------------------
   1. Fuentes          6. Hero               11. Primera sesión
   2. Variables        7. Psicosann / intro  12. Preguntas frecuentes
   3. Base             8. Sobre mí           13. Contacto y formulario
   4. Utilidades       9. Servicios          14. Pie, botón WhatsApp
   5. Cabecera / menú 10. El espacio         15. Animaciones, responsive
   ========================================================================= */

/* 1. Fuentes (autoalojadas, sin peticiones a terceros) -------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Variables ------------------------------------------------------------ */
:root {
  /* Paleta del logotipo */
  --brand: #96695e;
  --brand-900: #3f2722;
  --brand-800: #5a3830;
  --brand-700: #74493f;
  --brand-400: #ae8579; /* bordes de controles (≥ 3:1) */
  --brand-300: #c9a69b;
  --brand-200: #e2cbc3;
  --brand-100: #f1e4de;

  --cream: #fbf7f3;
  --sand: #f4ebe4;
  --sand-2: #efe3da;
  --white: #fff;

  --ink: #3b2b27;
  --text: #5a4741;
  --muted: #7a6660;
  --line: rgba(150, 105, 94, .22);
  --error: #a8322d;
  --success: #2f6b3a;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;

  --shadow-sm: 0 1px 2px rgba(63, 39, 34, .06), 0 4px 12px rgba(63, 39, 34, .05);
  --shadow: 0 2px 6px rgba(63, 39, 34, .05), 0 18px 40px -12px rgba(63, 39, 34, .18);
  --shadow-lg: 0 4px 10px rgba(63, 39, 34, .05), 0 30px 60px -20px rgba(63, 39, 34, .3);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --section-y: clamp(80px, 10vw, 140px);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --h2: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem);
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* El overflow de <body> se traslada a la ventana y en Chrome para móvil no
   impide que lo que sobresale (p. ej. elementos aún desplazados por su
   animación de entrada) ensanche la página y los elementos fijos. Por eso se
   recorta también aquí; «clip» no crea contenedor de scroll, así que los
   bloques «sticky» siguen funcionando. */
main, .footer { overflow-x: clip; }

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; text-wrap: balance; }
h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  line-height: 1.06;
  letter-spacing: -.012em;
}
h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem);
  line-height: 1.15;
}
h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
h2 em, h3 em { font-style: italic; color: var(--brand); }

::selection { background: var(--brand-200); color: var(--ink); }

:focus-visible { outline: 2px solid var(--brand-700); outline-offset: 3px; }
.space :focus-visible,
.footer :focus-visible,
.principles :focus-visible,
.after :focus-visible { outline-color: #fff; }

/* 4. Utilidades ----------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  flex: none;
  background: currentColor;
}
.eyebrow--light { color: #fff; }
.section-head--center .eyebrow,
.intro__head .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after,
.intro__head .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  flex: none;
  background: currentColor;
}

/* Botones */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out), box-shadow .45s var(--ease-out), transform .45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn .icon--move { transition: transform .45s var(--ease-out); }
.btn:hover .icon--move { transform: translateX(4px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(90, 56, 48, .75);
}
.btn--primary::before { background: var(--brand-800); }
.btn--primary:hover { box-shadow: 0 16px 30px -14px rgba(63, 39, 34, .8); }

.btn--ghost {
  background: transparent;
  color: var(--brand-800);
  border-color: var(--brand-400);
}
.btn--ghost::before { background: var(--brand); }
.btn--ghost:hover { color: #fff; border-color: var(--brand); }

.btn--light { background: #fff; color: var(--brand-800); }
.btn--light::before { background: var(--brand-100); }

.btn--sm { padding: 11px 20px; font-size: .9rem; }

.btn:disabled { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  color: var(--brand-800);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .4s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

.pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-800);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 18px; }
.section-head__lead { max-width: 36em; margin: 20px auto 0; font-size: 1.1rem; }

/* 5. Cabecera y menú ------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: height .45s var(--ease-out);
}
/* El fondo vive en un pseudo-elemento: así el backdrop-filter no afecta a hijos fijos */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 247, 243, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
.header.is-scrolled { height: 68px; }
.header.is-scrolled::before { opacity: 1; }

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  border-radius: 12px;
}
.brand__mark {
  width: 44px; height: 44px;
  transition: transform .8s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-12deg); }
.brand__text { display: flex; flex-direction: column; gap: 5px; }
.brand__word { width: 128px; height: auto; }
.brand__sub {
  font-size: .6rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-700);
  white-space: nowrap;
}

.nav { position: relative; display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: color .3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--brand-800); }
.nav__indicator {
  position: absolute;
  left: 0; bottom: 3px;
  width: 1px; height: 1.5px;
  background: var(--brand);
  transform-origin: left center;
  transform: translateX(var(--x, 0)) scaleX(var(--w, 0));
  opacity: 0;
  pointer-events: none;
  transition: transform .55s var(--ease-out), opacity .3s;
}
.nav.has-active .nav__indicator { opacity: 1; }

.header__cta { flex: none; }

.menu-toggle {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  transition: background .3s, border-color .3s;
}
.menu-toggle:hover { border-color: var(--brand-300); background: #fff; }
.menu-toggle__bars { position: relative; width: 20px; height: 10px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-4.25px) rotate(-45deg); }
.no-js .menu-toggle { display: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  overflow-y: auto;
  background: var(--cream);
  clip-path: circle(0 at calc(100% - var(--gutter) - 23px) 42px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s linear .7s;
}
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/topo-brand.svg") center / cover no-repeat;
  opacity: .35;
  pointer-events: none;
}
.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - var(--gutter) - 23px) 42px);
  visibility: visible;
  transition: clip-path .8s var(--ease-in-out), visibility 0s;
}
.mobile-menu__list { display: grid; gap: 2px; }
.mobile-menu__list li {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__list li {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease-out) calc(.2s + var(--i) * .05s), transform .8s var(--ease-out) calc(.2s + var(--i) * .05s);
}
.mobile-menu__list a {
  display: inline-block;
  padding: 2px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 3vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  transition: color .3s, transform .4s var(--ease-out);
}
.mobile-menu__list a:hover { color: var(--brand); transform: translateX(6px); }
.mobile-menu__foot {
  display: grid;
  gap: 18px;
  justify-items: start;
  opacity: 0;
  transition: opacity .4s;
}
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; transition: opacity .6s .55s; }
.mobile-menu__contact {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: .95rem;
  color: var(--text);
}
.mobile-menu__contact a { text-decoration: underline; text-decoration-color: var(--brand-300); text-underline-offset: 4px; }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
  background: var(--cream);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.hero__topo {
  position: absolute;
  top: -6%; left: -4%;
  width: 108%; height: 112%;
  max-width: none;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .45) 42%, #000 72%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .45) 42%, #000 72%);
  animation: topo-drift 34s ease-in-out infinite alternate;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.hero__title { font-weight: 400; }
.hero__eyebrow { margin-bottom: 28px; }
.hero__headline {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--ink);
}
.hero__headline em { font-style: italic; font-weight: 500; color: var(--brand); }
/* Palabras del titular (las genera main.js) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .04em .06em .14em;
  margin: -.04em -.06em -.14em;
}
.w__i { display: inline-block; }

.hero__lead {
  max-width: 33em;
  margin: 28px 0 36px;
  font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem);
  color: var(--text);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts .icon { color: var(--brand); }

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
}
.hero__outline,
.hero__arch { border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px; }
.hero__outline {
  position: absolute;
  inset: 0;
  border: 1px solid var(--brand-300);
  transform: translate(18px, 18px);
}
.hero__arch {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand);
}
.hero__arch::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -1;
  background: url("../img/topo-light.svg") center / cover no-repeat;
  opacity: .3;
  animation: topo-drift 30s ease-in-out infinite alternate-reverse;
}
.hero__arch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 70% at 50% 100%, rgba(63, 39, 34, .35), transparent 70%);
}
.hero__emblem {
  position: absolute;
  left: 50%; top: 55%;
  width: 72%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .07), 0 30px 60px -24px rgba(40, 22, 18, .55);
  transform: translate(-50%, -50%);
  animation: float 9s ease-in-out infinite;
}
.hero__emblem img { width: 100%; height: auto; }

.badge {
  position: absolute;
  left: -30px; bottom: 13%;
  z-index: 2;
  width: 128px; height: 128px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--brand-800);
  box-shadow: var(--shadow);
}
.badge__ring {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  overflow: visible;
  animation: spin 24s linear infinite;
}
.badge__ring text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  fill: currentColor;
}
.badge__core {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  transition: transform .5s var(--ease-out), background .3s;
}
.badge__core .icon { width: 20px; height: 20px; }
.badge:hover .badge__core { transform: scale(1.1); background: var(--brand-700); }
.badge:hover .badge__core .icon { animation: nudge-down 1s var(--ease-out) infinite; }

.hero__chip {
  position: absolute;
  right: -26px; top: 12%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  animation: chip-float 7s ease-in-out 2.4s infinite;
}
.hero__chip-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-800);
}
.hero__chip-icon .icon { width: 20px; height: 20px; }
.hero__chip-text { display: flex; flex-direction: column; line-height: 1.3; }
.hero__chip-text strong { font-size: .88rem; font-weight: 600; color: var(--ink); }
.hero__chip-text span { font-size: .8rem; color: var(--muted); }

/* 7. Psicosann / intro ----------------------------------------------------- */
.intro { background: var(--cream); }
.intro__head {
  max-width: 980px;
  margin: 0 auto clamp(56px, 7vw, 96px);
  text-align: center;
}
.intro__statement {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3.15rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.intro__statement em { font-style: italic; color: var(--brand); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-800);
  transition: background .45s, color .45s, transform .6s var(--ease-out);
}
.pillar__icon .icon { width: 24px; height: 24px; }
.pillar:hover .pillar__icon { background: var(--brand); color: #fff; transform: rotate(-8deg); }
.pillar__title {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 1.3rem + .5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.12;
}
.pillar p { font-size: .98rem; }

.who { margin-top: clamp(72px, 9vw, 120px); }
.who__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.who__head p { margin: 0; color: var(--muted); }
.who__cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.who__cards > li { display: flex; }
.who__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--ink);
  transition: background .45s var(--ease-out), color .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.who__card:hover { background: var(--brand); color: #fff; transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(63, 39, 34, .55); }
.who__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-700);
  transition: background .45s, color .45s;
}
.who__icon .icon { width: 22px; height: 22px; }
.who__card:hover .who__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.who__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
}
.who__meta { font-size: .88rem; color: var(--muted); transition: color .45s; }
.who__card:hover .who__meta { color: #fff; }

/* Cinta de áreas */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  background: var(--brand);
  color: #fff;
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  font-style: italic;
  line-height: 1.2;
}
.marquee__group li::after {
  content: "";
  width: 12px; height: 12px;
  margin-inline: clamp(24px, 3vw, 44px);
  border: 1.5px solid var(--brand-200);
  border-radius: 50%;
}

/* 8. Sobre mí -------------------------------------------------------------- */
.about { background: var(--sand); }
.about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: clamp(48px, 7vw, 112px);
}
/* La columna que contiene el bloque fijo debe ocupar todo el alto de la fila;
   si no, el «sticky» no tiene recorrido. */
.about__media,
.first__intro,
.faq__aside { align-self: stretch; }
.about__sticky { position: sticky; top: 110px; }
.about__frame { position: relative; max-width: 440px; }
.arch,
.about__outline { border-radius: 50% 50% 24px 24px / 37.5% 37.5% 24px 24px; }
.arch {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--brand-200);
}
.arch picture { height: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.about__outline {
  position: absolute;
  inset: 0;
  border: 1px solid var(--brand-300);
  transform: translate(18px, 18px);
  pointer-events: none;
}
.about__card {
  position: absolute;
  right: -22px; bottom: 40px;
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  line-height: 1.35;
}
.about__card strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.about__card span { font-size: .85rem; color: var(--muted); }

.about__content h2 { margin: 18px 0 32px; }
.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
}
.about__text p:not(.about__lead) { color: var(--text); }

.quote {
  position: relative;
  margin: 44px 0 0;
  padding: 34px 0 0 0;
  border-top: 1px solid var(--line);
}
.quote::before {
  content: "“";
  position: absolute;
  top: -8px; right: 0;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--brand-300);
  pointer-events: none;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.25rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}
.hl {
  background-image: linear-gradient(transparent 58%, rgba(150, 105, 94, .24) 58%, rgba(150, 105, 94, .24) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.4s var(--ease-out) .5s;
}
.is-in .hl, .no-js .hl, .no-observer .hl { background-size: 100% 100%; }

/* Principios */
.principles {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(80px, 10vw, 140px);
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: #fff;
}
.principles::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/topo-light.svg") center / cover no-repeat;
  opacity: .35;
}
.principles__head { margin-bottom: clamp(40px, 5vw, 64px); }
.principles__title { margin-top: 16px; color: #fff; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); }
.principles__title em { color: var(--brand-100); }
.principles__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.principle { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .35); }
.principle__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: #fff;
}
.principle h4 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.principle p { font-size: .95rem; color: #fff; }

/* Formación */
.training {
  display: grid;
  grid-template-columns: 4fr 8fr;
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(80px, 10vw, 140px);
}
.training__title { margin-top: 16px; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); }
.training__list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.training__item {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.training__item:nth-child(-n+2) { border-top: 1px solid var(--line); }
.training__icon {
  width: 48px; height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-700);
}
.training__icon .icon { width: 22px; height: 22px; }
.training__item h4 { margin: 2px 0 4px; font-size: 1rem; }
.training__item p { font-size: .95rem; color: var(--muted); }

/* 9. Servicios ------------------------------------------------------------- */
.services { background: var(--cream); }

.tabs__list {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto clamp(32px, 4vw, 48px);
  padding: 6px;
  border-radius: 999px;
  background: var(--sand);
}
.tabs__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  transition: color .45s var(--ease-out);
}
.tabs__tab:hover { color: var(--brand-800); }
.tabs__tab[aria-selected="true"] { color: #fff; }
.tabs__tab .icon { width: 1.15em; height: 1.15em; }
.tabs__indicator {
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  width: var(--w, 0);
  height: var(--h, 0);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 10px 22px -10px rgba(90, 56, 48, .7);
  transform: translate(var(--x, 0), var(--y, 0));
  pointer-events: none;
}
.tabs.is-ready .tabs__indicator {
  transition: transform .6s var(--ease-out), width .6s var(--ease-out), height .6s var(--ease-out);
}
.no-js .tabs__list { display: none; }
.tabs { scroll-margin-top: calc(var(--header-h) + 16px); }

.tabs__panels { display: grid; gap: 24px; }
.panel {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.panel:focus-visible { outline-offset: 4px; }
.js .panel:not([hidden]) { animation: panel-in .65s var(--ease-out); }
.panel__title { margin-bottom: 20px; }
.panel__lead { font-size: 1.1rem; color: var(--ink); }
.panel__intro .btn { margin-top: 14px; }
.panel__subtitle {
  margin-bottom: 20px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.area {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color .35s, background .35s, transform .45s var(--ease-out);
}
.area:hover { border-color: var(--brand-300); background: #fff; transform: translateY(-2px); }
.areas .area:last-child:nth-child(odd) { grid-column: 1 / -1; }
.area strong { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.area p { font-size: .92rem; line-height: 1.6; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.checklist li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
  line-height: 1.5;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.panel__note {
  display: flex;
  gap: 14px;
  margin: 24px 0 0;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  font-size: .95rem;
  line-height: 1.6;
}
.panel__note .icon { margin-top: 2px; color: var(--brand-700); }

.modes { margin-top: clamp(64px, 8vw, 104px); }
.modes__title { margin-bottom: 32px; text-align: center; }
.modes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode {
  position: relative;
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--sand);
}
.mode__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-700);
}
.mode__icon .icon { width: 24px; height: 24px; }
.mode h4 {
  margin: 22px 0 10px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
}
.mode p { margin-bottom: 22px; }

/* 10. El espacio ----------------------------------------------------------- */
.space {
  isolation: isolate;
  overflow: hidden;
  background: var(--brand-900);
  color: #fff;
}
.space::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/topo-light.svg") center / cover no-repeat;
  opacity: .12;
}
.space__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 32px 64px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.space h2 { margin-top: 18px; color: #fff; }
.space h2 em { color: var(--brand-200); }
.space__quote {
  max-width: 30em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  font-style: italic;
  line-height: 1.4;
  color: #fff;
}

.gallery { position: relative; }
.gallery__track {
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 30vw, 380px);
  gap: 20px;
  padding-inline: var(--edge);
  padding-bottom: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -3px; }
.gallery__item { scroll-snap-align: start; }
.gallery__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
}
.gallery__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery__item:hover .gallery__media img { transform: scale(1.04); }
.gallery__ph {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--brand);
  color: #fff;
}
.gallery__ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/topo-light.svg") center / cover no-repeat;
  opacity: .28;
  transition: transform 1.6s var(--ease-out);
}
.gallery__item:hover .gallery__ph::before { transform: scale(1.08) rotate(2deg); }
.gallery__item:nth-child(3n + 2) .gallery__ph { background: var(--brand-700); }
.gallery__item:nth-child(3n) .gallery__ph { background: #82574c; }
.gallery__ph .icon { width: 30px; height: 30px; }
.gallery__ph span { font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.gallery__caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 0;
  font-size: .95rem;
  color: #fff;
}
.gallery__caption span { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--brand-200); }

.gallery__controls { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.gallery__progress {
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .2);
}
.gallery__progress span {
  display: block;
  height: 100%;
  background: #fff;
  transform-origin: left center;
  transform: scaleX(var(--p, .3));
  transition: transform .35s var(--ease-out);
}
.gallery__buttons { display: flex; gap: 10px; }
.icon-btn {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  transition: background .35s, color .35s, border-color .35s, opacity .35s;
}
.icon-btn:hover:not([aria-disabled="true"]) { background: #fff; border-color: #fff; color: var(--brand-900); }
.icon-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.no-js .gallery__controls { display: none; }

/* 11. Primera sesión ------------------------------------------------------- */
.first { background: var(--cream); }
.first__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: clamp(48px, 7vw, 112px);
}
.first__sticky { position: sticky; top: 110px; }
.first h2 { margin: 18px 0 28px; }
.first__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.first__subtitle { margin-bottom: 32px; }

.timeline { display: grid; }
.step {
  --fill: 0;
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding-bottom: 28px;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px; top: 56px; bottom: 0;
  width: 2px;
}
.step:not(:last-child)::before { background: var(--brand-200); }
.step:not(:last-child)::after {
  background: var(--brand);
  transform-origin: top center;
  transform: scaleY(var(--fill));
}
.step__num {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--brand-200);
  border-radius: 50%;
  background: #fff;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brand-700);
  transition: background .5s var(--ease-out), border-color .5s, color .5s, box-shadow .5s;
}
.step.is-active .step__num,
.no-js .step__num {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(150, 105, 94, .14);
}
.no-js .step { --fill: 1; }
.step__body {
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.step__body h4 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.12;
}

.after {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 40px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: #fff;
}
.after::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/topo-light.svg") center / cover no-repeat;
  opacity: .3;
}
.after__title { margin-bottom: 16px; color: #fff; }

/* 12. Preguntas frecuentes ------------------------------------------------- */
.faq { background: var(--sand); }
.faq__grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  align-items: start;
  gap: clamp(48px, 7vw, 112px);
}
.faq__sticky { position: sticky; top: 110px; }
.faq h2 { margin: 18px 0 24px; }
.faq__aside p { margin-bottom: 28px; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .4s, box-shadow .4s;
}
.faq__item:hover { border-color: var(--brand-300); }
.faq__item[open]:not(.is-closing) { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 22px 28px;
  border-radius: var(--radius);
  list-style: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: -2px; }
.faq__icon {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-100);
  transition: background .4s, transform .55s var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  border-radius: 2px;
  background: var(--brand-800);
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease-out), background .4s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open]:not(.is-closing) .faq__icon { background: var(--brand); transform: rotate(180deg); }
.faq__item[open]:not(.is-closing) .faq__icon::before,
.faq__item[open]:not(.is-closing) .faq__icon::after { background: #fff; }
.faq__item[open]:not(.is-closing) .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 28px 26px; }
.faq__answer p { max-width: 62ch; }

/* 13. Contacto y formulario ------------------------------------------------ */
.contact { background: var(--cream); }
.contact__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.contact h2 { margin: 18px 0 20px; }
.contact__lead { margin-bottom: 32px; }
.contact__list { display: grid; gap: 12px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .45s var(--ease-out), border-color .4s, box-shadow .4s;
}
.contact-card:hover { transform: translateX(6px); border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.contact-card__icon {
  width: 48px; height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-800);
  transition: background .4s, color .4s;
}
.contact-card__icon .icon { width: 22px; height: 22px; }
.contact-card--primary .contact-card__icon,
.contact-card:hover .contact-card__icon { background: var(--brand); color: #fff; }
.contact-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.contact-card__label { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.contact-card__arrow { color: var(--brand); transition: transform .45s var(--ease-out); }
.contact-card:hover .contact-card__arrow { transform: translate(3px, -3px); }

.form {
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.no-js .form { display: none; }
.form__head { margin-bottom: 28px; }
.form__title { margin-bottom: 6px; }
.form__head p { color: var(--muted); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field > label,
.field > legend { padding: 0; font-size: .9rem; font-weight: 500; color: var(--ink); }
.field > legend { margin-bottom: 8px; }
.req { color: var(--brand-700); }
.field__hint { margin: -6px 0 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.field .field__hint { margin: 0; }
.field__error { margin: 0; font-size: .86rem; font-weight: 500; line-height: 1.45; color: var(--error); }
.field__hint.is-error { font-weight: 500; color: var(--error); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--brand-400);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  outline: 2px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--brand); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(150, 105, 94, .2);
}
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(168, 50, 45, .16); }

.select { position: relative; }
.select select { padding-right: 46px; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--brand-700);
  border-bottom: 1.5px solid var(--brand-700);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice__item { position: relative; cursor: pointer; }
.choice__item input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice__item span {
  display: inline-flex;
  padding: 10px 20px;
  border: 1px solid var(--brand-400);
  border-radius: 999px;
  background: var(--cream);
  font-size: .95rem;
  color: var(--text);
  transition: background .3s, border-color .3s, color .3s;
}
.choice__item:hover span { border-color: var(--brand); }
.choice__item input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.choice__item input:focus-visible + span { outline: 2px solid var(--brand-700); outline-offset: 3px; }

.check { display: flex; align-items: flex-start; gap: 12px; }
.check input {
  flex: none;
  width: 22px; height: 22px;
  margin: 2px 0 0;
  border: 1.5px solid var(--brand-400);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
.check input:hover { border-color: var(--brand); }
.check input:checked {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check input[aria-invalid="true"] { border-color: var(--error); }
.check label { font-size: .9rem; line-height: 1.55; color: var(--text); cursor: pointer; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__legal {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: .8rem;
  line-height: 1.55;
  color: var(--muted);
}
.form__legal p { display: flex; gap: 10px; }
.form__legal .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--brand-700); }
.form__legal strong { font-weight: 600; color: var(--text); }
.form__legal a { color: var(--brand-800); text-decoration: underline; text-underline-offset: 2px; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 28px; }
.form__status { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--text); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__status.is-success { color: var(--success); }
.form__noscript {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.form__noscript a { color: var(--brand-800); text-decoration: underline; }

/* Ubicación */
.location {
  display: grid;
  grid-template-columns: 5fr 7fr;
  margin-top: clamp(64px, 8vw, 104px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  scroll-margin-top: 96px;
}
.location__info { padding: clamp(28px, 4vw, 56px); }
.location__title { margin-bottom: 20px; }
.location__address { margin-bottom: 28px; font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.location__list { display: grid; gap: 16px; margin-bottom: 32px; }
.location__list li { display: flex; gap: 14px; font-size: .95rem; line-height: 1.55; }
.location__list .icon { margin-top: 2px; color: var(--brand-700); }
.location__list strong { display: block; font-weight: 600; color: var(--ink); }

.map {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  background: var(--brand-100);
}
.map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/topo-brand.svg") center / cover no-repeat;
  opacity: .5;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border: 0;
  background: transparent;
  text-align: center;
  color: var(--ink);
}
.map__load:focus-visible { outline-offset: -6px; }
.map__pin {
  position: relative;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease-out);
}
.map__pin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--brand);
  animation: ping 2.4s var(--ease-out) infinite;
}
.map__pin .icon { width: 26px; height: 26px; }
.map__load:hover .map__pin { transform: translateY(-4px); }
.map__label { font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid currentColor; }
.map__note { max-width: 30ch; font-size: .82rem; line-height: 1.5; color: var(--text); }

/* 14. Pie y botón flotante ------------------------------------------------- */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 32px;
  background: var(--brand);
  color: #fff;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/topo-light.svg") center / cover no-repeat;
  opacity: .25;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr .8fr;
  gap: 40px;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer__emblem { width: 88px; height: 88px; }
.footer__word { width: 168px; height: auto; }
.footer__sub { margin: 10px 0 0; font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.footer__tag {
  max-width: 16em;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.35;
}
.footer__title {
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
}
.footer__col ul { display: grid; gap: 12px; font-size: .95rem; line-height: 1.5; }
.footer a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .3s;
}
.footer a:hover { text-decoration-color: currentColor; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .35);
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }
/* En móvil el número de colegiada va en su propia línea, sin separador suelto */
@media (max-width: 639px) {
  .footer__sep { display: none; }
  .footer__reg { display: block; }
}
.footer__top { display: inline-flex; align-items: center; gap: 8px; }
.footer__top .icon { transition: transform .4s var(--ease-out); }
.footer__top:hover .icon { transform: translateY(-3px); }

.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(63, 39, 34, .6);
  transition: transform .5s var(--ease-out), opacity .4s, visibility 0s linear .5s, background .3s;
}
.wa-float .icon { position: relative; width: 28px; height: 28px; }
.wa-float:hover { background: var(--brand-700); }
.wa-float__ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--brand);
  border-radius: 50%;
  pointer-events: none;
  animation: ping 2.8s var(--ease-out) infinite;
}
.js .wa-float { opacity: 0; visibility: hidden; transform: translateY(18px) scale(.9); }
.js .wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform .5s var(--ease-out), opacity .4s, visibility 0s, background .3s;
}
.js .wa-float.is-visible:hover { transform: translateY(-3px); }
.menu-open .wa-float { opacity: 0 !important; visibility: hidden !important; }

/* 15. Animaciones ------------------------------------------------------------ */

/* Aparición al hacer scroll (solo con JS) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-in-out) var(--d, 0s);
}
.js [data-reveal="clip"] img { transform: scale(1.14); transition: transform 1.7s var(--ease-out) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"].is-in img { transform: none; }
.js.no-observer [data-reveal] { opacity: 1; transform: none; clip-path: none; }
.js.no-observer [data-reveal] img { transform: none; }

/* Entrada del hero (se activa con html.is-ready) */
.js:not(.is-ready) [data-hero],
.js:not(.is-ready) .hero__headline,
.js:not(.is-ready) .hero__arch,
.js:not(.is-ready) .hero__outline,
.js:not(.is-ready) .badge,
.js:not(.is-ready) .hero__chip { opacity: 0; }

.is-ready [data-hero] { animation: hero-up 1s var(--ease-out) var(--hd, 0s) backwards; }
.is-ready .w__i { animation: word-up 1.1s var(--ease-out) calc(.15s + var(--i, 0) * .06s) backwards; }
.is-ready .hero__arch { animation: arch-in 1.5s var(--ease-in-out) .2s backwards; }
.is-ready .hero__emblem img { animation: emblem-in 1.4s var(--ease-out) .85s backwards; }
.is-ready .hero__outline { animation: outline-in 1.4s var(--ease-out) .7s backwards; }
.is-ready .badge { animation: badge-in 1.2s var(--ease-out) 1.15s backwards; }
.is-ready .hero__chip {
  animation: chip-in 1s var(--ease-out) 1.3s backwards, chip-float 7s ease-in-out 2.4s infinite;
}

@keyframes hero-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes word-up { from { transform: translateY(110%); } }
@keyframes arch-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes emblem-in { from { opacity: 0; transform: scale(.82) rotate(-8deg); } }
@keyframes outline-in { from { opacity: 0; transform: translate(0, 0); } }
@keyframes badge-in { from { opacity: 0; transform: scale(.6) rotate(-90deg); } }
@keyframes chip-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 10px)); } }
@keyframes topo-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* Responsive ---------------------------------------------------------------- */
@media (min-width: 1180px) {
  .nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
}

@media (max-width: 1179px) {
  .header__inner { gap: 14px; }
}

@media (max-width: 979px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 36px); }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { width: min(80%, 340px); }
  .hero__topo {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .45) 50%, #000 85%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .45) 50%, #000 85%);
  }
  .badge { width: 108px; height: 108px; left: -18px; }
  .badge__core { width: 42px; height: 42px; }
  .hero__chip { right: -14px; }

  .who__cards { grid-template-columns: repeat(3, 1fr); }

  .about__grid,
  .first__grid,
  .faq__grid,
  .contact__grid,
  .training,
  .space__head { grid-template-columns: 1fr; }
  .about__sticky, .first__sticky, .faq__sticky { position: static; }
  .about__frame { max-width: 380px; margin-inline: auto; }
  .principles__list { grid-template-columns: repeat(2, 1fr); }
  .panel { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Por debajo de ~1100px las cuatro pestañas no caben en una línea: rejilla 2×2 */
@media (max-width: 1099px) {
  .tabs__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 760px;
    border-radius: var(--radius);
  }
  .tabs__tab { justify-content: center; padding: 12px 10px; border-radius: 14px; font-size: .88rem; text-align: center; }
  .tabs__indicator { border-radius: 14px; }
}

/* Los bloques fijos solo se quedan fijos si caben enteros en la ventana */
@media (max-height: 779px) {
  .about__sticky, .first__sticky { position: static; }
}
@media (max-height: 539px) {
  .faq__sticky { position: static; }
}

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
  :root { --header-h: 72px; }
  .header.is-scrolled { height: 64px; }
  .header__cta { display: none; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__word { width: 116px; }
  .brand__sub { font-size: .55rem; }

  .hero__facts { gap: 10px 20px; }
  .hero__actions .btn { flex: 1 1 auto; }

  .who__cards { grid-template-columns: 1fr 1fr; }
  .who__cards > li:last-child { grid-column: 1 / -1; }
  .who__card { padding: 22px 18px 20px; }
  .who__name { font-size: 1.4rem; }

  .about__card { right: -8px; bottom: 24px; padding: 14px 18px; }
  .principles__list { grid-template-columns: 1fr; }
  .training__list { grid-template-columns: 1fr; }
  .training__item:nth-child(2) { border-top: 0; }

  .tabs__tab .icon { display: none; }
  .areas, .checklist, .modes__grid, .form__grid { grid-template-columns: 1fr; }
  .area { padding: 18px; }

  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step__num { width: 44px; height: 44px; font-size: 1.3rem; }
  .step:not(:last-child)::before,
  .step:not(:last-child)::after { left: 21px; top: 44px; }
  .step__body { padding: 22px; }
  .step__body h4 { font-size: 1.4rem; }

  .faq__item summary { padding: 18px 18px 18px 20px; font-size: 1rem; }
  .faq__answer { padding: 0 20px 22px; }

  .gallery__controls { gap: 16px; }
  .icon-btn { width: 46px; height: 46px; }

  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .btn { white-space: normal; text-align: center; }
  .hero__chip { display: none; }
}

/* Movimiento reducido: sin animaciones ni desplazamientos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal] img { transform: none; }
  .marquee__track { animation: none; }
}

/* Modo de alto contraste (Windows) */
@media (forced-colors: active) {
  .check input { -webkit-appearance: auto; appearance: auto; }
  .tabs__tab[aria-selected="true"] { outline: 2px solid; }
}

/* Impresión */
@media print {
  .header, .mobile-menu, .wa-float, .marquee, .gallery__controls, .map, .hero__visual, .skip-link { display: none !important; }
  .js [data-reveal], .js:not(.is-ready) [data-hero], .js:not(.is-ready) .hero__headline { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero { min-height: 0; padding-top: 24px; }
  .section { padding-block: 32px; }
}
