/* ==========================================================================
   silva-2026.css — capa de rediseño (portada, enlaces y piezas comunes), nov 2026.

   Se carga DESPUÉS de site.css y no lo sustituye: site.css queda byte a byte
   como está en producción. Va escrita a mano, sin Tailwind, a propósito:
   `npm run build` no reproduce el site.css publicado (quita clases que usan
   el panel PHP y la galería; comprobado el 11 nov 2026).

   Todo cuelga de la clase .s26 en <body>, así una página que no la lleve no
   se entera de este archivo.

   Movimiento: assets/js/silva-2026.js. Sin ese archivo la página se ve y se
   lee entera: los estados «ocultos» solo existen bajo html.mov, clase que
   pone el propio script, y nunca con prefers-reduced-motion.
   ========================================================================== */

.s26 {
  --s-crema: #fbf9f5;
  --s-crema-2: #f5f3ef;
  --s-blanco: #ffffff;
  --s-tinta: #1b1c1a;
  --s-noche: #181715;
  --s-texto: #57534e;
  --s-texto-claro: #c9c5bd;
  --s-bronce: #745a27;
  --s-bronce-claro: #d8b975;
  --s-linea: rgb(27 28 26 / 0.13);
  --s-linea-clara: rgb(255 255 255 / 0.16);
  --s-salida: cubic-bezier(0.23, 1, 0.32, 1);
  --s-margen: clamp(1.5rem, 4.6vw, 4.5rem);
  --s-ancho: 90rem;
  --s-serif: "Cormorant Garamond", serif;
  --s-sans: "Plus Jakarta Sans", sans-serif;

  caret-color: var(--s-bronce);
  scrollbar-color: #b9b2a3 var(--s-crema-2);
}

.s26 ::selection {
  background: var(--s-bronce);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Piezas comunes
-------------------------------------------------------------------------- */
.s26 .s-contenedor {
  width: 100%;
  max-width: var(--s-ancho);
  margin-inline: auto;
  padding-inline: var(--s-margen);
}

.s26 .s-seccion {
  padding-block: clamp(5rem, 10vw, 9.5rem);
}

.s26 .s-titulo {
  font-family: var(--s-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--s-tinta);
  text-wrap: balance;
}

.s26 .s-titulo em {
  font-style: italic;
  font-weight: 300;
}

.s26 .s-texto {
  max-width: 62ch;
  color: var(--s-texto);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.s26 .s-texto p + p {
  margin-top: 1.15em;
}

/* Enlaces dentro de texto: subrayado fino en bronce que se engrosa. */
.s26 .s-texto a,
.s26 .s-enlace {
  color: var(--s-bronce);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgb(116 90 39 / 0.45);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.s26 .s-texto a:hover,
.s26 .s-enlace:hover {
  text-decoration-color: currentColor;
}

.s26 .s-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-family: var(--s-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.16s var(--s-salida);
}

.s26 .s-boton:active {
  transform: scale(0.97);
}

.s26 .s-boton svg {
  flex: 0 0 auto;
}

.s26 .s-boton--tinta {
  background: var(--s-tinta);
  color: #ffffff;
}

.s26 .s-boton--tinta:hover {
  background: var(--s-bronce);
}

.s26 .s-boton--linea {
  border-color: rgb(27 28 26 / 0.3);
  color: var(--s-tinta);
}

.s26 .s-boton--linea:hover {
  border-color: var(--s-tinta);
}

.s26 .s-boton--whatsapp {
  background: #166534;
  color: #ffffff;
}

.s26 .s-boton--whatsapp:hover {
  background: #14532d;
}

.s26 .s-boton--clara {
  border-color: rgb(255 255 255 / 0.28);
  color: #ffffff;
}

.s26 .s-boton--clara:hover {
  border-color: rgb(255 255 255 / 0.7);
}

/* Enlace con flecha dibujada (las WOFF2 de marca no traen U+2192). */
.s26 .s-flecha {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--s-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--s-bronce);
}

.s26 .s-flecha svg {
  width: 1.5rem;
  height: 0.75rem;
  transition: transform 0.3s var(--s-salida);
}

.s26 button.s-flecha {
  cursor: pointer;
}

.s26 a:hover > .s-flecha svg,
.s26 a.s-flecha:hover svg,
.s26 button.s-flecha:hover svg {
  transform: translateX(0.35rem);
}

/* Marco de fotografía: recorta la imagen, que es más alta que él para poder
   desplazarse dentro sin enseñar los bordes (parallax). */
.s26 .s-marco {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #e9e5dd;
}

.s26 .s-marco img {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: none;
  object-fit: cover;
}

/* Imagen con margen arriba y abajo: se mueve en los dos sentidos. */
.s26 .s-marco img[data-parallax=""],
.s26 .s-marco img:not([data-parallax]) {
  top: -9%;
  height: 118%;
  --rango: 7.2%;
}

/* Imagen anclada arriba (retratos: no se corta la cabeza): solo sube. */
.s26 .s-marco img[data-parallax="sube"] {
  top: 0;
  height: 113%;
  --rango: 11%;
}

.s26 [data-parallax] {
  translate: 0 calc(var(--p, 0) * var(--rango, 6%));
}

.s26 [data-parallax].s-en-vista {
  will-change: translate;
}

/* --------------------------------------------------------------------------
   Lenguaje común (11 nov 2026, segunda vuelta): piezas flotantes y redondeadas.
   Referencia de composición: traced.life (navegación flotante, paneles con
   esquinas amplias, botones de esquina corta (no de pastilla), texto que se enciende con el scroll,
   imagen fija con pasos). Colores y tipografías, los de la casa.
-------------------------------------------------------------------------- */
.s26 {
  --s-radio: 1.5rem;
  --s-radio-g: 1.75rem;
  /* Botones: esquina corta. Una pastilla en un control de 44-52 px parece de plantilla. */
  --s-radio-boton: 0.625rem;
  --s-borde: 0.75rem;
  --s-sangria: max(var(--s-margen), calc((100vw - var(--s-ancho)) / 2 + var(--s-margen)));
  --s-vidrio: rgb(251 249 245 / 0.8);
}

.s26 .s-boton {
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--s-radio-boton);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.s26 .s-boton--blanca {
  background: #ffffff;
  color: var(--s-tinta);
}

.s26 .s-boton--blanca:hover {
  background: var(--s-bronce-claro);
}

.s26 .s-marco {
  border-radius: var(--s-radio-g);
}

/* El SOS flotante (site.css lo hace de pastilla): la misma esquina que los demás botones. */
.s26 .sos-fab {
  border-radius: var(--s-radio-boton);
}

/* Botón redondo con flecha (carriles, fichas). */
.s26 .s-ronda {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #ffffff;
  color: var(--s-tinta);
  box-shadow: 0 0 0 1px rgb(27 28 26 / 0.08);
  transition: background-color 0.2s ease, scale 0.16s var(--s-salida), opacity 0.2s ease;
}

.s26 .s-ronda svg {
  width: 1.25rem;
  height: 0.625rem;
}

.s26 button.s-ronda {
  cursor: pointer;
}

.s26 button.s-ronda:hover {
  background: var(--s-bronce-claro);
}

.s26 button.s-ronda:active {
  scale: 0.96;
}

.s26 button.s-ronda[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* Rótulo de pastilla. */
.s26 .s-pastilla {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 1.75rem;
  padding: 0 0.8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--s-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Cabecera de sección: titular a la izquierda, texto a la derecha. */
.s26 .s-cabecera {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .s26 .s-cabecera {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: end;
    gap: clamp(2rem, 5vw, 5rem);
  }
}

/* Carril horizontal: la primera tarjeta alinea con el contenedor y el resto
   sale por la derecha. */
.s26 .s-carril {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-inline: var(--s-sangria);
  scroll-padding-inline: var(--s-sangria);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.s26 .s-carril::-webkit-scrollbar {
  display: none;
}

.s26 .s-carril:focus-visible {
  outline: 2px solid var(--s-bronce);
  outline-offset: 4px;
}

.s26 .s-carril > li {
  flex: 0 0 min(78vw, 22rem);
  scroll-snap-align: start;
}

/* Los botones solo en pantallas anchas: en el móvil se desliza con el dedo. */
.s26 .s-carril-controles {
  display: none;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .s26 .s-carril-controles {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Navegación flotante (todas las páginas). El marcado no cambia: la barra
   pasa a ser una pieza de vidrio separada de los bordes.
-------------------------------------------------------------------------- */
.s26 nav[aria-label="Navegación principal"] {
  top: var(--s-borde);
  padding-inline: var(--s-borde);
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}

.s26 nav[aria-label="Navegación principal"] > div:first-child {
  height: 4rem;
  max-width: 88.5rem;
  padding-inline: 1.1rem 0.6rem;
  border-radius: 1.125rem;
  background: var(--s-vidrio);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 0 0 1px rgb(27 28 26 / 0.06), 0 14px 34px -22px rgb(27 28 26 / 0.4);
  pointer-events: auto;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.s26.s-con-scroll nav[aria-label="Navegación principal"] > div:first-child {
  background: rgb(251 249 245 / 0.93);
  box-shadow: 0 0 0 1px rgb(27 28 26 / 0.07), 0 18px 40px -22px rgb(27 28 26 / 0.5);
}

/* Enlaces junto al logotipo; Instagram y la cita, a la derecha. */
.s26 nav[aria-label="Navegación principal"] > div:first-child > div:nth-child(2) {
  margin-left: 2rem;
}

.s26 nav[aria-label="Navegación principal"] > div:first-child > div:nth-child(2) a {
  white-space: nowrap;
}

/* Entre 1024 y 1279 px no cabe todo a tamaño normal: se aprieta un poco. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .s26 nav[aria-label="Navegación principal"] > div:first-child > div:nth-child(2) {
    gap: 1.1rem;
    margin-left: 1.25rem;
    font-size: 0.875rem;
  }
}

/* El enlace activo del desplegable lleva py-5 y filete: sin esto baja un par de píxeles. */
.s26 nav[aria-label="Navegación principal"] [data-dropdown] > a[aria-current="page"] {
  padding-block: 0 0.125rem;
}

.s26 .s-nav-insta {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border-radius: 50%;
  color: var(--s-tinta);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.s26 .s-nav-insta:hover {
  background: #ffffff;
  color: var(--s-bronce);
}

.s26 .s-nav-insta svg {
  width: 1.375rem;
  height: 1.375rem;
}

.s26 nav[aria-label="Navegación principal"] a[href^="https://wa.me"] {
  margin-left: 0.5rem;
  border-color: transparent;
  border-radius: var(--s-radio-boton);
  background: var(--s-tinta);
  color: #ffffff;
}

.s26 nav[aria-label="Navegación principal"] a[href^="https://wa.me"]:hover {
  background: var(--s-bronce);
}

.s26 #mobile-menu {
  max-height: calc(100svh - 6.5rem);
  margin-top: 0.5rem;
  border: 0;
  border-radius: 1.125rem;
  background: rgb(251 249 245 / 0.97);
  box-shadow: 0 0 0 1px rgb(27 28 26 / 0.06), 0 24px 50px -24px rgb(27 28 26 / 0.5);
  pointer-events: auto;
}

/* Móvil: dos botones flotantes en todas las páginas, por encima de la barra de la cita.
   SOS abajo a la izquierda (su sitio de siempre, lo pone site.css) y WhatsApp abajo a la
   derecha: el enlace ya existía, pero solo se veía en pantallas anchas. Con el banner de
   cookies abierto se esconden los dos, igual que hacía ya el de SOS. */
@media (max-width: 767px) {
  .s26 > a.fixed[href^="https://wa.me"] {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 45;
    display: flex;
    width: 3.25rem;
    height: 3.25rem;
  }

  .s26:has(.mobile-cta-bar) > a.fixed[href^="https://wa.me"] {
    bottom: calc(3.5rem + env(safe-area-inset-bottom) + 0.75rem);
  }

  .s26:has([data-consent-banner]:not([hidden])) > a.fixed[href^="https://wa.me"] {
    display: none;
  }
}

/* Portada en móvil: mientras la barra está encima del retrato es de vidrio casi
   transparente, para no tapar la foto. Cuando el retrato ya ha pasado (clase
   s-foto-pasada, la pone silva-2026.js) vuelve al vidrio crema de siempre. */
@media (max-width: 899px) {
  .s26:has(main > .s-hero):not(.s-foto-pasada) nav[aria-label="Navegación principal"] > div:first-child {
    background: rgb(255 255 255 / 0.1);
    -webkit-backdrop-filter: blur(6px) saturate(1.6);
    backdrop-filter: blur(6px) saturate(1.6);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.38), inset 0 1px 0 rgb(255 255 255 / 0.6),
      0 12px 30px -22px rgb(27 28 26 / 0.4);
  }
}

/* Botones de la casa en las páginas interiores: la misma esquina que los nuevos. */
.s26 :is(main, #mobile-menu) a[class*="tracking-widest"][class*="py-"] {
  border-radius: var(--s-radio-boton);
}

/* Pie como tarjeta (todas las páginas). */
.s26 > footer {
  margin: var(--s-borde);
  overflow: hidden;
  border-radius: var(--s-radio-g);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgb(27 28 26 / 0.06);
}

/* --------------------------------------------------------------------------
   1) Cabecera: texto abajo a la izquierda, retrato a la derecha en una pieza
      redondeada que llega arriba (la navegación flota encima).
-------------------------------------------------------------------------- */
.s26 .s-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: var(--s-borde);
  overflow: clip;
  background: var(--s-crema);
}

/* Halo cálido detrás del texto. */
.s26 .s-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 48% at 8% 82%, rgb(216 185 117 / 0.36), transparent 72%),
    radial-gradient(40% 36% at 40% 30%, rgb(116 90 39 / 0.09), transparent 72%);
}

.s26 .s-hero-foto {
  position: relative;
  order: -1;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 66svh;
  border-radius: var(--s-radio-g);
  background: #e9e5dd;
}

.s26 .s-hero-foto > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 8%;
  --rango: 10%;
}

.s26 .s-hero-columna {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 0 calc(var(--s-margen) - var(--s-borde)) 1.5rem;
}

.s26 .s-hero-titulo {
  font-family: var(--s-serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 5.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--s-tinta);
}

.s26 .s-hero-titulo em {
  font-style: italic;
  color: var(--s-bronce);
}

.s26 .s-hero-linea {
  display: block;
  overflow: hidden;
  margin-bottom: -0.1em;
  padding-bottom: 0.1em;
}

.s26 .s-hero-linea > span {
  display: block;
}

.s26 .s-hero-entradilla {
  max-width: 44ch;
  margin-top: 1.5rem;
  color: var(--s-texto);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.65;
  text-wrap: pretty;
}

.s26 .s-hero-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.s26 .s-hero-nota {
  max-width: 52ch;
  margin-top: 1.5rem;
  color: var(--s-texto);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.6;
}

.s26 .s-principios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--s-linea);
}

.s26 .s-principios li {
  display: grid;
  gap: 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.s26 .s-principios strong {
  color: var(--s-tinta);
  font-weight: 500;
}

.s26 .s-principios span {
  color: var(--s-texto);
  font-weight: 300;
}

/* Ficha flotante sobre el retrato. */
.s26 .s-ficha {
  position: absolute;
  right: var(--s-borde);
  bottom: var(--s-borde);
  left: var(--s-borde);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.55rem 0.55rem 0.65rem;
  border-radius: 1.125rem;
  background: var(--s-vidrio);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 34px -18px rgb(0 0 0 / 0.5);
  color: var(--s-tinta);
}

.s26 .s-ficha > img {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.3rem;
  border-radius: 0.75rem;
  background: #ffffff;
  object-fit: contain;
}

.s26 .s-ficha-texto {
  display: grid;
  flex: 1;
  line-height: 1.3;
}

.s26 .s-ficha-texto strong {
  font-size: 0.9375rem;
  font-weight: 500;
}

.s26 .s-ficha-texto span {
  color: var(--s-texto);
  font-size: 0.8125rem;
  font-weight: 300;
}

.s26 .s-ficha:hover .s-ronda {
  background: var(--s-bronce-claro);
}

/* A la izquierda del retrato: abajo a la derecha está el botón fijo de WhatsApp. */
@media (min-width: 600px) {
  .s26 .s-ficha {
    right: auto;
    min-width: 18.5rem;
  }
}

@media (min-width: 900px) {
  .s26 .s-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    min-height: max(100svh, 42rem);
  }

  .s26 .s-hero-foto {
    order: 0;
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
  }

  .s26 .s-hero-columna {
    justify-content: space-between;
    /* Abajo deja sitio al botón fijo de SOS. */
    padding: 7.5rem 0 4.25rem calc(var(--s-sangria) - var(--s-borde));
  }

  .s26 .s-hero-texto {
    margin-block: auto;
  }
}

@keyframes s-aparece {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@keyframes s-sube {
  from {
    transform: translateY(108%);
  }
}

@keyframes s-enfoca {
  from {
    opacity: 0.55;
    filter: blur(14px);
    scale: 1.07;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .s26 .s-hero-linea > span {
    animation: s-sube 1.1s var(--s-salida) both;
  }

  .s26 .s-hero-linea:nth-child(2) > span {
    animation-delay: 0.09s;
  }

  .s26 .s-hero-entradilla {
    animation: s-aparece 0.9s var(--s-salida) 0.22s both;
  }

  .s26 .s-hero-acciones {
    animation: s-aparece 0.9s var(--s-salida) 0.3s both;
  }

  .s26 .s-hero-nota {
    animation: s-aparece 0.9s var(--s-salida) 0.38s both;
  }

  .s26 .s-principios {
    animation: s-aparece 0.9s var(--s-salida) 0.46s both;
  }

  .s26 .s-hero-foto > img {
    animation: s-enfoca 1.5s var(--s-salida) both;
  }

  .s26 .s-ficha {
    animation: s-aparece 0.9s var(--s-salida) 0.7s both;
  }
}

/* --------------------------------------------------------------------------
   2) Criterio: panel de noche; el párrafo se enciende con el scroll.
-------------------------------------------------------------------------- */
.s26 .s-manifiesto {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-inline: var(--s-borde);
  padding-block: clamp(6rem, 15vw, 13rem);
  border-radius: var(--s-radio-g);
  background: var(--s-noche);
  color: #ffffff;
}

.s26 .s-manifiesto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 46% at 78% 12%, rgb(216 185 117 / 0.3), transparent 70%),
    radial-gradient(38% 44% at 14% 92%, rgb(116 90 39 / 0.42), transparent 72%),
    radial-gradient(30% 30% at 60% 70%, rgb(255 244 222 / 0.07), transparent 70%);
}

.s26 .s-manifiesto-rejilla {
  display: grid;
  gap: 1.75rem;
}

.s26 .s-manifiesto .s-pastilla {
  color: rgb(255 255 255 / 0.78);
}

.s26 .s-manifiesto-texto {
  max-width: 24em;
  font-family: var(--s-serif);
  font-weight: 300;
  font-size: clamp(1.85rem, 3.7vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .s26 .s-manifiesto-rejilla {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: start;
  }

  .s26 .s-manifiesto .s-pastilla {
    margin-top: 0.9rem;
  }
}

html.mov .s26 [data-encender] .s-palabra {
  opacity: 0.2;
  transition: opacity 0.4s ease;
}

html.mov .s26 [data-encender] .s-palabra.s-encendida {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   3) Tratamientos: carril de tarjetas (foto arriba, ficha blanca debajo).
-------------------------------------------------------------------------- */
.s26 .s-tarjeta > a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.s26 .s-tarjeta-foto {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--s-radio);
  background: #e9e5dd;
}

.s26 .s-tarjeta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transition: scale 0.9s var(--s-salida);
}

.s26 .s-tarjeta > a:hover .s-tarjeta-foto img {
  scale: 1.04;
}

/* Aviso sobre las tarjetas cuyo fotograma lleva dibujos generados con IA. */
.s26 .s-tarjeta-ia {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgb(24 23 21 / 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

/* Hueco sin fotografía todavía: un desenfoque en los tonos de la casa. */
.s26 .s-tarjeta-foto--pendiente {
  background:
    radial-gradient(60% 46% at 30% 28%, rgb(255 250 240 / 0.95), transparent 70%),
    radial-gradient(70% 55% at 76% 78%, rgb(196 150 132 / 0.6), transparent 72%),
    radial-gradient(60% 60% at 20% 88%, rgb(216 185 117 / 0.55), transparent 70%),
    #e7d9c6;
}

.s26 .s-tarjeta-pie {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: var(--s-radio);
  background: #ffffff;
}

.s26 .s-tarjeta-pie h3 {
  font-family: var(--s-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--s-tinta);
}

.s26 .s-tarjeta-pie p {
  margin-block: 0.6rem 1.1rem;
  color: var(--s-texto);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

.s26 .s-tarjeta-pie .s-flecha {
  margin-top: auto;
}

.s26 .s-trat {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* --------------------------------------------------------------------------
   4) Instagram: panel de noche con las portadas de sus reels.
-------------------------------------------------------------------------- */
.s26 .s-insta {
  --s-sangria: max(var(--s-margen), calc((100vw - var(--s-borde) * 2 - var(--s-ancho)) / 2 + var(--s-margen)));
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-inline: var(--s-borde);
  padding-block: clamp(4rem, 9vw, 7.5rem);
  border-radius: var(--s-radio-g);
  background: var(--s-noche);
  color: #ffffff;
}

.s26 .s-insta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 92% 8%, rgb(216 185 117 / 0.22), transparent 70%),
    radial-gradient(36% 40% at 4% 96%, rgb(116 90 39 / 0.34), transparent 72%);
}

.s26 .s-insta-cabecera {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(2rem, 4.5vw, 3.5rem);
}

.s26 .s-insta .s-titulo {
  margin-top: 1.5rem;
  color: #ffffff;
}

.s26 .s-insta .s-texto {
  color: var(--s-texto-claro);
}

.s26 .s-insta-cuenta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px var(--s-linea-clara);
  transition: background-color 0.2s ease;
}

.s26 .s-insta-cuenta:hover {
  background: rgb(255 255 255 / 0.14);
}

.s26 .s-insta-cuenta > img {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
}

.s26 .s-insta-cuenta > span {
  display: grid;
  line-height: 1.3;
}

.s26 .s-insta-cuenta strong {
  font-size: 0.9375rem;
  font-weight: 500;
}

.s26 .s-insta-cuenta span span {
  color: var(--s-texto-claro);
  font-size: 0.75rem;
  font-weight: 300;
}

.s26 .s-insta-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .s26 .s-insta-cabecera {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: end;
    gap: clamp(2rem, 5vw, 5rem);
  }
}

.s26 .s-carril--reels > li {
  flex-basis: min(62vw, 17rem);
}

.s26 .s-reel {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: var(--s-radio);
  background: #26241f;
  color: #ffffff;
}

.s26 .s-reel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.9s var(--s-salida);
}

.s26 .s-reel:hover > :is(img, video) {
  scale: 1.04;
}

/* El vídeo va encima de la imagen (su primer fotograma) y solo se ve cuando ya tiene datos. */
.s26 .s-reel > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.9s var(--s-salida);
}

.s26 .s-reel::after {
  content: "";
  position: absolute;
  inset: 62% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.5));
  pointer-events: none;
}

.s26 .s-reel-pie {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  max-width: calc(100% - 1.5rem);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgb(24 23 21 / 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

.s26 .s-reel-ver {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.94);
  color: var(--s-tinta);
  transition: scale 0.3s var(--s-salida);
}

.s26 .s-reel-ver svg {
  width: 1.5rem;
  height: 1.5rem;
}

.s26 .s-reel:hover .s-reel-ver {
  scale: 1.08;
}

.s26 .s-reel--mas {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px var(--s-linea-clara);
  transition: background-color 0.2s ease;
}

.s26 .s-reel--mas::after {
  content: none;
}

.s26 .s-reel--mas:hover {
  background: rgb(255 255 255 / 0.11);
}

.s26 .s-reel--mas > svg {
  width: 2rem;
  height: 2rem;
}

.s26 .s-reel--mas > span:not(.s-ronda) {
  margin-top: auto;
  margin-bottom: 1rem;
  font-family: var(--s-serif);
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.05;
}

.s26 .s-insta-fichas {
  max-width: 62ch;
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--s-texto-claro);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
}

.s26 .s-insta-fichas a {
  color: var(--s-bronce-claro);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgb(216 185 117 / 0.5);
}

.s26 .s-insta-fichas a:hover {
  text-decoration-color: currentColor;
}

/* --------------------------------------------------------------------------
   5) Motivos de consulta: seis fichas blancas.
-------------------------------------------------------------------------- */
.s26 .s-motivos-lista {
  display: grid;
  gap: 0.75rem;
}

.s26 .s-motivo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: var(--s-radio);
  background: #ffffff;
  transition: box-shadow 0.3s ease, translate 0.3s var(--s-salida);
}

.s26 .s-motivo h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--s-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--s-tinta);
}

.s26 .s-motivo h3 svg {
  flex: none;
  width: 1.5rem;
  height: 0.75rem;
  color: var(--s-bronce);
  transition: translate 0.3s var(--s-salida);
}

.s26 .s-motivo p {
  color: var(--s-texto);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
}

.s26 .s-motivo:hover {
  box-shadow: 0 24px 44px -30px rgb(27 28 26 / 0.45);
  translate: 0 -2px;
}

.s26 .s-motivo:hover h3 svg {
  translate: 0.35rem 0;
}

.s26 .s-motivos-pie {
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .s26 .s-motivos-lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .s26 .s-motivos-lista {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.s26 .s-motivos {
  padding-top: clamp(4rem, 8vw, 7rem);
}

/* --------------------------------------------------------------------------
   6) Forma de trabajar: la foto se queda fija y los puntos pasan a su lado.
-------------------------------------------------------------------------- */
.s26 .s-pasos {
  padding-top: 0;
}

.s26 .s-pasos-rejilla {
  display: grid;
  gap: 2.5rem;
}

.s26 .s-pasos-fija {
  position: relative;
}

.s26 .s-pasos-fija .s-marco {
  aspect-ratio: 4 / 5;
  max-height: 70svh;
  width: 100%;
}

.s26 .s-chapa {
  position: absolute;
  bottom: var(--s-borde);
  left: var(--s-borde);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--s-vidrio);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--s-tinta);
  font-size: 0.8125rem;
  font-weight: 500;
}

.s26 .s-pasos-lista {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-left: 1.75rem;
  border-left: 2px solid var(--s-linea);
}

.s26 .s-pasos-lista::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  width: 2px;
  height: calc(var(--avance, 0) * 100%);
  background: var(--s-bronce);
}

.s26 .s-pasos-lista > li {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.s26 .s-pasos-lista > li + li {
  border-top: 1px solid var(--s-linea);
}

.s26 .s-pasos-lista h3 {
  font-family: var(--s-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--s-tinta);
}

.s26 .s-pasos-lista p {
  max-width: 48ch;
  margin-top: 0.7rem;
  color: var(--s-texto);
  font-weight: 300;
  line-height: 1.7;
}

.s26 .s-pasos-lista a {
  color: var(--s-bronce);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgb(116 90 39 / 0.45);
}

.s26 .s-pasos-lista a:hover {
  text-decoration-color: currentColor;
}

html.mov .s26 [data-pasos] > li {
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

html.mov .s26 [data-pasos] > li.s-activo {
  opacity: 1;
}

@media (min-width: 900px) {
  .s26 .s-pasos-rejilla {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6.5rem);
  }

  .s26 .s-pasos-fija {
    position: sticky;
    top: 6rem;
    align-self: start;
  }

  .s26 .s-pasos-fija .s-marco {
    max-height: calc(100svh - 8rem);
  }

  .s26 .s-pasos-lista > li {
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
  }
}

/* --------------------------------------------------------------------------
   7) La doctora: retrato en el mismo marco que las demás fotos, texto centrado.
-------------------------------------------------------------------------- */
.s26 .s-doctora {
  padding-top: 0;
  text-align: center;
}

.s26 .s-doctora .s-contenedor {
  display: grid;
  justify-items: center;
}

.s26 .s-doctora-retrato {
  width: min(72vw, 24rem);
}

.s26 .s-doctora-retrato .s-marco {
  aspect-ratio: 4 / 5;
}

.s26 .s-doctora .s-titulo {
  margin-top: 2.5rem;
}

.s26 .s-doctora .s-texto {
  max-width: 54ch;
  margin-top: 1.25rem;
}

.s26 .s-credenciales {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-block: 1.75rem;
}

.s26 .s-credenciales li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--s-linea);
  border-radius: 999px;
  background: #ffffff;
  color: var(--s-tinta);
  font-size: 0.8125rem;
}

.s26 .s-credenciales .ui-icon {
  width: 1rem;
  height: 1rem;
  color: var(--s-bronce);
}

.s26 .s-credenciales a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   8) Guía «Mi criterio»: una ficha blanca.
-------------------------------------------------------------------------- */
.s26 .s-guia {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.s26 .s-guia-caja {
  display: grid;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--s-radio-g);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgb(27 28 26 / 0.05), 0 34px 60px -44px rgb(27 28 26 / 0.4);
}

.s26 .s-guia-portada {
  width: 7rem;
  height: auto;
  border-radius: 0.4rem;
  box-shadow: 0 14px 26px -14px rgb(0 0 0 / 0.45);
  rotate: -2deg;
}

.s26 .s-guia-caja h2 {
  font-family: var(--s-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 300;
  line-height: 1;
  color: var(--s-tinta);
}

.s26 .s-guia-sub {
  margin-top: 0.5rem;
  font-family: var(--s-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.25;
  color: var(--s-tinta);
}

.s26 .s-guia-caja p:not(.s-guia-sub) {
  max-width: 52ch;
  margin-top: 0.6rem;
  color: var(--s-texto);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
}

.s26 .s-guia-accion {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
}

.s26 .s-guia-accion small {
  color: var(--s-texto);
  font-size: 0.75rem;
}

@media (min-width: 900px) {
  .s26 .s-guia-caja {
    grid-template-columns: 7rem minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .s26 .s-guia-accion {
    justify-items: end;
    text-align: right;
  }
}

.s26 .tira-confianza {
  margin-bottom: var(--s-borde);
}

/* --------------------------------------------------------------------------
   9) Cierre: ¿Hablamos? — panel con la foto de fondo.
-------------------------------------------------------------------------- */
.s26 .s-hablamos {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end center;
  overflow: hidden;
  min-height: min(92svh, 48rem);
  margin-inline: var(--s-borde);
  padding: clamp(6rem, 14vw, 10rem) var(--s-margen) clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--s-radio-g);
  background: var(--s-noche);
  color: #ffffff;
  text-align: center;
}

.s26 .s-hablamos-foto {
  position: absolute;
  top: -8%;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 30%;
  --rango: 6%;
}

.s26 .s-hablamos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(24 23 21 / 0.12) 0%, rgb(24 23 21 / 0.3) 42%, rgb(24 23 21 / 0.9) 100%);
}

.s26 .s-hablamos-texto {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.s26 .s-hablamos h2 {
  font-family: var(--s-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.s26 .s-hablamos .s-texto {
  max-width: 44ch;
  color: rgb(255 255 255 / 0.88);
}

.s26 .s-hablamos-acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.s26 .s-hablamos-nota {
  max-width: 46ch;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.6;
}

/* En el móvil la foto ocupa la parte alta y el texto va debajo, sin tapar la cara. */
@media (max-width: 899px) {
  .s26 .s-hablamos {
    min-height: 0;
    padding-top: min(104vw, 30rem);
  }

  .s26 .s-hablamos-foto {
    top: 0;
    height: min(112vw, 32rem);
    --rango: 0%;
  }

  .s26 .s-hablamos::after {
    background: linear-gradient(180deg, rgb(24 23 21 / 0) min(58vw, 16rem), var(--s-noche) min(106vw, 30.5rem));
  }
}

/* En pantallas anchas el texto va a la izquierda y la doctora queda a la derecha. */
@media (min-width: 900px) {
  .s26 .s-hablamos {
    place-items: end start;
    padding-inline: calc(var(--s-sangria) - var(--s-borde));
    text-align: left;
  }

  .s26 .s-hablamos-foto {
    right: -20%;
    left: auto;
    width: 120%;
  }

  .s26 .s-hablamos::after {
    background:
      linear-gradient(90deg, rgb(24 23 21 / 0.82) 0%, rgb(24 23 21 / 0.45) 38%, rgb(24 23 21 / 0) 62%),
      linear-gradient(180deg, rgb(24 23 21 / 0) 55%, rgb(24 23 21 / 0.55) 100%);
  }

  /* Foto ya encuadrada para este hueco (la doctora a la derecha, aire a la izquierda):
     la pone scripts/colocar-fotos.py y va sin el desplazamiento de arriba. */
  .s26 .s-hablamos-foto--abierta {
    right: 0;
    width: 100%;
  }

  .s26 .s-hablamos-texto {
    justify-items: start;
    max-width: 34rem;
  }

  .s26 .s-hablamos-acciones {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   9) Compartir (Web Share API con respaldo de copiar enlace)
-------------------------------------------------------------------------- */
.s26 .s-compartir-aviso {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 0.2s ease, transform 0.25s var(--s-salida);
}

.s26 .s-compartir-aviso.s-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   10) Página de enlaces (enlaces.html): destino del enlace de la bio.
-------------------------------------------------------------------------- */
.s26.s-enlaces {
  background: var(--s-crema);
}

.s26 .s-enlaces-pagina {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  padding: 2.5rem 1.5rem 4rem;
}

.s26 .s-enlaces-cabecera {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.s26 .s-enlaces-retrato {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  outline: 1px solid rgb(27 28 26 / 0.1);
  outline-offset: -1px;
  box-shadow: 0 18px 40px -20px rgb(27 28 26 / 0.45);
}

.s26 .s-enlaces-cabecera h1 {
  margin-top: 1.5rem;
  font-family: var(--s-serif);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--s-tinta);
}

.s26 .s-enlaces-lema {
  margin-top: 0.6rem;
  font-family: var(--s-serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  color: var(--s-bronce);
  text-wrap: balance;
}

.s26 .s-enlaces-entrada {
  margin-top: 1.1rem;
  color: var(--s-texto);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  text-wrap: pretty;
}

.s26 .s-enlaces-lista {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.s26 .s-enlaces-boton {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 1rem 1.25rem 1rem 1.4rem;
  border: 1px solid var(--s-linea);
  border-radius: 0.5rem;
  background: var(--s-blanco);
  color: var(--s-tinta);
  box-shadow: 0 1px 2px rgb(27 28 26 / 0.04);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.16s var(--s-salida);
}

.s26 .s-enlaces-boton:hover {
  border-color: rgb(116 90 39 / 0.55);
  box-shadow: 0 1px 2px rgb(27 28 26 / 0.05), 0 14px 30px -20px rgb(27 28 26 / 0.4);
}

.s26 .s-enlaces-boton:active {
  transform: scale(0.98);
}

.s26 .s-enlaces-boton strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.s26 .s-enlaces-boton small {
  display: block;
  margin-top: 0.2rem;
  color: var(--s-texto);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.4;
}

.s26 .s-enlaces-boton svg {
  width: 1.5rem;
  height: 0.75rem;
  color: var(--s-bronce);
}

.s26 .s-enlaces-boton--principal {
  border-color: var(--s-tinta);
  background: var(--s-tinta);
  color: #ffffff;
}

.s26 .s-enlaces-boton--principal small {
  color: #c9c5bd;
}

.s26 .s-enlaces-boton--principal svg {
  color: var(--s-bronce-claro);
}

.s26 .s-enlaces-boton--principal:hover {
  border-color: var(--s-bronce);
  background: #262723;
}

.s26 .s-enlaces-grupo {
  margin-top: 2.5rem;
}

.s26 .s-enlaces-grupo h2 {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--s-linea);
  font-family: var(--s-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--s-tinta);
}

.s26 .s-enlaces-grupo li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  border-bottom: 1px solid var(--s-linea);
  color: var(--s-tinta);
  font-size: 0.9375rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.s26 .s-enlaces-grupo li a:hover {
  color: var(--s-bronce);
}

.s26 .s-enlaces-grupo li svg {
  width: 1.5rem;
  height: 0.75rem;
  color: var(--s-bronce);
  opacity: 0.6;
}

.s26 .s-enlaces-pie {
  margin-top: 2.75rem;
  color: var(--s-texto);
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
}

.s26 .s-enlaces-pie a {
  text-decoration-line: underline;
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   11) Puente de las páginas interiores: guía, compartir e Instagram, justo
       antes del cierre. Tres piezas separadas por filetes, sin cajas.
-------------------------------------------------------------------------- */
.s26 .s-puente {
  background: var(--s-crema);
  border-top: 1px solid var(--s-linea);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.s26 .s-puente-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.s26 .s-puente-pieza {
  padding-block: 1.75rem;
  border-top: 1px solid var(--s-linea);
}

.s26 .s-puente-pieza:first-child {
  padding-top: 0;
  border-top: 0;
}

.s26 .s-puente-pieza:last-child {
  padding-bottom: 0;
}

.s26 .s-puente-titulo {
  font-family: var(--s-serif);
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--s-tinta);
  text-wrap: balance;
}

.s26 .s-puente-texto {
  margin-top: 0.6rem;
  max-width: 36ch;
  color: var(--s-texto);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
}

.s26 .s-puente-accion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 0.9rem;
}

.s26 .s-puente .s-flecha {
  min-height: 2.75rem;
  text-align: left;
}

.s26 .s-puente .s-compartir-aviso {
  margin-left: 0;
  color: var(--s-texto);
}

@media (min-width: 900px) {
  .s26 .s-puente-rejilla {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .s26 .s-puente-pieza {
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    border-top: 0;
    border-left: 1px solid var(--s-linea);
  }

  .s26 .s-puente-pieza:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .s26 .s-puente-pieza:last-child {
    padding-right: 0;
  }
}

/* Variante sobre negro (Sobre mí, que va entera en #000). */
.s26 .s-puente--noche {
  background: #000000;
  border-top-color: var(--s-linea-clara);
}

.s26 .s-puente--noche .s-puente-pieza {
  border-color: var(--s-linea-clara);
}

.s26 .s-puente--noche .s-puente-titulo {
  color: #ffffff;
}

.s26 .s-puente--noche .s-puente-texto,
.s26 .s-puente--noche .s-compartir-aviso {
  color: var(--s-texto-claro);
}

.s26 .s-puente--noche .s-flecha {
  color: var(--s-bronce-claro);
}

/* --------------------------------------------------------------------------
   12) Páginas interiores: pulido común sobre el marcado que ya tienen.
       No cambia su composición; solo detalle y la entrada del titular.
-------------------------------------------------------------------------- */
.s26 main :is(h1, h2, h3) {
  text-wrap: balance;
}

.s26 main p {
  text-wrap: pretty;
}

/* Los botones de la casa (mayúsculas espaciadas) responden a la pulsación. */
.s26 :is(main, nav) a[class*="tracking-widest"]:active {
  scale: 0.97;
}

@media (prefers-reduced-motion: no-preference) {
  .s26 main > section:first-child:not(.s-hero) h1 {
    animation: s-aparece 0.9s var(--s-salida) both;
  }

  .s26 main > section:first-child:not(.s-hero) h1 + p {
    animation: s-aparece 0.9s var(--s-salida) 0.12s both;
  }
}

/* --------------------------------------------------------------------------
   13) Páginas interiores con el lenguaje de la portada (11 nov 2026).
       Solo CSS sobre el marcado que ya tienen: lienzo crema, paneles
       redondeados, tarjetas blancas, cierres de noche con halo y botones de
       pastilla. No toca site.css ni el HTML.
-------------------------------------------------------------------------- */
/* Lienzo: las secciones blancas pasan a crema, como la portada. */
.s26 main section.bg-white {
  border-color: transparent;
  background-color: var(--s-crema);
}

/* Las secciones en crema oscuro pasan a ser paneles redondeados. */
.s26 main section:is(.bg-surface-container-low, .bg-background) {
  margin: var(--s-borde);
  border: 0;
  border-radius: var(--s-radio-g);
  background-color: var(--s-crema-2);
}

/* Cabecera clara (tratamientos, pacientes, preguntas, legales…): panel con halo
   que llega arriba; la navegación flota encima. */
.s26 main > section:first-child[class*="pt-"]:not(.relative) {
  margin: var(--s-borde) var(--s-borde) 0;
  border: 0;
  border-radius: var(--s-radio-g);
  background:
    radial-gradient(48% 80% at 4% 100%, rgb(216 185 117 / 0.32), transparent 70%),
    radial-gradient(36% 60% at 94% 0%, rgb(116 90 39 / 0.08), transparent 70%),
    var(--s-crema-2);
}

/* Cabecera oscura de las fichas: pieza redondeada, con el mismo halo que los
   paneles de noche de la portada (no sobre el vídeo de microneedling). */
.s26 main > section:first-child.relative[class*="min-h-"] {
  margin: var(--s-borde) var(--s-borde) 0;
  border-radius: var(--s-radio-g);
}

/* Las fichas cuya cabecera no trae margen arriba (neuromoduladores, labios,
   rinomodelación): que las migas no queden debajo de la navegación. */
.s26 main > section:first-child.relative[class*="min-h-"] > .relative:not([class*="pt-"]) {
  padding-top: 6.5rem;
}

.s26 main > section:first-child.relative[class*="min-h-"]:not(:has(video))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(40% 60% at 86% 0%, rgb(216 185 117 / 0.24), transparent 70%),
    radial-gradient(36% 60% at 6% 100%, rgb(116 90 39 / 0.36), transparent 72%);
  pointer-events: none;
}

/* Secciones de noche (el cierre con la cita y alguna intermedia). */
.s26 main section:is([class~="bg-[#181715]"], .bg-primary):not(:first-child) {
  margin: var(--s-borde);
  border: 0;
  border-radius: var(--s-radio-g);
  background-image:
    radial-gradient(42% 70% at 84% 0%, rgb(216 185 117 / 0.26), transparent 70%),
    radial-gradient(38% 70% at 8% 100%, rgb(116 90 39 / 0.4), transparent 72%);
}

/* Tarjetas, fotos y avisos: esquinas amplias y sombra corta. */
.s26 main :is(.rounded-lg, .rounded-xl) {
  border-radius: var(--s-radio);
}

.s26 main .rounded-r-lg {
  border-radius: 0 var(--s-radio) var(--s-radio) 0;
}

.s26 main .editorial-shadow {
  box-shadow: 0 0 0 1px rgb(27 28 26 / 0.04), 0 26px 46px -36px rgb(27 28 26 / 0.32);
}

/* Sobre lienzo crema las tarjetas van en blanco; dentro de una tarjeta blanca, en crema. */
.s26 main section.bg-white :is(div, article, li, a, aside, figure, details).bg-surface-container-low {
  background-color: #ffffff;
}

.s26 main section :is(div, article, li, aside).bg-white .bg-surface-container-low {
  background-color: var(--s-crema-2);
}

.s26 main iframe {
  border-radius: var(--s-radio);
}

.s26 main :is(input:not([type="checkbox"], [type="radio"]), textarea, select) {
  border-radius: 0.75rem;
}

/* Preguntas frecuentes: una ficha blanca por pregunta en lugar de filetes. */
.s26 main :has(> .faq-item) {
  border: 0;
}

.s26 main .faq-item {
  padding: 1.1rem 1.5rem;
  border: 0;
  border-radius: var(--s-radio);
  background: #ffffff;
}

.s26 main .faq-item + .faq-item {
  margin-top: 0.5rem;
}

/* Botones: esquina corta y en minúsculas, como los de la portada. */
.s26 :is(main, #mobile-menu) a[class*="tracking-widest"][class*="py-"],
.s26 :is(main, dialog) button[class*="tracking-widest"][class*="py-"],
.s26 nav[aria-label="Navegación principal"] a[href^="https://wa.me"] {
  border-radius: var(--s-radio-boton);
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Puente (guía, compartir, Instagram): tres fichas en vez de columnas con filete. */
.s26 .s-puente {
  border-top: 0;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.s26 .s-puente .s-puente-rejilla {
  gap: 0.75rem;
}

.s26 .s-puente .s-puente-pieza {
  padding: 1.5rem 1.5rem 1.35rem;
  border: 0;
  border-radius: var(--s-radio);
  background: #ffffff;
}

.s26 .s-puente--noche .s-puente-pieza {
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px var(--s-linea-clara);
}

/* --------------------------------------------------------------------------
   14) Página 404: el mensaje y, al lado, el vídeo de la calabaza. Es la única
       pieza generada con IA de la web y lleva su aviso encima y debajo.
-------------------------------------------------------------------------- */
.s26 .s-404 {
  display: grid;
  justify-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 62rem;
}

.s26 .s-404-figura {
  width: min(64vw, 17rem);
}

.s26 .s-404-pie {
  margin-top: 0.9rem;
  color: var(--s-texto);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
  text-wrap: pretty;
}

.s26 .s-404-pie a {
  color: var(--s-bronce);
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 900px) {
  .s26 .s-404 {
    grid-template-columns: 17rem minmax(0, 1fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
  }

  .s26 .s-404-figura {
    order: -1;
    width: 100%;
  }

  .s26 .s-404-texto {
    justify-self: start;
    text-align: left;
  }

  .s26 .s-404-texto > .flex {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Movimiento al entrar en pantalla. Solo bajo html.mov (lo pone el script y
   nunca con «reducir movimiento»): sin script, todo esto no existe.
-------------------------------------------------------------------------- */
/* Se observa [data-desvelar] y se recorta el .s-marco de dentro: un elemento
   recortado del todo no «cruza» nunca la pantalla para IntersectionObserver. */
html.mov .s26 [data-desvelar] .s-marco {
  clip-path: inset(0 0 100% 0);
}

html.mov .s26 [data-desvelar] .s-marco img {
  filter: blur(12px);
  scale: 1.08;
}

html.mov .s26 [data-desvelar].s-visto .s-marco {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.15s var(--s-salida);
}

html.mov .s26 [data-desvelar].s-visto .s-marco img {
  filter: blur(0);
  scale: 1;
  transition: filter 1.2s var(--s-salida), scale 1.5s var(--s-salida);
}

/* Las listas entran como listas: fila a fila, con el retraso acotado. */
html.mov .s26 [data-escalonado] > * {
  opacity: 0;
  transform: translateY(1.1rem);
}

html.mov .s26 [data-escalonado].s-visto > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--s-salida), transform 0.8s var(--s-salida);
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  .s26 [data-parallax] {
    translate: none;
  }
}
