/* ==========================================================================
   Capilex Madrid — componentes y secciones
   Mobile first. Corte principal a 768px (el del diseño), extra a 1040px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   TIPOGRAFÍAS AUTOALOJADAS
   Son fuentes VARIABLES: un solo archivo por familia cubre 100–900, así que
   los 5 pesos de Raleway y los 3 de Inter salen de 2 archivos (94 KB en total).
   Autoalojadas a propósito: el diseño original las cargaba de fonts.googleapis
   .com, que recibe la IP de cada visitante sin consentimiento.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway.woff2') format('woff2-variations'),
       url('../fonts/raleway.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2-variations'),
       url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CABECERA
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250, 250, 248, .96);
  border-bottom: 1px solid var(--hairline);
  transition: background-color .3s, border-color .3s;
}
/* En la portada la cabecera arranca transparente y se opaca al bajar */
.site-header.is-transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo { text-decoration: none; display: inline-block; flex-shrink: 0; }
/* El logotipo es un bloque apilado (corona / CAPILEX / MADRID): por debajo de
   unos 50px la línea "MADRID" deja de leerse. */
.site-logo img { height: 42px; width: auto; }
@media (min-width: 768px) {
  .site-logo img { height: 54px; }
}

/* Lockup tipográfico, tal y como lo compone el diseño. Se usa en el pie
   (fondo oscuro) y como respaldo si no hay logotipo subido. */
.logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  user-select: none;
}
.logo-lockup__name {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.35rem;
  letter-spacing: .22em;
  color: var(--ink);
  margin-top: 4px;
  /* el tracking añade un hueco a la derecha: se compensa para centrar */
  text-indent: .22em;
}
.logo-lockup--dark .logo-lockup__name { color: var(--text-on-dark); }
.logo-lockup__city {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: .5rem;
  letter-spacing: .45em;
  color: var(--gold);
  margin-top: 3px;
  text-indent: .45em;
}

/* Navegación de escritorio */
.primary-nav { display: none; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.primary-nav a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--gold-text);
  border-bottom-color: var(--gold);
}

.header-cta { display: none; }

/* Botón hamburguesa */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-right: -8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Panel móvil */
.mobile-nav {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: 24px;
}
.mobile-nav ul { list-style: none; margin: 0 0 20px; padding: 0; }
/* Acotado a los enlaces de la LISTA: sin el `ul`, esta regla le ganaba en
   especificidad a .btn y le imponía display:block al botón de WhatsApp del
   panel, que salía con el icono y el texto descolocados. */
.mobile-nav ul a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav .current-menu-item > a,
.mobile-nav .current_page_item > a { color: var(--gold-text); }

/* El diseño cambia a escritorio en 768px, pero ahí la cabecera no cabe:
   logotipo (~100px) + 5 apartados (~430px) + botón de WhatsApp (~200px) + los
   márgenes suman ~830px, así que el botón se salía por la derecha entre 768 y
   860. El menú completo aparece a partir de 900px; por debajo, hamburguesa. */
@media (min-width: 900px) {
  .primary-nav { display: block; }
  .header-cta  { display: inline-flex; }
  .nav-toggle  { display: none; }
  .mobile-nav  { display: none !important; }
}

/* Empuja el contenido por debajo de la cabecera fija.
   La portada NO lo lleva porque su hero ya reserva el hueco. */
.site-main { padding-top: var(--header-h); }
.home .site-main { padding-top: 0; }

/* ==========================================================================
   BOTONERA FLOTANTE (WhatsApp + teléfono)
   ========================================================================== */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-cta__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
  transition: transform .2s, background-color .2s;
}
.floating-cta__btn--wa    { background: var(--wa); }
.floating-cta__btn--wa:hover { background: var(--wa-text); }
.floating-cta__btn--phone { background: var(--ink); }
.floating-cta__btn--phone:hover { background: var(--ink-soft); }
.floating-cta__btn:hover { transform: scale(1.06); }

@media (min-width: 900px) {
  .floating-cta { right: 28px; bottom: 28px; }
  /* A partir de aquí el teléfono ya está visible en la cabecera y en el pie */
  .floating-cta__btn--phone { display: none; }
}

/* ==========================================================================
   HERO DE PORTADA
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: var(--header-h);
}
.hero__media { order: -1; position: relative; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.hero__badge {
  background: var(--surface);
  padding: 20px 28px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
  max-width: 240px;
  margin: -40px 0 0 20px;
  position: relative;
}
.hero__badge-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 6px;
}
.hero__badge-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
  line-height: 1.4;
}
.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 80px);
  background: var(--surface);
}
.hero__title { margin-bottom: 24px; }
.hero__lede  { max-width: 440px; margin-bottom: 40px; }
.hero__actions { margin-bottom: 56px; }

/* Cifras bajo el hero */
.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
}
.hero__stat-value {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.8rem;
  color: var(--ink);
  line-height: 1;
}
.hero__stat-label {
  font-family: var(--font-body);
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: .05em;
}
.hero__stat-sep { width: 1px; background: var(--hairline); align-self: stretch; }

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
  }
  .hero__media { order: 0; min-height: 500px; }
  .hero__badge {
    position: absolute;
    bottom: 40px;
    left: -20px;
    margin: 0;
    max-width: 220px;
  }
}

/* ==========================================================================
   BARRA DE CONFIANZA
   ========================================================================== */
.trustbar { background: var(--ink); padding: 32px var(--gutter); }
.trustbar__grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px;
}
.trustbar__item {
  padding: 14px 24px;
  text-align: center;
  border-bottom: 1px solid var(--hairline-dark);
}
.trustbar__item:last-child { border-bottom: none; }
.trustbar__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--gold);
}
.trustbar__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--text-on-dark);
  text-transform: uppercase;
  margin: 6px 0 2px;
}
.trustbar__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .74rem;
  color: var(--text-muted-dark);
}
@media (min-width: 768px) {
  .trustbar__item {
    border-bottom: none;
    border-right: 1px solid var(--hairline-dark);
  }
  .trustbar__item:last-child { border-right: none; }
}

/* ==========================================================================
   TARJETAS DE TRATAMIENTO (portada)
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2px;
}
.card {
  background: var(--surface-warm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.card__media { overflow: hidden; }
.card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 28px 28px 32px; }
.card__rule { width: 24px; height: 2px; background: var(--gold); margin-bottom: 16px; }
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.card__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.card__more {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--gold-text);
  text-transform: uppercase;
  margin-top: auto;
}
.card:hover .card__more { text-decoration: underline; }

/* ==========================================================================
   FRANJA DE CLÍNICA
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
}
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-hairline);
  pointer-events: none;
}
.split__title { margin-bottom: 24px; }
.split__text  { margin-bottom: 32px; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 60px; }
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.rating-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.rating-line__score {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink);
}
.rating-line__meta {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--text-muted);
}

.stars { display: flex; gap: 2px; }

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2px;
}
.review {
  background: var(--surface);
  padding: 32px 28px;
  border-bottom: 2px solid transparent;
  transition: border-color .3s;
  display: flex;
  flex-direction: column;
}
.section--light .review { background: var(--surface-warm); }
.review:hover { border-bottom-color: var(--gold); }
.review__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.review__tag {
  font-family: var(--font-body);
  font-size: .7rem;
  color: var(--text-muted);
  background: var(--surface-warm);
  padding: 3px 10px;
}
.section--light .review__tag { background: var(--surface); }
.review__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.8;
  /* es un <blockquote>: el navegador le mete 40px a cada lado por defecto */
  margin: 0 0 24px;
  font-style: italic;
}
.review__text p:last-child { margin-bottom: 0; }
.review__foot {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  margin-top: auto;
}
.review__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  color: var(--ink);
}
.review__meta {
  font-family: var(--font-body);
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Insignia de Google */
.google-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.google-badge__text {
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta { text-align: center; }
.cta__title  { margin: 24px 0 16px; }
.cta__text   { margin-bottom: 40px; }

/* ==========================================================================
   CABECERA DE PÁGINA INTERIOR
   ========================================================================== */
.page-hero {
  background: var(--surface-warm);
  padding: clamp(100px, 14vw, 160px) var(--gutter) clamp(60px, 8vw, 100px);
  text-align: center;
}
.page-hero__inner { max-width: 800px; margin-inline: auto; }
.page-hero__lede { max-width: 560px; margin-inline: auto; color: var(--text-muted); }
.page-hero__title { margin-bottom: 20px; }
/* La cabecera fija ya está compensada por el padding de .site-main. Cuando hay
   migas encima, la cabecera de página reduce su espacio superior para que las
   dos piezas se lean como una sola banda. */
.breadcrumbs-bar + .page-hero { padding-top: clamp(48px, 7vw, 80px); }

/* ==========================================================================
   TRATAMIENTOS — navegación de anclas
   ========================================================================== */
.treatment-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--hairline);
  transition: background-color .3s, box-shadow .3s;
}
.treatment-nav.is-stuck {
  background: rgba(250, 250, 248, .97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
}
.treatment-nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
/* Centrada sólo cuando cabe entera: por debajo la barra hace scroll lateral y,
   centrada, el primer apartado quedaría fuera de pantalla. */
@media (min-width: 900px) {
  .treatment-nav__inner { justify-content: center; }
}
.treatment-nav__inner::-webkit-scrollbar { display: none; }
.treatment-nav a {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s, border-color .2s;
}
.treatment-nav a:hover { color: var(--ink); border-bottom-color: var(--gold-hairline); }
.treatment-nav a.is-active {
  font-weight: 500;
  color: var(--ink);
  border-bottom-color: var(--gold);
}
@media (min-width: 768px) {
  .treatment-nav a { padding: 16px 28px; }
}

/* ==========================================================================
   TRATAMIENTOS — bloque de detalle
   ========================================================================== */
.treatment { padding: clamp(60px, 8vw, 100px) var(--gutter); scroll-margin-top: 130px; }
.treatment__grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.treatment__tag {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .65rem;
  letter-spacing: .35em;
  color: var(--gold-text);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.treatment__title { margin-bottom: 8px; }
.treatment__subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .85rem;
  color: var(--gold-text);
  margin-bottom: 24px;
  letter-spacing: .05em;
}
.treatment__intro { margin-bottom: 36px; }

.benefits { margin-bottom: 36px; }
.benefits__title,
.steps__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .25em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.benefits ul { list-style: none; margin: 0; padding: 0; }
.benefits li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--text);
  line-height: 1.5;
}
.benefits li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.treatment__media { position: relative; margin-bottom: 32px; }
.treatment__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.steps { background: var(--surface-warm); padding: 32px; }
.section--warm .steps,
.treatment--warm .steps { background: var(--surface); }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.steps li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  counter-increment: paso;
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: "0" counter(paso);
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.6rem;
  color: var(--gold-text);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}
.steps__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.steps__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Panel de tarifas: mismo contenedor que el de proceso, pero en dos columnas
   con el precio alineado a la derecha. */
.steps + .steps { margin-top: 2px; }
.prices__list { margin: 0; }
.prices__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}
.prices__row:last-child { border-bottom: none; padding-bottom: 0; }
.prices__row dt {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .88rem;
  color: var(--text);
}
.prices__row dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  white-space: nowrap;
}
/* Dentro del panel, la línea divisoria contrasta contra el fondo del panel. */
.section--warm .prices__row,
.treatment--warm .prices__row { border-bottom-color: var(--hairline); }

@media (min-width: 768px) {
  .treatment__grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .treatment--reverse .treatment__body  { order: 2; }
  .treatment--reverse .treatment__aside { order: 1; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
}
.faq__q-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .95rem;
  color: var(--text);
  margin: 0;
  line-height: 1.45;
}
.faq__item.is-open .faq__q-text { font-weight: 500; color: var(--ink); }
.faq__icon {
  color: var(--gold-text);
  font-size: 1.4rem;
  font-weight: 200;
  flex-shrink: 0;
  line-height: 1;
  transition: transform .2s;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.8;
  overflow: hidden;
  height: 0;
}
.faq__a-inner { padding-bottom: 22px; }

/* ==========================================================================
   EQUIPO
   ========================================================================== */
.member {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  padding: clamp(48px, 8vw, 80px) 0;
  border-bottom: 1px solid var(--hairline);
}
.member:last-child { border-bottom: none; }
.member__media { position: relative; }
.member__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.member__cred {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  padding: 32px 24px 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.5;
}
.member__rule { width: 32px; height: 2px; background: var(--gold); margin-bottom: 20px; }
.member__name { font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.member__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--gold-text);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.member__bio { margin-bottom: 32px; }
.member__skills-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .65rem;
  letter-spacing: .25em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-family: var(--font-body);
  font-size: .78rem;
  color: var(--text-soft);
  background: var(--surface-warm);
  padding: 6px 14px;
  border: 1px solid var(--hairline);
}

/* Hueco de la foto cuando todavía no hay retrato.
   Mantiene la proporción 3:4 del retrato final, pero con tope: sin él, en una
   columna de 560px el hueco se iba a 750px de alto y comía toda la ficha. */
.member__hueco {
  aspect-ratio: 3 / 4;
  max-height: 420px;
  background: var(--surface-warm);
  border: 1px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

/* Aviso de dato obligatorio que falta.
   La explicación lleva clase propia: con un selector de elemento (`span`) le
   ganaba en especificidad a .pendiente y estiraba el marcador a todo el ancho. */
.member__falta {
  margin: 0 0 28px;
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.6;
}
.member__falta .member__falta-nota {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
}

.member__video { margin-top: 28px; max-width: 480px; }
@media (min-width: 768px) {
  .member { grid-template-columns: 1fr 1fr; gap: 72px; }
  .member--reverse .member__body  { order: 1; }
  .member--reverse .member__media { order: 2; }
}

/* Valores (fondo oscuro) */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 2px;
}
.value {
  background: var(--ink-card);
  padding: 40px 32px;
  border-top: 2px solid transparent;
  transition: border-color .3s;
}
.value:hover { border-top-color: var(--gold); }
.value__num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 3rem;
  color: #3a3a3a;
  line-height: 1;
  margin-bottom: 20px;
}
.value__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-on-dark);
  margin-bottom: 12px;
}
.value__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .85rem;
  color: var(--text-muted-dark);
  line-height: 1.7;
}

/* ==========================================================================
   RESULTADOS — antes y después
   ========================================================================== */
/* Franja de cifras: compacta y con más peso tipográfico. La versión anterior
   iba en peso 200 y con mucho aire, y pasaba desapercibida sobre el negro. */
.stats-strip { background: var(--ink); padding: 34px var(--gutter); }
.stats-strip__grid {
  max-width: 1000px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 0;
  text-align: center;
}
.stats-strip__item {
  padding: 10px 18px;
  border-right: 1px solid var(--hairline-dark);
}
.stats-strip__item:last-child { border-right: none; }
.stats-strip__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stats-strip__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .13em;
  color: var(--text-on-dark);
  text-transform: uppercase;
  margin: 5px 0 1px;
}
.stats-strip__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .73rem;
  color: var(--text-muted-dark);
}
@media (max-width: 599px) {
  /* En móvil son dos columnas, así que el borde derecho sobra en las pares. */
  .stats-strip__item { border-right: none; border-bottom: 1px solid var(--hairline-dark); }
  .stats-strip__item:last-child { border-bottom: none; }
}

/* Las cifras se animan CONTANDO desde cero, no apareciendo.
   Nada de opacidad: Chrome congela las transiciones CSS en las pestañas de
   segundo plano, así que un fundido dejaría las cifras invisibles a quien abra
   la web en una pestaña de fondo y entre en ella más tarde. La cuenta la
   remata un temporizador, que sí corre. */
.js-cifra { font-variant-numeric: tabular-nums; }

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

/* Cada caso es una tarjeta con aire propio: antes iban pegadas con 2px de
   separación y se leían como una sola mancha. */
.case {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.section--light .case { background: #fff; }
.case:hover,
.case:focus-within {
  border-color: var(--gold);
  box-shadow: 0 14px 40px rgba(17, 17, 17, .13);
  transform: translateY(-3px);
}

/* El botón envuelve la imagen: abre el visor y da el foco por teclado. */
.case__abrir {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.case__abrir img {
  width: 100%;
  display: block;
  transition: transform .45s ease;
}
.case:hover .case__abrir img { transform: scale(1.035); }

/* Velo con la leyenda, sólo al pasar por encima o al enfocar con teclado */
.case__velo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* .68 y no .55: las imágenes de antes/después tienen bandas blancas arriba y
     abajo, y sobre ellas el velo al 55 % dejaba el texto en 3,99:1. Al 68 %
     sube a 6,4:1 incluso en el peor tramo. */
  background: rgba(17, 17, 17, .68);
  color: var(--text-on-dark);
  opacity: 0;
  transition: opacity .3s ease;
  padding: 20px;
  text-align: center;
}
.case:hover .case__velo,
.case__abrir:focus-visible .case__velo { opacity: 1; }
.case__velo-texto {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.5;
}
.case__velo-lupa {
  width: 42px;
  height: 42px;
  /* En crema y no en dorado: sobre las bandas blancas de la imagen el dorado
     se quedaba en 2,9:1 y no llegaba al 3:1 que pide un elemento de interfaz. */
  border: 1px solid rgba(250, 250, 248, .7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
}

.case__foot {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.case__technique {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .84rem;
  color: var(--ink);
  letter-spacing: .01em;
}
.case__meta {
  font-family: var(--font-body);
  font-size: .74rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ==========================================================================
   VISOR DE IMAGEN (casos ampliados)
   ========================================================================== */
.visor {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.visor[hidden] { display: none; }
.visor__figura {
  margin: 0;
  max-width: min(760px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.visor__img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  object-fit: contain;
  border: 1px solid rgba(201, 168, 76, .35);
}
.visor__pie {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  line-height: 1.6;
}
.visor__cerrar {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid rgba(250, 250, 248, .3);
  color: var(--text-on-dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: border-color .2s, color .2s;
}
.visor__cerrar:hover { border-color: var(--gold); color: var(--gold); }
.cases-note {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
  font-style: italic;
}

/* Vídeos de testimonios */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.contact-direct { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.contact-direct__btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .2s;
  min-height: 48px;
}
.contact-direct__btn--wa    { background: var(--wa-text); color: #fff; }
.contact-direct__btn--wa:hover { background: var(--wa-text-hover); }
.contact-direct__btn--phone { background: var(--ink); color: var(--text-on-dark); font-weight: 500; }
.contact-direct__btn--phone:hover { background: var(--ink-soft); }
.contact-direct__sub {
  /* va en su propia línea bajo la etiqueta, no pegado a ella */
  display: block;
  font-weight: 300;
  font-size: .72rem;
  opacity: .9;
  margin-top: 3px;
  letter-spacing: .05em;
  text-transform: none;
}

.location { background: var(--surface-warm); padding: 28px; }
.location__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .65rem;
  letter-spacing: .3em;
  color: var(--gold-text);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.location__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.location__value {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .85rem;
  color: var(--text-soft);
  line-height: 1.7;
  white-space: pre-line;
}
.location__how {
  margin-top: 20px;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.location__how-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.location__how-text strong { font-weight: 500; color: var(--text); }

.socials { margin-top: 24px; display: flex; gap: 10px; }
.socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.socials a:hover { border-color: var(--gold-text); color: var(--gold-text); }

/* Franja de mapa */
.map-strip {
  min-height: 320px;
  background: var(--surface-warm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--gutter);
}
.map-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}
.map-strip__inner { position: relative; }
.map-strip__text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  margin-top: 10px;
  letter-spacing: .12em;
}
.map-strip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   FORMULARIO
   ========================================================================== */
.form__head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.form__head-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .25em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form__head-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
}

.form__row { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field .req { color: var(--gold-text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold-text); }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field[data-error] input,
.field[data-error] select,
.field[data-error] textarea { border-color: var(--error); }
.field__error {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--error);
  margin-top: 5px;
}

.field--check { margin-bottom: 28px; }
.field--check label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
}
.field--check input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
  min-width: 18px;
  min-height: 18px;
}
.field--check a { color: var(--gold-text); }

.form__note {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

/* Trampa antispam: invisible pero no con display:none (algunos bots lo detectan) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-success {
  background: var(--surface-warm);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--hairline);
}
.form-success__title {
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 24px 0 12px;
}
.form-success__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 400px;
  margin: 0 auto 28px;
}
.form-error-box {
  background: #FDECEA;
  border: 1px solid var(--error);
  color: #7B241C;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: .88rem;
  border-radius: var(--radius);
}

/* ==========================================================================
   PÁGINAS LEGALES
   ========================================================================== */
.legal { padding: clamp(48px, 6vw, 72px) var(--gutter) clamp(60px, 8vw, 100px); }
.legal__body { max-width: 760px; margin-inline: auto; }
.legal__body h2 {
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 48px 0 16px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin: 32px 0 12px;
}
.legal__body p,
.legal__body li {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.85;
}
.legal__body ul { padding-left: 20px; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { color: var(--gold-text); }
.legal__updated {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  margin-top: 48px;
}

/* ==========================================================================
   MIGAS DE PAN
   ========================================================================== */
.breadcrumbs-bar { background: var(--surface-warm); }
.breadcrumbs {
  max-width: var(--container);
  margin-inline: auto;
  padding: 20px var(--gutter) 0;
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-text); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--text); }

/* ==========================================================================
   PIE
   ========================================================================== */
.site-footer { background: var(--ink-deep); padding: 60px var(--gutter) 32px; }
.site-footer__inner { max-width: var(--container); margin-inline: auto; }
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
.site-footer__about {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .8rem;
  color: var(--text-muted-dark);
  margin-top: 20px;
  max-width: 260px;
  line-height: 1.7;
}
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-footer__col-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__cols a {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--text-muted-dark);
  margin-bottom: 10px;
  text-decoration: none;
  transition: color .2s;
}
.site-footer__cols a:hover { color: var(--gold); }
.site-footer__contact { }
.site-footer__phone {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--text-muted-dark);
  text-decoration: none;
  display: block;
}
.site-footer__phone:hover { color: var(--gold); }
.site-footer__email {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--text-muted-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__email:hover { color: var(--gold); }
.site-footer__address {
  margin-top: 14px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--text-muted-dark);
}
.site-footer__hours {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: .78rem;
  color: var(--text-muted-dark);
}
.site-footer__redes {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  list-style: none;
  padding: 0;
}
.site-footer__redes a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2e2e2e;
  color: var(--text-muted-dark);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.site-footer__redes a:hover { border-color: var(--gold); color: var(--gold); }

@media (min-width: 768px) {
  /* La columna de contacto va alineada a la derecha; los iconos también. */
  .site-footer__redes { justify-content: flex-end; }
}
.site-footer__bottom {
  border-top: 1px solid var(--hairline-deep);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__copy {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--text-muted-dark);
}
/* wp_nav_menu mete un <ul> dentro del <nav>, así que el flex tiene que ir en
   el <ul>: puesto en el <nav> sólo hay un hijo y los enlaces se apilan. */
.site-footer__legal ul { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__legal a {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--text-muted-dark);
  text-decoration: none;
}
.site-footer__legal a:hover { color: var(--gold); }

@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: auto 1fr auto;
    gap: 60px;
    margin-bottom: 60px;
  }
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer__contact { text-align: right; }
}

/* ==========================================================================
   404
   ========================================================================== */
.error404-body { text-align: center; padding: clamp(80px, 12vw, 140px) var(--gutter); }
.error404-body .display { margin-bottom: 16px; }
