/* ==========================================================================
   Sanando el Alma — web nueva · concepto "La Raíz"
   Paleta: bosque #0E1917 · musgo #172A24 · noche #091210 · niebla #E3E7E2
           tinta #16211E · corteza #6E5340 · ámbar #E0A94E
   Tipografía: Newsreader (títulos) + Hanken Grotesk (texto)
   ========================================================================== */

:root {
  --forest: #0e1917;
  --moss: #172a24;
  --night: #091210;
  --mist: #e3e7e2;
  --ink: #16211e;
  --bark: #6e5340;
  --ember: #e0a94e;

  --on-dark: #e3e7e2;
  --on-dark-2: rgba(227, 231, 226, 0.76);
  --line-dark: rgba(227, 231, 226, 0.16);
  --on-light: #16211e;
  --on-light-2: #435650;
  --line-light: rgba(22, 33, 30, 0.2);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 1.2rem + 6vw, 5.2rem);
}

h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.8rem);
}

h3 {
  font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem);
  line-height: 1.15;
}

strong {
  font-weight: 600;
}

section[id] {
  scroll-margin-top: 4.5rem;
}

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

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ember);
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: top 0.2s;
}

.skip:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.sec--mist :focus-visible {
  outline-color: var(--ink);
}

.wrap {
  width: min(100% - 2 * var(--gutter), 1180px);
  margin-inline: auto;
}

/* ---------- Secciones ---------- */
.sec {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.sec--forest {
  background: var(--forest);
  color: var(--on-dark);
}

.sec--moss {
  background: var(--moss);
  color: var(--on-dark);
}

.sec--night {
  background: var(--night);
  color: var(--on-dark);
}

.sec--mist {
  background: var(--mist);
  color: var(--on-light);
}

.sec--mist .muted {
  color: var(--on-light-2);
}

.muted {
  color: var(--on-dark-2);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
}

.measure {
  max-width: 62ch;
}

/* ---------- Botones y enlaces ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn--ember {
  background: var(--ember);
  color: var(--forest);
}

.btn--ember:hover {
  background: #ecbb6b;
}

.btn--ghost {
  border-color: rgba(227, 231, 226, 0.45);
  color: var(--on-dark);
}

.btn--ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
}

@media (max-width: 560px) {
  .actions .btn {
    width: 100%;
  }
}

.btn--sm {
  min-height: 2.6rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
}

.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
  transition: text-decoration-thickness 0.2s;
}

.link:hover {
  text-decoration-thickness: 3px;
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 1rem;
  transition: padding 0.4s;
}

/* El fondo con desenfoque vive en ::before para no afectar al menú móvil */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 18, 16, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s;
}

.nav.is-solid {
  padding-block: 0.65rem;
}

.nav.is-solid::before {
  opacity: 1;
}

.nav__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2 * var(--gutter), 1180px);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--on-dark);
  text-decoration: none;
}

.brand,
.nav__toggle {
  position: relative;
  z-index: 2;
}

.brand img {
  width: auto;
  height: 42px;
}

.brand sup {
  margin-left: 0.1em;
  font-size: 0.5em;
  line-height: 0;
}

.nav__links a {
  color: var(--on-dark);
  text-decoration: none;
}

.nav__links a:not(.btn):hover {
  color: var(--ember);
}

.nav__toggle {
  display: none;
}

/* Menús desplegables (Servicios y Recursos) */
.dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  font: inherit;
  cursor: pointer;
}

.dd__btn::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.18em) rotate(45deg);
  transition: transform 0.25s;
}

.dd__btn[aria-expanded="true"]::after {
  transform: translateY(0.1em) rotate(225deg);
}

.dd__btn:hover,
.dd__btn[aria-expanded="true"] {
  color: var(--ember);
}

.dd__panel {
  display: grid;
  gap: 1.6rem 2.5rem;
}

.dd__panel[hidden] {
  display: none;
}

.dd__note {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--on-dark-2);
}

.dd__title {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ember);
}

.nav__links .dd__panel a {
  display: block;
  padding-block: 0.3rem;
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 400;
}

@media (max-width: 1179px) {
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-right: -10px;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .nav__toggle span {
    display: block;
    height: 1.5px;
    background: var(--on-dark);
    transition: transform 0.35s var(--ease);
  }

  .nav.is-open .nav__toggle span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .nav.is-open .nav__toggle span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 6.5rem var(--gutter) 3rem;
    overflow-y: auto;
    background: var(--night);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
  }

  .nav__links > a:not(.btn),
  .dd__btn {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 300;
  }

  .nav__links .btn {
    margin-top: 0.8rem;
  }

  .dd {
    width: 100%;
  }

  .dd__panel {
    margin-top: 0.9rem;
    padding: 0.4rem 0 0.4rem 1.1rem;
    border-left: 1px solid var(--line-dark);
  }

  .nav__links .dd__panel a {
    padding-block: 0.45rem;
    font-size: 1.05rem;
    color: var(--on-dark-2);
  }
}

@media (min-width: 1180px) {
  .nav__links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-size: 0.97rem;
  }

  .dd__panel {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    right: 0;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    padding: 2rem 2.2rem;
    background: var(--night);
    border: 1px solid var(--line-dark);
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- Hilo de la raíz (progreso de scroll) ---------- */
.thread {
  position: fixed;
  left: 14px;
  top: 0;
  bottom: 0;
  z-index: 40;
  width: 10px;
  pointer-events: none;
}

.thread__track,
.thread__fill {
  position: absolute;
  left: 4px;
  top: 0;
  width: 1px;
  height: 100%;
}

.thread__track {
  background: rgba(224, 169, 78, 0.25);
}

.thread__fill {
  background: var(--ember);
  transform: scaleY(0);
  transform-origin: top;
}

.thread__node {
  position: absolute;
  left: 1px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ember);
  border-radius: 50%;
  background: var(--night);
  transition: background-color 0.4s;
}

.thread__node.is-lit {
  background: var(--ember);
}

@media (max-width: 599px) {
  .thread {
    left: 6px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--forest);
  color: var(--on-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Niebla de reserva: se ve hasta que cargues el video */
.hero__fog {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #09120f 0%, #12211d 36%, #2a3d37 66%, #55665f 92%);
}

.hero__fog::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(64% 30% at 74% 82%, rgba(224, 169, 78, 0.5), transparent 72%);
}

.hero__fog i {
  position: absolute;
  width: 78%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(227, 231, 226, 0.28), transparent);
  filter: blur(34px);
  animation: drift 52s ease-in-out infinite alternate;
}

.hero__fog i:nth-child(1) {
  left: -14%;
  top: 46%;
}

.hero__fog i:nth-child(2) {
  right: -20%;
  top: 60%;
  height: 34%;
  animation-duration: 64s;
  animation-direction: alternate-reverse;
}

.hero__fog i:nth-child(3) {
  left: 12%;
  top: 30%;
  width: 60%;
  height: 26%;
  opacity: 0.7;
  animation-duration: 76s;
}

@keyframes drift {
  from {
    transform: translate3d(-9%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(11%, -3%, 0) scale(1.12);
  }
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero__video.is-ready {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(9, 18, 16, 0.9) 0%, rgba(9, 18, 16, 0.55) 40%, rgba(9, 18, 16, 0.08) 72%),
    linear-gradient(to right, rgba(9, 18, 16, 0.5), transparent 62%);
}

.hero__content {
  padding-top: 9rem;
  padding-bottom: clamp(3.5rem, 9vh, 6.5rem);
}

.hero h1 {
  max-width: 15em;
}

.hero__l1,
.hero__l2 {
  display: block;
  animation: rise 1.5s var(--ease) both;
}

.hero__l2 {
  margin-top: 0.5em;
  max-width: 24em;
  font-size: 0.5em;
  font-style: italic;
  line-height: 1.25;
  color: var(--on-dark-2);
  animation-delay: 0.75s;
}

.hero__sub {
  max-width: 46ch;
  margin-top: 2rem;
  color: var(--on-dark-2);
  animation: fade 1.4s ease 1.5s both;
}

.hero__actions {
  margin-top: 2rem;
  animation: fade 1.4s ease 1.8s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Reconocimiento ---------- */
.rec {
  display: grid;
  gap: 3.5rem;
}

.rec__intro p {
  margin-top: 1.5rem;
  max-width: 34ch;
}

.rec__list li {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  font-weight: 300;
  line-height: 1.38;
}

.rec__close {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-dark);
}

.rec__close > p:first-child {
  margin-bottom: 1.6rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  font-weight: 300;
  line-height: 1.3;
}

.rec__close .small {
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .rec {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
  }

  .rec__intro {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

/* ---------- Aldo ---------- */
.aldo {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 860px) {
  .aldo {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
}

.aldo__text h2 {
  margin-bottom: 1.2rem;
}

.aldo__text .lead {
  margin-bottom: 1.4rem;
}

.aldo__quote {
  margin-block: 2rem 2.2rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--bark);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.32;
}

.aldo__video {
  max-width: 980px;
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
}

.aldo__video h3 {
  margin-bottom: 1.4rem;
}

/* ---------- Espacios para foto y video ---------- */
.slot {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1rem;
  border: 1px dashed rgba(224, 169, 78, 0.6);
  border-radius: 4px;
  background: linear-gradient(160deg, #1b2f28, #0f1c18);
  color: var(--on-dark-2);
  text-align: center;
}

.slot::before {
  content: attr(data-label);
  max-width: 24ch;
  font-size: 0.95rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.slot img,
.slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot video {
  visibility: hidden;
}

.slot video.is-ready {
  visibility: visible;
}

.slot.has-media {
  border-color: transparent;
}

.slot--portrait {
  aspect-ratio: 4 / 5;
}

.slot--video {
  aspect-ratio: 16 / 9;
}

/* ---------- La raíz (método) ---------- */
.sec--raiz {
  overflow: hidden;
  background: linear-gradient(to bottom, var(--moss), var(--night));
  color: var(--on-dark);
}

/* Imagen opcional assets/img/raiz.jpg: si no existe, no se ve nada */
.sec--raiz::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  background: url("../img/raiz.jpg") center / cover no-repeat;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(to left, #000 25%, transparent);
  mask-image: linear-gradient(to left, #000 25%, transparent);
  pointer-events: none;
}

@media (min-width: 860px) {
  .sec--raiz::before {
    width: min(46%, 560px);
    opacity: 0.34;
  }
}

.raiz__head {
  position: relative;
  max-width: 24ch;
}

.raiz__head + p {
  position: relative;
  margin-top: 1.5rem;
  max-width: 52ch;
}

.depth {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-left: 1px solid rgba(224, 169, 78, 0.5);
}

.depth li {
  position: relative;
  padding: 0 0 clamp(2.4rem, 5vw, 3.6rem) 1.8rem;
}

.depth li:last-child {
  padding-bottom: 0;
}

.depth li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.75rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ember);
}

.depth p {
  margin-top: 0.7rem;
  max-width: 50ch;
}

@media (min-width: 860px) {
  /* Escalera: cada capa baja y se corre un poco hacia adentro */
  .depth {
    border-left: 0;
  }

  .depth li {
    border-left: 1px solid rgba(224, 169, 78, 0.5);
  }

  .depth li:nth-child(2) {
    margin-left: 6%;
  }

  .depth li:nth-child(3) {
    margin-left: 12%;
  }
}

.modes {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 1.6rem 3rem;
}

.modes dt {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.modes dd {
  margin-top: 0.3rem;
  max-width: 40ch;
}

@media (min-width: 700px) {
  .modes {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Caminos (servicios) ---------- */
.sec--caminos {
  overflow: hidden;
}

/* Imagen opcional assets/img/bosque-lenga.jpg */
.sec--caminos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bosque-lenga.jpg") center / cover no-repeat;
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  pointer-events: none;
}

.sec--caminos > .wrap {
  position: relative;
}

.sec__head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sec__head h2 {
  max-width: 18em;
}

.sec__head p {
  margin-top: 1.2rem;
  max-width: 44ch;
  font-size: 1.0625rem;
}

.path {
  display: grid;
  gap: 1.2rem 3rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-dark);
}

.path__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
}

.path__tag {
  margin-block: 1.3rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  color: var(--ember);
}

@media (min-width: 860px) {
  .path {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .path__body {
    max-width: 52ch;
  }
}

.tools {
  display: grid;
  gap: 3rem 3.5rem;
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-dark);
}

.tools__intro p {
  max-width: 44ch;
}

.tools__intro h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
}

.tools__group h4 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ember);
}

.tools__group a {
  display: block;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line-dark);
  text-decoration: none;
}

.tools__group a strong {
  display: block;
  font-weight: 500;
  transition: color 0.2s;
}

.tools__group a span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95rem;
  color: var(--on-dark-2);
}

.tools__group a:hover strong {
  color: var(--ember);
}

@media (min-width: 860px) {
  .tools {
    grid-template-columns: repeat(3, 1fr);
  }

  .tools__intro {
    grid-column: 1 / -1;
  }
}

/* ---------- Testimonios ---------- */
.voces {
  display: grid;
  gap: 2.5rem 3rem;
}

.voces figure {
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
}

.voces blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
}

.voces figcaption {
  margin-top: 1.4rem;
  font-weight: 600;
  color: var(--bark);
}

@media (min-width: 860px) {
  .voces {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Escuela ---------- */
.escuela {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
}

.escuela p {
  margin-top: 1rem;
  max-width: 50ch;
}

.escuela h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem);
  max-width: 20ch;
}

@media (min-width: 860px) {
  .escuela {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- Cierre ---------- */
.cierre {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.cierre h2 {
  margin-bottom: 1.6rem;
}

.cierre p {
  margin-inline: auto;
  max-width: 46ch;
}

.cierre .actions {
  justify-content: center;
  margin-top: 2.2rem;
}

.cierre__contact {
  margin-top: 1.8rem;
  font-size: 0.97rem;
}

.cierre__contact .link {
  text-decoration-color: var(--ember);
}

/* ---------- Dónde y cómo trabajo (bloque SEO) ---------- */
.donde {
  display: grid;
  gap: 2.5rem;
}

.donde h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  max-width: 22ch;
}

.donde__text p + p {
  margin-top: 1.1rem;
}

.donde__text {
  max-width: 68ch;
}

.donde__info {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
}

.donde__info dt {
  font-weight: 600;
}

.donde__info dd {
  color: var(--on-light-2);
}

@media (min-width: 860px) {
  .donde {
    grid-template-columns: 4fr 7fr;
    gap: 4rem;
  }

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

/* ---------- Pie ---------- */
.foot {
  padding-block: 4rem 6rem;
  background: var(--night);
  color: var(--on-dark-2);
  border-top: 1px solid var(--line-dark);
  font-size: 0.97rem;
}

.foot__grid {
  display: grid;
  gap: 2.5rem;
}

.foot .brand {
  margin-bottom: 0.9rem;
  font-size: 1.6rem;
}

.foot .brand img {
  height: 48px;
}

.foot__aldesign {
  display: inline-block;
  height: 1em;
  width: auto;
  margin-left: 4px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.foot h2 {
  margin-bottom: 0.7rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--on-dark);
}

.foot ul li + li {
  margin-top: 0.4rem;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--ember);
}

.foot__legal {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
}

@media (min-width: 860px) {
  .foot__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
  }
}

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.2rem;
  padding: 0.7rem 1.2rem 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ember);
  color: var(--forest);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: background-color 0.25s;
}

.wa:hover {
  background: #ecbb6b;
}

.wa svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

@media (max-width: 480px) {
  .wa span {
    display: none;
  }

  .wa {
    width: 3.4rem;
    height: 3.4rem;
    padding: 0;
    justify-content: center;
  }
}


/* ==========================================================================
   Páginas de servicio
   ========================================================================== */

/* Portada más baja que la del inicio */
.shero {
  min-height: 92vh;
  min-height: 92svh;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero__img.is-ready {
  opacity: 1;
}

.shero h1 {
  max-width: 13em;
  font-size: clamp(2.6rem, 1rem + 5.6vw, 5rem);
}

.shero__lead {
  max-width: 30em;
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  color: var(--on-dark-2);
}

.crumb {
  margin-bottom: 1.4rem;
  font-size: 0.97rem;
}

.crumb a {
  color: var(--on-dark-2);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 2px;
}

.crumb a:hover {
  color: var(--ember);
}

.anim-rise {
  animation: rise 1.4s var(--ease) both;
}

.anim-rise--2 {
  animation-delay: 0.6s;
}

.anim-fade {
  animation: fade 1.2s ease 1.2s both;
}

.shero .hero__actions {
  animation-delay: 1.1s;
}

/* De un vistazo */
.facts {
  display: grid;
  gap: 1.3rem 3rem;
  margin: clamp(2.5rem, 7vh, 4.5rem) 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
}

.facts dt {
  font-size: 0.9rem;
  color: var(--ember);
}

.facts dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  line-height: 1.3;
}

@media (min-width: 760px) {
  .facts {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
}

/* Qué es */
.que {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 860px) {
  .que {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }
}

.que__text h2 {
  margin-bottom: 1.6rem;
}

.que__body p + p {
  margin-top: 1.1rem;
}

.que__note {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-light);
  max-width: 62ch;
  font-size: 0.97rem;
  color: var(--on-light-2);
}

.pull {
  margin-top: 2.2rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--bark);
}

.pull p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.32;
}

.pull footer {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--on-light-2);
}

/* Beneficios */
.ben {
  display: grid;
  gap: 2.5rem 3rem;
}

.ben li {
  position: relative;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line-dark);
}

.ben li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
}

.ben h3 {
  margin-bottom: 0.8rem;
}

@media (min-width: 860px) {
  .ben {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Preguntas frecuentes */
.faq {
  max-width: 52rem;
}

.faq details {
  border-top: 1px solid var(--line-light);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line-light);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: -0.25rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq details[open] > summary::after {
  margin-top: 0.25rem;
  transform: rotate(225deg);
}

.faq details p {
  max-width: 60ch;
  padding: 0 2.5rem 1.7rem 0;
  color: var(--on-light-2);
}

/* Cierre de servicio */
.disclaimer {
  max-width: 56ch;
  margin: 2rem auto 0;
  font-size: 0.9rem;
  color: var(--on-dark-2);
}

/* Valor de la sesión (portada) */
.price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.price li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(224, 169, 78, 0.55);
  border-radius: 3px;
}

.price strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ember);
}

.price span {
  font-size: 0.92rem;
  color: var(--on-dark-2);
}

/* Aviso destacado dentro de "Qué es" */
.callout {
  margin-top: 2.2rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line-light);
  border-left: 2px solid var(--bark);
  border-radius: 3px;
  background: rgba(22, 33, 30, 0.04);
}

.callout h3 {
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
}

.callout p {
  color: var(--on-light-2);
}

.callout strong {
  color: var(--ink);
}

/* Medios de pago */
.pay {
  display: grid;
  gap: 2.5rem 3rem;
}

.pay article {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line-dark);
}

.pay article::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
}

.pay__lines {
  display: grid;
  gap: 0.7rem;
  margin: 0.3rem 0 0.4rem;
}

.pay__lines dt {
  font-size: 0.85rem;
  color: var(--ember);
}

.pay__lines dd {
  margin: 0.1rem 0 0;
  overflow-wrap: anywhere;
}

.pay__note {
  font-weight: 600;
  color: var(--ember);
}

.pay .btn {
  margin-top: auto;
}

@media (min-width: 860px) {
  .pay {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Lista de técnicas (Sobre mí) */
.tech {
  display: grid;
  gap: 0 3rem;
  border-bottom: 1px solid var(--line-dark);
}

.tech li {
  border-top: 1px solid var(--line-dark);
}

.tech a,
.tech span {
  display: block;
  padding-block: 0.9rem;
}

.tech a {
  text-decoration: none;
  transition: color 0.2s;
}

.tech a:hover {
  color: var(--ember);
}

.tech span {
  color: var(--on-dark-2);
}

@media (min-width: 760px) {
  .tech {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Los beneficios también funcionan sobre fondo claro */
.sec--mist .ben li {
  border-top-color: var(--line-light);
}

/* Turnos */
.turnos__nota {
  max-width: 52ch;
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--on-dark-2);
}

.turnos__frame {
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  background: #fff;
}

.turnos__frame iframe {
  display: block;
  width: 100%;
  min-height: 700px;
  border: 0;
}

@media (min-width: 860px) {
  .pay--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medios de pago: cuatro opciones */
.pay__code {
  display: block;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: rgba(227, 231, 226, 0.06);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.pay__warn {
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .pay--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1120px) {
  .pay--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 2rem;
  }
}

/* Pago exitoso */
.exito {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 8rem 4rem;
  background: var(--forest);
  color: var(--on-dark);
  text-align: center;
}

.exito::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 40% at 50% 100%, rgba(224, 169, 78, 0.2), transparent 70%);
}

.exito__box {
  max-width: 36rem;
  margin-inline: auto;
}

.exito__icon {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 1.8rem;
  border: 1px solid var(--ember);
  border-radius: 50%;
  color: var(--ember);
}

.exito__icon svg {
  width: 2rem;
  height: 2rem;
}

.exito h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 1.3rem + 4vw, 3.8rem);
}

.exito__next {
  margin-block: 2.2rem;
  padding-block: 1.6rem;
  border-block: 1px solid var(--line-dark);
  text-align: left;
}

.exito__next h2 {
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.exito__next p + p {
  margin-top: 0.8rem;
}

.exito .actions {
  justify-content: center;
  margin-top: 2rem;
}

/* Página 404 */
.e404__num {
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: clamp(5rem, 3rem + 9vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ember);
}

.tech.tech--one {
  grid-template-columns: 1fr;
}

/* Columna angosta de lectura */
.narrow {
  max-width: 46rem;
}

/* Otros caminos */
.related h2 {
  max-width: 20em;
  margin-bottom: 2.2rem;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
}

.related__list {
  display: grid;
}

.related__list a {
  display: block;
  padding-block: 1.3rem;
  border-top: 1px solid var(--line-dark);
  text-decoration: none;
}

.related__list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  transition: color 0.2s;
}

.related__list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--on-dark-2);
}

.related__list a:hover strong {
  color: var(--ember);
}

@media (min-width: 860px) {
  .related__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2.5rem;
  }
}

/* ---------- Flecha: volver arriba ---------- */
.totop {
  position: fixed;
  right: 1.1rem;
  bottom: 5.2rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(227, 231, 226, 0.35);
  border-radius: 50%;
  background: rgba(9, 18, 16, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, border-color 0.25s, color 0.25s;
}

.totop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.totop:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.totop svg {
  width: 1.3rem;
  height: 1.3rem;
}

@media (max-width: 480px) {
  /* alineada con el centro del botón redondo de WhatsApp */
  .totop {
    right: 1.3rem;
  }
}

/* Con el menú abierto, los botones flotantes se ocultan */
html.menu-open .totop,
html.menu-open .wa {
  display: none;
}

[tabindex="-1"]:focus {
  outline: none;
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
