/*
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;
}

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;
  margin: 0;
}

p {
  margin: 0;
}

/* ---------- 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;
  border-bottom: 1px solid transparent;
  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. */
.zz__header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.3s;
}

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

.zz__header.zz__is-scrolled::before,
.zz__header.zz__menu-open::before {
  background: rgba(255, 255, 255, 0.95);
}

.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;
}

.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-muted-foreground);
  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-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);
}

.zz__nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .zz__nav-cta {
    display: inline-flex;
    /* 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__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-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: 1rem 0;
  font-family: var(--zz-font-serif);
  font-size: 1.5rem;
  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: 1rem 0;
  font-family: var(--zz-font-serif);
  font-size: 1.5rem;
  color: var(--zz-foreground);
  cursor: pointer;
}

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

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

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

.zz__mobile-cta {
  margin-top: 1.5rem;
  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);
}

/* 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;
}

/* ----- CTA band ----- */
.zz__footer-cta {
  border-bottom: 1px solid var(--zz-dark-border);
}

.zz__footer-cta-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .zz__footer-cta-inner {
    padding: 5rem 2rem;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }
}

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

.zz__footer-cta-title {
  margin-top: 0.75rem;
  max-width: 26rem;
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--zz-dark-foreground);
}

@media (min-width: 640px) {
  .zz__footer-cta-title { font-size: 2.75rem; }
}

.zz__footer-cta-title em {
  font-style: italic;
  color: var(--zz-champagne);
}

.zz__footer-cta-inner .zz__btn--light {
  flex-shrink: 0;
}

.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.5rem 1.25rem 0;
  border-top: 1px solid var(--zz-dark-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--zz-dark-muted);
}

@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.5rem, 12vw, 8.5rem);
  margin-top: -2rem;
  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;
}

/* 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;
  object-position: center;
  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);
}

.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;
}

.zz__doctor-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  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-quote-wrap {
  position: relative;
  margin-top: 1.75rem;
  min-height: 10rem;
}

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

@media (min-width: 640px) {
  .zz__testimonial blockquote { font-size: 1.85rem; }
}

.zz__testimonial-author {
  margin-top: 1.5rem;
  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: 2.5rem;
  padding-left: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.zz__testimonial-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  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;
}

.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);
}

.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;
  }
}

.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.5rem;
}

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

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

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

/* 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: 1.25rem;
}

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

.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.8125rem 1rem;
  /* 16px keeps iOS Safari from zooming the viewport on focus; the visual size
     drops back to 0.875rem once there's enough room for it not to matter. */
  font-size: 1rem;
  line-height: 1.4;
  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 {
    font-size: 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: 7rem;
}

/* 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.75rem;
  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 1rem 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.5rem;
  width: 100%;
  justify-content: center;
  border: none;
}

.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: 26rem;
  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: 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: 3.5rem;
  border-top: 1px solid var(--zz-border);
}

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

/* ---------- 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;
}

.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;
}

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

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

.zz__t-benefits {
  align-self: start;
  position: sticky;
  top: 7rem;
  border-radius: var(--zz-radius-lg);
  border: 1px solid var(--zz-border);
  background: var(--zz-card);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.zz__t-benefits h3 {
  margin-top: 0.5rem;
  font-size: 1.75rem;
}

.zz__t-benefits ul {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.zz__t-benefits .zz__btn {
  margin-top: 1.75rem;
  width: 100%;
  justify-content: center;
}

.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;
}

.zz__page-hero--no-image {
  background: var(--zz-background);
  border-bottom: 1px solid var(--zz-border);
}

.zz__page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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 0;
  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;
}

.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;
  /* 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 ---------- */
.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);
}

/* 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);
}

.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;
}

.zz__band--dark .zz__band-highlight {
  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) ---------- */
/* La sección .zz__values en Menopausia no lleva .zz__values-grid (que es quien
   aporta el padding en la Home), así que sin esto quedaba pegada a los bordes. */
.zz__menopausia .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: 22rem;
  border-radius: var(--zz-radius-lg);
  overflow: hidden;
}

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

/* 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 {
  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;
}
