/*
Theme Name: Zaryzar
Theme URI: https://zaryzar.com
Template: Divi
Author: Mariano Alvarez
Author URI: https://marianoalvarez.dev/
Description: Divi child theme for zaryzar.com. Holds the CSS shared across pages (tokens, buttons, typography) so it isn't duplicated per page. Namespaced with zz__ throughout. Header/footer live in header.php/footer.php (this theme); page bodies are built from the "Content sections" flexible content field via page-content.php — see CONTENT-SYSTEM.md.
Version: 1.0.0
Text Domain: zaryzar
*/

/* ---------- Design tokens (from app/globals.css) ---------- */
:root {
  color-scheme: light;

  --zz-background: oklch(0.995 0.002 90);
  --zz-foreground: oklch(0.2 0.006 55);

  --zz-card: oklch(1 0 0);
  --zz-card-foreground: oklch(0.2 0.006 55);

  --zz-primary: oklch(0.2 0.006 55);
  --zz-primary-foreground: oklch(0.995 0.002 90);

  --zz-secondary: oklch(0.965 0.003 90);
  --zz-secondary-foreground: oklch(0.28 0.006 55);

  --zz-muted: oklch(0.96 0.003 90);
  --zz-muted-foreground: oklch(0.44 0.006 60);

  --zz-accent: oklch(0.93 0.003 90);
  --zz-accent-foreground: oklch(0.24 0.006 55);

  --zz-champagne: oklch(0.5 0.055 76);
  --zz-champagne-foreground: oklch(0.99 0.005 85);
  --zz-espresso: oklch(0.14 0.006 55);

  /* Trust accent, reserved for the testimonials quote mark/bar only */
  --zz-quote-accent: oklch(0.5 0.055 76);

  --zz-border: oklch(0.9 0.003 90);

  /* Dark band (footer, and any other high-contrast section) — white/black dominate, beige stays an accent only */
  --zz-dark-bg: oklch(0.14 0.006 55);
  --zz-dark-foreground: oklch(0.96 0.003 90);
  --zz-dark-muted: oklch(0.7 0.006 70);
  --zz-dark-border: oklch(0.3 0.006 60);

  --zz-radius: 0.375rem;
  --zz-radius-lg: 0.6rem;
  --zz-radius-full: 999px;

  /* Focus ring: a soft champagne halo instead of the browser default outline.
     Kept as a token so every interactive element focuses the same way. */
  --zz-focus-ring: 0 0 0 3px rgba(160, 136, 100, 0.22);

  --zz-font-serif: "Cormorant Garamond", Georgia, serif;
  --zz-font-sans: "Montserrat", -apple-system, sans-serif;
}

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

/* Las anclas (#formulario, #contacto) no deben quedar tapadas por el header sticky. */
html {
  scroll-padding-top: 6rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--zz-background);
  color: var(--zz-foreground);
  font-family: var(--zz-font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--zz-font-serif);
  letter-spacing: -0.01em;
  text-wrap-style: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap-style: balance;
}

/* ---------- Shared utilities ---------- */
.zz__container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 1024px) {
  .zz__container {
    padding: 0 2rem;
  }
}

.zz__label-caps {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--zz-champagne);
}

.zz__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--zz-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.zz__btn--primary {
  background: var(--zz-primary);
  color: var(--zz-primary-foreground);
  padding: 0.875rem 1.5rem;
  border: none;
}

.zz__btn--primary:hover {
  background: var(--zz-espresso);
}

.zz__btn--outline {
  background: transparent;
  color: var(--zz-foreground);
  padding: 0.8125rem 1.5rem;
  border: 1px solid var(--zz-primary);
}

.zz__btn--outline:hover {
  background: var(--zz-primary);
  color: var(--zz-primary-foreground);
}

.zz__btn--light {
  background: var(--zz-dark-foreground);
  color: var(--zz-dark-bg);
  padding: 0.875rem 1.5rem;
  border: none;
}

.zz__btn--light:hover {
  background: var(--zz-champagne);
  color: var(--zz-champagne-foreground);
}

@keyframes zz__fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zz__animate-fade-up {
  animation: zz__fade-up 0.8s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .zz__animate-fade-up {
    animation: none;
  }
}

/* ---------- Header (site-header.tsx) ---------- */
.zz__header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* El fondo translúcido vive en un pseudo-elemento: backdrop-filter aplicado al
   propio header lo convierte en containing block de sus descendientes con
   position: fixed, así que el nav móvil quedaba anclado al header (altura 0)
   en vez de al viewport y se colaba debajo del hero. */
/* Negro sólido, no translúcido: con alpha < 1 + backdrop-filter, el color de
   la foto de fondo se filtraba y el navbar se veía marrón en vez de negro. */
.zz__header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--zz-dark-bg);
}

.zz__header.zz__is-scrolled,
.zz__header.zz__menu-open {
  border-bottom-color: var(--zz-dark-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.zz__header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s;
}

.zz__header.zz__is-scrolled .zz__header-inner {
  height: 4rem;
}

@media (min-width: 1024px) {
  .zz__header-inner {
    padding: 0 2rem;
  }
}

.zz__logo img {
  height: 3.75rem;
  width: auto;
  transition: height 0.3s;
}

.zz__header.zz__is-scrolled .zz__logo img {
  height: 3rem;
}

/* Un pelín más pequeño en móvil: deja hueco para el CTA compacto junto al
   burger sin que el header se vea apretado. */
@media (max-width: 1023px) {
  .zz__logo img {
    height: 2.75rem;
  }

  .zz__header.zz__is-scrolled .zz__logo img {
    height: 2.375rem;
  }
}

.zz__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .zz__nav {
    display: flex;
  }
}

.zz__nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--zz-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.zz__nav-link:hover,
.zz__nav-link.zz__is-active,
.zz__nav-item.zz__is-open > .zz__nav-link {
  color: var(--zz-dark-foreground);
}

.zz__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--zz-champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.zz__nav-link:hover::after,
.zz__nav-link.zz__is-active::after,
.zz__nav-item.zz__is-open > .zz__nav-link::after {
  transform: scaleX(1);
}

.zz__nav-chevron {
  transition: transform 0.2s;
  vertical-align: -2px;
  margin-left: 2px;
}

.zz__nav-item.zz__is-open .zz__nav-chevron {
  transform: rotate(180deg);
}

/* Contenedor del CTA + burger: los agrupa a la derecha del header en vez de
   repartirlos con el space-between del header-inner (con .zz__nav oculta en
   móvil, quedaban demasiado separados). */
.zz__header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

@media (min-width: 1024px) {
  .zz__header-actions {
    gap: 1rem;
  }
}

.zz__nav-cta {
  display: inline-flex;
  /* Compacto en móvil: convive con el burger sin competir por espacio. */
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.625rem;
}

@media (min-width: 1024px) {
  .zz__nav-cta {
    /* Más compacto que un CTA de sección: convive con los links del nav. */
    padding: 0.75rem 1.25rem;
    font-size: 0.6875rem;
  }
}

.zz__nav-cta:hover {
  transform: scale(1.03);
}

.zz__nav-cta svg {
  width: 13px;
  height: 13px;
}

@media (min-width: 1024px) {
  .zz__nav-cta svg {
    width: 16px;
    height: 16px;
  }
}

.zz__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  background: none;
  border-radius: var(--zz-radius);
  cursor: pointer;
  color: var(--zz-dark-foreground);
}

@media (min-width: 1024px) {
  .zz__burger {
    display: none;
  }
}

.zz__mega {
  display: none;
  border-top: 1px solid var(--zz-border);
  background: var(--zz-background);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .zz__nav-item.zz__is-open .zz__mega {
    display: block;
    position: absolute;
    inset-inline: 0;
    top: 100%;
  }
}

.zz__mega-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.zz__mega-intro {
  border-right: 1px solid var(--zz-border);
  padding-right: 1.5rem;
}

.zz__mega-intro .zz__mega-title {
  margin-top: 0.75rem;
  font-family: var(--zz-font-serif);
  font-size: 1.5rem;
}

.zz__mega-intro a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--zz-muted-foreground);
  text-decoration: none;
}

.zz__mega-intro a:hover {
  color: var(--zz-foreground);
  text-decoration: underline;
}

.zz__mega-group-label {
  margin-bottom: 0.75rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--zz-muted-foreground);
}

.zz__mega ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.zz__mega a {
  font-size: 0.875rem;
  color: var(--zz-muted-foreground);
  text-decoration: none;
}

.zz__mega a:hover {
  color: var(--zz-champagne);
}

.zz__mobile-nav {
  display: none;
}

@media (max-width: 1023px) {
  .zz__header.zz__menu-open .zz__mobile-nav {
    display: block;
    position: fixed;
    inset-inline: 0;
    top: 5rem;
    bottom: 0;
    z-index: 40;
    overflow-y: auto;
    background: var(--zz-background);
    padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
  }

  /* El header se compacta a 4rem al hacer scroll: el panel tiene que seguirlo
     o queda una franja de página visible entre ambos. */
  .zz__header.zz__is-scrolled.zz__menu-open .zz__mobile-nav {
    top: 4rem;
  }
}

.zz__mobile-link {
  display: block;
  border-bottom: 1px solid var(--zz-border);
  padding: 0.75rem 0;
  font-family: var(--zz-font-serif);
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--zz-foreground);
}

.zz__mobile-accordion-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: none;
  border-bottom: 1px solid var(--zz-border);
  padding: 0.75rem 0;
  font-family: var(--zz-font-serif);
  font-size: 1.125rem;
  color: var(--zz-foreground);
  cursor: pointer;
}

.zz__mobile-accordion-btn svg {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.zz__mobile-accordion.zz__is-open .zz__mobile-accordion-btn svg {
  transform: rotate(180deg);
}

.zz__mobile-sub {
  display: none;
  padding-bottom: 0.5rem;
}

.zz__mobile-accordion.zz__is-open .zz__mobile-sub {
  display: block;
}

/* Mirrors the desktop mega-menu grouping (Rostro, Cuerpo…) so the hierarchy
 * survives on mobile instead of collapsing into one flat list of links. */
.zz__mobile-sub-label {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zz-champagne);
}

.zz__mobile-sub-all {
  font-weight: 600;
}

.zz__mobile-sub a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9375rem;
  color: var(--zz-muted-foreground);
  text-decoration: none;
}

.zz__mobile-cta {
  margin-top: 1.25rem;
  display: block;
  width: 100%;
  text-align: center;
  border: none;
}

/* ---------- Footer (site-footer.tsx) — dark band: white/black dominate, beige stays an accent ---------- */
.zz__footer {
  position: relative;
  overflow: hidden;
  background: var(--zz-dark-bg);
  color: var(--zz-dark-foreground);
  /* Mismo filete que .zz__band--dark: si la página termina en una banda negra,
     esta línea es lo único que distingue dónde acaba el contenido y empieza el
     footer — sin ella, ambos negros se funden en un solo bloque. */
  border-top: 1px solid var(--zz-dark-border);
}

/* faint radial glow + grain so the black band has depth instead of reading as a flat fill */
.zz__footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60rem 26rem at 12% 0%, rgba(180, 140, 90, 0.08), transparent 60%),
    radial-gradient(40rem 24rem at 100% 100%, rgba(180, 140, 90, 0.05), transparent 65%);
  pointer-events: none;
}

.zz__footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  pointer-events: none;
}

.zz__footer > * {
  position: relative;
  z-index: 1;
}

.zz__footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .zz__footer-inner {
    grid-template-columns: 1.3fr repeat(3, 1fr);
    padding: 4.5rem 2rem;
  }
}

.zz__footer-logo img {
  height: 3.75rem;
  width: auto;
}

.zz__footer-desc {
  margin-top: 1.25rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--zz-dark-muted);
}

.zz__footer-social {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.zz__footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--zz-dark-border);
  color: var(--zz-dark-foreground);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.zz__footer-social a:hover {
  background: var(--zz-champagne);
  border-color: var(--zz-champagne);
  color: var(--zz-champagne-foreground);
  transform: translateY(-2px);
}

.zz__footer h3 {
  position: relative;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  font-family: var(--zz-font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--zz-champagne);
}

.zz__footer h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5rem;
  height: 1px;
  background: var(--zz-champagne);
}

.zz__footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: var(--zz-dark-muted);
}

.zz__footer ul a {
  display: inline-flex;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.zz__footer ul a:hover {
  color: var(--zz-dark-foreground);
  transform: translateX(4px);
}

.zz__footer-contact-item {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.zz__footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--zz-champagne);
}

.zz__footer-bottom {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid var(--zz-dark-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--zz-dark-muted);
}

.zz__footer-bottom p {
  padding: 0;
}

@media (min-width: 640px) {
  .zz__footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ----- Giant watermark wordmark ----- */
.zz__footer-watermark {
  overflow: hidden;
  height: clamp(3.6rem, 16vw, 8.8rem);
  margin-top: clamp(-2rem, -4vw, -0.5rem);
  user-select: none;
  pointer-events: none;
}

.zz__footer-watermark span {
  display: block;
  white-space: nowrap;
  text-align: center;
  font-family: var(--zz-font-serif);
  font-weight: 500;
  font-size: clamp(4.5rem, 20vw, 11rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 224, 210, 0.18);
  background: linear-gradient(180deg, rgba(233, 224, 210, 0.14), rgba(233, 224, 210, 0) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

.zz__footer-watermark span em {
  font-style: italic;
  -webkit-text-stroke: 1px rgba(180, 140, 90, 0.5);
}

/* ---------- Reveal-on-scroll (shared by every page, see assets/site.js) ---------- */
.zz__reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.zz__reveal.zz__is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .zz__reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Home page ---------- */
/* Two-column, white-background hero: copy on one side, full team photo on
   the other. Replaces the old full-bleed image + dark scrim, which crushed
   contrast on whichever person in the photo fell under the darkest band. */
.zz__hero {
  position: relative;
  background:
    radial-gradient(55rem 30rem at 88% 10%, rgba(180, 140, 90, 0.09), transparent 62%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(180, 140, 90, 0.05), transparent 60%),
    var(--zz-background);
  padding: 7rem 0 4.5rem;
  overflow: hidden;
  /* Llena el viewport bajo el header (5rem, la altura de .zz__header-inner sin
     scroll) sin tocar la grid interna: flex-column + justify-content centra el
     contenido en vertical, y como el eje transversal de un flex en columna
     estira por defecto (align-items: stretch), .zz__hero-content conserva su
     ancho de siempre en vez de encogerse al contenido. */
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* El ampersand del wordmark como marca de agua, para que el hero no sea solo
   texto + foto sobre blanco plano. */
.zz__hero::after {
  content: "&";
  position: absolute;
  top: -0.16em;
  right: -0.08em;
  z-index: 0;
  font-family: var(--zz-font-serif);
  font-style: italic;
  font-size: clamp(14rem, 32vw, 28rem);
  line-height: 1;
  color: rgba(180, 140, 90, 0.07);
  pointer-events: none;
  user-select: none;
}

@media (min-width: 1024px) {
  .zz__hero {
    padding: 6.5rem 0 7rem;
  }
}

.zz__hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .zz__hero-content {
    /* La foto lleva la columna ancha: es la protagonista del hero. */
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
  }
}

.zz__hero-copy {
  max-width: 34rem;
}

.zz__hero-copy .zz__label-caps {
  color: var(--zz-champagne);
}

/* Filete de entrada antes del eyebrow: ancla la esquina superior del bloque. */
.zz__hero-copy .zz__label-caps::before {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  margin-right: 0.75rem;
  vertical-align: middle;
  background: var(--zz-champagne);
}

.zz__hero-title {
  margin-top: 1.25rem;
  font-size: 3rem;
  line-height: 1.05;
  color: var(--zz-foreground);
  text-wrap: balance;
}

@media (min-width: 640px) {
  .zz__hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .zz__hero-title { font-size: 3.75rem; }
}

.zz__hero-text {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--zz-muted-foreground);
}

.zz__hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.zz__hero-link {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--zz-foreground);
}

.zz__hero-link:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
}

.zz__hero-media {
  position: relative;
}

/* La foto como lámina enmarcada: formato apaisado intacto (sin recorte
   agresivo ni bleed), paspartú interior de hairline blanco y sombra suave. */
.zz__hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Compromiso: ni corta cabezas (como el centrado de antes) ni corta cuerpos
     (como el "top" puro de después). Si una foto concreta necesita más o menos
     margen arriba, se ajusta sin tocar esta regla añadiendo al <img> de esa
     página `style="--zz-hero-focus: 50% 5%"` (0% = arriba del todo). */
  object-position: var(--zz-hero-focus, 50% 20%);
  border-radius: var(--zz-radius-lg);
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: -0.875rem;
  box-shadow: 0 20px 40px -24px rgba(20, 16, 12, 0.3);
}

/* Firma bajo la foto, tipo pie de figura: filete + número en serif + label.
   Sustituye a la tarjeta superpuesta, que competía con la imagen. */
.zz__hero-badge,
.zz__doctor-badge {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  margin-top: 1.125rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--zz-border);
}

.zz__hero-badge-number,
.zz__doctor-badge-number {
  font-family: var(--zz-font-serif);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--zz-champagne);
}

.zz__hero-badge-label,
.zz__doctor-badge-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--zz-muted-foreground);
}

/* Hero without an image: copy alone, centered, no media column */
.zz__hero--no-image .zz__hero-content {
  grid-template-columns: 1fr;
}

.zz__hero--no-image .zz__hero-copy {
  max-width: 42rem;
}

.zz__values {
  border-top: 1px solid var(--zz-border);
  border-bottom: 1px solid var(--zz-border);
  background: var(--zz-background);
}

/* Variante negra de .zz__values, para repartir el negro también por el medio
   de la página (no solo héroe + cierre). Usar en UNA sección intermedia como
   mucho, y nunca pegada a otra sección oscura (héroe o cierre) — si no,
   vuelve el bloque de "tres negros seguidos". */
.zz__values--dark {
  position: relative;
  overflow: hidden;
  border-color: var(--zz-dark-border);
  background: var(--zz-dark-bg);
  color: var(--zz-dark-foreground);
}

.zz__values--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50rem 24rem at 12% 0%, rgba(180, 140, 90, 0.09), transparent 60%),
    radial-gradient(36rem 20rem at 100% 100%, rgba(180, 140, 90, 0.06), transparent 65%);
  pointer-events: none;
}

.zz__values--dark > .zz__container {
  position: relative;
}

.zz__values--dark .zz__section-title {
  color: var(--zz-dark-foreground);
}

.zz__values--dark .zz__testimonials-sub {
  color: var(--zz-dark-muted);
}

.zz__values--dark .zz__note {
  border-top-color: var(--zz-dark-border);
}

.zz__values--dark .zz__note h3 {
  color: var(--zz-dark-foreground);
}

.zz__values--dark .zz__note-body {
  color: var(--zz-dark-muted);
}

/* Mismo modificador, pero para la variante de icono (Home: Honestidad / Trato
   cercano / Naturalidad) en vez de la de notas numeradas. */
.zz__values--dark .zz__value-icon {
  border-color: rgba(180, 140, 90, 0.5);
}

.zz__values--dark .zz__value h3 {
  color: var(--zz-dark-foreground);
}

.zz__values--dark .zz__value p {
  color: var(--zz-dark-muted);
}

.zz__values-grid {
  display: grid;
  gap: 2.5rem;
  padding: 5rem 1.25rem;
}

@media (min-width: 768px) {
  .zz__values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 6rem 2rem;
  }
}

.zz__value {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .zz__value {
    align-items: flex-start;
    text-align: left;
  }
}

.zz__value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(180, 140, 90, 0.4);
  color: var(--zz-champagne);
}

.zz__value h3 {
  margin-top: 1.25rem;
  font-size: 1.5rem;
}

.zz__value p {
  margin-top: 0.75rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--zz-muted-foreground);
}

.zz__doctor-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding: 5rem 1.25rem;
}

@media (min-width: 1024px) {
  .zz__doctor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    padding: 7rem 2rem;
  }
}

.zz__doctor-media {
  position: relative;
}

/* Sin foto todavía: una sola columna de texto centrada en vez de dejar la
   mitad del grid vacía (el bloque de imagen ni se imprime en ese caso). */
.zz__doctor-grid--no-media {
  grid-template-columns: 1fr;
}

.zz__doctor-grid--no-media > * {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.zz__doctor-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  /* Compromiso: ni corta cabezas (como el centrado de antes) ni corta cuerpos
     (como el "top" puro de después). Si una foto concreta necesita más o menos
     margen arriba, se ajusta sin tocar esta regla añadiendo al <img> de esa
     página `style="--zz-hero-focus: 50% 5%"` (0% = arriba del todo). */
  object-position: var(--zz-hero-focus, 50% 20%);
  border-radius: var(--zz-radius-lg);
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: -0.875rem;
}

.zz__section-title {
  margin-top: 1rem;
  font-size: 2.25rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .zz__section-title { font-size: 3rem; }
}

.zz__doctor-lead {
  margin-top: 1rem;
  max-width: 30rem;
  font-family: var(--zz-font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--zz-muted-foreground);
}

.zz__doctor-copy {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--zz-muted-foreground);
}

.zz__doctor-copy + .zz__btn,
.zz__doctor > .zz__container .zz__btn {
  margin-top: 2rem;
}

.zz__procedures {
  border-top: 1px solid var(--zz-border);
  border-bottom: 1px solid var(--zz-border);
  background: var(--zz-background);
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .zz__procedures { padding: 7rem 0; }
}

.zz__procedures-intro {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.zz__procedures-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
}

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

.zz__procedure-card {
  display: block;
  overflow: hidden;
  border-radius: var(--zz-radius-lg);
  border: 1px solid var(--zz-border);
  background: var(--zz-card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.zz__procedure-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.zz__procedure-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.zz__procedure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.zz__procedure-card:hover .zz__procedure-media img {
  transform: scale(1.05);
}

.zz__procedure-body {
  padding: 1.75rem;
}

@media (min-width: 1024px) {
  .zz__procedure-body { padding: 2rem; }
}

.zz__procedure-body h3 {
  font-size: 1.875rem;
}

.zz__procedure-body p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--zz-muted-foreground);
}

.zz__procedure-link {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--zz-champagne);
}

.zz__testimonials {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .zz__testimonials { padding: 7rem 0; }
}

.zz__testimonials-intro {
  max-width: 40rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.zz__testimonials-sub {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--zz-muted-foreground);
}

.zz__testimonial {
  max-width: 44rem;
  margin: 0 auto;
  text-align: left;
}

.zz__testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--zz-champagne);
}

.zz__testimonial-stars svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 640px) {
  .zz__testimonial-stars svg {
    width: 20px;
    height: 20px;
  }
}

.zz__testimonial-quote-wrap {
  position: relative;
  margin-top: 1.75rem;
  min-height: 10rem;
}

.zz__testimonial blockquote {
  margin: 0;
  padding-left: 1.25rem;
  border: none;
  border-left: 3px solid var(--zz-quote-accent);
  font-family: var(--zz-font-serif);
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--zz-foreground);
}

@media (min-width: 640px) {
  .zz__testimonial blockquote {
    padding-left: 1.75rem;
    font-size: 1.85rem;
    line-height: 1.6;
  }
}

.zz__testimonial-author {
  margin-top: 1.25rem;
  padding-left: 1.25rem;
}

@media (min-width: 640px) {
  .zz__testimonial-author { padding-left: 1.75rem; }
}

.zz__testimonial-author p:first-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zz-foreground);
}

.zz__testimonial-author p:last-child {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zz-muted-foreground);
}

.zz__testimonial-nav {
  margin-top: 2rem;
  padding-left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .zz__testimonial-nav {
    margin-top: 2.5rem;
    padding-left: 1.75rem;
    gap: 1.5rem;
  }
}

.zz__testimonial-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.375rem;
  width: 2.375rem;
  border-radius: 50%;
  border: 1px solid var(--zz-border);
  background: none;
  color: var(--zz-foreground);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

@media (min-width: 640px) {
  .zz__testimonial-nav button {
    height: 2.75rem;
    width: 2.75rem;
  }
}

.zz__testimonial-nav button:hover {
  background: var(--zz-primary);
  color: var(--zz-primary-foreground);
}

.zz__testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.zz__testimonial-dots button {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 999px;
  border: none;
  background: var(--zz-border);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s, background-color 0.2s;
}

.zz__testimonial-dots button.zz__is-active {
  width: 1.5rem;
  background: var(--zz-champagne);
}

/* Variante negra (solo Home — ver el aviso en parts/testimonials.php sobre por
   qué Contacto no la usa). Las estrellas y el filete de la cita se dejan en
   champagne: ya funcionan igual de bien sobre negro que sobre claro. */
.zz__testimonials--dark {
  position: relative;
  overflow: hidden;
  background: var(--zz-dark-bg);
  color: var(--zz-dark-foreground);
}

.zz__testimonials--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50rem 24rem at 12% 0%, rgba(180, 140, 90, 0.09), transparent 60%),
    radial-gradient(36rem 20rem at 100% 100%, rgba(180, 140, 90, 0.06), transparent 65%);
  pointer-events: none;
}

.zz__testimonials--dark > .zz__container {
  position: relative;
}

.zz__testimonials--dark .zz__section-title {
  color: var(--zz-dark-foreground);
}

.zz__testimonials--dark .zz__testimonials-sub {
  color: var(--zz-dark-muted);
}

.zz__testimonials--dark .zz__testimonial blockquote {
  color: var(--zz-dark-foreground);
}

.zz__testimonials--dark .zz__testimonial-author p:first-child {
  color: var(--zz-dark-foreground);
}

.zz__testimonials--dark .zz__testimonial-author p:last-child {
  color: var(--zz-dark-muted);
}

.zz__testimonials--dark .zz__testimonial-nav button {
  border-color: var(--zz-dark-border);
  color: var(--zz-dark-foreground);
}

.zz__testimonials--dark .zz__testimonial-nav button:hover {
  background: var(--zz-dark-foreground);
  color: var(--zz-dark-bg);
}

.zz__testimonials--dark .zz__testimonial-dots button {
  background: var(--zz-dark-border);
}

.zz__contact-grid {
  display: grid;
  gap: 3rem;
  padding: 5rem 1.25rem 0;
}

@media (min-width: 1024px) {
  .zz__contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    padding: 7rem 2rem 0;
  }

  /* El formulario es más alto que la columna de texto: la fijamos al hacer
     scroll para que no se quede "flotando" sola arriba con el form todavía
     bajando. top deja hueco bajo el header sticky (4rem cuando está
     encogido). */
  .zz__contact-sticky {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.zz__contact-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 5rem 1.25rem 0;
}

@media (min-width: 768px) {
  .zz__contact-stack {
    gap: 3.5rem;
    padding: 7rem 2rem 0;
  }
}

.zz__contact-intro {
  max-width: 30rem;
  text-align: left;
}

.zz__contact-form-wrap {
  width: 100%;
  max-width: 40rem;
}

.zz__contact-lead {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--zz-muted-foreground);
}

.zz__contact-items {
  margin-top: 2rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zz__contact-item {
  display: flex;
  gap: 1rem;
}

.zz__contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--zz-secondary);
  color: var(--zz-champagne);
}

.zz__contact-item-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--zz-muted-foreground);
}

.zz__contact-item-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--zz-foreground);
}

.zz__contact-item-value a:hover {
  color: var(--zz-champagne);
}

.zz__contact-form {
  border-radius: var(--zz-radius-lg);
  border: 1px solid var(--zz-border);
  background: var(--zz-card);
  padding: 1.125rem;
}

@media (min-width: 640px) {
  .zz__contact-form { padding: 2.5rem; }
}

@media (min-width: 1024px) {
  .zz__contact-form { padding: 3rem; }
}

.zz__form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .zz__form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* Vertical rhythm for the whole form. This used to be a pair of adjacency rules
   (.zz__form-row + .zz__form-row, .zz__form-row + .zz__field) that only covered
   the order home.html happens to use — a form starting with a plain .zz__field
   got no gap at all. One owl selector covers every combination. */
.zz__contact-form > * + * {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .zz__contact-form > * + * {
    margin-top: 1.25rem;
  }
}

.zz__field > label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zz-muted-foreground);
}

@media (min-width: 768px) {
  .zz__field > label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
}

.zz__field-optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.7;
}

.zz__field input,
.zz__field textarea,
.zz__field select {
  width: 100%;
  border-radius: var(--zz-radius);
  border: 1px solid var(--zz-border);
  background: var(--zz-background);
  padding: 0.375rem 0.625rem;
  /* Under 16px iOS Safari zooms the viewport on focus — accepted trade-off,
     confirmed against the actual mobile render, in exchange for a field that
     doesn't dwarf the rest of the form's type scale. */
  font-size: 0.8125rem;
  line-height: 1.25;
  font-family: inherit;
  color: var(--zz-foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

@media (min-width: 768px) {
  .zz__field input,
  .zz__field textarea,
  .zz__field select {
    padding: 0.625rem 0.875rem;
  }
}

.zz__field input::placeholder,
.zz__field textarea::placeholder {
  color: var(--zz-muted-foreground);
  opacity: 0.65;
}

.zz__field input:hover,
.zz__field textarea:hover,
.zz__field select:hover {
  border-color: var(--zz-muted-foreground);
}

.zz__field input:focus,
.zz__field textarea:focus,
.zz__field select:focus {
  border-color: var(--zz-champagne);
  box-shadow: var(--zz-focus-ring);
}

/* Chrome paints autofilled fields pale blue, which breaks the warm palette.
   An inset shadow the size of the field is the only reliable way to repaint it. */
.zz__field input:-webkit-autofill,
.zz__field input:-webkit-autofill:hover,
.zz__field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--zz-background) inset;
  -webkit-text-fill-color: var(--zz-foreground);
}

.zz__field textarea {
  resize: vertical;
  min-height: 5rem;
}

/* Native select arrow removed and replaced with the same chevron the nav uses.
   The colour is baked into the data URI (currentColor doesn't work in
   background-image), so it tracks --zz-muted-foreground by hand. */
.zz__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* While the placeholder option is still selected the control is :invalid, which
   lets the prompt read as a placeholder rather than as a real answer. */
.zz__field select:invalid {
  color: var(--zz-muted-foreground);
  opacity: 0.75;
}

.zz__field select option {
  color: var(--zz-foreground);
}

/* ----- Consent checkbox ----- */
.zz__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--zz-muted-foreground);
  cursor: pointer;
}

.zz__consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 1px 0 0;
  border: 1px solid var(--zz-border);
  border-radius: 0.25rem;
  background: var(--zz-background);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.zz__consent input:hover {
  border-color: var(--zz-muted-foreground);
}

.zz__consent input:focus-visible {
  border-color: var(--zz-champagne);
  box-shadow: var(--zz-focus-ring);
  outline: none;
}

.zz__consent input:checked {
  background-color: var(--zz-champagne);
  border-color: var(--zz-champagne);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.zz__consent a {
  color: var(--zz-champagne);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zz__form-submit {
  margin-top: 1.25rem;
  width: 100%;
  justify-content: center;
  border: none;
}

@media (min-width: 640px) {
  .zz__form-submit { margin-top: 1.5rem; }
}

.zz__form-submit:focus-visible {
  outline: none;
  box-shadow: var(--zz-focus-ring);
}

/* Reassurance line under the button — the last thing read before submitting,
   so it answers the question everyone has: "¿y ahora qué?". */
.zz__form-note {
  margin-top: 0.875rem;
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zz-muted-foreground);
}

.zz__contact-success[hidden] {
  display: none;
}

.zz__contact-success {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--zz-radius-lg);
  border: 1px solid var(--zz-border);
  background: var(--zz-card);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .zz__contact-success {
    min-height: 26rem;
    padding: 2.5rem;
  }
}

.zz__contact-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 50%;
  background: var(--zz-secondary);
  color: var(--zz-champagne);
}

.zz__contact-success h3 {
  margin-top: 1.5rem;
  font-size: 1.875rem;
}

.zz__contact-success p {
  margin-top: 0.75rem;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--zz-muted-foreground);
}

.zz__map {
  margin-top: 2.5rem;
  border-top: 1px solid var(--zz-border);
}

@media (min-width: 640px) {
  .zz__map { margin-top: 3.5rem; }
}

.zz__map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
  filter: grayscale(0.2);
}

@media (min-width: 640px) {
  .zz__map iframe { height: 420px; }
}

/* ---------- Treatment detail (single-tratamiento.php) ---------- */
.zz__t-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--zz-secondary) 0%, var(--zz-accent) 100%);
}

.zz__t-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Compromiso: ni corta cabezas (como el centrado de antes) ni corta cuerpos
     (como el "top" puro de después). Si una foto concreta necesita más o menos
     margen arriba, se ajusta sin tocar esta regla añadiendo al <img> de esa
     página `style="--zz-hero-focus: 50% 5%"` (0% = arriba del todo). */
  object-position: var(--zz-hero-focus, 50% 20%);
}

.zz__t-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.75) 0%, rgba(20, 16, 12, 0.15) 55%, rgba(20, 16, 12, 0.05) 100%);
}

.zz__t-hero-content {
  position: relative;
  width: 100%;
  padding-top: 8rem;
  padding-bottom: 3.5rem;
}

.zz__t-hero-copy {
  max-width: 40rem;
}

/* Con foto detrás, el copy va en una tarjeta de vidrio sutil: el texto blanco
   no puede depender del tono de la imagen destacada, que puede ser clara. */
.zz__t-hero:not(.zz__t-hero--no-image) .zz__t-hero-copy {
  padding: 1.75rem 1.5rem;
  border-radius: var(--zz-radius-lg);
  background: rgba(20, 16, 12, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
  .zz__t-hero:not(.zz__t-hero--no-image) .zz__t-hero-copy {
    padding: 2.25rem 2.5rem;
  }
}

.zz__t-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--zz-muted-foreground);
}

.zz__t-hero--no-image .zz__t-breadcrumb,
.zz__t-hero--no-image .zz__t-hero-copy .zz__label-caps {
  color: var(--zz-muted-foreground);
}

.zz__t-hero:not(.zz__t-hero--no-image) .zz__t-breadcrumb,
.zz__t-hero:not(.zz__t-hero--no-image) .zz__t-hero-copy .zz__label-caps {
  color: rgba(255, 255, 255, 0.8);
}

.zz__t-breadcrumb a {
  text-decoration: none;
  color: inherit;
}

.zz__t-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.zz__t-title {
  margin-top: 0.75rem;
  font-size: 2.5rem;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .zz__t-title { font-size: 3.5rem; }
}

.zz__t-hero:not(.zz__t-hero--no-image) .zz__t-title {
  color: var(--zz-primary-foreground);
}

.zz__t-intro {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-family: var(--zz-font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
}

.zz__t-hero:not(.zz__t-hero--no-image) .zz__t-intro {
  color: rgba(255, 255, 255, 0.92);
}

.zz__t-hero--no-image .zz__t-intro {
  color: var(--zz-muted-foreground);
}

.zz__t-hero .zz__hero-actions {
  margin-top: 2rem;
}

.zz__t-body {
  padding: 5rem 0;
}

.zz__t-grid {
  display: grid;
  gap: 3rem;
}

.zz__t-grid--single {
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .zz__t-grid:not(.zz__t-grid--single) {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
  }
}

.zz__t-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--zz-font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--zz-muted-foreground);
}


.zz__t-related {
  border-top: 1px solid var(--zz-border);
  background: var(--zz-background);
  padding: 5rem 0;
}

.zz__t-related-intro {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.zz__t-related-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
}

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

.zz__t-card-placeholder {
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, var(--zz-accent) 0%, var(--zz-secondary) 100%);
}

/* Content Sections blocks (page-content.php / template-parts/blocks) */

@media (min-width: 1024px) {
  .zz__doctor-grid--reverse .zz__doctor-media {
    order: 2;
  }
}

.zz__rich-text-body {
  padding: 5rem 1.25rem;
  max-width: 44rem;
  line-height: 1.7;
}

.zz__rich-text-body p + p {
  margin-top: 1rem;
}

/* ---------- Wide mega menu (Cirugía Estética: intro + 4 groups) ---------- */
@media (min-width: 1024px) {
  .zz__mega-inner--wide {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

/* ---------- Page hero (Nosotras, Menopausia, Contacto, landings, blog) ----------
   Generalises .zz__t-hero for pages that lead with a full-bleed image and a
   title, without the breadcrumb. Add --no-image when there is no photo. */
.zz__page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 58vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--zz-secondary) 0%, var(--zz-accent) 100%);
}

.zz__page-hero--compact {
  min-height: 0;
}

/* Sin foto todavía (campo vacío en Static Content): panel negro deliberado en
   vez del gris apagado de antes — así "predomina" el negro incluso antes de
   subir la imagen, en lugar de leerse como un hueco roto. */
.zz__page-hero--no-image {
  position: relative;
  overflow: hidden;
  background: var(--zz-dark-bg);
  border-bottom: 1px solid var(--zz-dark-border);
}

.zz__page-hero--no-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50rem 24rem at 12% 0%, rgba(180, 140, 90, 0.1), transparent 60%),
    radial-gradient(36rem 20rem at 100% 100%, rgba(180, 140, 90, 0.07), transparent 65%);
  pointer-events: none;
}

.zz__page-hero--no-image .zz__page-hero-content {
  position: relative;
}

.zz__page-hero--no-image .zz__page-hero-title,
.zz__page-hero--no-image .zz__label-caps {
  color: var(--zz-dark-foreground);
}

.zz__page-hero--no-image .zz__page-hero-text {
  color: var(--zz-dark-muted);
}

.zz__page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Compromiso: ni corta cabezas (como el centrado de antes) ni corta cuerpos
     (como el "top" puro de después). Si una foto concreta necesita más o menos
     margen arriba, se ajusta sin tocar esta regla añadiendo al <img> de esa
     página `style="--zz-hero-focus: 50% 5%"` (0% = arriba del todo). */
  object-position: var(--zz-hero-focus, 50% 20%);
}

.zz__page-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.8) 0%, rgba(20, 16, 12, 0.35) 55%, rgba(20, 16, 12, 0.2) 100%);
}

.zz__page-hero-content {
  position: relative;
  width: 100%;
  max-width: 72rem;
  padding-top: 9rem;
  padding-bottom: 3.5rem;
}

.zz__page-hero--compact .zz__page-hero-content {
  padding-top: 7rem;
  padding-bottom: 2.5rem;
}

.zz__page-hero-title {
  margin-top: 0.75rem;
  font-size: 2.5rem;
  line-height: 1.1;
  max-width: 22ch;
}

@media (min-width: 640px) {
  .zz__page-hero-title {
    font-size: 3.5rem;
  }
}

.zz__page-hero-text {
  margin-top: 1.25rem;
  max-width: 46ch;
  color: var(--zz-muted-foreground);
  line-height: 1.7;
}

.zz__page-hero:not(.zz__page-hero--no-image) .zz__page-hero-title {
  color: var(--zz-primary-foreground);
}

.zz__page-hero:not(.zz__page-hero--no-image) .zz__page-hero-text {
  color: rgba(255, 255, 255, 0.85);
}

.zz__page-hero:not(.zz__page-hero--no-image) .zz__label-caps {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Two-column prose (Nosotras) ---------- */
.zz__split {
  padding: 5rem 2rem;
  display: grid;
  gap: 2.5rem;
}

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

.zz__split h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.zz__split p {
  color: var(--zz-muted-foreground);
  line-height: 1.8;
  max-width: 46ch;
}

/* ---------- Team rows (Nosotras) ----------
   Same skeleton as .zz__doctor-grid; alternation is handled by :nth-child so the
   repeater can grow without anyone having to add a modifier class. */
.zz__team {
  padding-bottom: 5rem;
}

/* Variante negra (Nosotras): el marco blanco de .zz__team-media img ya
   funciona igual de bien sobre negro, no hace falta tocarlo. Va en posición 3
   de 4 (Hero, Split, Team, Beliefs) — ni pegada al héroe ni es la última
   sección antes del footer, ver la regla de balance más abajo en este archivo. */
.zz__team--dark {
  padding-top: 5rem;
  background: var(--zz-dark-bg);
  color: var(--zz-dark-foreground);
}

.zz__team--dark .zz__team-name {
  color: var(--zz-dark-foreground);
}

.zz__team--dark .zz__team-role {
  color: var(--zz-champagne);
}

.zz__team--dark .zz__team-bio {
  color: var(--zz-dark-muted);
}

.zz__team--dark .zz__team-row + .zz__team-row {
  border-top: 1px solid var(--zz-dark-border);
}

.zz__team-row {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0;
}

@media (min-width: 900px) {
  .zz__team-row {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }

  .zz__team-row:nth-child(even) .zz__team-media {
    order: 2;
  }
}

.zz__team-media img {
  width: 100%;
  border-radius: var(--zz-radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Compromiso: ni corta cabezas (como el centrado de antes) ni corta cuerpos
     (como el "top" puro de después). Si una foto concreta necesita más o menos
     margen arriba, se ajusta sin tocar esta regla añadiendo al <img> de esa
     página `style="--zz-hero-focus: 50% 5%"` (0% = arriba del todo). */
  object-position: var(--zz-hero-focus, 50% 20%);
  /* Mismo paspartú que las fotos de la home, para que toda la casa enmarque igual. */
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: -0.875rem;
}

.zz__team-name {
  font-size: 2rem;
  line-height: 1.15;
  margin-top: 0.5rem;
}

.zz__team-role {
  margin-top: 0.5rem;
  font-family: var(--zz-font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--zz-muted-foreground);
}

.zz__team-bio {
  margin-top: 1.5rem;
  color: var(--zz-muted-foreground);
  line-height: 1.8;
}

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

/* ---------- Full-bleed statement bands ---------- */
/* Regla de balance de negro (ver CONTENT-SYSTEM.md): la ÚLTIMA sección de
   contenido de una página nunca puede ser .zz__band--dark, porque el footer
   que viene justo después ya es negro — dos negros pegados se leen como un
   solo bloque roto, no como dos secciones. Por eso el cierre de Menopausia y
   de Preservé usa la banda clara (.zz__band, sin --dark) con un botón
   .zz__btn--primary en vez de --light. */
.zz__band {
  padding: 5rem 0;
  background: var(--zz-secondary);
}

.zz__band--dark {
  position: relative;
  overflow: hidden;
  background: var(--zz-dark-bg);
  color: var(--zz-dark-foreground);
  /* Sin este filete, una banda negra seguida de otra sección negra (el CTA del
     footer, u otra banda oscura) se lee como un único bloque roto en vez de dos
     secciones deliberadas — ver .zz__footer border-top más abajo. */
  border-top: 1px solid var(--zz-dark-border);
}

/* El mismo brillo radial del footer, para que las bandas negras tengan
   profundidad en vez de leerse como un rectángulo plano. */
.zz__band--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50rem 24rem at 12% 0%, rgba(180, 140, 90, 0.09), transparent 60%),
    radial-gradient(36rem 20rem at 100% 100%, rgba(180, 140, 90, 0.06), transparent 65%);
  pointer-events: none;
}

.zz__band--dark > .zz__container {
  position: relative;
}

.zz__band--dark .zz__band-title {
  color: var(--zz-dark-foreground);
}

/* Banda clara de cita destacada (Menopausia). Sustituye a la banda negra con
   la frase suelta al medio: misma pieza editorial, sin el golpe de contraste. */
.zz__band--statement {
  padding: 6rem 0;
  background:
    radial-gradient(44rem 20rem at 50% 0%, rgba(180, 140, 90, 0.08), transparent 65%),
    var(--zz-secondary);
  border-top: 1px solid var(--zz-border);
  border-bottom: 1px solid var(--zz-border);
}

.zz__band--statement .zz__band-inner::before {
  content: "\201C";
  display: block;
  font-family: var(--zz-font-serif);
  font-size: 4.5rem;
  line-height: 0.55;
  color: var(--zz-champagne);
}

.zz__band--statement .zz__band-title {
  /* .zz__band-title suele ser un <h2>, que ya hereda la serif; aquí es un <p>. */
  font-family: var(--zz-font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.5;
  max-width: 40rem;
  margin: 1.25rem auto 0;
  color: var(--zz-foreground);
  text-wrap: balance;
}

.zz__band--statement .zz__band-inner::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 2.25rem auto 0;
  background: var(--zz-champagne);
}

/* Variante negra de la banda de cita. Se usa como MODIFICADOR aparte
   (.zz__band--statement-dark), no tocando .zz__band--statement en sí: esa
   banda es compartida con Menopausia, donde ya hay una sección oscura justo
   antes y otra justo después — ponerla en negro ahí encadenaría tres bandas
   negras seguidas. Aplicar solo en páginas donde el hueco de alrededor sea
   claro (ver page-preserve.php). */
.zz__band--statement-dark {
  background:
    radial-gradient(44rem 20rem at 50% 0%, rgba(180, 140, 90, 0.09), transparent 65%),
    var(--zz-dark-bg);
  border-top-color: var(--zz-dark-border);
  border-bottom-color: var(--zz-dark-border);
}

.zz__band--statement-dark .zz__band-title {
  color: var(--zz-dark-foreground);
}

.zz__band-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.zz__band-title {
  font-size: 2rem;
  line-height: 1.2;
}

.zz__band-body {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

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

.zz__band--dark .zz__band-body {
  color: rgba(255, 255, 255, 0.85);
}

.zz__band-highlight {
  margin-top: 2rem;
  font-family: var(--zz-font-serif);
  font-style: italic;
  font-size: 1.625rem;
  /* Champán funciona igual de bien en banda clara que en oscura, así que va
     sin condicionar a --dark (algunos cierres, como el de Menopausia y
     Preservé, ahora son claros a propósito — ver la nota en .zz__band más
     abajo sobre por qué la última sección nunca puede ser negra). */
  color: var(--zz-champagne);
}

.zz__band-kicker {
  margin-top: 0.75rem;
  font-weight: 600;
}

.zz__band-actions {
  margin-top: 2.5rem;
}

/* ---------- Manifiesto de creencias (Nosotras) ----------
   Sustituye a la banda champán con texto plano centrado: intro a la izquierda,
   líneas rojas numeradas a la derecha, sobre marfil con filetes. */
.zz__beliefs {
  background:
    radial-gradient(46rem 24rem at 100% 0%, rgba(180, 140, 90, 0.08), transparent 62%),
    var(--zz-secondary);
  border-top: 1px solid var(--zz-border);
  padding: 6rem 0;
}

.zz__beliefs-grid {
  display: grid;
  gap: 3rem;
}

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

.zz__beliefs-body {
  margin-top: 1.5rem;
  max-width: 30rem;
  line-height: 1.8;
  color: var(--zz-muted-foreground);
}

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

.zz__beliefs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: zz-belief;
  align-self: center;
}

.zz__beliefs-list li {
  counter-increment: zz-belief;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--zz-border);
  font-family: var(--zz-font-serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.5;
}

.zz__beliefs-list li:first-child {
  border-top: 1px solid var(--zz-border);
}

.zz__beliefs-list li::before {
  content: counter(zz-belief, decimal-leading-zero);
  flex: none;
  font-family: var(--zz-font-sans);
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--zz-champagne);
}

/* ---------- Ubicación (Contacto) ----------
   La banda oscura del mapa, con jerarquía: labels champán en caps, valores en
   serif y el mapa enmarcado, en vez de tres titulares sueltos junto al iframe. */
.zz__location {
  padding: 6rem 0;
}

.zz__location-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .zz__location-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
  }
}

.zz__location-info .zz__label-caps::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: 1rem;
  background: var(--zz-champagne);
}

.zz__location-block {
  padding: 1.75rem 0;
}

.zz__location-block + .zz__location-block {
  border-top: 1px solid var(--zz-dark-border);
}

.zz__location-block:first-of-type {
  padding-top: 1.5rem;
}

.zz__location-block:last-of-type {
  padding-bottom: 0;
}

.zz__location-label {
  font-family: var(--zz-font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--zz-champagne);
}

.zz__location-value {
  margin-top: 0.625rem;
  font-family: var(--zz-font-serif);
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--zz-dark-foreground);
}

.zz__location-value a {
  text-decoration: none;
}

.zz__location-value a:hover {
  color: var(--zz-champagne);
}

.zz__location-note {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--zz-dark-muted);
}

.zz__location .zz__map--inline {
  margin-top: 0;
  border: 1px solid var(--zz-dark-border);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}

/* ---------- Rule-topped note grid (Menopausia, Preservé) ---------- */
/* La sección .zz__values en estas páginas no lleva .zz__values-grid (que es
   quien aporta el padding en la Home), así que sin esto queda pegada a los
   bordes. Cualquier página nueva que reutilice .zz__values + .zz__note-grid
   (en vez del grid de iconos de la Home) necesita añadirse aquí. */
.zz__menopausia .zz__values,
.zz__preserve .zz__values {
  padding: 5.5rem 0 6.5rem;
}

/* Intro centrada de la sección de claves, a juego con "Nuestros procedimientos". */
.zz__values-intro {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.zz__values-intro .zz__testimonials-sub {
  font-size: 1rem;
  line-height: 1.7;
}

.zz__note-grid {
  counter-reset: zz-note;
  margin-top: 3.5rem;
  display: grid;
  gap: 3rem 3.5rem;
}

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

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

.zz__note {
  counter-increment: zz-note;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zz-border);
}

.zz__note::before {
  content: counter(zz-note, decimal-leading-zero);
  display: block;
  margin-bottom: 0.875rem;
  font-family: var(--zz-font-serif);
  font-style: italic;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--zz-champagne);
}

.zz__note h3 {
  font-size: 1.375rem;
  line-height: 1.3;
}

.zz__note-body {
  margin-top: 0.875rem;
  color: var(--zz-muted-foreground);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.zz__note-body p + p {
  margin-top: 0.75rem;
}

/* ---------- Plain list (Menopausia — bienestar) ---------- */
.zz__list-plain {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--zz-font-serif);
  font-size: 1.375rem;
}

.zz__list-plain li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--zz-border);
}

.zz__list-plain li:first-child {
  border-top: 1px solid var(--zz-border);
}

.zz__list-plain li::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1px;
  background: var(--zz-champagne);
}

.zz__closing-line {
  margin-top: 2rem;
  font-family: var(--zz-font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--zz-champagne);
}

/* ---------- Category landings (taxonomy-tipo.php) ---------- */
.zz__landing-body {
  padding: 5rem 0;
}

.zz__landing-intro {
  max-width: 44rem;
  margin-bottom: 3.5rem;
  line-height: 1.8;
  color: var(--zz-muted-foreground);
}

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

.zz__landing-empty {
  color: var(--zz-muted-foreground);
}

.zz__landing-group + .zz__landing-group {
  margin-top: 4rem;
}

.zz__landing-group-title {
  font-size: 1.75rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--zz-border);
}

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

/* ---------- Blog (home.php, archive.php, single.php) ---------- */
.zz__blog-body {
  padding: 5rem 0;
}

.zz__blog-grid {
  display: grid;
  gap: 2rem;
}

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

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

.zz__blog-empty {
  color: var(--zz-muted-foreground);
}

.zz__blog-search,
.zz__404-search {
  margin-top: 2rem;
  max-width: 24rem;
}

.zz__post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zz-muted-foreground);
  margin-bottom: 0.75rem;
}

.zz__post-meta--hero {
  margin-top: 1.25rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.zz__t-hero--no-image .zz__post-meta--hero {
  color: var(--zz-muted-foreground);
}

.zz__post-content {
  padding-left: 0;
  padding-right: 0;
  margin: 0 auto;
}

.zz__post-content h2 {
  margin-top: 2.5rem;
  font-size: 1.75rem;
}

.zz__post-content h3 {
  margin-top: 2rem;
  font-size: 1.375rem;
}

.zz__post-content ul,
.zz__post-content ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
  line-height: 1.8;
}

.zz__post-content img {
  border-radius: var(--zz-radius-lg);
  margin: 2rem 0;
}

.zz__post-content blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--zz-quote-accent);
  font-family: var(--zz-font-serif);
  font-size: 1.375rem;
  font-style: italic;
}

.zz__post-cta {
  max-width: 44rem;
  margin: 3rem auto 0;
  padding: 2.5rem;
  background: var(--zz-secondary);
  border-radius: var(--zz-radius-lg);
}

.zz__post-cta p {
  margin: 1rem 0 1.75rem;
  color: var(--zz-muted-foreground);
  line-height: 1.7;
}

.zz__pagination {
  margin-top: 3.5rem;
}

.zz__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.zz__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--zz-border);
  border-radius: var(--zz-radius-full);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.zz__pagination .page-numbers:hover,
.zz__pagination .page-numbers.current {
  background: var(--zz-primary);
  color: var(--zz-primary-foreground);
  border-color: var(--zz-primary);
}

.zz__pagination .page-numbers.dots {
  border-color: transparent;
}

/* ---------- 404 (404.php) ---------- */
.zz__404-inner {
  padding: 9rem 1.25rem 7rem;
  max-width: 40rem;
}

.zz__404-title {
  margin-top: 0.75rem;
  font-size: 2.5rem;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .zz__404-title {
    font-size: 3.5rem;
  }
}

.zz__404-text {
  margin: 1.25rem 0 2rem;
  color: var(--zz-muted-foreground);
  line-height: 1.8;
}

/* ---------- Contact page additions (contacto.html) ---------- */
.zz__map--inline {
  height: 100%;
  min-height: 14rem;
  border-radius: var(--zz-radius-lg);
  overflow: hidden;
}

.zz__map--inline iframe {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  border: 0;
  display: block;
}

@media (min-width: 768px) {
  .zz__map--inline,
  .zz__map--inline iframe {
    min-height: 22rem;
  }
}

/* Los enlaces de texto heredan el color de la banda, pero los botones conservan el suyo. */
.zz__band--dark a:not(.zz__btn) {
  color: inherit;
}

/* ---------- Legal pages (legal-*.html) ---------- */
.zz__legal-updated {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--zz-muted-foreground);
}

.zz__legal .zz__rich-text-body {
  margin: 0 auto;
  color: var(--zz-muted-foreground);
}

.zz__legal .zz__rich-text-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: var(--zz-foreground);
}

.zz__legal .zz__rich-text-body h2:first-child {
  margin-top: 0;
}

.zz__legal .zz__rich-text-body ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

/* En la Home la rejilla de contacto la remata el mapa a ancho completo, por eso
   .zz__contact-grid no lleva padding inferior. En contacto.html la sección acaba
   ahí, así que hay que cerrarla. */
.zz__contacto .zz__contact-grid,
.zz__contacto .zz__contact-stack {
  padding-bottom: 5rem;
}

/* La banda oscura ya aporta su propio padding vertical: la rejilla que va dentro
   no debe volver a añadirlo. */
.zz__band .zz__contact-grid {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------- Search form (searchform.php) ---------- */
.zz__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--zz-border);
  border-radius: var(--zz-radius-full);
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
  background: var(--zz-card);
  transition: border-color 0.2s;
}

.zz__search:focus-within {
  border-color: var(--zz-champagne);
}

.zz__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.9375rem;
  color: inherit;
  padding: 0.5rem 0;
}

.zz__search-input:focus {
  outline: none;
}

.zz__search-submit {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: var(--zz-radius-full);
  background: var(--zz-primary);
  color: var(--zz-primary-foreground);
  cursor: pointer;
  transition: background-color 0.2s;
}

.zz__search-submit:hover {
  background: var(--zz-espresso);
}

/* Visually hidden but still read by screen readers. Divi ships its own
   .screen-reader-text, but this file must not depend on the parent theme. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Checkbox groups (parts/contact-form.php: canal/horario de
   contacto) ---------- Mismo aspecto que la casilla de consentimiento
   (.zz__consent), pero en grupo horizontal dentro de un <fieldset>. */
.zz__checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border: 0;
  padding: 0;
  /* Sin "margin: 0" a secas: esa declaración tenía la misma especificidad que
     .zz__contact-form > * + * (el ritmo vertical del formulario) y, al ir
     después en el archivo, la pisaba — por eso los dos grupos de checkboxes
     quedaban pegados. Solo se resetea el margen horizontal/inferior; el
     superior lo sigue poniendo esa regla compartida. */
  margin: 0 0 0 0;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .zz__checkbox-group {
    margin-top: 1.25rem;
  }
}

.zz__checkbox-group legend {
  width: 100%;
  padding: 0;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zz-muted-foreground);
}

@media (min-width: 768px) {
  .zz__checkbox-group legend {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
}

.zz__checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--zz-foreground);
  cursor: pointer;
}

@media (min-width: 768px) {
  .zz__checkbox-option {
    gap: 0.625rem;
    font-size: 0.875rem;
  }
}

/* El <fieldset> no lleva la clase .zz__field a propósito (solo .zz__checkbox-group):
   así este input nunca hereda las reglas de "input de texto" (width: 100%,
   padding grande…) que rompían el tamaño de la casilla. */
.zz__checkbox-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  margin: 0;
  padding: 0;
  font-size: inherit;
  border: 1px solid var(--zz-border);
  border-radius: 0.25rem;
  background: var(--zz-background);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

@media (min-width: 768px) {
  .zz__checkbox-option input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
  }
}

.zz__checkbox-option input[type="checkbox"]:hover {
  border-color: var(--zz-muted-foreground);
}

.zz__checkbox-option input[type="checkbox"]:focus-visible {
  border-color: var(--zz-champagne);
  box-shadow: var(--zz-focus-ring);
  outline: none;
}

.zz__checkbox-option input[type="checkbox"]:checked {
  background-color: var(--zz-champagne);
  border-color: var(--zz-champagne);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Treatment detail: optional FAQs (single-tratamiento.php, field "faqs") */

.zz__t-faqs {
  border-top: 1px solid var(--zz-border);
  background: var(--zz-background);
  padding: 5rem 0;
}

.zz__t-faqs-intro {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.zz__t-faqs-list {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zz__t-faq {
  border: 1px solid var(--zz-border);
  border-radius: 0.75rem;
  padding: 0 1.25rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.zz__t-faq:has(.zz__t-faq-q[aria-expanded="true"]) {
  border-color: var(--zz-foreground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.zz__t-faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--zz-font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--zz-foreground);
}

.zz__t-faq-q svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--zz-muted-foreground);
}

.zz__t-faq-q[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.zz__t-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.zz__t-faq-a-inner {
  overflow: hidden;
}

.zz__t-faq-q[aria-expanded="true"] ~ .zz__t-faq-a {
  grid-template-rows: 1fr;
}

.zz__t-faq-a p {
  margin: 0;
  padding-bottom: 10px !important;
  color: var(--zz-muted-foreground);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Treatment detail: optional Candidatos / Resultados / Recuperación tabs
   (single-tratamiento.php, fields "candidates_*" / "benefits" / "recovery_*").
   Lives as the right column of .zz__t-grid, next to the treatment copy. */

.zz__t-tabs-col {
  border-top: 1px solid var(--zz-border);
  padding-top: 3rem;
}

.zz__t-copy .zz__section-title {
  font-family: var(--zz-font-serif);
  font-size: 1.75rem;
}

@media (min-width: 1024px) {
  .zz__t-tabs-col {
    border-top: none;
    padding-top: 0;
  }
}

/* Segmented control with a sliding dark pill behind the active label
   (position/width set inline by site.js from the active button's geometry). */
.zz__t-tablist {
  position: relative;
  display: flex;
  margin-top: 1.75rem;
  gap: 0.25rem;
  background: var(--zz-secondary);
  border: 1px solid var(--zz-border);
  border-radius: var(--zz-radius-full);
  padding: 0.3rem;
}

.zz__t-tab-indicator {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0;
  width: 0;
  border-radius: var(--zz-radius-full);
  background: var(--zz-dark-bg);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.zz__t-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--zz-radius-full);
  background: transparent;
  color: var(--zz-foreground);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}

.zz__t-tab svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.zz__t-tab:hover {
  color: var(--zz-champagne);
}

.zz__t-tab.zz__is-active {
  color: var(--zz-dark-foreground);
}

.zz__t-tab.zz__is-active svg {
  opacity: 1;
}

.zz__t-tabpanel {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--zz-radius-lg);
  background: var(--zz-card);
  border: 1px solid var(--zz-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  animation: zzFadeIn 0.4s ease both;
}

@keyframes zzFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zz__t-tab-intro {
  font-family: var(--zz-font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--zz-muted-foreground);
  margin-bottom: 1.5rem;
}

.zz__t-tab-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}

.zz__t-tab-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--zz-muted-foreground);
  line-height: 1.6;
}

.zz__t-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  height: 1.35rem;
  width: 1.35rem;
  border-radius: 50%;
  background: var(--zz-accent);
  color: var(--zz-champagne);
}

.zz__t-tab-note {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--zz-border);
  color: var(--zz-muted-foreground);
  font-style: italic;
  font-size: 0.95rem;
}

/* Treatment detail: optional "Antes / Después" comparator (single-tratamiento.php,
   field "before_after", migrations/013). Sección pequeña a propósito — hasta 3
   pares de fotos, cada uno con un slider nativo <input type="range"> superpuesto
   (accesible por teclado/touch) que mueve --zz-ba-pos; el clip-path de la foto
   "antes" y la posición del divisor leen esa misma variable. */
.zz__t-ba {
  border-top: 1px solid var(--zz-border);
  background: var(--zz-secondary);
  padding: 4rem 0;
}

.zz__t-ba-intro {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.zz__section-title--sm {
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  .zz__section-title--sm {
    font-size: 1.75rem;
  }
}

.zz__t-ba-grid {
  margin: 2.75rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.zz__ba {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.zz__ba-frame {
  position: relative;
  /* Tamaño fijo, no una card que se estira con el grid: alto fijo y ancho
     proporcional (aspect-ratio 4/5), da igual que haya 1 o 3 pares. */
  height: 300px;
  width: calc(300px * 4 / 5);
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--zz-radius-lg);
  border: 1px solid var(--zz-border);
  box-shadow: 0 14px 30px rgba(20, 18, 15, 0.12);
  background: var(--zz-muted);
  --zz-ba-pos: 50%;
}

.zz__ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
}

.zz__ba-img--before {
  clip-path: inset(0 calc(100% - var(--zz-ba-pos)) 0 0);
}

.zz__ba-tag {
  position: absolute;
  top: 0.4375rem;
  z-index: 1;
  padding: 0.025rem 0.6rem;
  border-radius: var(--zz-radius-lg);
  /* Sólido, no translúcido: sobre una foto en blanco y negro (típica en
     "antes"), un fondo con alpha se fundía con la imagen y el texto perdía
     contraste. El borde claro lo despega también de fondos oscuros. */
  background: var(--zz-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  color: var(--zz-primary-foreground);
  font-size: 0.4375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.zz__ba-tag--before {
  left: 0.625rem;
}

.zz__ba-tag--after {
  right: 0.625rem;
}

.zz__ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--zz-ba-pos);
  z-index: 1;
  width: 2px;
  background: var(--zz-dark-foreground);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%);
  pointer-events: none;
}

.zz__ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 50%;
  background: var(--zz-dark-foreground);
  color: var(--zz-primary);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.zz__ba-range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.zz__ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 100%;
  width: 2.5rem;
  background: transparent;
  cursor: ew-resize;
}

.zz__ba-range::-moz-range-thumb {
  height: 100%;
  width: 2.5rem;
  border: none;
  background: transparent;
  cursor: ew-resize;
}

.zz__ba-range::-moz-range-track {
  background: transparent;
}

.zz__ba-range:focus-visible ~ .zz__ba-divider .zz__ba-handle {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3), var(--zz-focus-ring);
}

.zz__ba-label {
  margin: 0;
  text-align: center;
  font-size: .8rem;
  color: var(--zz-muted-foreground);
}

/* ---------- Widget flotante de cita (parts/contact-widget.php) ----------
   Botón fijo abajo a la derecha en todas las páginas + panel con el formulario
   paso a paso. En móvil el panel es una hoja inferior a ancho completo con velo;
   en escritorio, una tarjeta anclada al propio botón (sin velo, no bloquea la
   lectura de la página). Reutiliza .zz__field / .zz__consent / .zz__btn del
   formulario largo para que ambos se vean como el mismo formulario. */

.zz__widget-lock {
  overflow: hidden;
}

/* ---- Velo (solo móvil) ---- */
.zz__widget-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: color-mix(in oklab, var(--zz-espresso) 45%, transparent);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.zz__widget--in .zz__widget-scrim {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 640px) {
  .zz__widget-scrim {
    display: none;
  }
}

/* ---- Botón flotante ---- */
.zz__widget-fab {
  position: fixed;
  z-index: 80;
  right: 1.25rem;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 3.5rem;
  padding: 0 1rem;
  border-radius: var(--zz-radius-full);
  background: var(--zz-primary);
  color: var(--zz-primary-foreground);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s,
    opacity 0.3s ease, visibility 0.3s;
}

.zz__widget-fab:hover {
  transform: translateY(-2px);
}

/* Antes del fold el botón se solapa con el CTA del hero en móvil: entra desde
   abajo cuando ya se ha bajado un poco. La clase la gobierna site.js, así que
   sin JS el botón permanece visible (enlace de reserva a /contacto). */
.zz__widget--hidden .zz__widget-fab {
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem) scale(0.85);
  pointer-events: none;
}

.zz__widget-fab:active {
  transform: scale(0.96);
}

.zz__widget-fab:focus-visible {
  outline: none;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55), var(--zz-focus-ring);
}

@media (min-width: 640px) {
  .zz__widget-fab {
    right: 1.75rem;
    bottom: 1.75rem;
    height: 3.75rem;
    padding: 0 1.125rem;
  }
}

/* Halo champagne en reposo: llama la atención sin parpadear. */
.zz__widget-fab-halo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--zz-champagne);
  animation: zz__widget-halo 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.zz__widget--open .zz__widget-fab-halo {
  animation: none;
  opacity: 0;
}

@keyframes zz__widget-halo {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  55% {
    transform: scale(1.22);
    opacity: 0;
  }
}

/* Los dos iconos se cruzan en el mismo hueco: mensaje ↔ aspa. */
.zz__widget-fab-icons {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.zz__widget-fab-icon {
  grid-area: 1 / 1;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.zz__widget-fab-icon--close,
.zz__widget--open .zz__widget-fab-icon--chat {
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
}

.zz__widget--open .zz__widget-fab-icon--close {
  opacity: 1;
  transform: none;
}

/* La etiqueta se despliega al pasar el ratón; en móvil no existe. */
.zz__widget-fab-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (min-width: 640px) {
  .zz__widget-fab:hover .zz__widget-fab-label,
  .zz__widget-fab:focus-visible .zz__widget-fab-label {
    max-width: 8rem;
    opacity: 1;
    margin-left: 0.625rem;
  }

  .zz__widget--open .zz__widget-fab:hover .zz__widget-fab-label,
  .zz__widget--open .zz__widget-fab:focus-visible .zz__widget-fab-label {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
  }
}

/* ---- Panel ---- */
.zz__widget-panel {
  position: fixed;
  z-index: 70;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--zz-card);
  color: var(--zz-card-foreground);
  border: 1px solid var(--zz-border);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(1.5rem) scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);

  /* Móvil: hoja inferior */
  inset-inline: 0;
  bottom: 0;
  max-height: 92dvh;
  border-radius: var(--zz-radius-lg) var(--zz-radius-lg) 0 0;
  transform-origin: bottom center;
}

.zz__widget-panel[hidden] {
  display: none;
}

.zz__widget--in .zz__widget-panel {
  opacity: 1;
  transform: none;
}

@media (min-width: 640px) {
  .zz__widget-panel {
    inset-inline: auto;
    right: 1.75rem;
    bottom: 6.5rem;
    width: 24.5rem;
    max-height: min(34rem, calc(100dvh - 9rem));
    border-radius: var(--zz-radius-lg);
    transform-origin: bottom right;
  }
}

/* Barra de progreso */
.zz__widget-progress {
  height: 3px;
  background: var(--zz-secondary);
  flex: none;
}

.zz__widget-progress-bar {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--zz-champagne);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cabecera */
.zz__widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem 0.875rem;
  border-bottom: 1px solid var(--zz-border);
  flex: none;
}

.zz__widget-eyebrow {
  margin: 0;
}

.zz__widget-title {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
  line-height: 1.15;
}

.zz__widget-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: -0.25rem -0.25rem 0 0;
  border: none;
  border-radius: var(--zz-radius-full);
  background: transparent;
  color: var(--zz-muted-foreground);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.zz__widget-close:hover {
  background: var(--zz-secondary);
  color: var(--zz-foreground);
}

.zz__widget-close:focus-visible {
  outline: none;
  box-shadow: var(--zz-focus-ring);
}

/* Cuerpo */
.zz__widget-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.zz__widget-form[hidden] {
  display: none;
}

.zz__widget-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.zz__widget-step {
  margin: 0;
  padding: 0;
  border: none;
}

.zz__widget-step[hidden] {
  display: none;
}

.zz__widget-step--in {
  animation: zz__widget-step 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes zz__widget-step {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.zz__widget-question {
  float: none;
  width: 100%;
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--zz-font-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--zz-foreground);
  text-wrap-style: balance;
}

.zz__widget-step .zz__field + .zz__field {
  margin-top: 0.875rem;
}

/* Opciones del paso 1: el radio nativo queda oculto pero sigue gobernando el
   estado, así el teclado (flechas) funciona sin JS extra. */
.zz__widget-choices {
  display: grid;
  gap: 0.5rem;
}

.zz__widget-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--zz-border);
  border-radius: var(--zz-radius);
  background: var(--zz-background);
  color: var(--zz-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.zz__widget-choice:hover {
  border-color: color-mix(in oklab, var(--zz-champagne) 50%, transparent);
  color: var(--zz-foreground);
}

.zz__widget-choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.zz__widget-choice span {
  flex: 1;
}

.zz__widget-choice-mark {
  flex: none;
  color: var(--zz-champagne);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.zz__widget-choice:has(input:checked) {
  border-color: var(--zz-champagne);
  background: color-mix(in oklab, var(--zz-champagne) 10%, var(--zz-background));
  color: var(--zz-foreground);
}

.zz__widget-choice:has(input:checked) .zz__widget-choice-mark {
  opacity: 1;
  transform: none;
}

.zz__widget-choice:has(input:focus-visible) {
  box-shadow: var(--zz-focus-ring);
}

.zz__widget-treatment {
  margin-top: 0.875rem;
}

.zz__widget-treatment[hidden] {
  display: none;
}

/* Chips de canal y horario (paso 4) */
.zz__widget-sublabel {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zz-muted-foreground);
}

.zz__widget-sublabel + .zz__widget-chips {
  margin-bottom: 1.125rem;
}

.zz__widget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zz__widget-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--zz-border);
  border-radius: var(--zz-radius-full);
  background: var(--zz-background);
  color: var(--zz-muted-foreground);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.zz__widget-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.zz__widget-chip:hover {
  border-color: color-mix(in oklab, var(--zz-champagne) 50%, transparent);
  color: var(--zz-foreground);
}

.zz__widget-chip:has(input:checked) {
  border-color: var(--zz-champagne);
  background: color-mix(in oklab, var(--zz-champagne) 12%, var(--zz-background));
  color: var(--zz-foreground);
}

.zz__widget-chip:has(input:focus-visible) {
  box-shadow: var(--zz-focus-ring);
}

.zz__widget-consent {
  margin-top: 1rem;
  font-size: 0.75rem;
}

/* Pie de acciones */
.zz__widget-foot {
  flex: none;
  padding: 0.875rem 1.25rem max(0.875rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--zz-border);
  background: var(--zz-card);
}

.zz__widget-error {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: oklch(0.52 0.17 27);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease, margin-bottom 0.25s ease;
}

.zz__widget-error.zz__is-visible {
  max-height: 3rem;
  opacity: 1;
  margin-bottom: 0.625rem;
}

.zz__widget-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.zz__widget-back {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--zz-border);
  border-radius: var(--zz-radius-full);
  background: transparent;
  color: var(--zz-muted-foreground);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.zz__widget-back[hidden] {
  display: none;
}

.zz__widget-back:hover {
  border-color: var(--zz-champagne);
  color: var(--zz-foreground);
}

.zz__widget-back:focus-visible {
  outline: none;
  box-shadow: var(--zz-focus-ring);
}

.zz__widget-next {
  flex: 1;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.25rem;
}

.zz__widget-next:focus-visible {
  outline: none;
  box-shadow: var(--zz-focus-ring);
}

/* Confirmación */
.zz__widget-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1.75rem max(2.5rem, env(safe-area-inset-bottom));
  text-align: center;
  animation: zz__widget-step 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.zz__widget-success[hidden] {
  display: none;
}

.zz__widget-success h3 {
  margin: 0;
  font-size: 1.5rem;
}

.zz__widget-success p {
  margin: 0;
  max-width: 18rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--zz-muted-foreground);
}

@media (prefers-reduced-motion: reduce) {
  .zz__widget-fab-halo,
  .zz__widget-step--in,
  .zz__widget-success {
    animation: none;
  }

  .zz__widget-panel,
  .zz__widget-scrim,
  .zz__widget-progress-bar,
  .zz__widget-fab,
  .zz__widget-fab-label {
    transition: none;
  }
}

/* ---------- "Cómo funciona" block: checklist + aviso destacado + imagen con
   ficha flotante (Preservé, Menopausia). Petición de la clienta: llevar el
   contenido "más al hueso", en cajas concretas y destacadas, en vez de solo
   párrafos corridos. ---------- */
.zz__how-grid {
  display: grid;
  gap: 3rem;
  padding: 5rem 1.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .zz__how-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    padding: 7rem 2rem;
    align-items: center;
  }

  /* Sin imagen de "Cómo funciona" en Static Content: fuerza la única columna
     de .zz__doctor-grid--no-media, que si no perdería por orden de cascada
     al tener la misma especificidad que .zz__how-grid. */
  .zz__how-grid.zz__doctor-grid--no-media {
    grid-template-columns: 1fr;
  }
}

.zz__how-lead {
  margin-top: 1rem;
  max-width: 32rem;
  color: var(--zz-muted-foreground);
  line-height: 1.7;
}

.zz__how-checklist {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.zz__how-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 0;
  border-top: 1px solid var(--zz-border);
}

.zz__how-checklist li:first-child {
  border-top: none;
  padding-top: 0;
}

.zz__how-check {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  color: var(--zz-champagne);
}

.zz__how-checklist p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.zz__how-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--zz-champagne);
  background: var(--zz-muted);
  border-radius: 0 var(--zz-radius) var(--zz-radius) 0;
}

.zz__how-note p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--zz-muted-foreground);
}

.zz__how-note strong {
  color: var(--zz-foreground);
}

.zz__how-media {
  position: relative;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .zz__how-media {
    margin-bottom: 0;
  }
}

.zz__how-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--zz-radius-lg);
}

.zz__how-badge {
  position: absolute;
  left: 1.25rem;
  bottom: -1.5rem;
  max-width: 13rem;
  padding: 0.875rem 1.25rem;
  background: var(--zz-card);
  border-radius: var(--zz-radius);
  box-shadow: 0 20px 45px -20px rgba(20, 16, 10, 0.45);
}

.zz__how-badge-label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zz-champagne);
}

.zz__how-badge-value {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- Tarjetas con icono para el bloque "beneficios" (variante boxed
   de .zz__note-grid, sobre fondo claro u oscuro) ---------- */
.zz__note--card {
  padding: 1.75rem 1.5rem;
  border-top: none;
  background: var(--zz-card);
  border-radius: var(--zz-radius-lg);
  box-shadow: 0 20px 45px -30px rgba(20, 16, 10, 0.35);
}

.zz__note--card::before {
  content: none;
}

.zz__note-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: var(--zz-radius);
  background: var(--zz-accent);
  color: var(--zz-champagne);
}

/* Contraste insuficiente con el 0.06 original: la tarjeta se fundía con el
   fondo oscuro. Sube el fondo, suma un borde propio y aclara el título. */
.zz__values--dark .zz__note--card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.zz__values--dark .zz__note--card .zz__note-icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--zz-dark-foreground);
}

/* ---------- Tarjetas con borde para el bloque "qué es" (bajo la intro,
   fondo transparente, más discretas que las de arriba) ---------- */
.zz__feature-cards {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .zz__feature-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.zz__feature-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--zz-border);
  border-radius: var(--zz-radius-lg);
}

.zz__feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(180, 140, 90, 0.4);
  color: var(--zz-champagne);
}

.zz__feature-card h3 {
  font-size: 1.125rem;
}

/* ---------- Bloque "Qué es X": a ancho completo, sin columna de imagen (a
   diferencia de .zz__doctor-grid) — las tarjetas .zz__feature-cards necesitan
   sitio para respirar, si no quedan apretadas dentro de media columna. ---------- */
.zz__what {
  padding: 5rem 1.25rem;
}

@media (min-width: 1024px) {
  .zz__what {
    padding: 7rem 2rem;
  }
}

.zz__what-lead {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--zz-muted-foreground);
  line-height: 1.7;
}

.zz__feature-card p {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--zz-muted-foreground);
}

/* Honeypot del formulario de contacto: fuera de la vista y del lector de
   pantalla, pero no con display:none — algunos bots ignoran los campos
   ocultos de la forma obvia y así caen igual. Ver inc/contact-form.php. */
.zz__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Error de envío bajo el botón del formulario largo. Mismo tratamiento que
   .zz__widget-error, que es su equivalente en el widget por pasos. */
.zz__form-error {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: oklch(0.52 0.17 27);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

.zz__form-error.zz__is-visible {
  max-height: 4rem;
  opacity: 1;
}
