/*
Theme Name: HR-Clinic
Theme URI: http://localhost/hr/
Author: Codex
Description: Tema personalizado HR-Clinic.
Version: 1.0.0
Text Domain: hr-clinic
*/

:root {
  --bg: #2a2a2a;
  --bg-soft: #332d2c;
  --card: #8d6661;
  --text: #ededed;
  --muted: #d2b686;
  --gold: #ad8a67;
  --gold-2: #d2b686;
  /* Rosa suave (combina con dorado en bloques claros y detalles). */
  --rose-50: #fcf6f8;
  --rose-100: #f5e8ec;
  --rose-150: #edd6dc;
  --rose-200: #e0b8c4;
  --rose-deep: #9b5568;
  --rose-glow: rgba(216, 150, 168, 0.22);
  --line: rgba(237, 237, 237, 0.22);
  --accent-warm: #c98f9a;
  /* Menú: padding vertical fila inferior; la superior lleva el doble (arriba y abajo en cada fila). */
  --topbar-pad-y-nav: 0.55rem;
  --topbar-pad-y-main: calc(var(--topbar-pad-y-nav) * 2);
  /* Espacio bajo el header fijo (dos filas + logo). */
  --header-offset: calc(11rem + 10px);
  --header-offset-mobile: calc(4.5rem + 10px);
  /* Franja negra superior (solo escritorio; en movil es 0). */
  --utility-strip-h: 0px;
  /* Desde el top del viewport hasta el final del header; theme.js la pisa con px (borde de la fila del menú). */
  --hero-viewport-top-inset: calc(var(--header-offset) + var(--utility-strip-h));
}

@media (max-width: 980px) {
  :root {
    --hero-viewport-top-inset: calc(var(--header-offset-mobile) + var(--utility-strip-h));
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin-top: 0 !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-wrap {
  overflow-x: clip;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Opaco: el hero no se ve “a través” del menú; el cabecero marca el límite superior del slide. */
  background: var(--bg);
  border-bottom: 1px solid var(--gold-2);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.16), 0 1px 0 rgba(214, 160, 175, 0.12) inset;
  transition: background 0.25s ease;
}

.topbar-utility-strip {
  display: none;
  flex-shrink: 0;
  align-items: center;
  min-height: var(--utility-strip-h);
  padding: 0.35rem 0;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  line-height: 1.35;
}

@media (min-width: 981px) {
  :root {
    --utility-strip-h: 2.65rem;
  }

  .topbar-utility-strip {
    display: flex;
    max-height: 10rem;
    transition:
      max-height 0.45s ease,
      opacity 0.35s ease,
      padding 0.45s ease,
      border-bottom-width 0.45s ease,
      min-height 0.45s ease;
  }

  /* Al bajar: la franja negra se oculta; al volver arriba (scrollY ~ 0) se muestra de nuevo. */
  body.utility-strip-collapsed {
    --utility-strip-h: 0px;
  }

  body.utility-strip-collapsed .topbar-utility-strip {
    max-height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
    border-bottom-width: 0;
    pointer-events: none;
  }

  main {
    transition: padding-top 0.4s ease;
  }
}

.utility-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem 3rem;
  flex-wrap: wrap;
  width: 100%;
  text-align: center;
}

.utility-strip-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 1 auto;
  max-width: 100%;
}

.utility-strip-ico {
  display: flex;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.88);
}

.utility-strip-ico svg {
  display: block;
}

.utility-strip-line {
  margin: 0;
  text-align: left;
}

.utility-strip-label {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  color: #fff;
  margin-right: 0.25rem;
}

.utility-strip-text {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

body.admin-bar .topbar {
  top: 32px;
}

main {
  padding-top: var(--hero-viewport-top-inset);
  padding-bottom: 0;
}

.topbar.scrolled {
  background: #222224;
}

.topbar-rows {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.topbar-row-bleed {
  width: 100%;
}

.topbar-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.topbar-row-main .topbar-row-inner {
  padding: var(--topbar-pad-y-main) 0;
  min-height: 0;
}

.topbar-gold-rule {
  width: 100%;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    rgba(214, 160, 175, 0.35) 0%,
    var(--gold-2) 22%,
    var(--gold-2) 78%,
    rgba(214, 160, 175, 0.35) 100%
  );
}

.topbar-row-nav .topbar-row-inner {
  flex-wrap: wrap;
  padding: var(--topbar-pad-y-nav) 0;
  min-height: 0;
}

.topbar-row-nav .top-nav {
  flex: 1;
  justify-content: flex-start;
  min-width: 0;
}

.topbar-nav-end {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  flex-shrink: 0;
}

.search-toggle--nav-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.search-toggle--nav-row:hover,
.search-toggle--nav-row:focus-visible {
  color: var(--gold-2);
  opacity: 1;
  outline: none;
}

.search-toggle-icon {
  display: block;
  pointer-events: none;
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.brand-tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  line-height: 1.12;
  padding-left: 0.05rem;
}

.brand-tagline__line1 {
  font-size: clamp(1.12rem, 1.58vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-2);
  text-transform: uppercase;
}

.brand-tagline__line1 .brand-reg {
  position: relative;
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0;
  top: -0.15em;
  margin-left: 0.04em;
}

.brand-tagline__line2 {
  font-size: clamp(0.74rem, 1.12vw, 0.93rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  opacity: 0.95;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  height: 62px;
  width: auto;
}

.mobile-logo {
  display: none;
}

.brand-mark {
  display: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-nav--divided {
  gap: 0;
}

.top-nav--divided > * + * {
  padding-left: 0.95rem;
  margin-left: 0.95rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.nav-dd-caret {
  display: inline-block;
  margin-left: 0.15em;
  font-size: 0.68em;
  opacity: 0.82;
  vertical-align: 0.05em;
}

.top-nav > a,
.top-nav > li > a,
.top-nav .nav-dd > a {
  font-size: 0.77rem;
  color: var(--text);
  opacity: 0.96;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
  letter-spacing: 0.01em;
}

.top-nav > a:hover,
.top-nav > li > a:hover,
.top-nav .nav-dd > a:hover {
  color: var(--gold-2);
  opacity: 1;
}

.top-nav > li {
  position: relative;
}

.top-nav li.menu-item-has-children > a::after {
  content: "▾";
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.68em;
  opacity: 0.82;
  vertical-align: 0.05em;
}

.top-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.65rem 0.75rem;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: rgba(42, 42, 42, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 85;
}

.top-nav > li:hover > .sub-menu,
.top-nav > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-nav .sub-menu li {
  position: relative;
}

.top-nav .sub-menu .sub-menu {
  top: -0.35rem;
  left: calc(100% + 4px);
}

.top-nav .sub-menu li:hover > .sub-menu,
.top-nav .sub-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-nav .sub-menu a {
  display: block;
  font-size: 0.88rem;
  padding: 0.24rem 0.35rem;
  color: var(--text);
  opacity: 0.92;
  white-space: normal;
}

.top-nav .sub-menu a:hover {
  color: #fff;
  opacity: 1;
}

.top-actions {
  display: none;
}

.top-right-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.top-right-links > a {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0.88;
}

.top-right-links > a:hover {
  color: var(--gold-2);
}

.header-cta {
  margin-right: 0;
  min-width: 168px;
  text-align: center;
  border-radius: 0;
  padding: 0.42rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #2a2a2a;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  line-height: 1.2;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  filter: none;
  color: #faf8f5;
  background: linear-gradient(145deg, #352b22 0%, #4a3d32 45%, #5a4838 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.header-cta:active {
  filter: none;
  color: #fff;
  background: linear-gradient(145deg, #2a221c 0%, #3d3229 100%);
}

.site-search-form {
  position: absolute;
  top: calc(100% + 10px);
  right: max(12px, calc((100vw - min(1180px, 92%)) / 2 + 4px));
  width: min(420px, 92vw);
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 20, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 70;
}

.topbar.search-open .site-search-form {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0.58rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
}

.site-search-form input[type="search"]::placeholder {
  color: rgba(237, 237, 237, 0.62);
}

.site-search-form input[type="search"]:focus {
  border-color: var(--gold-2);
}

.site-search-submit {
  border: 0;
  border-radius: 8px;
  padding: 0.58rem 0.8rem;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  color: #2a2a2a;
  font-weight: 700;
  cursor: pointer;
}

.icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
}

.cart-pill {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: #2a2a2a;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  cursor: pointer;
}

.menu-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  flex-shrink: 0;
}

.menu-toggle-bars > span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
}

.nav-dd {
  position: relative;
}

.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 460px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(42, 42, 42, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s ease;
}

.mega-small {
  min-width: 220px;
  grid-template-columns: 1fr;
}

.mega h5 {
  margin: 0 0 0.45rem;
  color: var(--gold-2);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.mega a {
  display: block;
  font-size: 0.88rem;
  padding: 0.17rem 0;
  color: var(--text);
  opacity: 0.9;
}

.mega a:hover {
  color: #fff;
}

.nav-dd:hover .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.68rem 1.08rem;
  font-weight: 700;
  color: #2a2a2a;
  background: linear-gradient(125deg, var(--gold) 0%, #e2c4b8 42%, var(--gold-2) 58%, var(--gold) 100%);
  font-size: 0.84rem;
}

.btn-gold:hover {
  filter: brightness(1.04);
  box-shadow:
    0 8px 22px rgba(173, 138, 103, 0.32),
    0 0 20px rgba(214, 160, 175, 0.22);
}

.hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  /* Una pantalla útil bajo el header: el tope del main y el alto del hero siguen el borde real del menú (theme.js). */
  min-height: calc(100svh - var(--hero-viewport-top-inset));
  display: grid;
  align-items: stretch;
}

/* La imagen del slide puede sobresalir por abajo (122% + zoom); la siguiente sección debe pintar encima al hacer scroll. */
.hero.hero-slider + .section {
  position: relative;
  z-index: 1;
}

/* Sin overflow: la capa .hero-slide-bg es más alta (122%) para acompañar el parallax sin recortes. */
.hero-slider {
  --hero-progress: 0;
  overflow: visible;
}

/* Misma anchura que .hero-slide > .hero-content / .container (puntos inferiores alineados). */
.hero.hero-slider {
  --hero-content-w: min(1180px, 92%);
  /* Misma duración que el intervalo en assets/theme.js (5000 ms). */
  --hero-slide-duration: 5s;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: stretch;
  /* Espacio inferior para los puntos del slider; el bloque de texto queda centrado en altura. */
  padding: 4rem 0 5.5rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.8s ease;
  overflow: visible;
  /* Evita que el contenido del grid supere el ancho del slide (desbordamiento horizontal). */
  min-width: 0;
}

/* Parallax: el contenedor se desplaza con scroll (JS); la imagen va más lenta que el texto. */
.hero-slide-parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* Imagen algo más alta para no ver bordes al mover el parallax. */
.hero-slide-bg {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 122%;
  top: -11%;
  background: var(--hero-image) center / cover no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Todos los slides: misma caja que el header (.container) para título, texto y botones. */
.hero-slide > .hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  justify-self: center;
  width: min(1180px, 92%);
  max-width: min(1180px, 92%);
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
}

/* Slide 1: copy limitada a la mitad izquierda dentro de esa caja. */
.hero-slide > .hero-content.hero-content--half {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-slide > .hero-content.hero-content--half .hero-copy {
  max-width: min(50vw, 50%, 36rem);
}

.hero-content--half .hero-title-split,
.hero-content--half .hero-copy p,
.hero-content--half .hero-copy .hero-actions {
  max-width: 100%;
}

.hero-content--half .hero-title-split {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.65rem, 3.8vw, 3.1rem);
  line-height: 1.12;
  max-width: 100%;
  width: fit-content;
}

.hero-content--half .hero-copy p {
  max-width: 100%;
}

/* Panel solo detrás del texto y CTAs del hero (no sobre toda la imagen). */
.hero-slide > .hero-content .hero-copy {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: fit-content;
  max-width: min(100%, 42rem);
  padding: clamp(0.95rem, 2.2vw, 1.35rem) clamp(1rem, 2.8vw, 1.65rem);
  border-radius: 14px;
}

.hero-slide > .hero-content .hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: rgba(14, 12, 10, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 36px rgba(0, 0, 0, 0.22);
}

.hero h1 {
  max-width: min(20em, 100%);
  width: fit-content;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero h1 sup {
  font-size: 0.38em;
  line-height: 0;
  vertical-align: super;
  font-weight: inherit;
  position: relative;
  top: -0.2em;
}

.hero p {
  max-width: min(62ch, 100%);
  color: var(--text);
  margin: 1rem 0 1.6rem;
  line-height: 1.7;
  opacity: 0.95;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-slide > .hero-content h1,
.hero-slide > .hero-content p {
  text-shadow: none;
}

.hero-slide > .hero-content .btn-gold {
  box-shadow:
    0 0.22rem 0.55rem rgba(0, 0, 0, 0.42),
    0 0.45rem 1.35rem rgba(0, 0, 0, 0.3);
}

.hero-slide > .hero-content .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(34, 30, 28, 0.38);
  backdrop-filter: blur(1.5px);
  box-shadow:
    0 0.22rem 0.55rem rgba(0, 0, 0, 0.38),
    0 0.45rem 1.25rem rgba(0, 0, 0, 0.26);
}

.hero-slide > .hero-content .btn-gold:hover {
  box-shadow:
    0 0.22rem 0.55rem rgba(0, 0, 0, 0.42),
    0 0.45rem 1.35rem rgba(0, 0, 0, 0.3),
    0 8px 22px rgba(173, 138, 103, 0.32);
}

.hero-slide > .hero-content .btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(28, 24, 22, 0.52);
  box-shadow:
    0 0.22rem 0.55rem rgba(0, 0, 0, 0.38),
    0 0.45rem 1.25rem rgba(0, 0, 0, 0.26),
    0 0 0.85rem rgba(210, 182, 134, 0.18);
}

.btn-outline {
  border: 1px solid rgba(237, 237, 237, 0.6);
  border-radius: 999px;
  padding: 0.74rem 1.22rem;
  font-weight: 600;
}

.btn-outline:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  background: rgba(34, 30, 28, 0.28);
  backdrop-filter: blur(2.2px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.hero-dots {
  display: inline-flex;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(237, 237, 237, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  background: linear-gradient(135deg, var(--gold-2) 0%, #e8c4b8 55%, var(--gold-2) 100%);
  box-shadow: 0 0 0 1px rgba(214, 160, 175, 0.35);
  transform: scale(1.15);
}

.hero-autoplay-toggle {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: rgba(34, 30, 28, 0.58);
  box-shadow: 0 0.18rem 0.45rem rgba(0, 0, 0, 0.34);
  flex: 0 0 auto;
}

.hero-autoplay-toggle:hover {
  background: rgba(34, 30, 28, 0.74);
}

.hero-autoplay-progress {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, transparent 63%, rgba(255, 255, 255, 0.35) 64%),
    conic-gradient(
      from -90deg,
      rgba(232, 196, 184, 0.98) calc(var(--hero-progress) * 1turn),
      rgba(255, 255, 255, 0.18) 0
    );
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.hero-autoplay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-autoplay-icon--pause {
  gap: 3px;
}

.hero-autoplay-icon--pause > span {
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: currentColor;
}

.hero-autoplay-icon--play {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  margin-left: 2px;
  display: none;
}

.hero-slider.is-paused .hero-autoplay-icon--pause {
  display: none;
}

.hero-slider.is-paused .hero-autoplay-progress {
  opacity: 0.35;
}

.hero-slider.is-paused .hero-autoplay-icon--play {
  display: inline-block;
}

/* Bloques de contenido tipo hrclinic2: fondo claro con matiz rosa, texto oscuro, títulos Cormorant. */
.section {
  padding: 4.2rem 0;
  background: linear-gradient(180deg, var(--rose-50) 0%, #eee8ea 55%, #eae4e6 100%);
  color: #202124;
}

/* main.section: la clase .section no debe pisar el padding-top que deja sitio bajo el header fijo */
main.section {
  padding-top: calc(var(--hero-viewport-top-inset) + 1.75rem);
  padding-bottom: 4.2rem;
  padding-left: 0;
  padding-right: 0;
}

.section.alt {
  background: linear-gradient(180deg, #faf4f8 0%, var(--rose-100) 45%, #f0e6ea 100%);
}

.search-page-header h1 {
  margin: 0 0 1.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  text-align: center;
  color: #202124;
}

.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.search-result-card {
  text-align: left;
}

.search-result-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.search-result-title a {
  color: #202124;
}

.search-result-title a:hover {
  color: var(--rose-deep);
}

.search-result-type {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-2);
  opacity: 0.95;
}

.search-result-excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
  color: #585d63;
}

.search-no-results {
  margin-bottom: 1.2rem;
}

.section .navigation.pagination {
  margin-top: 2rem;
}

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

.section .nav-links a,
.section .nav-links span {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(32, 33, 36, 0.18);
  border-radius: 8px;
  color: #202124;
}

.section .nav-links span.current {
  border-color: var(--gold);
  color: var(--rose-deep);
}

.search-results .navigation.pagination {
  margin-top: 2rem;
}

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

.search-results .nav-links a,
.search-results .nav-links span {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(32, 33, 36, 0.18);
  border-radius: 8px;
  color: #202124;
}

.search-results .nav-links span.current {
  border-color: var(--gold);
  color: #5a4028;
}

.contact-page .contact-form-shell {
  max-width: 760px;
  margin: 0;
  padding: clamp(1.15rem, 2.2vw, 1.85rem);
}

.contact-page .contact-intro {
  max-width: 900px;
  margin: 0 auto 1rem;
  text-align: center;
}

.contact-page .contact-intro-lead {
  margin: 0;
  color: #3f4349;
}

.contact-page .contact-intro-meta {
  margin: 0.55rem 0 1rem;
  font-size: 0.92rem;
  color: #6d5f67;
}

.contact-page .contact-intro-actions {
  justify-content: center;
}

.contact-page .contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
}

.contact-page .contact-channel-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}

.contact-page .contact-channel-card h2 {
  margin: 0;
  font-size: 1.15rem;
  text-align: left;
}

.contact-page .contact-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 999px;
  color: #ad8a67;
  background: rgba(173, 138, 103, 0.12);
}

.contact-page .contact-channel-icon svg {
  display: block;
}

.contact-page .contact-channel-card p {
  margin: 0 0 0.55rem;
}

.contact-page .contact-channel-card a {
  color: #2f2f35;
  text-decoration: underline;
  text-decoration-color: rgba(173, 138, 103, 0.65);
  text-underline-offset: 3px;
  font-weight: 600;
}

.contact-page .contact-channel-card {
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.contact-page .contact-channel-card:hover {
  border-color: rgba(173, 138, 103, 0.45);
  box-shadow:
    0 10px 22px rgba(32, 33, 36, 0.08),
    0 0 0 1px rgba(173, 138, 103, 0.18);
  transform: translateY(-2px);
}

.contact-page .contact-channel-card:hover .contact-channel-icon {
  color: #9d784f;
  background: rgba(173, 138, 103, 0.2);
}

.contact-page .contact-channels .contact-channel-card:first-child {
  background: linear-gradient(145deg, #fffefb 0%, #faf7f2 100%);
  border: 1px solid rgba(173, 138, 103, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 28px rgba(62, 45, 29, 0.07);
}

.contact-page .contact-channels .contact-channel-card:first-child a {
  color: #8f6c47;
  text-decoration-color: rgba(143, 108, 71, 0.7);
}

.contact-page .contact-channels .contact-channel-card:first-child a:hover {
  color: #7f5e3b;
  text-decoration-color: rgba(127, 94, 59, 0.9);
}

.contact-page .contact-page-content {
  max-width: 900px;
  margin: 0 auto 1.2rem;
  text-align: center;
}

.contact-page .contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.contact-page .contact-side-stack {
  display: grid;
  gap: 1rem;
}

.contact-page .contact-page-title {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

.contact-page .contact-form-shell:hover {
  transform: none;
  border-color: rgba(200, 155, 168, 0.28);
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.07);
}

.contact-page .contact-help-card h2,
.contact-page .contact-map h2,
.contact-page .contact-faq h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  text-align: left;
}

.contact-page .contact-help-card p,
.contact-page .contact-map p {
  margin: 0 0 0.75rem;
}

.contact-page .contact-help-card ul {
  margin: 0;
  padding-left: 1rem;
}

.contact-page .contact-help-card li + li {
  margin-top: 0.35rem;
}

.contact-page .contact-map {
  margin-top: 1rem;
}

.contact-page .contact-map-frame {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(32, 33, 36, 0.14);
}

.contact-page .contact-map-frame iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.contact-page .contact-faq {
  margin-top: 1rem;
}

.contact-page .contact-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-page .contact-faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.contact-page .contact-faq-item p {
  margin: 0;
}

.contact-page .wpcf7-form > p {
  margin: 0 0 0.95rem;
  color: #3f4349;
  font-size: 0.92rem;
}

@media (min-width: 821px) {
  .contact-page .wpcf7-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem 1rem;
    align-items: start;
  }

  .contact-page .wpcf7-form > p {
    margin: 0;
  }

  .contact-page .wpcf7-form > p:has(textarea),
  .contact-page .wpcf7-form > p:has(.wpcf7-acceptance),
  .contact-page .wpcf7-form > p:has(input[type="submit"]),
  .contact-page .wpcf7-form > p:has(button[type="submit"]) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .contact-page .contact-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-page .contact-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-page .contact-faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-channel-card h2,
  .contact-page .contact-help-card h2,
  .contact-page .contact-map h2,
  .contact-page .contact-faq h2 {
    text-align: center;
  }

  .contact-page .contact-channel-card,
  .contact-page .contact-help-card,
  .contact-page .contact-faq-item {
    text-align: center;
  }

  .contact-page .contact-help-card ul {
    text-align: left;
  }
}

.contact-page .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.35rem;
}

.contact-page .wpcf7-form input[type="text"],
.contact-page .wpcf7-form input[type="email"],
.contact-page .wpcf7-form input[type="tel"],
.contact-page .wpcf7-form input[type="number"],
.contact-page .wpcf7-form input[type="url"],
.contact-page .wpcf7-form select,
.contact-page .wpcf7-form textarea {
  width: 100%;
  border: 1px solid rgba(32, 33, 36, 0.2);
  border-radius: 10px;
  background: #fff;
  color: #202124;
  font: inherit;
  padding: 0.68rem 0.8rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page .wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-page .wpcf7-form input:focus,
.contact-page .wpcf7-form select:focus,
.contact-page .wpcf7-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173, 138, 103, 0.14);
}

.contact-page .wpcf7-form .wpcf7-acceptance {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
}

.contact-page .wpcf7-form input[type="submit"],
.contact-page .wpcf7-form button[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  color: #2a2a2a;
  background: linear-gradient(125deg, var(--gold) 0%, #e2c4b8 42%, var(--gold-2) 58%, var(--gold) 100%);
  cursor: pointer;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.contact-page .wpcf7-form input[type="submit"]:hover,
.contact-page .wpcf7-form button[type="submit"]:hover {
  filter: brightness(1.04);
  box-shadow: 0 8px 22px rgba(173, 138, 103, 0.28);
}

.error-404-page {
  min-height: calc(100svh - var(--hero-viewport-top-inset));
  display: flex;
  align-items: center;
}

.error-404-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  background: linear-gradient(165deg, #fff 0%, #fffafc 100%);
  border: 1px solid rgba(200, 155, 168, 0.28);
  border-radius: 18px;
  box-shadow:
    0 18px 44px rgba(32, 33, 36, 0.08),
    0 0 0 1px rgba(214, 160, 175, 0.12);
}

.error-404-copy {
  margin-bottom: 1.5rem;
  text-align: center;
}

.error-404-search {
  display: flex;
  gap: 0.55rem;
  max-width: 560px;
  margin: 0 auto 1.35rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 33, 36, 0.12);
  border-radius: 12px;
}

.error-404-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(32, 33, 36, 0.16);
  border-radius: 8px;
  padding: 0.68rem 0.8rem;
  background: #fff;
  color: #202124;
  outline: none;
}

.error-404-search input[type="search"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173, 138, 103, 0.14);
}

.error-404-actions {
  justify-content: center;
}

.eyebrow {
  color: #8b4d62;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
  text-align: center;
}

.section h1 {
  margin: 0 0 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  text-align: center;
}

.section h2 {
  margin: 0 0 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: #564a52;
  max-width: 78ch;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* Páginas genéricas: el contenido en .section-sub se lee mejor alineado a la izquierda. */
main.section .section-sub {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cards.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-why-choose {
  background: linear-gradient(180deg, #f8f2f5 0%, #f1e8ed 55%, #ece3e8 100%);
}

.section-why-choose .section-sub {
  margin-bottom: 2.35rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.why-card {
  background: linear-gradient(165deg, #fff 0%, #fff9fb 100%);
  border: 1px solid rgba(200, 155, 168, 0.28);
  border-radius: 14px;
  padding: 1.25rem 1rem 1.1rem;
  text-align: center;
  box-shadow:
    0 10px 24px rgba(32, 33, 36, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  border-color: rgba(173, 138, 103, 0.5);
  box-shadow:
    0 16px 30px rgba(32, 33, 36, 0.1),
    0 0 0 1px rgba(214, 160, 175, 0.2);
}

.why-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, #b07a89 0%, #d6a0af 48%, #b88a67 100%);
  box-shadow:
    0 10px 20px rgba(155, 85, 104, 0.25),
    0 0 0 3px rgba(255, 255, 255, 0.65) inset;
}

.why-card h3 {
  margin: 0 0 0.55rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.16;
  color: #202124;
}

.why-card p {
  margin: 0;
  color: #50545a;
  line-height: 1.58;
  font-size: 0.94rem;
}

.card {
  background: linear-gradient(165deg, #fff 0%, #fffafc 100%);
  border: 1px solid rgba(200, 155, 168, 0.28);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(173, 138, 103, 0.5);
  box-shadow:
    0 10px 24px rgba(32, 33, 36, 0.07),
    0 0 0 1px rgba(214, 160, 175, 0.18);
}

.card h3,
.card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #202124;
}

.card p,
.card li {
  margin: 0;
  color: #585d63;
  line-height: 1.6;
}

.section-why-offer .cards .card {
  position: relative;
  overflow: hidden;
  padding-top: 1.15rem;
}

.section-why-offer .cards .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #b88a67 0%, #d6a0af 55%, #e8c4b8 100%);
}

.section-why-offer .card-accent-icon {
  width: 38px;
  height: 38px;
  margin: 0 0 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, #b07a89 0%, #d6a0af 48%, #b88a67 100%);
  box-shadow:
    0 8px 18px rgba(155, 85, 104, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.7) inset;
}

.section-why-offer .cards .card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 28px rgba(32, 33, 36, 0.1),
    0 0 0 1px rgba(214, 160, 175, 0.22);
}

.section .btn-outline {
  border-color: rgba(32, 33, 36, 0.35);
  color: #202124;
}

.section .btn-outline:hover {
  border-color: var(--gold);
  color: #3e2d1d;
  box-shadow: 0 0 0 1px rgba(214, 160, 175, 0.2);
}

.section .hero-actions {
  justify-content: center;
}

/* Listado de entradas en la portada */
.home-posts {
  margin-top: 0.25rem;
}

.home-post-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.home-post-thumb {
  display: block;
  margin: -1rem -1rem 0.75rem;
  border-radius: 11px 11px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--rose-100);
}

.home-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-post-card:hover .home-post-thumb img {
  transform: scale(1.04);
}

.home-post-meta {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #50545a;
}

.section .home-post-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.15;
}

.home-post-title a {
  color: #202124;
  text-decoration: none;
}

.home-post-title a:hover {
  color: var(--rose-deep);
}

.home-post-excerpt {
  margin: 0;
  flex-grow: 1;
  font-size: 0.92rem;
  line-height: 1.58;
  color: #585d63;
}

.home-posts-more {
  margin: 2rem 0 0;
  text-align: center;
}

.home-posts-empty {
  margin-bottom: 0;
}

.single-post-page .single-post-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.single-post-meta {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7078;
}

.single-post-thumb {
  margin: 1rem 0 1.25rem;
  border-radius: 10px;
  overflow: hidden;
}

.single-post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content {
  color: #3f4349;
  line-height: 1.72;
}

.single-post-content > *:first-child {
  margin-top: 0;
}

.single-post-nav {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(32, 33, 36, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.single-post-nav a {
  color: #202124;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.single-post-nav a:hover {
  color: var(--rose-deep);
}

/* Marcas: placas con logotipos (imagen externa hrclinic.es) y fondo blanco en cada tarjeta. */
.section.section-brands {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      -8deg,
      transparent 0,
      transparent 18px,
      rgba(173, 138, 103, 0.045) 18px,
      rgba(173, 138, 103, 0.045) 19px
    ),
    linear-gradient(185deg, #fffefb 0%, var(--rose-50) 42%, #f5e8ec 100%);
}

.section-brands-sub {
  margin-bottom: 2.25rem;
}

.brands-deck {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem 1.15rem;
  max-width: 56rem;
  margin-inline: auto;
}

.brand-plaque {
  position: relative;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  perspective: 1100px;
  outline: none;
}

.brand-plaque:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/*
 * El volteo 3D (rotateX) debe vivir bajo perspective sin antepasados con transform
 * (rotar el contenedor “tilt” aplanaba preserve-3d y la cara trasera no se veía).
 */
.brand-plaque-flip {
  position: relative;
  width: min(11.5rem, 44vw);
  min-height: 5.75rem;
  transform-style: preserve-3d;
  transform: rotateX(0deg);
  transition:
    transform 0.72s cubic-bezier(0.4, 0.2, 0.2, 1),
    box-shadow 0.35s ease;
}

.brand-plaque-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid rgba(200, 155, 168, 0.28);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  box-shadow:
    0 10px 26px rgba(42, 32, 38, 0.07),
    0 1px 0 rgba(255, 255, 255, 1) inset;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.brand-plaque-face--front {
  transform: rotateX(0deg);
}

.brand-plaque-face--back {
  transform: rotateX(180deg);
}

.brand-plaque-face--back img {
  display: block;
  max-width: 100%;
  max-height: 3.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.brand-plaque-name {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #202124;
  line-height: 1.3;
}

/* Volteo vertical (eje X): ratón con hover fino. */
@media (hover: hover) and (pointer: fine) {
  .brand-plaque:hover .brand-plaque-flip {
    transform: rotateX(180deg) translateY(-4px);
    box-shadow: 0 18px 36px rgba(42, 32, 38, 0.12);
  }
}

/* Teclado y táctil (foco): mismo volteo. */
.brand-plaque:focus-within .brand-plaque-flip {
  transform: rotateX(180deg) translateY(-4px);
  box-shadow: 0 18px 36px rgba(42, 32, 38, 0.12);
}

/* Ritmo visual sin transform (no rompe preserve-3d). */
.brand-plaque:nth-child(1) {
  margin-top: 0.35rem;
}

.brand-plaque:nth-child(2) {
  margin-top: 0;
}

.brand-plaque:nth-child(3) {
  margin-top: 0.5rem;
}

.brand-plaque:nth-child(4) {
  margin-top: 0.1rem;
}

.brand-plaque:nth-child(5) {
  margin-top: 0.45rem;
}

.brand-plaque:nth-child(6) {
  margin-top: 0.15rem;
}

.brand-plaque:nth-child(7) {
  margin-top: 0.4rem;
}

.brand-plaque:nth-child(8) {
  margin-top: 0.05rem;
}

.brand-plaque:nth-child(9) {
  margin-top: 0.35rem;
}

.brand-plaque:hover,
.brand-plaque:focus-within {
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .brand-plaque-flip {
    transition-duration: 0.01ms;
  }

  .brand-plaque:hover .brand-plaque-flip,
  .brand-plaque:focus-within .brand-plaque-flip {
    transform: rotateX(0deg);
    box-shadow: none;
  }

  .brand-plaque:nth-child(1),
  .brand-plaque:nth-child(2),
  .brand-plaque:nth-child(3),
  .brand-plaque:nth-child(4),
  .brand-plaque:nth-child(5),
  .brand-plaque:nth-child(6),
  .brand-plaque:nth-child(7),
  .brand-plaque:nth-child(8),
  .brand-plaque:nth-child(9) {
    margin-top: 0;
  }
}

/* Móvil/tablet: rejilla estable (evita min(100%, …) en flex, que colapsa las placas). */
@media (max-width: 768px) {
  .brands-deck {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0.75rem;
    max-width: 24rem;
    padding-top: 1rem;
    align-items: stretch;
    justify-items: center;
  }

  .brand-plaque {
    flex: none;
    width: 100%;
    max-width: 11.5rem;
    margin-top: 0 !important;
  }

  .brand-plaque-flip {
    width: 100%;
    max-width: 11.5rem;
    min-height: 5.35rem;
    margin-inline: auto;
  }

  .brand-plaque-face {
    padding: 0.65rem 0.85rem;
  }

  .brand-plaque-face--back img {
    max-height: 3.35rem;
  }

  .brand-plaque-name {
    font-size: 0.88rem;
  }
}

@media (max-width: 400px) {
  .brands-deck {
    grid-template-columns: 1fr;
    max-width: 13.5rem;
  }
}

/* Testimonios: fondo beige/dorado; contraste con secciones en rosa. */
.section.section-testimonials {
  background: linear-gradient(165deg, #f6f2eb 0%, #ebe6df 38%, #efefef 72%);
  padding-bottom: 3.5rem;
}

.testimonials-spotlight-wrap {
  margin-top: 0.5rem;
}

.testimonials-spotlight {
  position: relative;
  margin: 0;
  padding: 2.1rem clamp(1rem, 3.2vw, 2.25rem) 1.75rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffefb 0%, #faf7f2 100%);
  border: 1px solid rgba(173, 138, 103, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 40px rgba(62, 45, 29, 0.07);
  overflow: hidden;
}

.testimonials-spotlight::before {
  content: "\201C";
  position: absolute;
  left: 0.35rem;
  top: -0.15rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.5rem, 18vw, 7.5rem);
  line-height: 1;
  color: rgba(173, 138, 103, 0.14);
  pointer-events: none;
}

.testimonials-spotlight-kicker {
  position: relative;
  max-width: min(100%, 92ch);
  margin: 0 auto 1.35rem;
  padding: 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.15;
  text-align: center;
  color: #202124;
}

.testimonials-spotlight-body {
  position: relative;
  width: 100%;
  max-width: min(100%, 92ch);
  margin: 0 auto 1.35rem;
  padding: 0;
  text-align: center;
}

.testimonials-spotlight-body p {
  margin: 0 0 1.05rem;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.72;
  color: #3a3d42;
}

.testimonials-spotlight-body p:last-child {
  margin-bottom: 0;
}

.testimonials-spotlight footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: normal;
  font-weight: 700;
}

.testimonials-spotlight-name {
  color: #202124;
}

.testimonials-spotlight-role {
  color: #5a4028;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.testimonials-scroll-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #6a6e75;
  letter-spacing: 0.02em;
}

.testimonials-scroll-hint a {
  color: #5a4028;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.testimonials-scroll-hint a:hover {
  color: var(--gold);
}

.testimonials-orbit {
  margin-top: 1.75rem;
  padding: 1.25rem 0 1.75rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(4vw, calc((100% - min(1180px, 92%)) / 2));
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(173, 138, 103, 0.55) rgba(0, 0, 0, 0.06);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.testimonials-orbit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.testimonials-orbit-track {
  display: flex;
  gap: 1.15rem;
  width: max-content;
  padding-inline: max(4vw, calc((100vw - min(1180px, 92%)) / 2));
  padding-bottom: 0.35rem;
}

.testimonial-tag {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: min(292px, 82vw);
  margin: 0.85rem 0 0;
  padding: 1.85rem 1.15rem 1.1rem;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(32, 33, 36, 0.08);
  transform: rotate(-2.2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}

.testimonials-orbit-track .testimonial-tag:nth-child(even) {
  transform: rotate(2.4deg) translateY(6px);
}

.testimonial-tag:hover {
  transform: rotate(0deg) translateY(-6px);
  border-color: rgba(173, 138, 103, 0.45);
  box-shadow: 0 16px 36px rgba(62, 45, 29, 0.12);
  z-index: 2;
}

.testimonials-orbit-track .testimonial-tag:nth-child(even):hover {
  transform: rotate(0deg) translateY(-6px);
}

.testimonial-tag-ring {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -0.55rem;
  border-radius: 50%;
  background: linear-gradient(165deg, #f6f2eb, #e8dfd4);
  border: 2px solid rgba(173, 138, 103, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 2px 4px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  line-height: 1;
  text-align: center;
}

.testimonial-tag-title {
  margin: 0 0 0.65rem;
  padding: 0 0.15rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.28;
  text-align: center;
  color: #202124;
}

.testimonial-tag blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.58;
  text-align: center;
  color: #3a3d42;
}

.testimonial-tag figcaption {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(173, 138, 103, 0.35);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.02rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: none;
  color: #202124;
}

.testimonials-footnote {
  margin-top: 1.5rem;
}

.testimonials-footnote p {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #70757c;
  max-width: 62ch;
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-tag,
  .testimonials-orbit-track .testimonial-tag:nth-child(even) {
    transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .testimonial-tag:hover,
  .testimonials-orbit-track .testimonial-tag:nth-child(even):hover {
    transform: none;
  }
}

.pillars .card {
  min-height: 250px;
}

.section-treatments {
  position: relative;
  overflow: hidden;
}

.treatments-slider {
  position: relative;
  margin-top: 1.25rem;
  --treatments-content-max: min(1180px, 92vw);
}

.treatments-slider__stage {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 620px;
}

.treatments-timer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  height: 4px;
  background: rgba(191, 149, 63, 0.28);
}

.treatments-timer__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #b8892f 0%, #d4af62 100%);
}

.treatments-slider__viewport {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
}

.treatments-slide {
  position: absolute;
  inset: 0;
  background: var(--treatment-image) center / cover no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.65s ease, transform 1.15s ease;
}

.treatments-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.treatments-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    98deg,
    rgba(14, 12, 10, 0.74) 0%,
    rgba(14, 12, 10, 0.58) 33%,
    rgba(14, 12, 10, 0.28) 62%,
    rgba(14, 12, 10, 0.08) 100%
  );
}

.treatments-slider.is-elegant-transitioning .treatments-stack,
.treatments-slider.is-elegant-transitioning .treatments-controls {
  pointer-events: none;
}

.treatments-slider.is-elegant-transitioning .treatments-slider__details-wrap {
  opacity: 0;
  transform: translateY(14px);
}

.treatments-slider__details-wrap {
  transition: opacity 0.28s ease, transform 0.35s ease;
}

.treatments-stack {
  position: absolute;
  right: max(1rem, calc((100vw - var(--treatments-content-max)) / 2));
  bottom: clamp(6.8rem, 9vw, 8.4rem);
  display: flex;
  align-items: stretch;
  gap: clamp(0.55rem, 1.1vw, 0.95rem);
  z-index: 4;
}

.treatments-stack-card {
  width: clamp(110px, 10vw, 156px);
  height: clamp(170px, 18.5vw, 232px);
  border-radius: 10px;
  background: var(--treatment-image) center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  opacity: 0.84;
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.treatments-stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 13, 11, 0.08) 0%, rgba(15, 13, 11, 0.68) 100%);
}

.treatments-stack-card__content {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 1;
  color: #fff;
}

.treatments-stack-card__label {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.82;
}

.treatments-stack-card__title {
  margin: 0;
  font-size: clamp(0.8rem, 1.1vw, 0.96rem);
  line-height: 1.16;
  text-transform: uppercase;
  color: #fff;
}

.treatments-stack-card.is-active {
  opacity: 1;
  transform: translateY(-8px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.treatments-stack-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

@media (min-width: 981px) {
  .treatments-stack-card.is-hidden-desktop {
    display: none;
  }
}

@media (max-width: 980px) {
  .treatments-stack-card.is-hidden-mobile {
    display: none;
  }
}

.treatments-slider__details-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(2.1rem, 7vw, 4.6rem);
  z-index: 5;
}

.treatments-details {
  color: #fff;
  max-width: min(40rem, 92%);
  margin-top: 0;
  margin-left: 0;
  padding-right: 0.5rem;
}

.treatments-details.is-transitioning {
  opacity: 0.55;
  transform: translateY(10px);
}

.treatments-details__kicker {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f0dcb6;
}

.treatments-details__title {
  margin: 0;
  font-family: "Rajdhani", "Inter", Arial, sans-serif;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0.1em 0.35em rgba(0, 0, 0, 0.48);
}

.treatments-details__desc {
  margin: 0.9rem 0 0;
  max-width: 56ch;
  line-height: 1.55;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 0.1em 0.25em rgba(0, 0, 0, 0.42);
}

.treatments-details__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.treatments-details__actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.92);
  color: #ffffff;
  background: rgba(18, 16, 15, 0.46);
  backdrop-filter: blur(1.5px);
  text-shadow: 0 0.08em 0.22em rgba(0, 0, 0, 0.4);
  box-shadow:
    0 0.22rem 0.55rem rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.treatments-details__actions .btn-outline:hover,
.treatments-details__actions .btn-outline:focus-visible {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(18, 16, 15, 0.62);
  box-shadow:
    0 0.22rem 0.55rem rgba(0, 0, 0, 0.4),
    0 0.45rem 1.25rem rgba(0, 0, 0, 0.26),
    0 0 0.85rem rgba(210, 182, 134, 0.2);
}

.treatments-controls {
  position: absolute;
  left: auto;
  right: max(1rem, calc((100vw - var(--treatments-content-max)) / 2));
  bottom: 1.35rem;
  z-index: 5;
  /* Más compacto para que las flechas arranquen alineadas con el borde izquierdo del stack. */
  width: clamp(360px, 39vw, 470px);
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem 1rem;
  flex-wrap: wrap;
}

.treatments-arrow {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 0 0.08em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.treatments-arrow[data-treatment-prev] {
  background: transparent;
  box-shadow: none;
}

.treatments-arrow[data-treatment-next] {
  background: transparent;
  box-shadow: none;
}

.treatments-arrow:hover,
.treatments-arrow:focus-visible {
  border-color: #fff;
  transform: translateY(-1px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
}

.treatments-progress {
  flex: 1;
  min-width: 230px;
  max-width: 470px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.treatments-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  transition: width 0.35s ease;
}

.treatments-counter {
  min-width: 2.4rem;
  text-align: right;
  color: #fff;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  font-family: "Rajdhani", "Inter", Arial, sans-serif;
  letter-spacing: 0.01em;
}

@media (max-width: 980px) {
  .treatments-slider__stage {
    min-height: 700px;
  }

  .treatments-slider__viewport {
    border-radius: 0;
  }

  .treatments-stack {
    right: 0.7rem;
    left: 0.7rem;
    justify-content: center;
    bottom: 8.25rem;
  }

  .treatments-stack-card {
    width: min(30%, 134px);
    height: 170px;
  }

  .treatments-details {
    margin-top: 0;
    margin-left: 0;
    max-width: 100%;
  }

  .treatments-details__desc {
    max-width: 100%;
  }

  .treatments-controls {
    left: 0.7rem;
    right: 0.7rem;
    width: auto;
    justify-content: center;
    bottom: 1.15rem;
    margin-top: 0;
  }

  .treatments-counter {
    font-size: 1.35rem;
  }
}

@media (max-width: 640px) {
  .treatments-slider__stage {
    min-height: 640px;
  }

  .treatments-stack-card {
    height: 132px;
  }

  .treatments-stack-card__title {
    font-size: 0.8rem;
  }

  .treatments-details__title {
    font-size: clamp(1.7rem, 8.2vw, 2.45rem);
  }

  .treatments-details__actions .btn-outline,
  .treatments-details__actions .btn-gold {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .treatments-timer {
    display: none;
  }

  .treatments-slide,
  .treatments-stack-card,
  .treatments-progress__bar,
  .treatments-details {
    transition: none;
  }
}

.mini-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.3rem;
}

.clinic-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.clinic-meta li {
  color: #585d63;
}

.clinic-meta strong {
  color: var(--rose-deep);
}

.footer {
  border-top: 1px solid rgba(210, 182, 134, 0.28);
  box-shadow: 0 -1px 0 rgba(214, 160, 175, 0.12);
  background: #2a2a2a;
  padding: 2.2rem 0;
}

.footer-widget-brand {
  min-width: 0;
}

.footer .footer-widget-brand .brand-block--footer {
  margin-bottom: 0.85rem;
}

.footer .footer-widget-brand .footer-brand-logo {
  height: 54px;
  width: auto;
}

.footer .footer-widget-brand .brand-tagline__line2 {
  white-space: normal;
  max-width: 18rem;
}

.footer .footer-widget-brand .footer-brand-intro {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  margin-top: 0.95rem;
}

.footer-social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: 2.2px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.footer-social-link--facebook,
.footer-social-link--instagram {
  border: none;
}

.footer-social-link--facebook > i,
.footer-social-link--instagram > i {
  font-size: 2rem;
  line-height: 1;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--gold-2);
  border-color: rgba(210, 182, 134, 0.55);
  transform: translateY(-1px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.footer p,
.footer li {
  color: var(--text);
  opacity: 0.82;
  line-height: 1.55;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.5rem;
  opacity: 1;
}

.footer-widget-contact .footer-contact-lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-contact-ico {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.12rem;
  color: #1a1a1a;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-ico svg {
  display: block;
}

.footer-widget-contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-widget-contact a:hover,
.footer-widget-contact a:focus-visible {
  color: var(--gold-2);
  border-bottom-color: rgba(210, 182, 134, 0.45);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.88;
}

.footer-legal-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(237, 237, 237, 0.45);
  border-bottom: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--gold-2);
  text-decoration-color: rgba(210, 182, 134, 0.65);
}

.footer-legal-sep {
  opacity: 0.55;
  user-select: none;
  white-space: pre;
}

.copyright {
  border-top: 1px solid rgba(214, 160, 175, 0.18);
  margin-top: 1.2rem;
  padding-top: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
  opacity: 0.9;
}

@media (max-width: 980px) {
  .cards,
  .cards.cols-3,
  .cards.cols-4,
  .why-grid,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar-gold-rule {
    display: none;
  }

  .topbar-rows {
    flex-direction: column;
    align-items: stretch;
    width: min(1180px, 92%);
    margin: 0 auto;
    min-height: 0;
  }

  .topbar-row-bleed.topbar-row-main {
    width: 100%;
    flex: none;
  }

  .topbar-row-main .topbar-row-inner {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: var(--topbar-pad-y-main) 0;
    gap: 0.75rem;
  }

  .topbar-row-bleed.topbar-row-nav {
    flex: none;
    height: 0;
    min-height: 0;
    overflow: visible;
    padding: 0;
    margin: 0;
    border: 0;
  }

  .topbar-row-nav .topbar-row-inner {
    display: block;
    height: 0;
    min-height: 0;
    padding: 0 !important;
    overflow: visible;
    position: relative;
  }

  .top-right-links {
    display: none !important;
  }

  /* En móvil el icono de buscar deja de estar en la cabecera y vive dentro del menú desplegable. */
  .topbar-nav-end {
    position: static;
    display: none;
    margin: 0;
    gap: 0;
  }

  .topbar.nav-open .topbar-nav-end {
    display: flex;
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    z-index: 61;
    padding: 0.85rem 1rem 0 0;
    background: transparent;
  }

  .topbar.nav-open .search-toggle--nav-row {
    color: #fff;
  }

  .topbar.nav-open .search-toggle--nav-row:hover,
  .topbar.nav-open .search-toggle--nav-row:focus-visible {
    color: var(--gold-2);
  }

  .desktop-logo {
    display: none;
  }

  .mobile-logo {
    display: block;
    height: 50px;
  }

  .menu-toggle {
    display: inline-flex !important;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
  }

  .brand-block {
    gap: 0.28rem;
    min-width: 0;
    flex: 1;
  }

  .brand-tagline {
    min-width: 0;
  }

  .brand-tagline__line1 {
    font-size: 0.97rem;
  }

  .brand-tagline__line2 {
    font-size: 0.69rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(24ch, 46vw);
  }

  .site-search-form {
    top: auto;
    bottom: 8px;
    right: 8px;
    left: 8px;
    width: auto;
  }

  .error-404-search {
    flex-direction: column;
  }

  .error-404-search .site-search-submit {
    width: 100%;
  }

  .contact-page .contact-form-shell {
    padding: 1rem;
  }

  .top-nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1rem 1rem;
    background: rgba(20, 20, 20, 0.98);
    border-bottom: 1px solid var(--gold-2);
  }

  .topbar.nav-open .top-nav {
    display: flex;
    padding-right: 3rem;
  }

  .top-nav--divided > * + * {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
    padding-top: 0.45rem;
    margin-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
  }

  .mega {
    position: static;
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.45rem;
    display: none;
    background: rgba(255, 255, 255, 0.02);
  }

  .top-nav .nav-dd {
    width: 100%;
  }

  .top-nav .nav-dd.open .mega {
    display: grid;
  }

  .top-nav li.menu-item-has-children {
    width: 100%;
  }

  .top-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 0.45rem;
    padding: 0.35rem 0.5rem;
    border: 0;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    width: 100%;
    min-width: 0;
  }

  .top-nav li.menu-item-has-children.open > .sub-menu {
    display: block;
  }

  .top-nav .sub-menu .sub-menu {
    margin-left: 0.75rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-slide {
    padding: 3.25rem 0 4.75rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  /* Móvil: controles del slider alineados a la derecha para no taparse con los CTAs del slide. */
  .hero-controls {
    left: auto;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    transform: none;
  }

  .hero-content--half .hero-title-split {
    font-size: clamp(1.45rem, 5.5vw, 2.1rem);
    letter-spacing: 0.04em;
  }

  /* Móvil: la slide 1 (hero-content--half) deja de limitarse a 50vw para no romper palabras. */
  .hero-slide > .hero-content.hero-content--half .hero-copy {
    max-width: min(100%, 42rem);
  }

  main {
    padding-top: var(--hero-viewport-top-inset);
  }

  main.section {
    padding-top: calc(var(--hero-viewport-top-inset) + 1.25rem);
    padding-bottom: 4.2rem;
  }

  .clinic-about-hero__inner {
    grid-template-columns: 1fr;
  }

  /* Móvil: titular y CTAs primero; imagen destacada debajo (mejor lectura y conversión). */
  .clinic-about-hero__copy {
    text-align: center;
  }

  .clinic-about-hero__copy .eyebrow {
    text-align: center;
  }

  .clinic-about-hero__copy h1 {
    margin-inline: auto;
    text-align: center;
    max-width: 100%;
  }

  .clinic-about-lead {
    margin-inline: auto;
    text-align: center;
  }

  .clinic-about-hero__actions {
    justify-content: center;
  }

  .clinic-about-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .clinic-about-cta__actions {
    justify-content: center;
  }
}

/* Página «Nuestra clínica»: hero + cuerpo editorial + galería (alineado al resto del sitio). */
main.clinic-about-page {
  padding-top: var(--hero-viewport-top-inset);
  padding-bottom: 0;
}

.clinic-about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.25rem, 5vw, 3.75rem);
  background:
    repeating-linear-gradient(
      -8deg,
      transparent 0,
      transparent 18px,
      rgba(173, 138, 103, 0.045) 18px,
      rgba(173, 138, 103, 0.045) 19px
    ),
    linear-gradient(185deg, #fffefb 0%, var(--rose-50) 42%, #f5e8ec 100%);
  border-bottom: 1px solid rgba(200, 155, 168, 0.22);
}

/* Imagen destacada = fondo a todo el ancho del encabezado (título encima). */
.clinic-about-hero--has-bg {
  display: flex;
  align-items: center;
  min-height: clamp(400px, 56vh, 680px);
  padding: clamp(2.75rem, 6.5vw, 4.5rem) 0;
  background: #252220;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.clinic-about-hero--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      to bottom,
      rgba(14, 12, 10, 0.58) 0%,
      rgba(14, 12, 10, 0.32) 45%,
      rgba(14, 12, 10, 0.5) 100%
    ),
    var(--clinic-hero-bg);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.clinic-about-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Sin imagen destacada: bloque centrado. */
.clinic-about-hero--no-image .clinic-about-hero__inner {
  display: flex;
  justify-content: center;
}

.clinic-about-hero--no-image .clinic-about-hero__copy {
  text-align: center;
  max-width: 46rem;
}

.clinic-about-hero--no-image .clinic-about-hero__copy .eyebrow {
  text-align: center;
}

.clinic-about-hero--no-image .clinic-about-hero__copy h1 {
  margin-inline: auto;
  text-align: center;
  max-width: 100%;
}

.clinic-about-hero--no-image .clinic-about-lead {
  margin-inline: auto;
  text-align: center;
}

.clinic-about-hero--no-image .clinic-about-hero__actions {
  justify-content: center;
}

.clinic-about-hero--has-bg .clinic-about-hero__inner {
  display: flex;
  justify-content: center;
}

.clinic-about-hero--has-bg .clinic-about-hero__copy {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.clinic-about-hero--has-bg .clinic-about-hero__copy .eyebrow {
  color: #f0dcb6;
  text-align: center;
}

.clinic-about-hero--has-bg .clinic-about-hero__copy h1 {
  color: #fff;
  margin-inline: auto;
  text-align: center;
  text-shadow:
    0 0.06em 0.38em rgba(0, 0, 0, 0.45),
    0 0.1em 0.75em rgba(0, 0, 0, 0.25);
  max-width: min(100%, 40rem);
}

.clinic-about-hero--has-bg .clinic-about-lead {
  color: rgba(255, 255, 255, 0.92);
  margin-inline: auto;
  text-align: center;
  text-shadow: 0 0.08em 0.22em rgba(0, 0, 0, 0.35);
}

.clinic-about-hero--has-bg .clinic-about-hero__actions {
  justify-content: center;
}

.clinic-about-hero--has-bg .btn-gold {
  box-shadow:
    0 0.22rem 0.55rem rgba(0, 0, 0, 0.42),
    0 0.45rem 1.35rem rgba(0, 0, 0, 0.3);
}

.clinic-about-hero--has-bg .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(34, 30, 28, 0.42);
  backdrop-filter: blur(1.5px);
  box-shadow:
    0 0.22rem 0.55rem rgba(0, 0, 0, 0.38),
    0 0.45rem 1.25rem rgba(0, 0, 0, 0.26);
}

.clinic-about-hero--has-bg .btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(28, 24, 22, 0.55);
  box-shadow:
    0 0.22rem 0.55rem rgba(0, 0, 0, 0.38),
    0 0.45rem 1.25rem rgba(0, 0, 0, 0.26),
    0 0 0.85rem rgba(210, 182, 134, 0.18);
}

/* Botón secundario legible sobre fondo claro del hero (sin foto). */
.clinic-about-hero--no-image .btn-outline {
  border-color: rgba(32, 33, 36, 0.42);
  color: #202124;
  background: rgba(255, 255, 255, 0.72);
}

.clinic-about-hero--no-image .btn-outline:hover {
  border-color: var(--gold);
  color: #3e2d1d;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(214, 160, 175, 0.22);
}

.clinic-about-cta .btn-outline {
  border-color: rgba(32, 33, 36, 0.42);
  color: #202124;
  background: rgba(255, 255, 255, 0.55);
}

.clinic-about-cta .btn-outline:hover {
  border-color: var(--gold);
  color: #3e2d1d;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(214, 160, 175, 0.22);
}

.clinic-about-hero__copy .eyebrow {
  margin-bottom: 0.5rem;
}

/* ® en título: superscript compacto, alineado con el cuerpo del texto. */
.clinic-about-hero__copy h1 .title-reg-mark {
  font-size: 0.42em;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
  position: relative;
  top: -0.06em;
  margin-left: 0.06em;
  letter-spacing: 0;
}

.clinic-about-hero__copy h1 {
  margin: 0 0 0.85rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  color: #202124;
  text-align: left;
  max-width: min(100%, 22rem);
}

.clinic-about-lead {
  margin: 0 0 1.35rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.65;
  color: #564a52;
}

.clinic-about-hero__actions {
  justify-content: flex-start;
}

.clinic-about-body {
  padding-top: clamp(3rem, 6vw, 4.25rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.clinic-about-entry {
  max-width: clamp(68ch, 78vw, 96ch);
  margin-inline: auto;
  color: #3a3d42;
  font-size: 1.02rem;
  line-height: 1.72;
}

.clinic-about-entry > *:first-child {
  margin-top: 0;
}

.clinic-about-entry h2,
.clinic-about-entry h3 {
  margin: 2.25rem 0 0.85rem;
  font-family: "Cormorant Garamond", serif;
  color: #202124;
  line-height: 1.2;
}

.clinic-about-entry h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
}

.clinic-about-entry h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
}

.clinic-about-entry p {
  margin: 0 0 1.1rem;
}

.clinic-about-entry ul,
.clinic-about-entry ol {
  margin: 0 0 1.35rem;
  padding-left: 1.25rem;
}

.clinic-about-entry li + li {
  margin-top: 0.4rem;
}

.clinic-about-entry a {
  color: var(--rose-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(155, 85, 104, 0.45);
}

.clinic-about-entry a:hover {
  color: #7a3d4d;
  text-decoration-color: rgba(122, 61, 77, 0.65);
}

.clinic-about-entry .wp-block-image img,
.clinic-about-entry figure img {
  border-radius: 12px;
  border: 1px solid rgba(200, 155, 168, 0.28);
  box-shadow: 0 12px 28px rgba(32, 33, 36, 0.08);
  display: block;
  height: auto;
  max-width: 100%;
}

/* Pie de foto debajo de la imagen (figcaption / .wp-caption-text). */
.clinic-about-entry figure {
  margin: 1.6rem 0;
}

.clinic-about-entry figure figcaption,
.clinic-about-entry .wp-caption-text,
.clinic-about-entry .wp-block-image figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.45;
  color: #6b6e74;
  text-align: center;
}

/* Imagen flotada a la izquierda: el texto fluye a su derecha. */
.clinic-about-entry .alignleft,
.clinic-about-entry img.alignleft,
.clinic-about-entry figure.alignleft,
.clinic-about-entry .wp-block-image.alignleft {
  float: left;
  margin: 0.4rem 1.75rem 1.25rem 0;
  max-width: 50%;
}

/* Imagen flotada a la derecha: el texto fluye a su izquierda. */
.clinic-about-entry .alignright,
.clinic-about-entry img.alignright,
.clinic-about-entry figure.alignright,
.clinic-about-entry .wp-block-image.alignright {
  float: right;
  margin: 0.4rem 0 1.25rem 1.75rem;
  max-width: 50%;
}

/* Imagen centrada en su propia línea (sin float). */
.clinic-about-entry .aligncenter,
.clinic-about-entry img.aligncenter,
.clinic-about-entry figure.aligncenter,
.clinic-about-entry .wp-block-image.aligncenter {
  display: block;
  float: none;
  margin-left: auto;
  margin-right: auto;
}

/* Cierra los floats al final del contenido para que el siguiente bloque no se monte. */
.clinic-about-entry::after {
  content: "";
  display: block;
  clear: both;
}

/* En móvil las imágenes flotadas pasan a ancho completo para no estrechar la lectura. */
@media (max-width: 720px) {
  .clinic-about-entry .alignleft,
  .clinic-about-entry img.alignleft,
  .clinic-about-entry figure.alignleft,
  .clinic-about-entry .wp-block-image.alignleft,
  .clinic-about-entry .alignright,
  .clinic-about-entry img.alignright,
  .clinic-about-entry figure.alignright,
  .clinic-about-entry .wp-block-image.alignright {
    float: none;
    max-width: 100%;
    margin: 1.25rem auto;
  }
}

.clinic-about-entry .gallery,
.clinic-about-entry .blocks-gallery-grid {
  display: grid !important;
  gap: 0.85rem !important;
  margin: 2rem 0 !important;
}

.clinic-about-entry .gallery-columns-5 .gallery-item,
.clinic-about-entry .wp-block-gallery.columns-5 .blocks-gallery-item {
  width: auto !important;
}

.clinic-about-entry .gallery-item img,
.clinic-about-entry .blocks-gallery-item img {
  border-radius: 10px;
  border: 1px solid rgba(200, 155, 168, 0.25);
  box-shadow: 0 8px 20px rgba(32, 33, 36, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .clinic-about-entry .gallery-item img:hover,
  .clinic-about-entry .blocks-gallery-item img:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(32, 33, 36, 0.11);
  }
}

.clinic-about-entry .alignwide {
  max-width: min(100%, 68rem);
  margin-left: auto;
  margin-right: auto;
}

.clinic-about-cta {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: linear-gradient(165deg, #f6f2eb 0%, #ebe6df 45%, #efefef 88%);
  border-top: 1px solid rgba(173, 138, 103, 0.28);
}

.clinic-about-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  max-width: 56rem;
  margin-inline: auto;
}

.clinic-about-cta__text {
  margin: 0;
  max-width: 42ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  color: #202124;
}

.clinic-about-cta__actions {
  flex-shrink: 0;
}

/* =========================================================
   Botón flotante de WhatsApp (HR Clinic)
   ========================================================= */
.hrclinic-wa-float {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
  z-index: 9000;
  width: 50px;
  height: 50px;
  box-sizing: border-box;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  line-height: 0;
  overflow: visible;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

.hrclinic-wa-float:hover,
.hrclinic-wa-float:focus-visible {
  transform: translateY(-2px) scale(1.04);
  outline: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hrclinic-wa-float__icon {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

.hrclinic-wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.55);
  z-index: 1;
  animation: hrclinic-wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes hrclinic-wa-pulse {
  0%   { transform: scale(0.85); opacity: 0.6; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hrclinic-wa-float,
  .hrclinic-wa-float__pulse {
    animation: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .hrclinic-wa-float {
    width: 44px;
    height: 44px;
    padding: 4px;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }
}
