/* ==========================================================================
   Clínica Alzahar · Capa de diseño sobre Bootstrap 5.3
   --------------------------------------------------------------------------
   Este archivo se carga DESPUÉS de bootstrap.min.css y es común a todas
   las landing pages. Las clases propias llevan el prefijo «az-».

   1.  Fuentes (alojadas en el propio servidor)
   2.  Tokens de marca
   3.  Base y tipografía
   4.  Botones y enlaces
   5.  Barra superior
   6.  Header y navegación
   7.  Secciones y patrones comunes
   8.  Hero de portada
   9.  Bloques de portada
   10. Componentes para páginas interiores
   11. Cita (formulario + contacto)
   12. Footer
   13. Aviso de cookies
   14. Movimiento y accesibilidad
   ========================================================================== */

/* 1. Fuentes ---------------------------------------------------------------- */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* Sprite de iconos SVG (oculto) */
.az-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 2. Tokens ----------------------------------------------------------------- */
:root {
  /* Colores del logotipo: solo para el logotipo, nunca para la interfaz */
  --az-logo-rojo: #FF0000;
  --az-logo-amarillo: #FFE700;
  --az-logo-verde: #008E00;

  /* Paleta web (derivada del logo, suavizada) */
  --az-hoja: #21593E;          /* verde hoja de naranjo: acción principal */
  --az-hoja-oscuro: #153F2C;   /* footer, barra superior, hover */
  --az-tinta: #1E2A24;         /* texto principal */
  --az-tinta-suave: #56645C;   /* texto secundario */
  --az-linea: #DCE3DD;         /* filetes y bordes */
  --az-porcelana: #FAFAF7;     /* fondo base */
  --az-blanco: #FFFFFF;
  --az-salvia: #EDF2EE;        /* fondo de sección (verde muy suave) */
  --az-salvia-2: #DCE7DF;
  --az-rubor: #F7E2DD;         /* tinte del rojo */
  --az-coral: #C8503F;         /* acento puntual del rojo */
  --az-miel: #FBF1C9;          /* tinte del amarillo */
  --az-azafran: #E3BC2D;       /* acento puntual del amarillo */

  /* Logo en versión suave (ilustración del hero) */
  --az-suave-rojo: #F0B5A9;
  --az-suave-amarillo: #F6E28E;
  --az-suave-verde: #A3C9AD;

  /* Tipografía */
  --az-sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --az-serif: "Newsreader", Georgia, "Times New Roman", serif;

  /* Escala tipográfica (ratio ≈ 1,25) */
  --az-fs-xs: .8125rem;
  --az-fs-sm: .9375rem;
  --az-fs-base: 1.0625rem;
  --az-fs-prose: 1.1875rem;
  --az-fs-lead: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --az-fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
  --az-fs-h2: clamp(2rem, 1.35rem + 2.5vw, 3.25rem);
  --az-fs-h1: clamp(2.75rem, 1.5rem + 4.8vw, 5.5rem);

  /* Espacio y forma */
  --az-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --az-gutter: 1rem;
  --az-radius-sm: .625rem;
  --az-radius: 1.25rem;
  --az-radius-pill: 999px;
  --az-arco: 999px 999px var(--az-radius) var(--az-radius); /* arco de medio punto */
  --az-sombra: 0 22px 48px -26px rgba(21, 63, 44, .32);
  --az-header-h: 76px;

  /* Puente con Bootstrap */
  --bs-body-font-family: var(--az-sans);
  --bs-body-font-size: var(--az-fs-base);
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--az-tinta);
  --bs-body-bg: var(--az-porcelana);
  --bs-link-color: var(--az-hoja);
  --bs-link-color-rgb: 33, 89, 62;
  --bs-link-hover-color: var(--az-hoja-oscuro);
  --bs-link-hover-color-rgb: 21, 63, 44;
  --bs-border-color: var(--az-linea);
  --bs-emphasis-color: var(--az-tinta);
  --bs-secondary-color: var(--az-tinta-suave);
  --bs-focus-ring-color: rgba(33, 89, 62, .35);
  --bs-code-color: var(--az-hoja);
}

/* 3. Base y tipografía ------------------------------------------------------ */
body {
  background: var(--az-porcelana);
  color: var(--az-tinta);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 576px) { :root { --az-gutter: 1.5rem; } }

.container { --bs-gutter-x: calc(var(--az-gutter) * 2); max-width: 1280px; }

h1, h2, h3, h4, h5, h6, .az-h1, .az-h2, .az-h3 {
  font-family: var(--az-sans);
  color: var(--az-tinta);
  font-weight: 300;
  letter-spacing: -.018em;
  margin-top: 0;
  text-wrap: balance;
}
h1, .az-h1 { font-size: var(--az-fs-h1); line-height: 1.02; letter-spacing: -.03em; }
h2, .az-h2 { font-size: var(--az-fs-h2); line-height: 1.08; margin-bottom: 1.25rem; }
h3, .az-h3 { font-size: var(--az-fs-h3); line-height: 1.25; font-weight: 450; letter-spacing: -.008em; margin-bottom: .75rem; }

main p, .az-prose p, .az-serif {
  font-family: var(--az-serif);
  font-size: var(--az-fs-prose);
  line-height: 1.7;
  font-weight: 400;
}
main p { max-width: 68ch; text-wrap: pretty; }
.az-lead, main p.az-lead {
  font-family: var(--az-serif);
  font-size: var(--az-fs-lead);
  line-height: 1.5;
  font-weight: 350;
  color: var(--az-tinta-suave);
  max-width: 36rem;
}
strong, b { font-weight: 600; }

/* Antetítulo: nombra la categoría del bloque (no se usa como adorno) */
.az-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--az-sans);
  font-size: var(--az-fs-sm);
  font-weight: 500;
  color: var(--az-hoja);
  margin-bottom: .75rem;
}
.az-kicker::before { /* el «ojo» del logotipo */
  content: "";
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.az-muted { color: var(--az-tinta-suave); }
.az-measure { max-width: 38rem; }
::selection { background: var(--az-miel); color: var(--az-tinta); }

/* 4. Botones y enlaces ------------------------------------------------------ */
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }

.az-btn {
  --az-btn-bg: var(--az-hoja);
  --az-btn-fg: var(--az-blanco);
  --az-btn-bd: var(--az-hoja);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.125rem;
  padding: .75rem 1.6rem;
  border: 1px solid var(--az-btn-bd);
  border-radius: var(--az-radius-pill);
  background: var(--az-btn-bg);
  color: var(--az-btn-fg);
  font-family: var(--az-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.az-btn { position: relative; overflow: hidden; isolation: isolate; --az-btn-fill: var(--az-hoja-oscuro); }
.az-btn::before { /* relleno que barre de izquierda a derecha al pasar el ratón */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--az-btn-fill); transform: translateX(-101%);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}
.az-btn:hover::before, .az-btn:focus-visible::before { transform: none; }
.az-btn:hover { --az-btn-bd: var(--az-hoja-oscuro); color: var(--az-btn-fg); }
.az-btn--ghost { --az-btn-bg: transparent; --az-btn-fg: var(--az-hoja); --az-btn-bd: color-mix(in srgb, var(--az-hoja) 45%, transparent); --az-btn-fill: var(--az-hoja); }
.az-btn--ghost:hover { --az-btn-fg: var(--az-blanco); --az-btn-bd: var(--az-hoja); }
.az-btn--light { --az-btn-bg: var(--az-porcelana); --az-btn-fg: var(--az-hoja-oscuro); --az-btn-bd: var(--az-porcelana); --az-btn-fill: var(--az-miel); }
.az-btn--light:hover { --az-btn-bd: var(--az-miel); --az-btn-fg: var(--az-hoja-oscuro); }
.az-btn--sm { min-height: 2.5rem; padding: .5rem 1.15rem; font-size: var(--az-fs-sm); }
.az-btn .az-icon { width: 1.15em; height: 1.15em; }

.az-link {
  font-family: var(--az-sans);
  font-weight: 500;
  color: var(--az-hoja);
  text-decoration: none;
  padding-bottom: .12em;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, var(--az-hoja) 30%, transparent), color-mix(in srgb, var(--az-hoja) 30%, transparent));
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size .6s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}
.az-link:hover { color: var(--az-hoja-oscuro); background-size: 100% 1px, 100% 1px; }

.az-icon { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 5. Barra superior --------------------------------------------------------- */
.az-topbar {
  background: var(--az-hoja-oscuro);
  color: rgba(250, 250, 247, .82);
  font-size: var(--az-fs-xs);
  letter-spacing: .01em;
}
.az-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.az-topbar a { color: var(--az-porcelana); text-decoration: none; }
.az-topbar a:hover { color: var(--az-miel); }
.az-topbar__info, .az-topbar__actions { display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.az-topbar__info li, .az-topbar__actions li { display: inline-flex; align-items: center; gap: .45rem; }
.az-topbar .az-icon { width: .95rem; height: .95rem; opacity: .8; }
.az-topbar__social { display: inline-flex; gap: 1rem; padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .18); }
.az-topbar__cta { font-weight: 500; color: var(--az-miel) !important; }
@media (max-width: 991.98px) {
  .az-topbar__info, .az-topbar__social { display: none !important; }
  .az-topbar .container { justify-content: center; }
  .az-topbar__actions { gap: 1.25rem; }
}
@media (max-width: 380px) { .az-topbar__actions .az-hide-xs { display: none; } }
.az-topbar__actions a { display: inline-flex; align-items: center; gap: .45rem; }
/* El correo solo se muestra donde cabe en una línea */
.az-topbar li { white-space: nowrap; }
@media (max-width: 575.98px), (min-width: 992px) and (max-width: 1199.98px) { .az-topbar__mail { display: none !important; } }

/* 6. Header y navegación ---------------------------------------------------- */
.az-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  isolation: isolate;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* El desenfoque va en un pseudo-elemento: si estuviera en el header,
   el menú móvil (position: fixed) quedaría encerrado dentro de él. */
.az-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--az-porcelana) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.az-header.is-scrolled { border-bottom-color: var(--az-linea); box-shadow: 0 10px 30px -24px rgba(21, 63, 44, .45); }
.az-header .navbar { min-height: var(--az-header-h); padding: .5rem 0; }

.az-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--az-tinta); margin-right: 1.5rem; }
.az-brand__mark { width: 2.75rem; height: auto; flex: none; }
.az-brand__word { display: flex; flex-direction: column; line-height: 1; font-family: var(--az-sans); }
.az-brand__word small { font-size: .78rem; font-weight: 400; letter-spacing: .06em; color: var(--az-tinta-suave); margin-bottom: .2rem; }
.az-brand__word span { font-size: 1.5rem; font-weight: 500; letter-spacing: .015em; color: var(--az-tinta); }
.az-brand:hover .az-brand__word span { color: var(--az-hoja); }

.az-nav .nav-link {
  font-family: var(--az-sans);
  font-size: 1rem;
  font-weight: 450;
  color: var(--az-tinta);
  padding: .5rem .8rem;
  border-radius: var(--az-radius-pill);
}
.az-nav .nav-link:hover, .az-nav .nav-link:focus-visible, .az-nav .show > .nav-link { color: var(--az-hoja); }
.az-nav .nav-link.active, .az-nav .nav-link[aria-current="page"] { color: var(--az-hoja); }
.az-nav .nav-link:focus { box-shadow: none; }
.az-nav .nav-link:focus-visible { box-shadow: none; outline: 2px solid var(--az-hoja); outline-offset: 2px; }
.az-nav .dropdown-item:focus-visible { outline: 2px solid var(--az-hoja); outline-offset: -2px; }
.az-nav .dropdown-toggle::after {
  border: 0;
  width: .45rem; height: .45rem;
  margin-left: .45rem;
  vertical-align: .18em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  opacity: .6;
}
.az-nav .show > .dropdown-toggle::after { transform: rotate(225deg) translate(-2px, -2px); }

.az-nav .dropdown-menu {
  --bs-dropdown-border-color: var(--az-linea);
  --bs-dropdown-border-radius: 1rem;
  --bs-dropdown-link-color: var(--az-tinta);
  --bs-dropdown-link-hover-color: var(--az-hoja);
  --bs-dropdown-link-hover-bg: var(--az-salvia);
  --bs-dropdown-link-active-color: var(--az-hoja-oscuro);
  --bs-dropdown-link-active-bg: var(--az-salvia-2);
  --bs-dropdown-padding-y: .75rem;
  --bs-dropdown-font-size: .975rem;
  min-width: 17rem;
  padding: .75rem;
  background: var(--az-blanco);
  box-shadow: var(--az-sombra);
}
.az-nav .dropdown-item { border-radius: .6rem; padding: .5rem .75rem; white-space: normal; }
.az-nav .dropdown-header { font-family: var(--az-sans); font-size: var(--az-fs-xs); color: var(--az-tinta-suave); padding: .25rem .75rem .5rem; }
.az-nav .az-dropdown-all { font-weight: 500; color: var(--az-hoja); }
.az-nav .dropdown-divider { border-color: var(--az-linea); margin: .4rem .5rem; }

.az-burger {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--az-linea);
  border-radius: var(--az-radius-pill);
  background: var(--az-blanco);
  color: var(--az-tinta);
  font-family: var(--az-sans); font-size: var(--az-fs-sm); font-weight: 500;
  padding: .55rem 1rem;
}
.az-burger .az-icon { width: 1.25rem; height: 1.25rem; }
.az-header__phone { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--az-hoja); border: 1px solid var(--az-linea); background: var(--az-blanco); }

@media (min-width: 1200px) {
  .az-nav .dropdown-menu { margin-top: .5rem !important; }
  .az-nav .dropdown-menu.az-dropdown--cols { columns: 2; column-gap: .5rem; min-width: 30rem; }
  .az-nav .az-dropdown--cols > li { break-inside: avoid; }
  .az-nav .az-dropdown--cols .az-dropdown-top { column-span: all; }
  .az-nav .dropdown-menu::before { /* zona puente para que el hover no se pierda */
    content: ""; position: absolute; left: 0; right: 0; top: -.75rem; height: .75rem;
  }
  .az-header .offcanvas-xl { flex-grow: 1; }
  .az-header .offcanvas-body { align-items: center; }
  .az-offcanvas-extra { display: none; }
}
@media (max-width: 1199.98px) {
  .az-header .offcanvas-xl { --bs-offcanvas-width: min(26rem, 100vw); background: var(--az-porcelana); }
  .az-header .offcanvas-header { border-bottom: 1px solid var(--az-linea); min-height: var(--az-header-h); }
  .az-header .offcanvas-body { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.25rem 1.5rem 2rem; }
  .az-nav { width: 100%; }
  .az-nav > .nav-item { border-bottom: 1px solid var(--az-linea); }
  .az-nav .nav-link { font-size: 1.25rem; font-weight: 400; padding: .9rem 0; border-radius: 0; display: flex; justify-content: space-between; align-items: center; }
  .az-nav .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 .9rem; background: transparent; min-width: 0; }
  .az-nav .dropdown-item { padding: .45rem .75rem; font-size: 1rem; }
  .az-nav .dropdown-item:hover { background: var(--az-salvia); }
  .az-header__cta { width: 100%; }
}

/* 7. Secciones y patrones comunes ------------------------------------------- */
.az-section { padding-block: var(--az-section); position: relative; }
.az-section--tight { padding-block: calc(var(--az-section) * .6); }
.az-section--salvia { background: var(--az-salvia); }
.az-section--miel { background: var(--az-miel); }
.az-section--blanco { background: var(--az-blanco); }
[id] { scroll-margin-top: calc(var(--az-header-h) + 1rem); }

.az-section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.az-section-head p { margin-bottom: 0; }

.az-rule { border: 0; border-top: 1px solid var(--az-linea); opacity: 1; margin: 0; }

/* Marco en arco (arcos de la Mezquita y del logotipo): solo para imágenes */
.az-arch { border-radius: var(--az-arco); overflow: hidden; background: var(--az-salvia-2); }
.az-arch img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Lista de enlaces con filetes */
.az-linklist { list-style: none; padding: 0; margin: 0; }
.az-linklist li { border-top: 1px solid var(--az-linea); }
.az-linklist li:last-child { border-bottom: 1px solid var(--az-linea); }
.az-linklist a, .az-linklist span {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 0;
  font-family: var(--az-sans);
  font-size: var(--az-fs-base);
  color: var(--az-tinta);
  text-decoration: none;
}
.az-linklist a::after {
  content: ""; width: .4rem; height: .4rem; flex: none;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.az-linklist a:hover { color: var(--az-hoja); }
.az-linklist a:hover::after { opacity: .7; transform: translateX(2px) rotate(45deg); }

/* 8. Hero de portada -------------------------------------------------------- */
.az-hero { padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(4rem, 3rem + 5vw, 8rem); overflow: hidden; }
.az-hero h1 { margin-bottom: 1.75rem; }
.az-hero .az-lead { margin-bottom: 2.25rem; }
.az-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.az-hero__call { font-family: var(--az-sans); margin-top: 1.5rem; font-size: var(--az-fs-sm); color: var(--az-tinta-suave); }
.az-hero__call a { font-weight: 500; color: var(--az-tinta); text-decoration: none; border-bottom: 1px solid var(--az-linea); }
.az-hero__call a:hover { color: var(--az-hoja); border-color: currentColor; }

.az-hero-art { position: relative; width: 100%; max-width: 30rem; margin-inline: auto; aspect-ratio: 4 / 5; }
.az-hero-art__arch { position: absolute; inset: 0; border-radius: var(--az-arco); background: var(--az-salvia); }
.az-hero-art__line { position: absolute; inset: -1rem -1rem auto; height: calc(100% + 1rem); border-radius: var(--az-arco); border: 1px solid var(--az-salvia-2); }
.az-hero-art svg { position: absolute; left: 50%; top: 52%; width: 78%; height: auto; transform: translate(-50%, -50%); overflow: visible; }
.az-hero-art .a-red { fill: var(--az-suave-rojo); }
.az-hero-art .a-yellow { fill: var(--az-suave-amarillo); }
.az-hero-art .a-green { fill: var(--az-suave-verde); }
.az-hero-art .a-eye { fill: var(--az-hoja); }
@media (max-width: 991.98px) {
  .az-hero-art { max-width: 16rem; margin-top: 3.5rem; }
}

/* 9. Bloques de portada ----------------------------------------------------- */
/* La clínica */
.az-about__body p:last-child { margin-bottom: 1.75rem; }

/* Tratamientos */
.az-treat { position: relative; padding-top: 1.75rem; height: 100%; display: flex; flex-direction: column; }
.az-treat::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--az-hoja); transform-origin: left; }
.az-treat h3 { margin-bottom: 1.25rem; }
@media (min-width: 768px) { .az-treat h3 { min-height: 2.5em; } }
.az-treat .az-linklist { flex: 1; margin-bottom: 1.25rem; }
.az-treat .az-linklist li:first-child { border-top: 0; }
.az-treat .az-linklist li:last-child { border-bottom: 0; }
.az-treat__more { margin-top: auto; }
.az-treat-note { max-width: 46rem; margin-bottom: 0; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); font-family: var(--az-serif); font-size: var(--az-fs-prose); }

/* Por qué Alzahar */
.az-reason { position: relative; padding-top: 1.5rem; height: 100%; }
.az-reason::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--az-salvia-2); transform-origin: left; }
.az-reason h3 { font-size: 1.3125rem; }
.az-reason p { font-size: var(--az-fs-base); color: var(--az-tinta-suave); margin-bottom: 0; }

/* Primera consulta: secuencia real de 3 pasos */
.az-steps { counter-reset: paso; list-style: none; padding: 0; margin-bottom: 0; }
.az-step { counter-increment: paso; position: relative; padding-top: 1.25rem; height: 100%; }
.az-step::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: color-mix(in srgb, var(--az-hoja) 35%, transparent); transform-origin: left; }
.az-step::before {
  content: counter(paso);
  display: block;
  font-family: var(--az-sans);
  font-weight: 200;
  font-size: clamp(3rem, 2.4rem + 2vw, 4.5rem);
  line-height: 1;
  color: var(--az-hoja);
  margin-bottom: 1.25rem;
}
.az-step p { font-size: var(--az-fs-base); margin-bottom: 0; color: var(--az-tinta-suave); }

/* Equipo */
.az-team { list-style: none; padding: 0; margin: 0; }
.az-team li {
  display: flex; align-items: baseline; gap: .75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--az-linea);
  font-family: var(--az-sans);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.az-team li:last-child { border-bottom: 1px solid var(--az-linea); }
.az-team abbr { text-decoration: none; font-size: .5em; font-weight: 500; letter-spacing: .02em; color: var(--az-hoja); min-width: 2.4em; }

/* Opiniones */
.az-quote { margin: 0; }
.az-quote blockquote { margin: 0 0 1rem; font-family: var(--az-serif); font-style: italic; font-weight: 350; color: var(--az-tinta); }
.az-quote blockquote p { font: inherit; color: inherit; margin: 0; max-width: none; }
.az-quote figcaption { font-family: var(--az-sans); font-size: var(--az-fs-sm); color: var(--az-tinta-suave); }
.az-quote figcaption strong { color: var(--az-tinta); font-weight: 500; display: block; }
.az-quote--featured blockquote { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1.25; text-wrap: balance; }
.az-quote--featured blockquote::before { content: "“"; display: block; font-style: normal; font-size: 2.4em; line-height: .6; height: .45em; color: var(--az-suave-rojo); margin-bottom: .25rem; }
.az-quote--small { padding-top: 1.25rem; border-top: 1px solid var(--az-linea); height: 100%; }
.az-quote--small blockquote { font-size: 1.3125rem; line-height: 1.4; }

/* 10. Componentes para páginas interiores ----------------------------------- */
.az-breadcrumb { --bs-breadcrumb-divider: "/"; --bs-breadcrumb-item-active-color: var(--az-tinta-suave); --bs-breadcrumb-divider-color: var(--az-linea); font-size: var(--az-fs-sm); margin-bottom: 1.5rem; }
.az-breadcrumb a { color: var(--az-tinta-suave); text-decoration: none; }
.az-breadcrumb a:hover { color: var(--az-hoja); }

.az-page-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.az-page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); margin-bottom: 1.5rem; }
.az-page-hero__media { aspect-ratio: 4 / 5; max-width: 26rem; margin-inline: auto; }

.az-prose h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin-top: 3rem; }
.az-prose h3 { margin-top: 2rem; }
.az-prose ul { padding-left: 1.1rem; font-family: var(--az-serif); font-size: var(--az-fs-prose); line-height: 1.7; }
.az-prose li::marker { color: var(--az-hoja); }

/* Datos clave de un tratamiento (duración, anestesia, recuperación…) */
.az-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--az-linea); }
.az-facts div { padding: 1.1rem 1.25rem 1.1rem 0; border-bottom: 1px solid var(--az-linea); }
.az-facts dt { font-family: var(--az-sans); font-size: var(--az-fs-sm); font-weight: 400; color: var(--az-tinta-suave); margin-bottom: .2rem; }
.az-facts dd { font-family: var(--az-sans); font-size: 1.25rem; font-weight: 400; margin: 0; }

/* Preguntas frecuentes (acordeón de Bootstrap) */
.az-faq { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--az-linea); --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; --bs-accordion-btn-padding-x: 0; --bs-accordion-body-padding-x: 0; --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--az-hoja); --bs-accordion-btn-color: var(--az-tinta); }
.az-faq .accordion-item { border-left: 0; border-right: 0; }
.az-faq .accordion-button { font-family: var(--az-sans); font-size: 1.1875rem; font-weight: 450; padding-block: 1.25rem; }
.az-faq .accordion-button:focus-visible { outline: 2px solid var(--az-hoja); outline-offset: 2px; }
.az-faq .accordion-body p { font-size: var(--az-fs-base); }

/* 11. Cita: formulario + contacto ------------------------------------------- */
.az-cita__panel { background: var(--az-blanco); border-radius: var(--az-radius); padding: clamp(.5rem, .25rem + 1vw, 1rem); box-shadow: var(--az-sombra); }
.az-cita__panel iframe { display: block; width: 100%; border: 0; border-radius: calc(var(--az-radius) - .5rem); background: var(--az-blanco); }
.az-cita__fallback { font-size: var(--az-fs-sm); color: var(--az-tinta-suave); margin: .75rem .5rem .25rem; }

.az-contact { list-style: none; padding: 0; margin: 2rem 0; }
.az-contact li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .25rem .9rem; padding: 1rem 0; border-top: 1px solid var(--az-salvia-2); font-family: var(--az-sans); }
.az-contact li:last-child { border-bottom: 1px solid var(--az-salvia-2); }
.az-contact .az-icon { color: var(--az-hoja); margin-top: .2rem; }
.az-contact span { display: block; font-size: var(--az-fs-xs); color: var(--az-tinta-suave); }
.az-contact a, .az-contact address { color: var(--az-tinta); font-size: 1.0625rem; margin: 0; text-decoration: none; font-style: normal; }
.az-contact a:hover { color: var(--az-hoja); }

.az-map { border-radius: var(--az-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--az-salvia-2); }
.az-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95) brightness(1.04); transition: filter .4s ease; }
.az-map:hover iframe, .az-map:focus-within iframe { filter: none; }

/* 12. Footer ---------------------------------------------------------------- */
.az-footer { background: var(--az-hoja-oscuro); color: rgba(250, 250, 247, .76); font-size: var(--az-fs-sm); }
.az-footer a { color: var(--az-porcelana); text-decoration: none; }
.az-footer a:hover { color: var(--az-miel); text-decoration: underline; }
.az-footer h2, .az-footer h3 { color: var(--az-porcelana); }
.az-footer :focus-visible { outline-color: var(--az-miel) !important; }
.az-footer__title { font-family: var(--az-sans); font-size: var(--az-fs-sm); font-weight: 500; color: var(--az-porcelana); margin-bottom: 1rem; letter-spacing: .01em; }
.az-footer__main { padding-block: clamp(3.5rem, 3rem + 3vw, 6rem) 3rem; }
.az-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.az-footer__about { max-width: 26rem; line-height: 1.65; }
.az-footer .az-brand { margin-bottom: 1.5rem; }
.az-footer .az-brand__word small { color: rgba(250, 250, 247, .7); }
.az-footer .az-brand__word span { color: var(--az-porcelana); }
.az-footer__social { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.az-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 1.5rem; font-size: var(--az-fs-xs); }
.az-footer__bottom .container { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; }
.az-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.az-footer__bottom p { margin: 0; }

/* Zona exclusiva de portada: tarjetas + guía de servicios */
.az-footer__home { padding-block: clamp(3.5rem, 3rem + 3vw, 6rem); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.az-areas { list-style: none; padding: 0; margin-bottom: clamp(3.5rem, 3rem + 3vw, 6rem); }
.az-area { display: block; text-decoration: none !important; }
.az-area__img { width: 100%; max-width: 8.5rem; aspect-ratio: 3 / 4; margin-bottom: .9rem; background: rgba(255, 255, 255, .08); } /* fotos originales pequeñas: se muestran pequeñas para que no se vean borrosas */
.az-area__img img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.az-area:hover .az-area__img img { transform: scale(1.04); }
.az-area__label { font-family: var(--az-sans); font-size: 1.0625rem; color: var(--az-porcelana); }
.az-area:hover .az-area__label { color: var(--az-miel); }

.az-guide h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 300; margin-bottom: 1rem; }
.az-guide h2 a { color: var(--az-miel); }
.az-guide__intro { max-width: 48rem; font-family: var(--az-serif); font-size: 1.0625rem; line-height: 1.7; color: rgba(250, 250, 247, .82); margin-bottom: 2.5rem; }
.az-guide__intro a { color: var(--az-porcelana); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }
.az-guide__list { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: 2.5rem; }
.az-guide__list li { break-inside: avoid; padding: .6rem 0; border-top: 1px solid rgba(255, 255, 255, .1); line-height: 1.45; }
.az-guide__list a { font-weight: 500; }
@media (min-width: 768px) { .az-guide__list { columns: 2; } }
@media (min-width: 1200px) { .az-guide__list { columns: 3; } }

/* 13. Aviso de cookies ------------------------------------------------------ */
.az-cookies {
  position: fixed; z-index: 1080;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 27rem;
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 1rem 1rem 1.25rem;
  background: var(--az-blanco);
  border: 1px solid var(--az-linea);
  border-radius: var(--az-radius);
  box-shadow: var(--az-sombra);
  font-size: var(--az-fs-sm);
  line-height: 1.45;
}
.az-cookies[hidden] { display: none; }
.az-cookies p { margin: 0; font-family: var(--az-sans); font-size: inherit; }

/* 14. Movimiento y accesibilidad -------------------------------------------- */
:focus-visible { outline: 2px solid var(--az-hoja); outline-offset: 3px; }
.btn-close:focus { box-shadow: none; }
.az-skip { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--az-hoja); color: #fff; padding: .6rem 1rem; border-radius: var(--az-radius-sm); }
.az-skip:focus { top: 1rem; color: #fff; }

/* Único momento animado: el logotipo del hero se compone al cargar */
@media (prefers-reduced-motion: no-preference) {
  .az-hero-art svg > * { transform-box: fill-box; transform-origin: center; animation: az-in .9s cubic-bezier(.2, .7, .2, 1) both; }
  .az-hero-art .a-green { animation-name: az-rise; animation-delay: .05s; }
  .az-hero-art .a-red { animation-name: az-swing; animation-delay: .2s; transform-origin: 20% 80%; }
  .az-hero-art .a-yellow { animation-name: az-bloom; animation-delay: .35s; }
  .az-hero-art .a-eye { animation-name: az-bloom; animation-delay: .65s; animation-duration: .5s; }
  .az-hero-art__arch, .az-hero-art__line { animation: az-in 1s ease both; }
}
@keyframes az-in { from { opacity: 0; } }
@keyframes az-rise { from { opacity: 0; transform: translateY(14%); } }
@keyframes az-swing { from { opacity: 0; transform: rotate(-18deg); } }
@keyframes az-bloom { from { opacity: 0; transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   CAPA 2 · Movimiento y detalles
   Un único lenguaje: los elementos se elevan, los títulos emergen de una
   máscara, las fotos se abren en arco y los filetes se dibujan. Todo una
   sola vez, al entrar en pantalla. Sin JavaScript, o con «reducir
   movimiento» activado en el sistema, todo se muestra estático.
   ========================================================================== */
:root {
  --az-ease-out: cubic-bezier(.16, 1, .3, 1);
  --az-dur: .95s;
  --az-stagger: 90ms;
}

/* 15. Revelado al hacer scroll --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .az-js [data-reveal] {
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity var(--az-dur) var(--az-ease-out), transform var(--az-dur) var(--az-ease-out);
    transition-delay: calc(var(--i, 0) * var(--az-stagger) + var(--az-delay, 0ms));
  }
  .az-js [data-reveal].is-in { opacity: 1; transform: none; }
  .az-hero__text [data-reveal]:not(.az-kicker) { --az-delay: 300ms; } /* tras el titular */

  /* Títulos: emergen de una máscara */
  .az-js [data-reveal="mask"] {
    opacity: 1;
    transform: translateY(.4em);
    clip-path: inset(-.25em -.25em 100% -.25em);
    transition: clip-path 1.15s var(--az-ease-out), transform 1.15s var(--az-ease-out);
  }
  .az-js [data-reveal="mask"].is-in { clip-path: inset(-.25em -.25em -.3em -.25em); transform: none; }

  /* Fotos: el arco se abre de abajo arriba y la imagen se asienta */
  .az-js [data-reveal="arch"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.25s var(--az-ease-out); transition-delay: calc(var(--i, 0) * var(--az-stagger)); }
  .az-js [data-reveal="arch"] img { transform: scale(1.18); transition: transform 1.8s var(--az-ease-out); transition-delay: inherit; }
  .az-js [data-reveal="arch"].is-in { clip-path: inset(0 0 0 0); }
  .az-js [data-reveal="arch"].is-in img { transform: none; }
  .az-js .az-area:hover [data-reveal="arch"].is-in img { transform: scale(1.05); transition-delay: 0s; }

  /* Palabra grande del footer */
  .az-js [data-reveal="rise"] { transform: translateY(45%); transition-duration: 1.6s; }

  /* Filetes que se dibujan */
  .az-js .az-treat:not(.is-in)::before,
  .az-js .az-reason:not(.is-in)::before,
  .az-js .az-step:not(.is-in)::after { transform: scaleX(0); }
  .az-treat::before, .az-reason::before, .az-step::after {
    transition: transform 1.3s var(--az-ease-out);
    transition-delay: calc(var(--i, 0) * var(--az-stagger) + 120ms);
  }

  /* Listas de tratamientos: cada elemento entra tras su columna */
  .az-js .az-treat .az-linklist li { opacity: 0; transform: translateY(.6rem); transition: opacity .6s var(--az-ease-out), transform .6s var(--az-ease-out); transition-delay: calc(var(--i, 0) * var(--az-stagger) + 260ms + var(--li, 0) * 45ms); }
  .az-js .az-treat.is-in .az-linklist li { opacity: 1; transform: none; }
}

/* 16. Hero: titular por líneas, mirada que sigue al cursor ------------------ */
.az-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.az-line > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .az-js .az-line > span { transform: translateY(112%); animation: az-line-in 1.2s var(--az-ease-out) forwards; }
  .az-js .az-line:nth-child(1) > span { animation-delay: .12s; }
  .az-js .az-line:nth-child(2) > span { animation-delay: .24s; }
  .az-js .az-line:nth-child(3) > span { animation-delay: .36s; }
}
@keyframes az-line-in { to { transform: none; } }

@media (min-width: 992px) {
  .az-hero { position: relative; display: flex; align-items: center; min-height: calc(100svh - var(--az-header-h) - 2.5rem); padding-block: 3rem 5.5rem; }
  .az-hero > .container { width: 100%; }
}

/* Parallax del logotipo: las formas se mueven juntas y el ojo sigue al cursor (la mirada) */
.az-hero-art svg { translate: 0 calc(var(--sy, 0) * 3rem); }
.az-hero-art .a-red, .az-hero-art .a-yellow, .az-hero-art .a-green { translate: calc(var(--px, 0) * -2px) calc(var(--py, 0) * -2px); }
.az-hero-art .a-eye { translate: calc(var(--px, 0) * 7px) calc(var(--py, 0) * 6px); }
.az-hero-art__arch { translate: 0 calc(var(--sy, 0) * 1.25rem); }

/* Indicador de scroll */
.az-hero__scroll { display: none; }
@media (min-width: 992px) {
  .az-hero__scroll { display: flex; justify-content: center; position: absolute; left: 50%; bottom: 1.25rem; width: 2.5rem; height: 4rem; margin-left: -1.25rem; }
  .az-hero__scroll > span[aria-hidden] { position: relative; width: 1px; height: 100%; background: var(--az-linea); overflow: hidden; }
  .az-hero__scroll > span[aria-hidden]::after { content: ""; position: absolute; inset: 0; background: var(--az-hoja); transform: scaleY(0); transform-origin: top; animation: az-scrollcue 2.6s var(--az-ease-out) 1.6s infinite; }
}
@keyframes az-scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 17. Banda de tratamientos en movimiento ---------------------------------- */
.az-marquee { overflow: hidden; border-block: 1px solid var(--az-linea); background: var(--az-porcelana); padding-block: clamp(1.1rem, .8rem + 1.2vw, 2rem); }
.az-marquee__track { display: flex; width: max-content; animation: az-marquee 70s linear infinite; }
.az-marquee:hover .az-marquee__track { animation-play-state: paused; }
.az-marquee__group { display: flex; align-items: center; flex: none; }
.az-marquee__item {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--az-sans); font-weight: 300;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.75rem);
  letter-spacing: -.025em; line-height: 1.1; color: var(--az-tinta);
}
.az-marquee__img {
  display: inline-block; flex: none;
  width: 1.1em; height: 1.36em; margin-inline: .65em;
  border-radius: 999px 999px .22em .22em; overflow: hidden;
  background: var(--az-salvia-2);
}
.az-marquee__img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); }
@keyframes az-marquee { to { transform: translateX(-50%); } }

/* 18. Cifras de la clínica ---------------------------------------------------- */
.az-figures { margin: clamp(3.5rem, 3rem + 3vw, 6rem) 0 0; border-top: 1px solid var(--az-linea); }
.az-figures > div { padding: 2rem 1.5rem 0 0; }
.az-figures dt {
  display: flex; align-items: baseline; gap: .12em;
  font-family: var(--az-sans); font-weight: 200;
  font-size: clamp(3.75rem, 2.6rem + 4.4vw, 6.5rem);
  line-height: 1; letter-spacing: -.045em;
  color: var(--az-hoja); font-variant-numeric: tabular-nums;
}
.az-figures dt small { font-size: .34em; font-weight: 400; letter-spacing: 0; color: var(--az-tinta-suave); }
.az-figures dd { margin: .9rem 0 0; font-family: var(--az-serif); font-size: var(--az-fs-base); line-height: 1.55; color: var(--az-tinta-suave); max-width: 17rem; }
@media (min-width: 768px) {
  .az-figures > div + div { border-left: 1px solid var(--az-linea); padding-left: 2rem; }
}
@media (max-width: 767.98px) {
  .az-figures > div + div { margin-top: 2rem; border-top: 1px solid var(--az-linea); }
}

/* 19. Opiniones en carrusel ---------------------------------------------------- */
.az-slider__track { display: grid; gap: 3rem; }
.az-slide { margin: 0; }
.az-slide blockquote { margin: 0 0 2rem; }
.az-slide blockquote p {
  margin: 0; max-width: 21ch;
  font-family: var(--az-serif); font-style: italic; font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 4.25rem);
  line-height: 1.1; letter-spacing: -.012em; color: var(--az-tinta);
  text-wrap: balance;
}
.az-slide blockquote p::before { content: "“"; display: block; height: .42em; line-height: .9; font-size: 1.5em; font-style: normal; color: var(--az-suave-rojo); }
.az-slide figcaption { font-family: var(--az-sans); font-size: var(--az-fs-sm); color: var(--az-tinta-suave); }
.az-slide figcaption strong { display: block; font-size: 1.0625rem; font-weight: 500; color: var(--az-tinta); margin-bottom: .1rem; }
.az-slider__nav { display: none; }

.az-js .az-slider__track { grid-template: 1fr / 1fr; }
.az-js .az-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(1.25rem); transition: opacity .7s var(--az-ease-out), transform 1s var(--az-ease-out), visibility 0s linear .7s; }
.az-js .az-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
.az-js .az-slider__nav { display: flex; align-items: center; gap: .6rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.az-slider__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 1px solid var(--az-linea); background: var(--az-blanco); color: var(--az-tinta);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.az-slider__btn:hover { background: var(--az-hoja); border-color: var(--az-hoja); color: var(--az-blanco); }
.az-slider__btn .az-icon { width: 1.25rem; height: 1.25rem; }
.az-slider__count { margin-left: 1rem; min-width: 4.5rem; font-family: var(--az-sans); font-size: var(--az-fs-sm); color: var(--az-tinta-suave); font-variant-numeric: tabular-nums; }
.az-slider__bar { position: relative; flex: 1; max-width: 14rem; height: 1px; background: var(--az-linea); overflow: hidden; }
.az-slider__bar > span { position: absolute; inset: 0; background: var(--az-hoja); transform: scaleX(0); transform-origin: left; }
.az-slider.is-playing .az-slider__bar > span { animation: az-progress var(--az-slide-dur, 7s) linear forwards; }
.az-slider.is-paused .az-slider__bar > span { animation-play-state: paused; }
@keyframes az-progress { to { transform: scaleX(1); } }

/* 20. Header: se compacta al hacer scroll; menús con entrada suave ---------- */
.az-header .navbar { transition: min-height .4s var(--az-ease-out); }
.az-brand__mark { transition: width .4s var(--az-ease-out); }
.az-header.is-scrolled .navbar { min-height: 64px; }
.az-header.is-scrolled .az-brand__mark { width: 2.4rem; }
@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 1200px) {
    .az-nav .dropdown-menu.show { animation: az-drop .32s var(--az-ease-out) both; }
  }
  @media (max-width: 1199.98px) {
    .offcanvas-xl.showing .az-nav > .nav-item,
    .offcanvas-xl.show .az-nav > .nav-item { animation: az-rise .6s var(--az-ease-out) both; animation-delay: calc(var(--n, 0) * 45ms + 120ms); }
    .az-nav .dropdown-menu.show .dropdown-item { animation: az-rise .45s var(--az-ease-out) both; }
  }
}
@keyframes az-drop { from { opacity: 0; transform: translateY(10px); } }
@keyframes az-rise { from { opacity: 0; transform: translateY(14px); } }

/* Listas de enlaces: el texto se desplaza levemente al pasar el ratón */
.az-linklist a { transition: color .2s ease, padding-left .45s var(--az-ease-out); }
.az-linklist a:hover { padding-left: .4rem; }

/* 21. Barra de contacto rápido en móvil ------------------------------------ */
.az-mbar {
  position: fixed; z-index: 1040;
  left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .25rem;
  padding: .4rem;
  background: color-mix(in srgb, var(--az-blanco) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--az-linea); border-radius: var(--az-radius-pill);
  box-shadow: var(--az-sombra);
  transform: translateY(160%);
  transition: transform .55s var(--az-ease-out);
}
.az-mbar.is-visible { transform: none; }
.az-mbar__item { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem .8rem; border-radius: var(--az-radius-pill); font-family: var(--az-sans); font-size: var(--az-fs-sm); font-weight: 500; color: var(--az-tinta); text-decoration: none; }
.az-mbar__item .az-icon { color: var(--az-hoja); }
.az-mbar__cta { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--az-radius-pill); background: var(--az-hoja); color: var(--az-blanco); font-family: var(--az-sans); font-size: var(--az-fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.az-mbar__cta:hover { color: var(--az-blanco); background: var(--az-hoja-oscuro); }
@media (max-width: 374.98px) { .az-mbar__item span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 992px) { .az-mbar { display: none; } }
@media (max-width: 991.98px) { .az-mbar.is-visible ~ .az-cookies { bottom: calc(5.25rem + env(safe-area-inset-bottom)); } }

/* 22. Footer: firma a gran tamaño -------------------------------------------- */
.az-footer__word { overflow: hidden; text-align: center; line-height: .8; padding: 1rem var(--az-gutter) 0; user-select: none; }
.az-footer__word span {
  display: inline-block;
  font-family: var(--az-sans); font-weight: 200;
  font-size: clamp(5rem, 1rem + 21vw, 21rem);
  letter-spacing: -.055em; line-height: .8;
  color: rgba(250, 250, 247, .07);
  margin-bottom: -.06em;
}


/* ==========================================================================
   CAPA 3 · Fotografía
   ========================================================================== */

/* 23. Tratamiento común para unificar las fotos actuales -------------------- */
.az-photo { position: relative; }
.az-photo img { filter: saturate(.88) contrast(1.02); }
.az-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(180deg, transparent 55%, rgba(21, 63, 44, .12)); }

/* 24. Explorador de tratamientos (pestañas) ---------------------------------- */
.az-explorer__tabs { display: none; }
.az-js .az-explorer__tabs { display: flex; flex-direction: column; }
.az-explorer__tab {
  position: relative;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  width: 100%; padding: .9rem 0;
  background: none; border: 0; border-bottom: 1px solid var(--az-salvia-2);
  text-align: left;
  font-family: var(--az-sans); font-weight: 300;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); letter-spacing: -.01em;
  color: var(--az-tinta-suave);
  transition: color .25s ease, padding-left .5s var(--az-ease-out), background-color .25s ease;
}
.az-explorer__tab small { font-size: var(--az-fs-xs); font-weight: 500; letter-spacing: 0; color: var(--az-tinta-suave); font-variant-numeric: tabular-nums; }
.az-explorer__tab:hover { color: var(--az-tinta); }
.az-explorer__tab::before { content: ""; position: absolute; left: 0; top: 50%; width: .45rem; height: .45rem; margin-top: -.22rem; border-radius: 50%; background: var(--az-hoja); transform: scale(0); transition: transform .4s var(--az-ease-out); }
.az-explorer__tab.is-active { color: var(--az-hoja); padding-left: 1.15rem; }
.az-explorer__tab.is-active::before { transform: scale(1); }
.az-explorer__tab.is-active small { color: var(--az-hoja); }
.az-explorer__tab:focus-visible { outline-offset: -2px; }

.az-explorer__panel + .az-explorer__panel { margin-top: 4rem; } /* sin JS: todas las áreas, una tras otra */
.az-js .az-explorer__panel { margin-top: 0; }
.az-js .az-explorer__panel:not(.is-active) { display: none; }
.az-explorer__panel:focus-visible { outline-offset: 10px; border-radius: .5rem; }
.az-explorer__panel h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 300; letter-spacing: -.015em; margin-bottom: 1.25rem; }
.az-explorer__panel .az-linklist { margin-bottom: 1.5rem; }
.az-explorer__img { aspect-ratio: 4 / 5; max-width: 22rem; margin-inline: auto; }
@media (min-width: 992px) { .az-explorer .col-lg-9 { min-height: 28rem; } }
@media (min-width: 1200px) {
  /* Listas largas a dos columnas para que todas las áreas midan parecido */
  .az-explorer__panel .az-linklist:has(li:nth-child(7)) { columns: 2; column-gap: 2rem; }
  .az-explorer__panel .az-linklist:has(li:nth-child(7)) li { break-inside: avoid; }
}
@media (prefers-reduced-motion: no-preference) {
  .az-js .az-explorer__panel.is-active { animation: az-panel .7s var(--az-ease-out) both; }
  .az-js .az-explorer__panel.is-active .az-explorer__img { animation: az-arch-in 1.1s var(--az-ease-out) both; }
  .az-js .az-explorer__panel.is-active .az-explorer__img img { animation: az-img-in 1.6s var(--az-ease-out) both; }
  .az-js .az-explorer__panel.is-active .az-linklist li { animation: az-rise .55s var(--az-ease-out) both; }
  .az-js .az-explorer__panel.is-active .az-linklist li:nth-child(2) { animation-delay: .04s; }
  .az-js .az-explorer__panel.is-active .az-linklist li:nth-child(3) { animation-delay: .08s; }
  .az-js .az-explorer__panel.is-active .az-linklist li:nth-child(4) { animation-delay: .12s; }
  .az-js .az-explorer__panel.is-active .az-linklist li:nth-child(5) { animation-delay: .16s; }
  .az-js .az-explorer__panel.is-active .az-linklist li:nth-child(6) { animation-delay: .2s; }
  .az-js .az-explorer__panel.is-active .az-linklist li:nth-child(7) { animation-delay: .24s; }
  .az-js .az-explorer__panel.is-active .az-linklist li:nth-child(8) { animation-delay: .28s; }
  .az-js .az-explorer__panel.is-active .az-linklist li:nth-child(9) { animation-delay: .32s; }
}
@keyframes az-panel { from { opacity: 0; transform: translateY(12px); } }
@keyframes az-arch-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes az-img-in { from { transform: scale(1.15); } }
@media (max-width: 991.98px) {
  .az-js .az-explorer__tabs {
    flex-direction: row; gap: .5rem; overflow-x: auto;
    margin-inline: calc(var(--az-gutter) * -1); padding: .25rem var(--az-gutter) .5rem;
    scrollbar-width: none; scroll-snap-type: x proximity;
  }
  .az-js .az-explorer__tabs::-webkit-scrollbar { display: none; }
  .az-explorer__tab {
    flex: none; width: auto; gap: .45rem; padding: .55rem 1.05rem;
    border: 1px solid var(--az-salvia-2); border-radius: var(--az-radius-pill);
    background: var(--az-blanco); font-size: 1rem; font-weight: 450;
    scroll-snap-align: start;
  }
  .az-explorer__tab::before { display: none; }
  .az-explorer__tab.is-active { padding-left: 1.05rem; background: var(--az-hoja); border-color: var(--az-hoja); color: var(--az-blanco); }
  .az-explorer__tab.is-active small { color: rgba(255, 255, 255, .8); }
}
@media (max-width: 767.98px) { .az-explorer__img { aspect-ratio: 5 / 4; max-width: none; } }

/* 25. Por qué: iconos de línea ------------------------------------------------ */
.az-reason__icon { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.1rem; border-radius: 50%; background: var(--az-salvia); color: var(--az-hoja); }
.az-reason__icon .az-icon { width: 1.45rem; height: 1.45rem; stroke-width: 1.4; }

/* 26. Primera consulta: pasos en vertical + composición de dos fotos -------- */
.az-steps--list { display: grid; margin: 2.25rem 0 0; }
.az-steps--list .az-step { display: grid; grid-template-columns: 4.25rem 1fr; column-gap: 1rem; padding: 1.35rem 0; height: auto; }
.az-steps--list .az-step::before { grid-row: 1 / span 2; margin: 0; font-size: clamp(2.5rem, 2rem + 1.5vw, 3.25rem); line-height: .95; }
.az-steps--list .az-step h3 { margin-bottom: .35rem; }
.az-consulta__media { position: relative; max-width: 28rem; margin-inline: auto; padding-bottom: 3rem; }
.az-consulta__img { aspect-ratio: 4 / 5; width: 78%; }
.az-consulta__img--small { position: absolute; right: 0; bottom: 0; width: 46%; border: .5rem solid var(--az-miel); }
@media (max-width: 991.98px) { .az-consulta__media { max-width: 22rem; } }

/* 27. Equipo: hueco reservado para la foto de los cirujanos ------------------ */
.az-team-photo { margin: 0 auto; max-width: 30rem; }
@media (max-width: 991.98px) { .az-team-photo { max-width: 19rem; } }
.az-team-photo.az-arch { aspect-ratio: 4 / 5; }
.az-team-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.az-team-photo__arch {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--az-arco);
  background: var(--az-salvia);
}
.az-team-photo__arch svg { width: 40%; height: auto; }
.az-team-photo__arch .a-red { fill: var(--az-suave-rojo); }
.az-team-photo__arch .a-yellow { fill: var(--az-suave-amarillo); }
.az-team-photo__arch .a-green { fill: var(--az-suave-verde); }
.az-team-photo__arch .a-eye { fill: var(--az-hoja); }
.az-team-photo figcaption { margin-top: .9rem; text-align: center; font-family: var(--az-sans); font-size: var(--az-fs-sm); color: var(--az-tinta-suave); }
.az-team { margin-top: 2rem; }

/* ==========================================================================
   CAPA 4 · Privacidad y herramientas de mantenimiento
   ========================================================================== */

/* 28. Mapa con carga bajo demanda (no se contacta con Google hasta pulsar) -- */
.az-map { position: relative; display: grid; place-items: center; }
.az-map__load {
  display: inline-flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 1.25rem 1.75rem; border: 1px solid var(--az-salvia-2); border-radius: var(--az-radius);
  background: var(--az-blanco); color: var(--az-tinta);
  font-family: var(--az-sans); font-size: 1.0625rem; font-weight: 500;
  transition: border-color .25s ease, color .25s ease;
}
.az-map__load:hover { border-color: var(--az-hoja); color: var(--az-hoja); }
.az-map__load .az-icon { width: 1.5rem; height: 1.5rem; color: var(--az-hoja); }
.az-map__load small { font-size: var(--az-fs-xs); font-weight: 400; color: var(--az-tinta-suave); }
.az-map__link { position: absolute; bottom: .9rem; font-family: var(--az-sans); font-size: var(--az-fs-xs); color: var(--az-tinta-suave); }
.az-map iframe { position: absolute; inset: 0; }

/* 29. Visor de zonas: añade ?zonas a la URL para ver el código de cada bloque */
.az-zonas [data-zona] { outline: 2px dashed rgba(200, 80, 63, .8) !important; outline-offset: -2px; }
.az-zonas [data-zona]:not(.az-header):not(.az-mbar):not(.az-cookies) { position: relative; }
.az-zonas [data-zona]::after {
  content: attr(data-zona) "  ·  " attr(data-zona-nombre);
  position: absolute; inset: 0 auto auto 0; z-index: 2000;
  width: auto; height: auto; opacity: 1; mix-blend-mode: normal; transform: none;
  padding: .3rem .6rem; border-radius: 0 0 .45rem 0;
  background: #C8503F; color: #fff;
  font: 600 12px/1.25 var(--az-sans); letter-spacing: .01em;
  pointer-events: none; white-space: nowrap;
}
.az-zonas .az-marquee__track { animation-play-state: paused; }

/* ==========================================================================
   CAPA 5 · Premium: fotos a todo el ancho, cristal, sello y textura
   ========================================================================== */
:root {
  --az-oro: #C9A962; /* champán, derivado del amarillo del logo: solo detalles sobre fondo oscuro */
  --az-arch-h: clamp(3rem, 1.5rem + 6vw, 8rem);
  --az-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* 30. Bloque con foto de fondo a todo el ancho -------------------------------
   La foto se pasa a duotono verde (gris + multiplicar) con un leve desenfoque:
   así cualquier foto, aunque sea pequeña, se ve homogénea y elegante.        */
.az-bleed { position: relative; isolation: isolate; overflow: hidden; background: var(--az-hoja-oscuro); color: var(--az-porcelana); padding-block: clamp(6rem, 3.5rem + 10vw, 12.5rem); }
.az-bleed > .container { position: relative; z-index: 2; }
.az-bleed__media { position: absolute; inset: -12% 0; z-index: 0; translate: 0 calc(var(--p, 0) * 7%); }
.az-bleed__media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(1.05) blur(1px); transform: scale(1.08); }
.az-bleed__media::after { content: ""; position: absolute; inset: 0; background: #2C6A4C; mix-blend-mode: multiply; }
.az-bleed::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(12, 34, 24, .94) 0%, rgba(12, 34, 24, .74) 45%, rgba(12, 34, 24, .3) 100%); }
.az-bleed::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: var(--az-grano); background-size: 180px; opacity: .28; mix-blend-mode: overlay; }
@media (max-width: 991.98px) {
  .az-bleed::before { background: linear-gradient(180deg, rgba(12, 34, 24, .9) 0%, rgba(12, 34, 24, .78) 100%); }
}
@media (prefers-reduced-motion: no-preference) {
  .az-bleed__media img { animation: az-kenburns 30s ease-in-out infinite alternate; }
}
@keyframes az-kenburns { from { transform: scale(1.06); } to { transform: scale(1.2) translateX(-2%); } }

/* Borde superior en arco (los arcos de la Mezquita, el arco del logotipo) */
.az-section--pre-arch { padding-bottom: calc(var(--az-section) + var(--az-arch-h)); }
.az-bleed--arch { z-index: 1; margin-top: calc(var(--az-arch-h) * -1); border-radius: 50% 50% 0 0 / var(--az-arch-h) var(--az-arch-h) 0 0; }

.az-bleed h2, .az-bleed h3 { color: var(--az-porcelana); }
.az-kicker--light { color: var(--az-oro); }
.az-statement {
  max-width: 15ch; margin-bottom: 1.75rem;
  font-family: var(--az-serif); font-style: italic; font-weight: 300;
  font-size: clamp(2.5rem, 1.4rem + 3.8vw, 5.25rem);
  line-height: 1.04; letter-spacing: -.015em;
}
main p.az-bleed__text { max-width: 34rem; color: rgba(250, 250, 247, .8); margin-bottom: 0; }
.az-bleed .az-link { color: var(--az-miel); background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(250, 250, 247, .3), rgba(250, 250, 247, .3)); }
.az-bleed .az-link:hover { color: var(--az-porcelana); }
.az-bleed :focus-visible { outline-color: var(--az-miel); }

/* 31. Tarjeta de cristal sobre foto ---------------------------------------- */
.az-glass {
  padding: clamp(1.75rem, 1.3rem + 1.4vw, 2.6rem);
  border-radius: var(--az-radius);
  background: rgba(250, 250, 247, .08);
  border: 1px solid rgba(250, 250, 247, .2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
main .az-glass__kicker { margin-bottom: .75rem; font-family: var(--az-sans); font-size: var(--az-fs-sm); font-weight: 500; color: var(--az-oro); }
main .az-glass__text { margin-bottom: 1.5rem; font-size: var(--az-fs-base); line-height: 1.6; color: rgba(250, 250, 247, .82); }
.az-glass__phone { display: block; margin-bottom: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(201, 169, 98, .4); font-family: var(--az-sans); font-weight: 200; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); letter-spacing: -.02em; line-height: 1; color: var(--az-porcelana); text-decoration: none; font-variant-numeric: tabular-nums; }
.az-glass__phone:hover { color: var(--az-miel); }
.az-glass .az-btn { width: 100%; }

/* 32. Opiniones sobre foto -------------------------------------------------- */
.az-bleed--quotes::before { background: linear-gradient(90deg, rgba(12, 34, 24, .93) 0%, rgba(12, 34, 24, .82) 55%, rgba(12, 34, 24, .55) 100%); }
.az-bleed .az-slide blockquote p { color: var(--az-porcelana); }
.az-bleed .az-slide blockquote p::before { color: var(--az-oro); }
.az-bleed .az-slide figcaption { color: rgba(250, 250, 247, .7); }
.az-bleed .az-slide figcaption strong { color: var(--az-porcelana); }
.az-bleed .az-slider__btn { background: transparent; border-color: rgba(250, 250, 247, .35); color: var(--az-porcelana); }
.az-bleed .az-slider__btn:hover { background: var(--az-porcelana); border-color: var(--az-porcelana); color: var(--az-hoja-oscuro); }
.az-bleed .az-slider__count { color: rgba(250, 250, 247, .7); }
.az-bleed .az-slider__bar { background: rgba(250, 250, 247, .22); }
.az-bleed .az-slider__bar > span { background: var(--az-oro); }

/* 33. Sello circular giratorio (hero) --------------------------------------- */
.az-hero__visual { position: relative; --art-w: min(30rem, 100%); }
.az-seal {
  position: absolute; z-index: 2;
  left: max(-.5rem, calc(50% - var(--art-w) / 2 - 2.25rem)); bottom: 9%;
  display: grid; place-items: center;
  width: 10.5rem; height: 10.5rem; border-radius: 50%;
  background: var(--az-porcelana); color: var(--az-hoja);
  box-shadow: 0 0 0 1px var(--az-linea), 0 24px 48px -26px rgba(21, 63, 44, .5);
  text-decoration: none;
}
.az-seal svg { position: absolute; inset: .4rem; width: calc(100% - .8rem); height: calc(100% - .8rem); overflow: visible; }
.az-seal text { font-family: var(--az-sans); font-size: 16.5px; font-weight: 500; letter-spacing: .04em; fill: currentColor; }
.az-seal__eye { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--az-hoja); transition: transform .5s var(--az-ease-out), background-color .3s ease; }
.az-seal:hover .az-seal__eye { transform: scale(1.7); background: var(--az-coral); }
.az-seal:focus-visible { outline: 2px solid var(--az-hoja); outline-offset: 4px; }
@media (max-width: 991.98px) {
  .az-hero__visual { --art-w: 16rem; }
  .az-seal { width: 7.5rem; height: 7.5rem; bottom: 6%; }
}
@media (prefers-reduced-motion: no-preference) {
  .az-seal svg { animation: az-spin 36s linear infinite; }
  .az-js .az-seal { animation: az-bloom .9s var(--az-ease-out) .9s both; }
}
@keyframes az-spin { to { transform: rotate(1turn); } }

/* 34. Textura de grano sutil (hero y footer) --------------------------------- */
.az-hero { position: relative; }
.az-hero::before, .az-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--az-grano); background-size: 180px; }
.az-hero::before { opacity: .07; mix-blend-mode: multiply; }
.az-footer { position: relative; }
.az-footer::before { opacity: .18; mix-blend-mode: overlay; }
.az-hero > .container, .az-footer > * { position: relative; }

/* 35. Detalles champán en el footer ---------------------------------------------- */
.az-footer__title { color: var(--az-oro); }
.az-guide h2 a { color: var(--az-oro); }
.az-footer__bottom { border-top-color: rgba(201, 169, 98, .22); }

/* 36. Modo edición (?zonas): etiquetas de elementos y panel -------------------- */
.az-zonas [data-ed] { cursor: copy; }
.az-zonas [data-ed]:hover, .az-zonas .is-ed-lit { outline: 2px solid #2C6A4C !important; outline-offset: 1px; }
.az-zonas .is-ed-lit { outline-color: #C8503F !important; }
.az-zonas .az-slider__bar > span, .az-zonas .az-seal svg { animation-play-state: paused !important; }
.az-ed-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3000; pointer-events: none; }
.az-ed-tag {
  position: absolute; pointer-events: auto; cursor: copy;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(30, 42, 36, .9); color: #fff;
  font: 600 10.5px/1.3 var(--az-sans); letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.az-ed-tag:hover { background: #C8503F; z-index: 1; }
.az-ed-tag--foto, .az-ed-tag--foto-fondo, .az-ed-tag--ilustracion { background: rgba(33, 89, 62, .92); }
.az-ed-tag--boton, .az-ed-tag--enlace, .az-ed-tag--pestana { background: rgba(104, 84, 26, .92); }
.az-ed-tag--formulario, .az-ed-tag--mapa, .az-ed-tag--iframe { background: rgba(70, 60, 120, .92); }
.az-ed-panel {
  position: fixed; z-index: 3100; left: 1rem; bottom: 1rem;
  width: min(21rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem; border-radius: 12px;
  background: #1E2A24; color: #FAFAF7;
  font: 400 13px/1.45 var(--az-sans);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}
.az-ed-panel__min {
  position: absolute; top: .55rem; right: .6rem; width: 1.6rem; height: 1.6rem;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: inherit;
  font: 600 15px/1 var(--az-sans); cursor: pointer;
}
.az-ed-panel__min:hover { background: rgba(255, 255, 255, .2); }
.az-ed-panel.is-min { width: auto; padding: .6rem 3rem .6rem 1rem; }
.az-ed-panel.is-min > :not(strong):not(.az-ed-panel__min) { display: none; }
.az-ed-panel.is-min strong { margin: 0; }
.az-ed-panel strong { display: block; font-size: 14px; margin-bottom: .35rem; color: var(--az-oro); }
.az-ed-panel p { margin: 0 0 .6rem; font: inherit; color: rgba(250, 250, 247, .8); }
.az-ed-panel kbd { padding: 0 4px; border-radius: 3px; background: rgba(255, 255, 255, .15); font: inherit; }
.az-ed-panel__code { display: block; margin-bottom: .6rem; padding: .45rem .6rem; border-radius: 6px; background: rgba(255, 255, 255, .08); font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.az-ed-panel__code.is-copied { background: #2C6A4C; }
.az-ed-panel label { display: flex; align-items: center; gap: .45rem; margin-bottom: .5rem; cursor: pointer; }
.az-ed-panel a { color: var(--az-miel); }
.az-zonas .az-cookies, .az-zonas .az-mbar { display: none !important; }

/* ==========================================================================
   CAPA 6 · Páginas interiores (portadas de sección y tratamientos)
   ========================================================================== */

/* 37. Hero de página interior: titular + foto en arco ----------------------- */
.az-phero { position: relative; overflow: hidden; padding-block: clamp(2rem, 1.5rem + 2.5vw, 4rem) clamp(3.5rem, 2.5rem + 4vw, 7rem); }
.az-phero h1 { font-size: clamp(2.6rem, 1.5rem + 3.9vw, 4.75rem); margin-bottom: 1.5rem; }
.az-phero .az-lead { max-width: 36rem; margin-bottom: 2.25rem; }
.az-phero__media { position: relative; width: 100%; max-width: 28rem; margin-inline: auto; aspect-ratio: 4 / 5; }
.az-phero__media::before { /* filete en arco desplazado, como en el hero de portada */
  content: ""; position: absolute; inset: -1.1rem -1.1rem 1.1rem 1.1rem;
  border-radius: var(--az-arco); border: 1px solid var(--az-salvia-2); z-index: -1;
}
.az-phero__media .az-arch { position: absolute; inset: 0; box-shadow: var(--az-sombra); }
.az-phero__chip {
  position: absolute; left: -1.25rem; bottom: 2.25rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem .7rem .9rem; border-radius: var(--az-radius-pill);
  background: rgba(250, 250, 247, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -18px rgba(21, 63, 44, .45);
  font-family: var(--az-sans); font-size: var(--az-fs-sm); font-weight: 500; color: var(--az-tinta); text-decoration: none;
}
.az-phero__chip::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--az-hoja); box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--az-hoja) 18%, transparent); }
a.az-phero__chip:hover { color: var(--az-hoja); }
@media (max-width: 991.98px) {
  .az-phero__media { max-width: 19rem; margin-top: 1rem; }
  .az-phero__chip { left: -.5rem; bottom: 1.5rem; }
}

/* Collage de tres arcos (portadas de sección) */
.az-collage { position: relative; width: 100%; max-width: 32rem; margin-inline: auto; aspect-ratio: 1 / 1.08; }
.az-collage .az-arch { position: absolute; box-shadow: var(--az-sombra); }
.az-collage .az-arch:nth-child(1) { left: 18%; top: 0; width: 56%; height: 78%; z-index: 1; }
.az-collage .az-arch:nth-child(2) { left: 0; bottom: 4%; width: 36%; height: 46%; z-index: 2; border: 6px solid var(--az-porcelana); }
.az-collage .az-arch:nth-child(3) { right: 0; bottom: 0; width: 38%; height: 50%; z-index: 2; border: 6px solid var(--az-porcelana); }
.az-collage::before { content: ""; position: absolute; left: 12%; top: -1rem; width: 68%; height: 82%; border-radius: var(--az-arco); border: 1px solid var(--az-salvia-2); }
@media (prefers-reduced-motion: no-preference) {
  .az-collage .az-arch:nth-child(2), .az-collage .az-arch:nth-child(3) { translate: 0 calc(var(--p, 0) * -18px); }
}
@media (max-width: 991.98px) { .az-collage { max-width: 22rem; margin-top: 1rem; } }

/* 38. De un vistazo: datos clave del tratamiento --------------------------- */
.az-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; margin: 0; }
.az-glance > div { position: relative; padding: 1.5rem 1.5rem 1.5rem 0; }
.az-glance > div::before { content: ""; position: absolute; inset: 0 1.5rem auto 0; height: 1px; background: var(--az-hoja); opacity: .35; }
.az-glance dt { margin-bottom: .5rem; font-family: var(--az-sans); font-size: var(--az-fs-sm); font-weight: 500; color: var(--az-hoja); }
.az-glance dd { margin: 0; font-family: var(--az-sans); font-weight: 300; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em; color: var(--az-tinta); }

/* 39. Artículo: columna lateral fija + texto -------------------------------- */
@media (min-width: 992px) {
  .az-aside { position: sticky; top: calc(var(--az-header-h) + 2.5rem); }
}
.az-aside h2 { margin-bottom: 1.75rem; }
.az-aside__card {
  margin-top: 2rem; padding: 1.5rem; border-radius: var(--az-radius);
  background: var(--az-salvia); font-family: var(--az-sans);
}
main .az-aside__card p { margin-bottom: .9rem; font-family: var(--az-sans); font-size: var(--az-fs-sm); color: var(--az-tinta-suave); }
.az-aside__phone { display: block; margin-bottom: 1rem; font-weight: 200; font-size: 2rem; line-height: 1; letter-spacing: -.02em; color: var(--az-tinta); text-decoration: none; font-variant-numeric: tabular-nums; }
.az-aside__phone:hover { color: var(--az-hoja); }
.az-article p:last-child { margin-bottom: 0; }

/* 40. Tipos o variantes de un tratamiento ----------------------------------- */
.az-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin: 2.5rem 0; padding: 0; list-style: none; counter-reset: tipo; }
.az-types li {
  counter-increment: tipo; position: relative; padding: 1.5rem 1.4rem 1.6rem; border-radius: var(--az-radius);
  background: var(--az-blanco); border: 1px solid var(--az-linea);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, border-color .4s ease;
}
.az-types li::before { content: counter(tipo, decimal-leading-zero); display: block; margin-bottom: 1.5rem; font-family: var(--az-sans); font-size: var(--az-fs-xs); font-weight: 500; letter-spacing: .08em; color: var(--az-hoja); }
.az-types li:hover { transform: translateY(-4px); box-shadow: var(--az-sombra); border-color: transparent; }
.az-types h3 { font-size: 1.3125rem; margin-bottom: .5rem; }
main .az-types p { margin: 0; font-size: var(--az-fs-base); line-height: 1.55; color: var(--az-tinta-suave); }
.az-section--salvia .az-types li { border-color: transparent; }

/* 41. Línea de tiempo del tratamiento --------------------------------------- */
.az-timeline { position: relative; display: grid; gap: 2.25rem; margin: 0; padding: 0; list-style: none; }
.az-timeline li { position: relative; padding-left: 2.25rem; }
.az-timeline li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--az-porcelana); border: 1.5px solid var(--az-hoja); }
.az-timeline li::after { content: ""; position: absolute; left: calc(.4rem - .5px); top: 1.6rem; bottom: -2rem; width: 1px; background: var(--az-salvia-2); }
.az-timeline li:last-child::after { display: none; }
.az-timeline h3 { margin-bottom: .4rem; font-size: 1.25rem; }
.az-timeline h3 small { display: block; margin-bottom: .3rem; font-size: var(--az-fs-xs); font-weight: 500; letter-spacing: .06em; color: var(--az-hoja); }
main .az-timeline p { margin: 0; font-size: var(--az-fs-base); color: var(--az-tinta-suave); }
@media (min-width: 992px) {
  .az-timeline { grid-template-columns: repeat(var(--n, 4), 1fr); gap: 2rem; }
  .az-timeline li { padding: 2.25rem 0 0; }
  .az-timeline li::before { top: 0; }
  .az-timeline li::after { left: 1.3rem; right: -2rem; top: calc(.4rem - .5px); bottom: auto; width: auto; height: 1px; }
}

/* 42. Tarjetas de tratamiento (portadas de sección) ------------------------ */
.az-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(2.5rem, 1.5rem + 2vw, 3.5rem) clamp(1.25rem, .8rem + 1.5vw, 2.25rem); margin: 0; padding: 0; list-style: none; counter-reset: card; }
.az-card { counter-increment: card; position: relative; display: flex; flex-direction: column; height: 100%; }
.az-card__media { position: relative; aspect-ratio: 4 / 5; margin-bottom: 1.5rem; }
.az-card__media img { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.az-card:hover .az-card__media img { transform: scale(1.06); }
.az-card__media::before { /* número */
  content: counter(card, decimal-leading-zero); position: absolute; z-index: 2; left: 1.1rem; bottom: 1rem;
  font-family: var(--az-sans); font-size: var(--az-fs-xs); font-weight: 500; letter-spacing: .08em; color: var(--az-porcelana);
}
.az-card h2 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); font-weight: 350; line-height: 1.2; margin-bottom: .75rem; }
main .az-card p { flex: 1; margin-bottom: 1.1rem; font-size: var(--az-fs-base); line-height: 1.6; color: var(--az-tinta-suave); }
.az-card__link { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--az-sans); font-weight: 500; color: var(--az-hoja); text-decoration: none; }
.az-card__link::before { content: ""; position: absolute; inset: 0; z-index: 3; } /* toda la tarjeta es clicable */
.az-card__link::after { content: ""; width: 1.5rem; height: 1px; background: currentColor; transition: width .35s ease; }
.az-card:hover .az-card__link::after { width: 2.5rem; }
.az-card__link:focus-visible { outline: none; }
.az-card__link:focus-visible::before { outline: 2px solid var(--az-hoja); outline-offset: 6px; border-radius: var(--az-radius); }

/* 43. Otros tratamientos de la misma área ---------------------------------- */
.az-related { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11.5rem, 14rem); gap: 1.25rem; margin: 0; padding: 0 0 .75rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.az-related li { scroll-snap-align: start; }
.az-related a { position: relative; display: block; color: var(--az-tinta); text-decoration: none; }
.az-related .az-arch { aspect-ratio: 3 / 4; margin-bottom: .9rem; }
.az-related img { transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.az-related a:hover img { transform: scale(1.06); }
.az-related span { display: block; font-family: var(--az-sans); font-size: 1.0625rem; line-height: 1.3; }
.az-related a:hover span { color: var(--az-hoja); }
/* Hasta 5 caben en una fila; con más, la fila se desplaza en horizontal */

/* 44. Frase destacada sobre foto (bloque az-bleed) en páginas interiores --- */
.az-bleed--compact { padding-block: clamp(5rem, 3rem + 7vw, 9rem); }
.az-bleed--compact .az-statement { max-width: 18ch; font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem); }
.az-prose .az-types { padding-left: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
.az-prose .az-types h3 { margin-top: 0; }

/* 45. Banda clara con frase destacada y tarjeta de contacto ---------------- */
.az-band .az-statement { color: var(--az-hoja-oscuro); margin-bottom: 1.5rem; }
.az-callout { padding: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); border-radius: var(--az-radius); background: var(--az-blanco); box-shadow: var(--az-sombra); }
main .az-callout__kicker { margin-bottom: .75rem; font-family: var(--az-sans); font-size: var(--az-fs-sm); font-weight: 500; color: var(--az-hoja); }
main .az-callout__text { margin-bottom: 1.25rem; font-size: var(--az-fs-base); line-height: 1.6; color: var(--az-tinta-suave); }
.az-callout__phone { display: block; margin-bottom: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--az-linea); font-family: var(--az-sans); font-weight: 200; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); line-height: 1; letter-spacing: -.02em; color: var(--az-tinta); text-decoration: none; font-variant-numeric: tabular-nums; }
.az-callout__phone:hover { color: var(--az-hoja); }
.az-callout .az-btn { width: 100%; }
.az-timeline--2 { --n: 2; }
.az-timeline--3 { --n: 3; }
.az-timeline--5 { --n: 5; }
.az-types--wide { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
/* Foto en arco + texto (bloques interiores) */
.az-split__media { aspect-ratio: 4 / 5; max-width: 26rem; margin-inline: auto; box-shadow: var(--az-sombra); }
.az-prose ul.az-ticks { list-style: none; padding-left: 0; }
.az-ticks li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--az-linea); }
.az-ticks li:last-child { border-bottom: 1px solid var(--az-linea); }
.az-ticks li::before { content: ""; position: absolute; left: .1rem; top: 1.15rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--az-hoja); }
.az-ticks strong { font-weight: 500; color: var(--az-tinta); }
.az-prose p.az-kicker { font-family: var(--az-sans); font-size: var(--az-fs-sm); line-height: 1.6; }
.az-prose .az-kicker + h2, .az-prose > h2:first-child { margin-top: 0; }
/* Variantes con texto largo: una por fila, número a la izquierda */
.az-types--list { grid-template-columns: 1fr; }
@media (min-width: 576px) {
  .az-types--list li { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1rem; align-items: baseline; }
  .az-types--list li::before { grid-row: span 2; margin: 0; }
}

/* 46. Acreditaciones: logotipo + texto ------------------------------------- */
.az-accred { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.az-accred > li { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; align-items: start; padding: 1.75rem; border-radius: var(--az-radius); background: var(--az-blanco); border: 1px solid var(--az-linea); }
.az-accred__logo { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin: 0; padding: .75rem; border-radius: var(--az-radius-sm); background: #fff; border: 1px solid var(--az-linea); }
.az-accred__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
main .az-accred .az-kicker { margin-bottom: .4rem; }
.az-accred h2 { margin-bottom: .6rem; font-size: 1.25rem; font-weight: 450; line-height: 1.3; letter-spacing: -.005em; }
main .az-accred p:not(.az-kicker) { margin: 0; font-size: var(--az-fs-base); line-height: 1.6; color: var(--az-tinta-suave); }
@media (max-width: 575.98px) { .az-accred > li { grid-template-columns: 1fr; } .az-accred__logo { width: 6.5rem; } }

/* 47. Contacto: tarjeta de datos en el hero -------------------------------- */
.az-callout dl { margin: 0 0 1.25rem; }
.az-callout dt { margin-top: .9rem; font-family: var(--az-sans); font-size: var(--az-fs-xs); font-weight: 500; letter-spacing: .02em; color: var(--az-hoja); }
.az-callout dt:first-child { margin-top: 0; }
.az-callout dd { margin: .15rem 0 0; font-family: var(--az-sans); font-size: 1.0625rem; color: var(--az-tinta); }
.az-callout dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--az-linea); }
.az-callout dd a:hover { color: var(--az-hoja); border-color: currentColor; }

/* 48. Páginas legales --------------------------------------------------------- */
.az-phero--legal { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.az-legal-toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--az-linea); }
.az-legal-toc a { display: block; margin-left: -1px; padding: .35rem 0 .35rem 1rem; border-left: 1px solid transparent; font-family: var(--az-sans); font-size: var(--az-fs-sm); line-height: 1.35; color: var(--az-tinta-suave); text-decoration: none; }
.az-legal-toc a:hover { color: var(--az-hoja); border-color: var(--az-hoja); }
@media (max-width: 991.98px) { .az-legal-toc { display: none; } }
.az-legal h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-top: 2.75rem; scroll-margin-top: calc(var(--az-header-h) + 1.5rem); }
.az-legal h3 { margin-top: 2rem; font-size: 1.1875rem; font-weight: 500; }
.az-legal p, .az-legal li { font-size: var(--az-fs-base); line-height: 1.7; }
.az-legal ul { font-size: var(--az-fs-base); }
.az-legal-data { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; margin: 1.5rem 0 1.75rem; padding: 1.25rem 1.5rem; border-radius: var(--az-radius); background: var(--az-salvia); }
.az-legal-data dt { font-family: var(--az-sans); font-size: var(--az-fs-sm); font-weight: 400; color: var(--az-tinta-suave); }
.az-legal-data dd { margin: 0; font-family: var(--az-sans); font-size: var(--az-fs-base); }
@media (max-width: 575.98px) { .az-legal-data { grid-template-columns: 1fr; gap: .1rem; } .az-legal-data dd { margin-bottom: .5rem; } }
