/* ==========================================================================
   Noelia, entrenadora personal
   Paleta sacada de la sesión de fotos: el fondo de estudio (arena y su
   viñeta marrón), el fondo gris claro y la pulsera roja que lleva siempre.
   ========================================================================== */

/* Archivo (licencia OFL), alojada en la propia web: así no se envía
   la IP de cada visitante a Google (RGPD). Fuente variable: ancho 62–125 %, peso 300–900. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  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: "Archivo";
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --estudio: #2E2723;        /* bordes con viñeta del fondo de estudio */
  --estudio-luz: #8E7666;    /* centro iluminado del fondo */
  --arena: #967B6A;
  --arena-clara: #D8CFC7;
  --piedra: #E4DFDA;         /* fondo claro de la foto de mancuernas */
  --tinta: #221E1B;
  --tinta-suave: #4A423C;
  --hilo: #A8182A;           /* la pulsera roja */
  --hilo-oscuro: #8A1222;
  --negro: #000;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2.25rem, 4.5vw, 3.5rem);
  --step-4: clamp(3rem, 8vw, 6.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --header-h: 4.5rem;
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--piedra);
  color: var(--tinta);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--piedra);
  color: var(--tinta);
}

.skip-link:focus {
  top: 0.75rem;
}

/* Titulares: Archivo estrecho y pesado */
h2 {
  font-size: var(--step-4);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
}

/* --- Botones ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--hilo);
  border-radius: 2px;
  background: var(--hilo);
  color: #fff;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--hilo-oscuro);
  border-color: var(--hilo-oscuro);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(228, 223, 218, 0.45);
  color: var(--piedra);
}

.btn--ghost:hover {
  background: rgba(228, 223, 218, 0.1);
  border-color: var(--piedra);
}

.btn--small {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  font-size: var(--step--1);
}

.btn--large {
  min-height: 3.5rem;
  padding: 1rem 2rem;
  font-size: var(--step-1);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--piedra);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Páginas sin hero: cabecera sólida desde el principio */
.site-header.is-solid {
  background: var(--estudio);
}

.site-header.is-scrolled {
  background: rgba(46, 39, 35, 0.94);
  box-shadow: 0 1px 0 rgba(228, 223, 218, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  box-sizing: content-box;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  font-size: 1.75rem;
  font-weight: 800;
  font-stretch: 62%;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a:not(.btn) {
  position: relative;
  padding: 0.5rem 0;
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
}

/* El hilo rojo marca la sección activa */
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 2px;
  background: var(--hilo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.site-nav {
  margin-left: auto;
}

/* Instagram fijo en la cabecera */
.header-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-left: 1.75rem;
  padding-left: 1.75rem;
  border-left: 1px solid rgba(228, 223, 218, 0.2);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}

.header-ig .ig-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.header-ig:hover .header-ig__handle {
  text-decoration: underline;
  text-decoration-color: var(--hilo);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 55% 70% at 72% 45%, var(--estudio-luz) 0%, #5E4F45 45%, var(--estudio) 100%);
  color: var(--piedra);
  padding: 0 var(--gutter);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  max-width: var(--max);
  min-height: inherit;
  margin: 0 auto;
  padding: var(--header-h) 0 0;
}

.hero__text {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 9vh, 6rem);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  font-weight: inherit;
}

.hero__name {
  display: block;
  font-size: clamp(6rem, 17vw, 15rem);
  font-weight: 850;
  font-stretch: 62%;
  line-height: 0.8;
  letter-spacing: -0.015em;
  color: var(--piedra);
  /* recorte para la animación de entrada */
  clip-path: inset(0 0 0 0);
}

.hero__role {
  display: block;
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.2;
  color: var(--arena-clara);
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(228, 223, 218, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}



.hero__photo {
  position: relative;
  z-index: 1;
  align-self: end;
  height: calc(100svh - var(--header-h));
  max-height: 60rem;
}

/* Fotos apiladas; los bordes se funden con la luz del fondo */
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.8s ease;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 78%, transparent 100%);
  mask-composite: intersect;
}

.hero__photo img.is-active {
  opacity: 1;
}

/* Único momento animado: entrada del nombre y la foto */
@media (prefers-reduced-motion: no-preference) {
  .hero__name {
    animation: name-in 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }

  .hero__role,
  .hero__lead,
  .hero__actions {
    animation: fade-in 0.7s ease both;
    animation-delay: 0.45s;
  }

  .hero__photo {
    animation: photo-in 1.4s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }

  @keyframes name-in {
    from { clip-path: inset(100% 0 0 0); transform: translateY(0.15em); }
    to   { clip-path: inset(0 0 0 0); transform: none; }
  }

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

  @keyframes photo-in {
    from { opacity: 0; transform: scale(1.04); }
    to   { opacity: 1; transform: none; }
  }
}

/* --- Códigos de descuento (colaboraciones) ------------------------------ */

.promo {
  background: var(--tinta);
  color: var(--piedra);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter);
  border-top: 2px solid var(--hilo);
}

.promo__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.promo h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1;
}

.promo__text p {
  max-width: 38rem;
  margin-top: 0.75rem;
  color: rgba(228, 223, 218, 0.78);
}

/* Una columna por marca; si hay muchas, pasan a la fila siguiente */
.deals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 2rem;
}

.deal {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.9rem;
}

.deal__brand {
  font-size: 1.75rem;
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
}

.deal__what {
  margin-top: -0.4rem;
  font-size: var(--step--1);
  color: rgba(228, 223, 218, 0.72);
}

/* El cupón: borde discontinuo como un vale recortable */
.coupon {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "label label"
    "code  copy";
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding: 0.9rem 0.9rem 0.9rem 1.25rem;
  border: 2px dashed rgba(228, 223, 218, 0.4);
  border-radius: 4px;
}

.coupon__label {
  grid-area: label;
  font-size: var(--step--1);
  color: var(--arena-clara);
}

.coupon__code {
  grid-area: code;
  font-size: 2.25rem;
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  letter-spacing: 0.04em;
  user-select: all;
}

.coupon__copy {
  grid-area: copy;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 2px;
  background: var(--hilo);
  color: #fff;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.coupon__copy:hover {
  background: var(--hilo-oscuro);
}

.coupon.is-copied .coupon__copy {
  background: var(--piedra);
  color: var(--tinta);
}

.promo__link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hilo);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.promo__link:hover {
  color: #fff;
}

.coupon__status {
  min-height: 1.4em;
  font-size: var(--step--1);
  color: var(--arena-clara);
}

.coupon__status:empty {
  display: none;
}

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

.about {
  background: var(--arena-clara);
  padding: var(--section-y) var(--gutter);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 2px;
}

.about__text {
  max-width: 36rem;
}

.about__text h2 {
  margin-bottom: 2rem;
}

.about__intro {
  margin-bottom: 1.25rem;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.35;
  color: var(--tinta);
}

.about__text p:not(.about__intro) {
  color: var(--tinta-suave);
}

.about__text p + p {
  margin-top: 1rem;
}

.about__focus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 30, 27, 0.18);
}

.about__focus li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 600;
  line-height: 1.35;
}

/* el hilo rojo como marcador */
.about__focus li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 1rem;
  height: 2px;
  background: var(--hilo);
}

/* --- Cómo trabajo -------------------------------------------------------- */

.method {
  background: var(--piedra);
  padding: var(--section-y) var(--gutter);
}

.method__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas:
    "head  photo"
    "steps photo";
  gap: 3rem clamp(2.5rem, 6vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.method__head {
  grid-area: head;
}

.method__head p {
  margin-top: 1rem;
  font-size: var(--step-1);
  color: var(--tinta-suave);
}

.steps {
  grid-area: steps;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem 2.5rem;
  counter-reset: paso;
}

.step {
  counter-increment: paso;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(34, 30, 27, 0.2);
}

.step::before {
  content: counter(paso);
  display: block;
  margin-bottom: 0.75rem;
  font-size: 3.5rem;
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  color: var(--arena);
}

.step p {
  margin-top: 0.5rem;
  color: var(--tinta-suave);
}

.method__photo {
  grid-area: photo;
  align-self: end;
}

.method__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 2px;
}

/* --- Galería ------------------------------------------------------------- */

.gallery {
  background: var(--negro);
  color: var(--piedra);
  padding: var(--section-y) 0;
}

.gallery__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  box-sizing: content-box;
  margin: 0 auto 2.5rem;
  padding: 0 var(--gutter);
}

/* Cinta de fotos: se desliza sin parar. El JS duplica las fotos y anima
   cada una por separado (no la fila entera): en iPhone, una capa animada
   de miles de píxeles de ancho supera la memoria de Safari y sale en negro. */
.gallery__viewport {
  overflow: hidden;
}

.gallery__track {
  display: flex;
  width: max-content;
}

.gallery__track li {
  flex: 0 0 clamp(15rem, 24vw, 22rem);
  margin-right: 0.5rem; /* margen en vez de gap: la distancia del bucle incluye el último hueco */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Con movimiento reducido: fila quieta que se desliza a mano */
@media (prefers-reduced-motion: reduce) {
  .gallery__viewport {
    overflow-x: auto;
  }
}

.gallery__track img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
}

/* --- Instagram ----------------------------------------------------------- */

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hilo);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.ig-link:hover {
  color: #fff;
}

.ig-icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* --- Llamada final ------------------------------------------------------- */

.cta {
  background:
    radial-gradient(ellipse 60% 90% at 50% 100%, #5E4F45 0%, var(--estudio) 100%);
  color: var(--piedra);
  padding: calc(var(--section-y) * 1.2) var(--gutter);
}

.cta__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 0.82;
}

.cta p {
  max-width: 32rem;
  margin: 1.75rem 0 2.25rem;
  font-size: var(--step-1);
  color: rgba(228, 223, 218, 0.82);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.site-footer {
  background: var(--tinta);
  color: rgba(228, 223, 218, 0.75);
  padding: 2.5rem var(--gutter);
  font-size: var(--step--1);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer__brand {
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 62%;
  color: var(--piedra);
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__links a {
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--piedra);
  text-decoration: underline;
  text-decoration-color: var(--hilo);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* --- Tablet -------------------------------------------------------------- */

@media (max-width: 960px) {
  .method__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "steps"
      "photo";
  }

  .method__photo {
    max-width: 28rem;
  }

  .promo__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Móvil --------------------------------------------------------------- */

@media (max-width: 760px) {
  :root {
    --header-h: 4rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-right: -0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    order: 2;
  }

  /* Instagram junto al botón del menú, siempre visible */
  .header-ig {
    order: 1;
    margin-left: auto;
    margin-right: 0.5rem;
    padding-left: 0;
    border-left: 0;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s ease, background-color 0.25s ease;
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after  { top: 7px; }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--estudio);
    border-top: 1px solid rgba(228, 223, 218, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    font-size: var(--step-1);
    border-bottom: 1px solid rgba(228, 223, 218, 0.1);
  }

  .site-nav a:not(.btn)::after {
    display: none;
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 1.25rem;
    min-height: 3rem;
    font-size: var(--step-0);
  }

  .site-header.menu-open {
    background: var(--estudio);
  }

  /* Hero: la foto ocupa la pantalla y el texto se apoya abajo */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
  }

  .hero__photo {
    position: absolute;
    inset: 0;
    align-self: stretch;
    height: auto;
    max-height: none;
  }

  .hero__photo img {
    object-position: center 12%;
    -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 82%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to bottom, #000 35%, transparent 82%);
    mask-composite: add;
  }


  .hero {
    background: var(--estudio);
  }

  .hero__text {
    padding-top: 55svh;
    padding-bottom: 2.5rem;
    text-shadow: 0 1px 14px rgba(46, 39, 35, 0.65);
  }

  .hero__name {
    font-size: clamp(5rem, 30vw, 9rem);
  }

  .hero__lead {
    font-size: var(--step-0);
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .about__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__focus {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta .btn {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Pantallas muy estrechas: en la cabecera solo cabe el icono */
@media (max-width: 359px) {
  .header-ig__handle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* --- Página 404 ---------------------------------------------------------- */

.not-found {
  /* ocupa la pantalla menos el pie, para que no asome el fondo claro */
  min-height: calc(100vh - 7.5rem);
  min-height: calc(100svh - 7.5rem);
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem;
  background: radial-gradient(ellipse 60% 90% at 70% 40%, #5E4F45 0%, var(--estudio) 100%);
  color: var(--piedra);
}

.not-found__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.not-found__code {
  font-size: clamp(6rem, 22vw, 16rem);
  font-weight: 850;
  font-stretch: 62%;
  line-height: 0.8;
  color: rgba(228, 223, 218, 0.18);
}

.not-found h1 {
  margin-top: 1rem;
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
}

.not-found p:not(.not-found__code) {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: var(--step-1);
  color: rgba(228, 223, 218, 0.82);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
