/* =============================================================
   Aureva Clinics — style.css
   CSS no crítico: se carga asíncrono vía preload en head.php.
   El CSS crítico (navbar + hero + tokens + Bootstrap mínimo)
   está inline en head.php para garantizar LCP sin bloqueo.
   ============================================================= */

/* ─── Scrollbar ─────────────────────────────────────────────── */
::selection        { background: var(--gold); color: #fff }
::-webkit-scrollbar       { width: 10px }
::-webkit-scrollbar-thumb { background-color: var(--gold) }
::-webkit-scrollbar-thumb:hover { background-color: var(--brown) }
::-webkit-scrollbar-track { background-color: var(--cream) }

/* ─── Tipografía base — override Bootstrap reboot ───────────────
   Bootstrap redefine --bs-body-font-family en su :root, lo que
   pisa la regla body del CSS crítico inline al cargar async.
   El !important aquí es necesario y justificado: queremos Raleway
   siempre, independientemente del orden de carga de Bootstrap.  */
body { font-family: 'Raleway', sans-serif !important }

/* ─── Bootstrap: columnas y utilidades below-fold ────────────
   Incluimos el subconjunto que usan nuestras secciones para
   que no haya FOUC mientras carga Bootstrap completo. ──────── */
@media (min-width: 576px) {
  .col-sm-6  { flex: 0 0 auto; width: 50% }
}
@media (min-width: 768px) {
  .col-md-3  { flex: 0 0 auto; width: 25% }
  .col-md-6  { flex: 0 0 auto; width: 50% }
}
@media (min-width: 992px) {
  .col-lg-4  { flex: 0 0 auto; width: 33.3333% }
  .col-lg-5  { flex: 0 0 auto; width: 41.6667% }
  .col-lg-7  { flex: 0 0 auto; width: 58.3333% }
  .col-lg-8  { flex: 0 0 auto; width: 66.6667% }
  .col-lg-9  { flex: 0 0 auto; width: 75% }
  .col-lg-6  { flex: 0 0 auto; width: 50% }
  .offset-lg-1 { margin-left: 8.3333% }
  .gx-lg-5   { --bs-gutter-x: 3rem }
}
.col-6  { flex: 0 0 auto; width: 50% }
.col-12 { flex: 0 0 auto; width: 100% }
.gy-4   { --bs-gutter-y: 1.5rem }
.gy-5   { --bs-gutter-y: 3rem }
.py-3   { padding-top: 1rem !important; padding-bottom: 1rem !important }
.py-4   { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important }
.py-5   { padding-top: 3rem !important; padding-bottom: 3rem !important }
.pt-3   { padding-top: 1rem !important }
.pt-5   { padding-top: 3rem !important }
.pb-0   { padding-bottom: 0 !important }
.pb-5   { padding-bottom: 3rem !important }
.mt-3   { margin-top: 1rem !important }
.mt-4   { margin-top: 1.5rem !important }
.mt-5   { margin-top: 3rem !important }
.mb-0   { margin-bottom: 0 !important }
.mb-2   { margin-bottom: .5rem !important }
.mb-5   { margin-bottom: 3rem !important }
.me-1   { margin-right: .25rem !important }
.ms-3   { margin-left: 1rem !important }
.ms-auto { margin-left: auto !important }
.pe-lg-4 { padding-right: 1.5rem }
@media (min-width: 992px) { .pe-lg-4 { padding-right: 1.5rem !important } }
.justify-content-center  { justify-content: center !important }
.justify-content-between { justify-content: space-between !important }
.flex-column  { flex-direction: column !important }
.flex-shrink-0 { flex-shrink: 0 !important }
.flex-fill   { flex: 1 1 auto !important }
.align-items-baseline { align-items: baseline !important }
.overflow-hidden { overflow: hidden !important }
.position-absolute { position: absolute !important }
.d-block { display: block !important }
.d-inline-flex { display: inline-flex !important }
.h-100  { height: 100% !important }
.img-fluid { max-width: 100%; height: auto }
.rounded-2 { border-radius: .375rem !important }
.border-0  { border: 0 !important }
.gap-2  { gap: .5rem !important }
.small  { font-size: .875em }
.rel    { position: relative; z-index: 1 }

/* ─── Stats strip ────────────────────────────────────────────
   (se mantiene aquí aunque está visualmente cerca del fold;
    el token de color ya está en critical) ───────────────────  */
.stats-strip { background: var(--sand) }
.stat-num    { font-family: 'Tenor Sans', serif; font-size: 2.4rem; color: var(--brown); line-height: 1 }
.stat-label  { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dark); font-weight: 500; margin-top: .3rem }

/* ─── Intro ──────────────────────────────────────────────────── */
.intro-img-wrap img { width: 100%; height: 520px; object-fit: cover }
.intro-badge {
  position: absolute; bottom: -30px; left: -30px;
  background: var(--gold); color: var(--white);
  padding: 1.8rem 2.2rem; font-family: 'Tenor Sans', serif;
  font-size: 1.05rem; text-align: center; line-height: 1.4; min-width: 170px;
}
.intro-badge strong { display: block; font-size: 2.1rem }

/* ─── Benefit cards ──────────────────────────────────────────── */
.ben-card {
  background: var(--white); padding: 2.4rem 2rem; height: 100%;
  border-bottom: 2px solid transparent; transition: box-shadow .25s, transform .25s;
}
.ben-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--brown);
}
.ben-card > .ben-icon { margin-bottom: 1.8rem }
.ben-card h5 { font-size: 1rem; color: var(--dark); margin-bottom: .6rem; font-family: 'Tenor Sans', serif }
.ben-card p  { font-size: .88rem; color: var(--dark); line-height: 1.7; margin: 0 }

/* ─── Step cards ─────────────────────────────────────────────── */
.step-card { border-left: 2px solid var(--gold); padding: 1.2rem 1.8rem; background: rgba(255,255,255,.55); height: 100% }
.step-num  { font-family: 'Tenor Sans', serif; font-size: 3.5rem; color: rgba(131,90,55,.15); line-height: 1; margin-bottom: .2rem }
.step-card h5 { font-size: 1rem; color: var(--dark); margin-bottom: .5rem; font-family: 'Tenor Sans', serif }
.step-card p  { font-size: .87rem; color: var(--dark); line-height: 1.7; margin: 0 }

/* ─── Process ────────────────────────────────────────────────── */
.sc  { text-align: center; padding: 36px 20px }
.snb { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--white); font-family: 'Tenor Sans', serif; font-size: 1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px }
.siw { width: 68px; height: 68px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 18px rgba(203,163,130,.22) }
.siw i { font-size: 1.3rem; color: var(--gold) }
.sc h4 { font-size: 1.05rem; color: var(--dark); margin-bottom: 10px }
.sc p  { font-size: .84rem; font-weight: 300; line-height: 1.7; opacity: .8 }

/* ─── Benefits ───────────────────────────────────────────────── */
#beneficios::before {
  content: 'AUREVA'; position: absolute; top: -2rem; right: -2rem;
  font-family: 'Tenor Sans', serif; font-size: 18rem; color: rgba(203,163,130,.04);
  line-height: 1; user-select: none; pointer-events: none;
}
.benefit-card  { padding: 2rem 0 }
.benefit-title { font-family: 'Tenor Sans', serif; font-size: 1.2rem; color: var(--white); margin: .4rem 0 .6rem }
.benefit-desc  { font-size: .85rem; font-weight: 300; color: var(--ash); line-height: 1.7 }
.benefit-icon  { font-size: 1.5rem; color: var(--sand); margin-bottom: .5rem }

/* ─── Testimonials ───────────────────────────────────────────── */
.testi-card   { background: rgba(255,255,255,.06); border: 1px solid rgba(203,163,130,.25); padding: 2.4rem; height: 100% }
.testi-text   { font-size: .9rem; color: var(--ash); line-height: 1.75; font-style: italic; margin-bottom: 1.4rem }
.testi-author { font-size: .82rem; font-weight: 600; color: var(--gold); letter-spacing: .08em }
.testi-detail { font-size: .78rem; color: var(--ash) }
.testi-stars  { color: var(--gold); font-size: .8rem; margin-bottom: .9rem }
.testi-stars > i  { margin-right: .2rem }

/* ─── CTA mid ────────────────────────────────────────────────── */
.cta-mid { background: linear-gradient(135deg, var(--brown) 0%, var(--dark) 100%); position: relative; overflow: hidden }
.cta-mid-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; pointer-events: none }
.cta-mid .rel { position: relative; z-index: 1 }

/* ─── FAQ Accordion ──────────────────────────────────────────── */
.accordion-item    { border: none!important; border-bottom: 1px solid var(--sand)!important;; border-radius: 0 !important; background: transparent!important; }
.accordion-button  { background: transparent !important; color: var(--dark) !important; font-family: 'Raleway', sans-serif; font-weight: 600; font-size: .92rem!important; box-shadow: none !important; padding: 1.3rem 0!important; }
.accordion-button::after { filter: brightness(.5) sepia(1) hue-rotate(340deg) saturate(3) }
.accordion-body    { font-size: .88rem; color: var(--dark); line-height: 1.75; padding: 0 0 1.4rem!important; }

/* ─── Contact form ───────────────────────────────────────────── */
.fctl { border: none; border-bottom: 1.5px solid var(--ash); border-radius: 0; background: transparent; padding: .75rem .25rem; font-family: 'Raleway', sans-serif; font-size: .9rem; color: var(--dark); transition: border-color .2s; width: 100% }
.fctl:focus { outline: none; box-shadow: none; border-bottom-color: var(--brown); background: transparent }
.fctl::placeholder { color: var(--ash) }
.flbl { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); display: block; margin-bottom: .3rem }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold) }
.form-select option { background-color: var(--brown) }
.form-check { display: flex; align-items: flex-start; gap: .5rem; padding: 0 }
.form-check-input { width: 1em; height: 1em; margin-top: .2em; flex-shrink: 0; cursor: pointer }
.form-check-label { cursor: pointer }

/* ─── Footer ─────────────────────────────────────────────────── */
footer { background: var(--black); color: var(--ash) }
.f-title { font-family: 'Tenor Sans', serif; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1.2rem }
.f-link  { color: var(--ash); text-decoration: none; font-size: .83rem; display: block; margin-bottom: .8rem; transition: color .2s }
.f-link:hover { color: var(--gold) }
.f-bottom { border-top: 1px solid rgba(255,255,255,.07); font-size: .77rem; color: rgba(193,190,181,.55) }
.soc { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--ash); text-decoration: none; font-size: 1.2rem; transition: all .2s }
.soc:hover { color: var(--white) }

/* ─── Float buttons ──────────────────────────────────────────── */
.float-btns { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: .75rem; z-index: 999; opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease }
.float-btns.visible { opacity: 1; transform: translateY(0) }
.float-btn  { background: var(--gold); color: var(--white); width: 54px; height: 54px; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; text-decoration: none; box-shadow: 0 6px 24px rgba(131,90,55,.4); transition: background .2s, transform .2s }
.float-btn:hover { background: var(--brown); transform: scale(1.08); color: var(--white) }
.btn-wa      { background: #25D366; box-shadow: 0 6px 24px rgba(37,211,102,.35) }
.btn-wa:hover { background: #1ebe5d }

/* ─── Bootstrap Offcanvas — overrides de marca ───────────────
   Bootstrap gestiona el comportamiento; aquí solo aplicamos
   los colores, tipografía y espaciado de Aureva.          ── */
#mobileMenu {
  background: var(--cream);
  border-left:none;
}

/* Header */
#mobileMenu .offcanvas-header {
  padding: 1.3rem 1.5rem 1.2rem;
  /* Reserva espacio a la derecha para el botón cerrar absoluto */
  padding-right: 64px;
  border-bottom: 1px solid rgba(193,190,181,.4);
  align-items: center;
}
.oc-brand { display: flex; flex-direction: column; gap: .15rem }

/* ── Botón cerrar: se posiciona donde estaba el toggler ─────────
   El offcanvas (position:fixed) es el contexto de posicionamiento.
   Ocupa exactamente la esquina top-right del panel = mismo lugar
   que el navbar-toggler antes de abrir el drawer.               */
.oc-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 70px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
  padding: 0;
}
.oc-close:hover { border-color: var(--gold); background: rgba(203,163,130,.1) }
.oc-close:focus { outline: none; box-shadow: none }
.oc-close-bar {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--brown);
  position: absolute;
  transition: background .2s;
}
.oc-close-bar--1 { transform: rotate(45deg) }
.oc-close-bar--2 { transform: rotate(-45deg) }
.oc-close:hover .oc-close-bar { background: var(--gold) }

/* Body */
#mobileMenu .offcanvas-body { padding: .25rem 1.5rem 2rem }

/* Nav items: stagger de entrada */
#mobileMenu .nav-item {
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .32s ease, transform .32s ease;
}
#mobileMenu.show .nav-item { opacity: 1; transform: none }
#mobileMenu.show .nav-item:nth-child(1) { transition-delay: .08s }
#mobileMenu.show .nav-item:nth-child(2) { transition-delay: .14s }
#mobileMenu.show .nav-item:nth-child(3) { transition-delay: .20s }
#mobileMenu.show .nav-item:nth-child(4) { transition-delay: .26s }
#mobileMenu.show .nav-item:nth-child(5) { transition-delay: .32s }

/* Links mobile */
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dark) !important;
  padding: 1.1rem 0 !important;
  border-bottom: 1px solid rgba(193,190,181,.35);
  transition: color .22s;
  text-decoration: none;
}
.mobile-link-arrow {
  font-size: .68rem;
  color: var(--ash);
  transition: transform .28s ease, color .22s;
  flex-shrink: 0;
}
.mobile-link:hover { color: var(--brown) !important }
.mobile-link:hover .mobile-link-arrow { transform: translateX(5px); color: var(--gold) }
.mobile-link--active { color: var(--brown) !important }
.mobile-link--active .mobile-link-arrow { color: var(--gold) }

/* ─── Clinic cards (movido desde clinics-list.php) ───────────── */
.clinic-card { background: var(--white); border: 1px solid var(--sand); height: 100%; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s }
.clinic-card:hover { box-shadow: 0 8px 32px rgba(131,90,55,.1); transform: translateY(-3px) }
.clinic-card-head { background: var(--dark); padding: 1.2rem 1.5rem; display: flex; align-items: baseline; gap: .6rem }
.clinic-card-city { font-family: 'Tenor Sans', serif; font-size: 1.1rem; color: var(--sand); margin: 0 }
.clinic-card-zone { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 600 }
.clinic-card-body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .6rem }
.clinic-card-address, .clinic-card-schedule { font-size: .82rem; color: var(--dark); line-height: 1.5; margin: 0 }
.clinic-card-address i, .clinic-card-schedule i { color: var(--gold); width: 14px }
.clinic-card-phone { font-size: .88rem; font-weight: 600; color: var(--brown); text-decoration: none; display: block; margin-top: .2rem; transition: color .2s }
.clinic-card-phone:hover { color: var(--gold) }
.clinic-card-phone i { color: var(--gold); width: 14px }
.clinic-card-foot { border-top: 1px solid var(--sand); padding: .9rem 1.5rem }
.clinic-card-link { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); text-decoration: none; transition: color .2s }
.clinic-card-link:hover { color: var(--gold) }

/* ─── Before/After slider (movido desde before-after.php) ───── */
.ba-wrapper { user-select: none }
.ba-case { display: none }
.ba-case.active { display: block }
.ba-container { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--dark); cursor: ew-resize; border: 1px solid rgba(203,163,130,.2) }
.ba-after { position: absolute; inset: 0 }
.ba-after img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none }
.ba-before { position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; border-right: 2px solid var(--gold); transition: width 0s }
.ba-before img { width: 100%; min-width: var(--ba-container-width, 100vw); height: 100%; object-fit: cover; display: block; pointer-events: none }
.ba-tag { position: absolute; bottom: 1rem; font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; background: rgba(0,0,0,.55); color: var(--white); padding: .3rem .75rem; backdrop-filter: blur(4px) }
.ba-tag-left  { left: .75rem }
.ba-tag-right { right: .75rem }
.ba-handle { position: absolute; top: 0; left: 50%; height: 100%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 3 }
.ba-line { width: 2px; height: 100%; background: var(--gold) }
.ba-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,.35) }
.ba-btn svg { width: 20px; height: 20px }
.ba-slider { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; padding: 0; -webkit-appearance: none; appearance: none }
.ba-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100vh; cursor: ew-resize }
.ba-slider::-moz-range-thumb     { width: 44px; height: 44px; cursor: ew-resize; border: none }
.ba-meta { text-align: center; padding: 1.2rem 0 .4rem; border-top: 1px solid rgba(203,163,130,.15) }
.ba-label-text { font-family: 'Tenor Sans', serif; font-size: 1rem; color: var(--sand); margin-bottom: .25rem }
.ba-detail-text { font-size: .8rem; color: var(--ash); font-weight: 300; letter-spacing: .06em; margin: 0 }
.ba-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.4rem }
.ba-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; cursor: pointer; padding: 0; transition: background .2s, transform .2s }
.ba-dot.active { background: var(--gold); transform: scale(1.25) }

/* ─── Treatment cards (movido desde home.php) ────────────────── */
.treatment-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--sand); padding: 2.4rem 2rem; text-decoration: none; color: inherit; transition: box-shadow .3s, transform .3s, border-color .3s; position: relative; overflow: hidden }
.treatment-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s }
.treatment-card:not(.treatment-card--soon):hover { box-shadow: 0 10px 40px rgba(131,90,55,.12); transform: translateY(-4px); border-color: var(--gold) }
.treatment-card:not(.treatment-card--soon):hover::after { transform: scaleX(1) }
.treatment-card--soon { opacity: .65; cursor: default }
.treatment-icon { width: 54px; height: 54px; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--gold); margin-bottom: 1.4rem }
.treatment-title { font-family: 'Tenor Sans', serif; font-size: 1.15rem; color: var(--brown); margin-bottom: .7rem }
.treatment-desc { font-size: .88rem; line-height: 1.7; color: var(--dark); flex: 1; margin-bottom: 1.2rem }
.treatment-link { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); transition: color .2s }
.treatment-card:hover .treatment-link { color: var(--gold) }
.treatment-soon-badge { color: var(--ash); font-size: .72rem }

/* ─── Animaciones ────────────────────────────────────────────── */
@keyframes rotateSlow { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }

/* ─── Responsive below-fold ──────────────────────────────────── */
@media (max-width: 991px) {
  .btn-al { width: 100% }
  .intro-badge { left: 50%; transform: translateX(-50%); bottom: -25px }
  .float-btns { bottom: 15px; right: 15px }
}

/* ─── Clinic Map (.cmap-*) ───────────────────────────────────── */

/* Buscador */
.cmap-search-wrap { max-width: 680px; margin-left: auto; margin-right: auto }

.cmap-search-inner {
  display: flex; align-items: center;
  border: 1.5px solid var(--sand); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.cmap-search-inner:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(203,163,130,.15);
}

.cmap-search-icon {
  padding: 0 .9rem; font-size: .9rem; color: var(--gold);
  flex-shrink: 0; pointer-events: none;
}

.cmap-search-input {
  flex: 1; border: none; background: transparent;
  font-family: 'Raleway', sans-serif; font-size: .9rem; color: var(--dark);
  padding: .85rem .5rem .85rem 0; outline: none; min-width: 0;
}
.cmap-search-input::placeholder { color: var(--ash) }

/* Botón geolocalización */
.cmap-locate-btn {
  width: 52px; height: 52px; flex-shrink: 0;
  border: none; border-left: 1.5px solid var(--sand);
  background: transparent; cursor: pointer; color: var(--brown);
  font-size: 1rem; transition: background .2s, color .2s;
  display: flex; align-items: center; justify-content: center;
}
.cmap-locate-btn:hover  { background: var(--cream); color: var(--gold) }
.cmap-locate-btn:focus  { outline: none }
.cmap-locate-btn--loading i { animation: rotateSlow 1s linear infinite; color: var(--gold) }
.cmap-locate-btn--error { animation: cmap-shake .4s ease; color: #c0392b !important }
@keyframes cmap-shake {
  0%,100% { transform: translateX(0) }
  20%     { transform: translateX(-4px) }
  40%     { transform: translateX(4px) }
  60%     { transform: translateX(-3px) }
  80%     { transform: translateX(3px) }
}
/* Tooltip de error de geolocalización */
.cmap-locate-tip {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  background: var(--dark); color: var(--cream);
  font-family: 'Raleway', sans-serif; font-size: .75rem; font-weight: 500;
  line-height: 1.5; padding: .55rem .85rem;
  white-space: normal; width: 220px; text-align: left;
  pointer-events: none; opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
  z-index: 10;
}
.cmap-locate-tip--visible { opacity: 1; transform: translateY(0) }

/* ─── Autocomplete de Google Maps (.pac-*) ───────────────────────
   Nota: .pac-container se inyecta en el <body>, fuera del shadow
   DOM, por lo que los estilos globales aquí lo afectan sin !important
   en la mayoría de los casos. Se añaden donde es necesario.       */
.pac-container {
  border-radius: 0;
  border: 1.5px solid var(--gold);
  border-top: none;
  box-shadow: 0 8px 24px rgba(131,90,55,.12);
  font-family: 'Raleway', sans-serif;
  background: var(--white);
  margin-top: -1px;
}
/* Quitar el logo "powered by Google" es contrario a las ToS; lo dejamos visible
   pero lo adaptamos para que no desentone */
.pac-logo::after { opacity: .45; filter: grayscale(1) }

.pac-item {
  border: none;
  border-top: 1px solid var(--sand);
  padding: .6rem .9rem;
  font-family: 'Raleway', sans-serif;
  font-size: .84rem;
  color: var(--dark);
  cursor: pointer;
  line-height: 1.4;
  transition: background .15s;
}
.pac-item:first-child { border-top: none }
.pac-item:hover,
.pac-item-selected  { background: var(--cream) !important }

.pac-icon { display: none }

.pac-item-query {
  font-family: 'Tenor Sans', serif;
  font-size: .9rem;
  color: var(--dark);
  padding-right: .4rem;
}

.pac-matched { color: var(--brown); font-weight: 600 }

.pac-item > span:last-child {
  font-size: .78rem;
  color: var(--ash);
}

/* Layout columnas */
.cmap-layout { align-items: stretch }

@media (max-width: 767px) {
  .cmap-col-map  { order: 1 }
  .cmap-col-list { order: 2; margin-top: 1.5rem }
}

/* Mapa */
.cmap-map-wrap { position: sticky; top: 90px }

.cmap-canvas { width: 100%; height: 520px; border: 1px solid var(--sand) }
@media (max-width: 767px) { .cmap-canvas { height: 300px } }

/* Lista de resultados */
.cmap-results {
  max-height: 520px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 1px;
  scrollbar-width: thin; scrollbar-color: var(--gold) var(--cream);
}
.cmap-results::-webkit-scrollbar       { width: 5px }
.cmap-results::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px }
.cmap-results::-webkit-scrollbar-track { background: var(--cream) }

@media (max-width: 767px) { .cmap-results { max-height: none; overflow-y: visible } }

/* Tarjeta de clínica */
.cmap-result-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-left: 3px solid transparent;
  padding: 1.3rem 1.4rem;
  cursor: pointer;
  transition: border-left-color .2s, background .2s, box-shadow .2s;
}
.cmap-result-card:hover {
  border-left-color: var(--gold);
  background: rgba(242,235,224,.45);
  box-shadow: inset 0 0 0 0 transparent, 0 2px 12px rgba(203,163,130,.12);
}

.cmap-result-name {
  font-family: 'Tenor Sans', serif; font-size: 1rem;
  color: var(--dark); margin: 0 0 .75rem; line-height: 1.3;
}
.cmap-result-name a { color: inherit; text-decoration: none }
.cmap-result-name a:hover { color: var(--brown) }

.cmap-result-list {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: flex; flex-direction: column; gap: .45rem;
}
.cmap-result-li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .8rem; color: var(--dark); line-height: 1.45;
}
.cmap-result-li a { color: var(--brown); text-decoration: none; transition: color .2s }
.cmap-result-li a:hover { color: var(--gold) }
.cmap-result-icon { color: var(--gold); width: 14px; flex-shrink: 0; margin-top: 2px }

.cmap-result-cta {
  font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brown);
  text-decoration: none; transition: color .2s; display: inline-block;
}
.cmap-result-cta:hover { color: var(--gold) }

/* Estado vacío */
.cmap-empty {
  font-size: .88rem; color: var(--ash); padding: 2rem 1rem;
  text-align: center; line-height: 1.7; margin: 0;
}

/* ─── InfoWindow de Google Maps ──────────────────────────────────
   El DOM de Google es:
     .gm-style-iw-c
       .gm-style-iw-chr   ← fila con el botón ×
       .gm-style-iw-d     ← nuestro contenido

   Sacamos .gm-style-iw-chr del flujo (position:absolute) para que
   se superponga al contenido y quede alineado con la primera línea
   del título. El título recibe padding-right para no quedar tapado. */
.gm-style .gm-style-iw-c {
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: 0 8px 32px rgba(83,60,45,.18) !important;
}
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  padding: 1.1rem 1.2rem 1.3rem !important;
}

.gm-style .gm-style-iw-chr {
  position: absolute !important;
  top: 1rem !important;
  right: .75rem !important;
  padding: 0 !important;
  height: auto !important;
  z-index: 2;
}
.gm-style .gm-style-iw-ch { display: none !important }

.gm-style .gm-ui-hover-effect {
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  opacity: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity .2s !important;
}
.gm-style .gm-ui-hover-effect:hover { opacity: .65 !important }

.gm-style .gm-ui-hover-effect > span {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  background-color: var(--ash) !important;
  transition: background-color .2s !important;
}
.gm-style .gm-ui-hover-effect:hover > span {
  background-color: var(--brown) !important;
}

.cmap-popup-title {
  display: block; font-family: 'Tenor Sans', serif; font-size: 1.05rem;
  color: var(--brown); text-decoration: none;
  margin-bottom: .7rem; line-height: 1.3;
  padding-right: 1.8rem;
}
.cmap-popup-title:hover { color: var(--gold) }

.cmap-info-list {
  list-style: none; margin: 0 0 .85rem; padding: 0;
  display: flex; flex-direction: column; gap: .42rem;
}
.cmap-info-li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .8rem; color: var(--dark); line-height: 1.45;
}
.cmap-info-li a { color: var(--brown); text-decoration: none; transition: color .2s }
.cmap-info-li a:hover { color: var(--gold) }
.cmap-info-icon { color: var(--gold); width: 13px; flex-shrink: 0; margin-top: 2px }

.cmap-popup-btn {
  display: inline-block; font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); background: var(--brown);
  padding: .5rem 1.1rem; text-decoration: none; transition: background .2s;
  border: none;
}
.cmap-popup-btn:hover { background: var(--gold); color: var(--white) }

@media (max-width: 767px) {
  .gm-style .gm-style-iw-c {
    max-width: calc(100vw - 40px) !important;
  }
  .gm-style .gm-style-iw-d {
    overflow-y: auto    !important;
    overflow-x: hidden  !important;
    max-height: 52vh    !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* =============================================================
   Page Headers — ph-diagonal · ph-center · ph-image
   ─────────────────────────────────────────────────────────────
   NOTA DE RENDIMIENTO: el subconjunto estructural de estas
   reglas está duplicado (minificado) en el CSS crítico de
   head.php para evitar CLS en páginas interiores donde el
   page-header es el LCP. Cualquier cambio aquí debe replicarse
   allí también. Las únicas reglas exclusivas de este archivo
   son los modificadores --light (solo ph-image) y el ajuste
   de padding-bottom en móvil, que no impactan en LCP.
   ============================================================= */

/* ─── Offset navbar ──────────────────────────────────────────
   Doble clase → especificidad > shorthand padding de cada
   variante, sin necesidad de !important.                     */
.ph-diagonal.ph-first { padding-top: calc(90px + 3.5rem) }
.ph-center.ph-first   { padding-top: calc(90px + 4rem) }
.ph-image.ph-first    { padding-top: calc(90px + 5rem) }

/* ─── Tokens compartidos ─────────────────────────────────────── */
.ph-eyebrow {
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .6rem;
}

.ph-title {
  font-family: 'Tenor Sans', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 0;
  letter-spacing: -.03em;
}
.ph-title em        { font-style: italic; color: var(--brown) }
.ph-title--light    { color: var(--cream) }
.ph-title--light em { color: var(--gold) }

.ph-subtitle {
  font-size: .88rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.75;
  margin: 0;
  max-width: 520px;
}
.ph-subtitle--light { color: var(--ash) }

/* ─── A · Diagonal compacta ──────────────────────────────────── */
.ph-diagonal {
  background: linear-gradient(120deg, var(--cream) 30%, var(--sand) 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
  display: flex;
  align-items: center;
}
.ph-diagonal::before {
  content: '';
  position: absolute;
  right: -5vw; top: 0;
  width: 50%; height: 100%;
  background: var(--ph-image, none) center / cover no-repeat;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: .88;
}
.ph-diagonal--no-image::before {
  background: var(--sand);
  opacity: .55;
}
.ph-diagonal .ph-subtitle { max-width: 440px }

/* ─── B · Banda centrada ─────────────────────────────────────── */
.ph-center {
  padding: 4rem 0 3.5rem;
}
.ph-center .ph-subtitle { margin: 0 auto }

/* ─── B+img · Imagen con overlay ────────────────────────────── */
.ph-image {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: var(--dark);
}
.ph-image::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--ph-image, none) center / cover no-repeat;
  z-index: 0;
}
.ph-image::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(82, 68, 62, var(--ph-overlay, .68));
  z-index: 1;
}
.ph-image .ph-subtitle { margin: 0 auto }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .ph-diagonal.ph-first,
  .ph-center.ph-first,
  .ph-image.ph-first    { padding-top: calc(70px + 2.5rem) }

  .ph-diagonal::before  { width: 100%; clip-path: none; opacity: .12; right: 0 }
  .ph-diagonal          { text-align: center }
  .ph-diagonal .ph-subtitle { margin: 0 auto }
}

@media (max-width: 575px) {
  .ph-diagonal,
  .ph-center,
  .ph-image { padding-bottom: 2.5rem }
}

/* ── Modificador gold: hero + garantía (fondo oscuro) ─────── */
.btn-al--gold {
  background: var(--gold);
}
.btn-al--gold:hover {
  background: var(--brown);
  color: var(--white);
}

/* ── Modificador outline claro: sobre fondos oscuros ────────── */
.btn-al-out--light {
  color: rgba(242,235,224,.85);
  border-color: rgba(242,235,224,.3);
}
.btn-al-out--light:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}


/* ── Hero: CSS below-fold ────────────────────────────────────
   El CSS crítico del hero (Ken Burns, overlays, posición)
   se inyecta via extra_css en home.php para evitar FOUC.
   Sólo lo que no necesita estar disponible antes del LCP.   */

.hsub {
  font-size: .97rem;
  color: rgba(193,190,181,.78);
  max-width: 450px;
  line-height: 1.85;
}
/* .hline.run: JS añade .run 900ms tras carga */
.hline.run { width: 56px; }

@media (max-width: 767px) {
  .hsub { max-width: 100%; }
}


/* ── Stats dark — frosted glass ──────────────────────────────
   Inmediatamente debajo del hero.                           */
.stats-dark {
  background: rgba(18,11,8,.72);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(203,163,130,.15);
  padding: 1.8rem 0;
}
.stn { font-family: 'Tenor Sans', serif; font-size: 2.1rem; color: var(--gold); line-height: 1; }
.stl { font-size: .68rem; letter-spacing: .2em; color: rgba(193,190,181,.5); font-weight: 500; margin-top: .35rem; }
/* Separador vertical — d-none d-md-block en HTML vía Bootstrap */
.std { width: 1px; background: rgba(203,163,130,.14); align-self: stretch; margin: .4rem 0; }


/* ── Tratamientos — grid asimétrico full-bleed ───────────────
   El CSS Grid asimétrico no es reemplazable con Bootstrap Grid
   porque requiere posicionamiento por área nombrada.         */

.trat-section { background: var(--black); }

/* Enlace "Ver todos" estilo editorial */
.t-link-all {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
  border: 1px solid rgba(203,163,130,.25);
  padding: .7rem 1.4rem;
  transition: gap .2s, color .2s, border-color .2s;
}
.t-link-all:hover { color: var(--cream); gap: 1rem; border-color: rgba(203,163,130,.5); }
.t-link-all i { font-size: .7rem; }

/* Grid 2 col × 6 filas — patrón: grande-izq / 2-pequeñas-der × 3 */
.tg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(6, 37vh);
}
.tc:nth-child(1) { grid-row: 1 / 3; grid-column: 1; }
.tc:nth-child(2) { grid-row: 1;     grid-column: 2; }
.tc:nth-child(3) { grid-row: 2;     grid-column: 2; }
.tc:nth-child(4) { grid-row: 3;     grid-column: 1; }
.tc:nth-child(5) { grid-row: 4;     grid-column: 1; }
.tc:nth-child(6) { grid-row: 3 / 5; grid-column: 2; }
.tc:nth-child(7) { grid-row: 5 / 7; grid-column: 1; }
.tc:nth-child(8) { grid-row: 5;     grid-column: 2; }
.tc:nth-child(9) { grid-row: 6;     grid-column: 2; }

/* Tarjeta base (position-relative + overflow-hidden en el HTML) */
.tc {
  background: #1a1008;
  text-decoration: none;
}

/* Bordes separadores gold tenue */
.tc::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: rgba(203,163,130,.12); z-index: 1;
}
.tc::after {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 1px; background: rgba(203,163,130,.12); z-index: 1;
}

/* Imagen fondo + zoom hover */
.tbg {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center;
  transition: transform 1s ease; will-change: transform;
}
.tc:hover .tbg { transform: scale(1.07); }

/* Overlay gradiente oscuro */
.tov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,11,8,.92) 0%, rgba(18,11,8,.35) 42%, rgba(18,11,8,.08) 100%);
  transition: opacity .35s;
}
.tc:hover .tov { opacity: .75; }

/* Acento gold bottom — scaleX reveal */
.taccent {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease; z-index: 2;
}
.tc:hover .taccent { transform: scaleX(1); }

/* Texto */
.tbody {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 2rem 1.8rem; z-index: 2;
  transition: transform .38s ease;
}
.tc:hover .tbody { transform: translateY(-8px); }
/*.tnum { font-size: .6rem; letter-spacing: .32em; color: rgba(203,163,130,.55); margin-bottom: .5rem; font-weight: 500; }*/
.tpre { font-size: .68rem; letter-spacing: .15em; color: var(--gold); margin-bottom: .2rem; opacity: .9; }
.tname { font-family: 'Tenor Sans', serif; font-size: clamp(1.25rem, 2.2vw, 1.85rem); color: var(--cream); line-height: 1.15; }

/* Flecha top-right en hover (d-flex align-items-center justify-content-center en HTML) */
.tarr {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px;
  border: 1px solid rgba(203,163,130,.3);
  color: var(--gold); font-size: .85rem;
  opacity: 0; transition: opacity .3s, transform .3s; z-index: 3;
}
.tc:hover .tarr { opacity: 1; transform: translate(3px, -3px); }

@media (max-width: 767px) {
  .tg { grid-template-columns: 1fr; grid-template-rows: none; }
  .tc { grid-row: auto !important; grid-column: 1 !important; height: 55vw; min-height: 220px; }
  .tname { font-size: 1.3rem; }
  .tbody { padding: 1.4rem 1.5rem; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .tg { grid-template-rows: repeat(6, 30vh); }
}


/* ── Garantía — split 50/50 ──────────────────────────────────
   Bootstrap row g-0 + col-lg-6 en el HTML resuelven el split.
   Aquí sólo el CSS específico de marca.                     */

.garantia-split { background: var(--dark); }

.gar-img { min-height: 400px; }

.gar-img-bg {
  position: absolute; inset: -5%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform .9s ease;
}
.gar-img:hover .gar-img-bg { transform: scale(1.05); }

.gar-img-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 55%, rgba(82,68,62,.5) 100%);
  z-index: 1;
}

.gar-img-wm {
  position: absolute; bottom: -3rem; right: -1rem;
  font-family: 'Tenor Sans', serif;
  font-size: min(22vw, 16rem);
  color: rgba(203,163,130,.07);
  user-select: none; pointer-events: none; line-height: 1; z-index: 2;
}

/* Padding con max() — sin equivalente Bootstrap */
.gar-content { padding: 5.5rem max(4vw, 2.5rem); }

/* Icono cuadrado (d-flex + align-items-center + justify-content-center + flex-shrink-0 en HTML) */
.gi-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(203,163,130,.28);
  color: var(--gold); font-size: .95rem;
  transition: background .25s, border-color .25s;
}
.gitem:hover .gi-icon { background: rgba(203,163,130,.1); border-color: var(--gold); }

.gi-body h5 { font-family: 'Tenor Sans', serif; font-size: 1rem; color: var(--cream); margin-bottom: .35rem; }
.gi-body p  { font-size: .84rem; color: rgba(193,190,181,.6); line-height: 1.78; margin: 0; }

@media (max-width: 991px) {
  .gar-img     { min-height: 50vw; }
  .gar-content { padding: 4rem max(3.5vw, 1.5rem); }
  .gar-img-wm  { font-size: min(28vw, 10rem); }
}


/* ── CTA Home — sand/cream cálido ────────────────────────────
   padding, text-center, container → Bootstrap en el HTML.   */

.cta-home {
  background: linear-gradient(140deg, var(--sand) 0%, var(--cream) 55%, var(--sand) 100%);
  padding: 9rem 0;
}

/* Watermark tipográfico centrado */
.cta-home::before {
  content: 'AUREVA';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Tenor Sans', serif;
  font-size: min(22vw, 20rem);
  color: rgba(131,90,55,.055);
  white-space: nowrap; pointer-events: none; user-select: none; line-height: 1;
}

/* Línea gold top */
.cta-home::after {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 35%, var(--gold) 65%, transparent);
}


/* ── Ken Burns — efecto panorámico genérico ──────────────────
   Activado con el parámetro ken_burns:true en cada bloque.

   Arquitectura de dos capas (diagonal):
     .kb-panel  → wrapper estático que replica la forma del ::before
                  (posición, clip-path, opacity). Tiene overflow:hidden
                  para que el zoom de .kb-img no salga jamás del panel.
     .kb-img    → imagen que anima DENTRO del panel. Solo se mueve ella.

   Arquitectura de una capa (full-bleed: ph-image):
     .kb-img    → imagen absolute sobre toda la section; el ::before
                  se oculta y el ::after (overlay) sigue en z-index 1.
   ─────────────────────────────────────────────────────────── */

@keyframes kb-pan {
  0%   { transform: scale(1)    translate(0,     0);    }
  35%  { transform: scale(1.06) translate(-1.1%, -.5%); }
  65%  { transform: scale(1.09) translate(.6%,   .7%);  }
  100% { transform: scale(1.11) translate(-.4%,  .3%);  }
}

/* ── .kb-panel — wrapper estático del panel diagonal ─────────
   Ocupa exactamente el mismo espacio y forma que el ::before
   original. overflow:hidden encierra la animación de .kb-img. */
.kb-panel {
  position: absolute;
  right: -5vw; top: 0;
  width: 55%; height: 100%;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: .88;
  overflow: hidden;          /* clave: el zoom no sale del panel  */
  pointer-events: none;
  z-index: 1;
}

/* En móvil el panel ocupa todo el fondo (como el ::before original) */
@media (max-width: 991px) {
  .kb-panel {
    right: 0;
    width: 100%;
    clip-path: none;
    opacity: .12;
  }
}

/* ── .kb-img — imagen animada (dentro de .kb-panel o full-bleed) ─ */
.kb-img {
  position: absolute;
  inset: -6%;                /* margen extra para que el zoom no revele borde */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kb-pan 22s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}

/* ── hero.php + page-header-diagonal: ocultar ::before estático ── */
.hero--kb::before,
.ph-diagonal--kb::before { display: none; }

/* ── page-header-image: Ken Burns full-bleed ─────────────────────
   .kb-img va directo en la section (sin .kb-panel).
   El ::before se oculta; el ::after (overlay) sigue en z-index 1.  */
.ph-image--kb::before { display: none; }

.ph-image--kb .kb-img {
  inset: -4%;
  z-index: 0;
}

/* ── hero-home: KB en .hbg; --no-kb lo desactiva ─────────────── */
.hero-home--no-kb .hbg { animation: none; }

/* ── Wrapper ─────────────────────────────────────────────────
   Sin background propio: la galería y .ch-data-section
   tienen el suyo respectivo.                               */
.ch-wrap {}


/* ══════════════════════════════════════════════════════════════
   GALERÍA CSS SCROLL SNAP
   Mobile/Tablet (< 992px):  1 foto · scroll horizontal
   Desktop (992-1399):        2 fotos · scroll horizontal
   Wide    (≥ 1400px):        3 fotos · scroll horizontal

   ¡IMPORTANTE! Las reglas dimensionales de .ch-slide TAMBIÉN
   deben estar en $extraCss (inline crítico) en cada página
   de clínica. Ver barcelona.php → render_block('head', [
     'extra_css' => '...']).
   De lo contrario, el CLS persiste hasta que style.css carga.
   ══════════════════════════════════════════════════════════════ */

.ch-gallery-wrap {
  position: relative;
  overflow: hidden;
  background: #1e1610;   /* color de carga mientras llega la imagen */
}

/* ── Gradiente top para navbar ───────────────────────────────
   Capa fija sobre todas las fotos. z-index:5 queda por encima
   del scroll pero por debajo de las flechas (z-index:6).   */
.ch-nav-grad {
  position: absolute; top: 0; left: 0; right: 0;
  height: 180px; z-index: 5; pointer-events: none;
  background: linear-gradient(
      to bottom,
      rgba(18, 12, 8, .62) 0%,
      rgba(18, 12, 8, .18) 55%,
      rgba(18, 12, 8, .0)  100%
  );
}

/* ── Track — scroll nativo ───────────────────────────────────
   scroll-snap-type fuerza el snap a cada slide o grupo.
   scrollbar-width:none oculta la barra sin afectar al scroll. */
.ch-gallery-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  cursor: grab;
}
.ch-gallery-track::-webkit-scrollbar { display: none }
.ch-gallery-track.ch-dragging { cursor: grabbing; user-select: none }

/* ── Slide ───────────────────────────────────────────────────
   aspect-ratio 4:3 garantiza la proporción en todos los tamaños.
   scroll-snap-align:start: cada slide encaja al inicio del viewport. */
.ch-slide {
  flex: 0 0 100%;           /* mobile: 1 foto visible */
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.ch-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}

/* Overlay gradiente bottom (caption legible) */
.ch-slide-ov {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom,
  rgba(82,68,62,.0) 55%, rgba(82,68,62,.6) 100%);
}

/* Caption */
.ch-caption {
  position: absolute; bottom: 1.1rem; left: 1.4rem; z-index: 3;
  font-size: .64rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(242,235,224,.65);
}

/* ── Dots de paginación ──────────────────────────────────── */
.ch-dots {
  position: absolute; bottom: .85rem; left: 0; right: 0; z-index: 6;
  display: flex; justify-content: center; gap: 5px; pointer-events: none;
}
.ch-dot {
  display: block; width: 26px; height: 2px;
  background: rgba(255,255,255,.22);
  transition: background .25s; cursor: pointer; pointer-events: auto;
}
.ch-dot:hover { background: rgba(203,163,130,.55) }
.ch-dot.on    { background: var(--gold) }

/* ── Flechas prev/next ───────────────────────────────────── */
.ch-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 38px; height: 38px; background: rgba(82,68,62,.52);
  border: 1px solid rgba(203,163,130,.28); color: var(--cream);
  font-size: .82rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.ch-nav:hover  { background: rgba(203,163,130,.22) }
.ch-nav--prev  { left: .9rem }
.ch-nav--next  { right: .9rem }

/* ── Breakpoints responsive ──────────────────────────────── */
/* < 992px: 1 slide (base, sin media query) */
@media (min-width: 992px) {
  .ch-slide { flex: 0 0 50% }         /* 2 slides visibles */
  .ch-nav { display: none }
}
@media (min-width: 1400px) {
  .ch-slide { flex: 0 0 33.333% }     /* 3 slides visibles */
}

/* Separador sutil entre fotos — solo cuando hay múltiples slides */
@media (min-width: 992px) {
  .ch-slide + .ch-slide { border-left: 1px solid rgba(82,68,62,.35) }
}


/* ══════════════════════════════════════════════════════════════
   DATOS + MAPA
   ══════════════════════════════════════════════════════════════ */

.ch-data-section { background: var(--cream) }

.ch-data {
  background: var(--cream);
  padding: 2.4rem 2rem;
  border-right: 1px solid rgba(131,90,55,.14);
  display: flex; flex-direction: column; height: 100%;
}

.ch-clinic-name {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--dark); line-height: 1.08;
  margin-bottom: .5rem; letter-spacing: -.03em;
}

.ch-open-status {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(106,170,106,.08);
  border: 1px solid rgba(106,170,106,.32);
  padding: .26rem .7rem; font-size: .67rem; font-weight: 600;
  color: #4aaa4a; border-radius: 100px; margin-bottom: .9rem;
}
.ch-open-pip {
  width: 6px; height: 6px; background: #6aaa6a;
  border-radius: 50%; flex-shrink: 0;
  animation: ch-pip 2s ease infinite;
}
@keyframes ch-pip {
  0%,100% { box-shadow: 0 0 0 0 rgba(106,170,106,.45) }
  50%     { box-shadow: 0 0 0 5px rgba(106,170,106,.0) }
}

.ch-address-block { font-style: normal }
.ch-info-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .95rem;
}
.ch-info-row  { display: flex; align-items: flex-start; gap: .85rem }
.ch-ico-box {
  width: 32px; height: 32px; flex-shrink: 0;
  border: 1px solid rgba(131,90,55,.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--brown); font-size: .85rem; margin-top: .05rem;
}
.ch-ico-box--wa { color: #4aaa4a; border-color: rgba(74,154,74,.28) }
.ch-info-label {
  font-size: .6rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ash); margin: 0 0 .2rem;
}
.ch-info-val { font-size: .87rem; color: var(--dark); line-height: 1.55; margin: 0 }
.ch-info-val a { color: var(--brown); font-weight: 500; text-decoration: none; transition: color .2s }
.ch-info-val a:hover { color: var(--gold) }
.ch-info-val a.ch-wa { color: #4aaa4a }
.ch-info-val a.ch-wa:hover { color: #2e8a2e }

.ch-ctas {
  display: flex; gap: .65rem; flex-wrap: wrap;
  margin-top: auto; padding-top: 2rem; align-items: flex-start;
}

/* Split button "Cómo llegar" */
.ch-dir-btn {
  display: inline-flex; align-items: center;
  white-space: nowrap; border-radius: 0 !important;
}
.ch-dir-toggle {
  padding-left: .65rem !important; padding-right: .65rem !important;
  border-left: 1px solid rgba(131,90,55,.25) !important;
  border-radius: 0 !important;
  display: flex; align-items: center; font-size: .72rem;
}
.ch-dir-toggle:focus { box-shadow: none; outline: none }
.ch-dir-menu {
  border-radius: 0 !important;
  border: 1px solid rgba(131,90,55,.22) !important;
  background: var(--cream) !important;
  min-width: 200px; padding: .35rem 0 !important;
  box-shadow: 0 8px 24px rgba(82,68,62,.14) !important;
}
.ch-dir-menu .dropdown-item {
  font-family: 'Raleway', sans-serif; font-size: .82rem; font-weight: 500;
  color: var(--dark) !important; padding: .55rem 1.1rem;
  display: flex; align-items: center; transition: background .15s, color .15s;
}
.ch-dir-menu .dropdown-item i { width: 16px; color: var(--brown) }
.ch-dir-menu .dropdown-item:hover,
.ch-dir-menu .dropdown-item:focus {
  background: rgba(203,163,130,.12) !important; color: var(--brown) !important;
}

/* Columna mapa */
.ch-map-col {
  position: relative; overflow: hidden;
  background: #ddd5c4; height: 100%; min-height: 280px;
}
.ch-map-link { display: block; width: 100%; height: 100% }
.ch-map-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  filter: saturate(.85) sepia(.06); transition: filter .35s;
}
/* Wrapper que reemplaza al <a> anterior.
   position:relative para anclar el overlay. */
.ch-map-static {
  display: block;
  width: 100%; height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;           /* recorta la imagen igual que antes */
}

/* Imagen dentro del static map — mismo aspecto que antes */
.ch-map-static .ch-map-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  filter: saturate(.85) sepia(.06);
  transition: filter .35s;
}
.ch-map-static:hover .ch-map-img,
.ch-map-static:focus-visible .ch-map-img {
  filter: saturate(1) sepia(0);
}

/* Overlay semitransparente que aparece en hover/focus */
.ch-map-hover-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 12, 8, 0);
  transition: background .35s;
  pointer-events: none;
}
.ch-map-static:hover .ch-map-hover-overlay,
.ch-map-static:focus-visible .ch-map-hover-overlay {
  background: rgba(18, 12, 8, .44);
}

/* Badge "Ver mapa interactivo" centrado en el overlay */
.ch-map-hover-badge {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s .05s, transform .28s .05s;
  text-align: center;
}
.ch-map-hover-badge i {
  font-size: 1.7rem;
  color: var(--gold);
}
.ch-map-hover-badge span {
  font-family: 'Raleway', sans-serif;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.ch-map-static:hover .ch-map-hover-badge,
.ch-map-static:focus-visible .ch-map-hover-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Estado cargando: overlay con spinner mientras la API responde */
.ch-map-static.ch-map--loading {
  cursor: wait;
  background: var(--cream-dark, #ddd5c4);
}
.ch-map-static.ch-map--loading::after {
  content: '';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 12, 8, .18)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='14' fill='none' stroke='%23CBA382' stroke-width='3' stroke-dasharray='60' stroke-dashoffset='0'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 18 18' to='360 18 18' dur='0.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E")
  center / 36px no-repeat;
}

/* Estado mapa cargado: quitar cursor + ocultar overlay */
.ch-map-static.ch-map--loaded {
  cursor: default;
}
.ch-map-static.ch-map--loaded .ch-map-hover-overlay {
  display: none;
}

.ch-map-link:hover .ch-map-img { filter: saturate(1) sepia(0) }
.ch-map-placeholder {
  width: 100%; height: 100%; min-height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #e2d9cc; text-align: center; padding: 2rem;
}
.ch-map-open-btn {
  position: absolute; bottom: 1rem; right: 1rem;
  background: var(--dark); color: var(--cream);
  font-family: 'Raleway', sans-serif; font-size: .66rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .45rem .95rem;
  display: inline-flex; align-items: center; gap: .38rem;
  text-decoration: none; transition: background .2s;
}
.ch-map-open-btn:hover { background: var(--brown); color: var(--cream) }


/* ══════════════════════════════════════════════════════════════
   SECCIÓN SEO
   ══════════════════════════════════════════════════════════════ */
.ch-seo { background: var(--white) }
.ch-seo-desc {
  font-size: .93rem; line-height: 1.88; font-weight: 300;
  color: var(--dark); margin-bottom: 1rem;
}
.ch-treats-title {
  font-size: .67rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brown); margin-bottom: 1.1rem;
}
.ch-treat-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem .6rem;
}
.ch-treat-tag {
  display: inline-flex; align-items: center; gap: .42rem;
  font-size: .78rem; color: var(--dark); font-weight: 500;
  padding: .36rem .9rem;
  border: 1px solid rgba(131,90,55,.22);
  background: rgba(203,163,130,.07); text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.ch-treat-tag::before {
  content: ''; width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%; flex-shrink: 0;
}
a.ch-treat-tag:hover {
  border-color: var(--gold); background: rgba(203,163,130,.14); color: var(--brown);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .ch-data { border-right: none; border-bottom: 1px solid rgba(131,90,55,.12); height: auto }
  .ch-map-col { min-height: 260px }
}
@media (max-width: 767px) {
  .ch-data { padding: 1.8rem 1.2rem }
  .ch-ctas { flex-direction: column; align-items: stretch }
  .ch-ctas .btn-al { text-align: center; justify-content: center }
  .ch-ctas .btn-group { width: 100% }
  .ch-ctas .ch-dir-btn { flex: 1 }
}

/* ─── Team ────────────────────────────────────────────────────
   Bootstrap maneja: grid (row/col), display (d-lg-none),
   carousel (slide, inner, item, controls, indicators).
   Custom: estilo de tarjeta, foto, info, overrides de controles.
   ─────────────────────────────────────────────────────────── */

.nos-team-photo {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sand);
}
.nos-team-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.nos-team-card:hover .nos-team-photo img { transform: scale(1.04) }

.nos-team-info { padding: 1.2rem 0 .5rem }

.nos-team-name {
  font-family: 'Tenor Sans', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: .15rem;
}
.nos-team-role {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 600;
  margin-bottom: .35rem;
}
.nos-team-spec {
  font-size: .82rem;
  color: var(--ash);
  font-weight: 300;
  margin: 0;
  line-height: 1.65;
}

/* ── Bootstrap Carousel: override de controles y indicadores ── */
/* Ocultamos los iconos por defecto de Bootstrap (SVG inline) y
   usamos FontAwesome pasado en el HTML como <i class="fal …"> */

.nos-carousel-ctrl {
  width: 44px;
  height: 44px;
  border-radius: 0;
  opacity: 1;
  background: var(--brown);
  top: 38%;
  bottom: auto;
  transition: background .25s;
}
.nos-carousel-ctrl:hover,
.nos-carousel-ctrl:focus { background: var(--gold); opacity: 1 }

.nos-carousel-ctrl .nos-carousel-icon { color: var(--white); font-size: .9rem }

/* Indicadores */
.nos-carousel-indicators {
  bottom: -1.8rem;   /* desplazamos bajo la tarjeta */
  gap: .35rem;
}
.nos-carousel-indicators button {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background-color: var(--ash) !important;
  border-top: none !important;
  border-bottom: none !important;
  opacity: 1 !important;
  transition: background-color .3s, width .3s !important;
  flex-shrink: 0;
}
.nos-carousel-indicators button.active {
  background-color: var(--gold) !important;
  width: 20px !important;
  border-radius: 3px !important;
}

/* ─── Clinics Mosaic ──────────────────────────────────────────
   CSS Grid asimétrico no reproducible con Bootstrap Grid.
   Bootstrap maneja: container, padding de sección (.sp).
   ─────────────────────────────────────────────────────────── */

.nos-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 52vw 34vw 42vw;
  gap: 3px;
}

.nos-tile {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}
.nos-tile img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s ease;
}
.nos-tile:hover img { transform: scale(1.06) }

/* Posición 0: ocupa las 2 columnas en la primera fila */
.nos-tile--large { grid-column: 1 / -1 }

/* Posición 1: ocupa 2 filas (tall) en la columna izquierda */
.nos-tile--tall  { grid-row: span 2 }

/* Overlay de caption */
.nos-tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(82,68,62,.72) 0%, transparent 52%);
  display: flex; align-items: flex-end;
  padding: .85rem 1.1rem;
  opacity: 0;
  transition: opacity .35s;
}
.nos-tile:hover .nos-tile__overlay { opacity: 1 }

.nos-tile__caption {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
}

@media (min-width: 992px) {
  .nos-mosaic {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 300px 280px;
  }
  /* En desktop, la tile--large ocupa col 1 spanning ambas filas */
  .nos-tile--large {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  /* tall vuelve a comportamiento normal en desktop */
  .nos-tile--tall { grid-row: auto }
}

/* ─── Treatments list ─────────────────────────────────────────
   Bootstrap maneja: container, .sp, botones (.btn-al-out).
   Custom: lista de items con hover animado.
   ─────────────────────────────────────────────────────────── */

.nos-treat-section { background: var(--dark) }

.nos-treat-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nos-treat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  color: inherit;
  transition: padding-left .25s ease;
}
.nos-treat-item:hover { padding-left: .75rem }

.nos-treat-name {
  font-family: 'Tenor Sans', serif;
  font-size: 1.15rem;
  color: var(--white);
  margin: 0 0 .15rem;
}
.nos-treat-cat {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(193,190,181,.5);
  font-weight: 500;
}
.nos-treat-arrow {
  color: rgba(193,190,181,.2);
  font-size: .85rem;
  flex-shrink: 0;
  transition: color .25s, transform .25s;
}
.nos-treat-item:hover .nos-treat-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

@media (min-width: 992px) {
  .nos-treat-name { font-size: 1.35rem }
}

/* ─── Values cards ────────────────────────────────────────────
   Bootstrap maneja: row, col-sm-6 col-lg-3, gy-4.
   Sin iconos ni efectos hover — layout limpio y estático.
   ─────────────────────────────────────────────────────────── */

.nos-val-card {
  background: var(--white);
  padding: 2rem 1.6rem;
  height: 100%;
}
.nos-val-num {
  font-family: 'Tenor Sans', serif;
  font-size: 4rem;
  color: rgba(203,163,130,.15);
  line-height: 1;
  margin-bottom: .7rem;
}
.nos-val-title {
  font-family: 'Tenor Sans', serif;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: .5rem;
}
.nos-val-body {
  font-size: .84rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--dark);
  margin: 0;
}

/* ─── Stats gold (nosotros-stats.php) ─────────────────────────
   Override de .stat-num y .stat-label dentro del contexto dorado.
   Separación visual via border-right en celda — sin divs dentro
   de .row que rompan el grid Bootstrap.
   ─────────────────────────────────────────────────────────── */

.nos-stats { padding: 3.5rem 0 }

.nos-stats .stat-num { color: var(--dark) }
.nos-stats .stat-label { color: rgba(82,68,62,.65) }

/* Línea decorativa horizontal entre número y label */
.nos-stat-rule {
  width: 28px;
  height: 1px;
  background: rgba(82,68,62,.25);
  margin: .5rem auto .4rem;
}

/* Separador vertical entre celdas en desktop */
.nos-stat-cell + .nos-stat-cell {
  border-left: 1px solid rgba(82,68,62,.15);
}

/* En mobile (col-6): solo separamos las dos de la derecha */
@media (max-width: 767px) {
  .nos-stat-cell:nth-child(odd) { border-left: none }
}

/* ─── Clinics Scroll (nosotros-clinics-scroll.php) ────────────
   Mobile: flex + scroll-snap (CSS puro, sin JS).
   Desktop (≥ lg): grid Bootstrap simulado con flex-wrap.
   Bootstrap maneja: container, .sp, justify-content-between.
   ─────────────────────────────────────────────────────────── */

.nos-cs-track {
  display: flex;
  gap: 1rem;
  /* Mobile: scroll horizontal snapeado */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .25rem;
  scrollbar-width: none;
}
.nos-cs-track::-webkit-scrollbar { display: none }

.nos-cslide {
  flex: 0 0 78vw;
  max-width: 340px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--sand);
}
.nos-cslide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.nos-cslide:hover img { transform: scale(1.05) }

.nos-cslide__info {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(82,68,62,.88) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem;
}
.nos-cslide__city {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .2rem;
}
.nos-cslide__name {
  font-family: 'Tenor Sans', serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: .15rem;
}
.nos-cslide__detail {
  font-size: .76rem;
  color: rgba(193,190,181,.65);
  font-weight: 300;
  margin: 0;
}

@media (min-width: 992px) {
  /* Desktop: cancelamos el scroll y usamos wrapping tipo grid */
  .nos-cs-track {
    overflow-x: visible;
    flex-wrap: wrap;
    scroll-snap-type: none;
  }
  .nos-cslide {
    flex: 0 0 calc(25% - .75rem);
    max-width: none;
    aspect-ratio: 3 / 4;
  }
}

/* ─── Quote (nosotros-quote.php) ──────────────────────────────
   Bootstrap maneja: container, text-center, row col-lg-8,
   position-relative, overflow-hidden, .divider-gold.
   Custom: marca tipográfica decorativa, texto de cita.
   ─────────────────────────────────────────────────────────── */

.nos-quote-mark {
  font-family: 'Tenor Sans', serif;
  font-size: clamp(10rem, 28vw, 20rem);
  line-height: .75;
  color: rgba(203,163,130,.12);
  position: absolute;
  top: -.5rem;
  left: -.5rem;
  pointer-events: none;
  user-select: none;
}

.nos-quote-text {
  font-family: 'Raleway', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--dark);
  line-height: 1.6;
  max-width: 30ch;
  margin: 0 auto;
  border: none;    /* resetea el <blockquote> de Bootstrap */
  padding: 0;
}

.nos-quote-author {
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 600;
  font-style: normal;
}

/* ── Sección contenedora ─────────────────────────────────────── */
.gtr-section { padding: 6rem 0 7rem }

/* ── Header: título izq + subtítulo der ─────────────────────── */
.gtr-header {
  display: flex;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.gtr-title em  { font-style: italic; color: var(--brown) }
.gtr-subtitle {
  max-width: 360px;
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(82,68,62,.65);
  flex-shrink: 0;
  margin: 0;
  padding-bottom: .35rem;    /* alinea base con el divider-gold */
}

/* ── Grid — separadores hairline via background ──────────────── */
.gtr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(203,163,130,.22);
}

/* ── Tarjeta base ────────────────────────────────────────────── */
.gtr-card {
  background: var(--cream);
  padding: 0;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background .3s ease;
}
a.gtr-card:hover { background: #fff }

/* ── Tarjeta sin enlace: sin cursor pointer, sin hover visual ── */
.gtr-card--no-link {
  cursor: default;
}

/* ── Acento gold superior — reveal desde izquierda en hover ──── */
.gtr-top-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
a.gtr-card:hover .gtr-top-accent { transform: scaleX(1) }

/* ── Imagen de portada ───────────────────────────────────────── */
.gtr-img-wrap {
  width: 100%;
  height: 195px;
  overflow: hidden;
  flex-shrink: 0;
}
.gtr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
a.gtr-card:hover .gtr-img-wrap img { transform: scale(1.05) }

/* ── Cuerpo de texto de la tarjeta ──────────────────────────── */
.gtr-body {
  padding: 1.8rem 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Nombre del tratamiento ──────────────────────────────────── */
.gtr-name {
  font-family: 'Tenor Sans', serif;
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: .55rem;
  transition: color .3s;
}
a.gtr-card:hover .gtr-name { color: var(--brown) }

/* ── Descripción breve ───────────────────────────────────────── */
.gtr-desc {
  font-size: .855rem;
  color: rgba(82,68,62,.62);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 1.4rem;
  font-weight: 300;
}

/* ── CTA inline ──────────────────────────────────────────────── */
.gtr-cta {
  display: flex; align-items: center; gap: .45rem;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
  margin-top: auto;
  transition: gap .3s;
}
.gtr-cta i { font-size: .6rem; transition: transform .3s }
a.gtr-card:hover .gtr-cta     { gap: .75rem }
a.gtr-card:hover .gtr-cta i   { transform: translate(3px, -2px) }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  .gtr-grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 767px) {
  .gtr-header { flex-direction: column; align-items: flex-start }
  .gtr-subtitle { max-width: 100% }
}
@media (max-width: 575px) {
  .gtr-grid {
    grid-template-columns: 1fr;
    gap: .5rem;
    background: transparent;
  }
  .gtr-card {
    border: 1px solid rgba(203,163,130,.22);
  }
  .gtr-img-wrap { height: 55vw }
  .gtr-body { padding: 1.5rem 1.6rem 1.8rem }
  .gtr-section { padding: 4rem 0 5rem }
}

/* ─── Miga de pan (page-header-diagonal) ─────────────────────
   Nodo de navegación contextual sobre el encabezado.
   Bootstrap maneja: d-flex (via flex en el propio elemento).
   Clases: .ph-breadcrumb, .ph-breadcrumb-sep,
           .ph-breadcrumb-current                              */

.ph-breadcrumb {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1.6rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.ph-breadcrumb a {
  color: inherit;
  text-decoration: none;
  opacity: .72;
  transition: opacity .2s;
}
.ph-breadcrumb a:hover { opacity: 1; }

.ph-breadcrumb-sep {
  font-size: .55rem;
  color: var(--gold);
  opacity: .6;
}

.ph-breadcrumb-current {
  color: rgba(82, 68, 62, .58);
  font-weight: 500;
}

/* Responsive: ocultar en pantallas muy pequeñas */
@media (max-width: 374px) {
  .ph-breadcrumb { display: none; }
}

/* ─── Watermark tipográfico (page-header-diagonal) ───────────
   Texto decorativo en grande detrás del contenido.
   Solo visible en desktop para no consumir espacio en móvil.  */

.ph-wm {
  position: absolute;
  bottom: -3.5rem;
  left: -1rem;
  font-family: 'Tenor Sans', serif;
  font-size: clamp(5rem, 18vw, 16rem);
  color: rgba(131, 90, 55, .055);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 0;
}

@media (max-width: 991px) {
  .ph-wm { display: none; }
}

/* ─── Filtros de categoría (tratamientos-grid filtrable) ──────
   Barra de tabs bajo el encabezado de sección.
   Clases: .tfilters-wrap, .tfilters,
           .tfilter-pill, .tfilter-pill.active, .tfilter-badge  */

.tfilters-wrap {
  background: var(--black);
  /* sin padding vertical: los pills llevan su propio padding     */
}

.tfilters {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(203, 163, 130, .1);
}

.tfilter-pill {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ash);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: .9rem 1.5rem .75rem;
  cursor: pointer;
  transition: color .22s, border-bottom-color .22s;
  font-family: 'Raleway', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  /* Evitar que el borde bottom cause layout shift */
  margin-bottom: -1px;
}

.tfilter-pill:hover { color: var(--cream); }

.tfilter-pill.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tfilter-pill:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.tfilter-badge {
  font-size: .58rem;
  background: rgba(203, 163, 130, .12);
  color: var(--ash);
  padding: .12rem .5rem;
  border-radius: 99px;
  font-weight: 500;
  letter-spacing: .05em;
  transition: background .22s, color .22s;
}

.tfilter-pill.active .tfilter-badge {
  background: rgba(203, 163, 130, .22);
  color: var(--gold);
}

@media (max-width: 575px) {
  .tfilter-pill { font-size: .62rem; padding: .8rem 1rem .65rem; }
}

/* ─── Tag de categoría sobre la tarjeta ──────────────────────
   Aparece en la esquina superior izquierda al hacer hover.
   Refuerza el contexto del filtro activo.                     */

.tcat-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.8rem;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: .28rem .7rem;
  z-index: 3;
  border: 1px solid rgba(203, 163, 130, .18);
  opacity: 0;
  transition: opacity .3s;
}

.tc:hover .tcat-tag { opacity: 1; }

/* ─── Descripción corta en la tarjeta ────────────────────────
   Revelada con animación al hacer hover sobre la tarjeta.
   El max-height: 0 → max-height: 90px es la técnica habitual
   para animar height desconocido con solo CSS.                */

.tdesc {
  font-size: .78rem;
  color: rgba(193, 190, 181, .65);
  line-height: 1.65;
  margin-top: .65rem;
  font-weight: 300;
  /* Estado oculto */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s ease, opacity .45s ease;
}

.tc:hover .tdesc {
  max-height: 90px;   /* suficiente para 3 líneas de texto */
  opacity: 1;
}

/* En tarjetas grandes (primer y séptimo elemento) hay más espacio */
.tc:nth-child(1):hover .tdesc,
.tc:nth-child(6):hover .tdesc,
.tc:nth-child(7):hover .tdesc { max-height: 120px; }

@media (max-width: 767px) {
  /* En móvil, la descripción siempre visible (sin hover) */
  .tdesc {
    max-height: 80px;
    opacity: .75;
    margin-top: .5rem;
  }
  .tc:hover .tdesc { max-height: 80px; }
}

/* ─── Grid filtrado — modo auto-fill ─────────────────────────
   Cuando el usuario filtra por categoría, el grid pasa de
   posicionamiento explícito (nth-child) a auto-fill.
   .tc--hidden elimina la tarjeta del flujo completamente.     */

.tg--filtered {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-template-rows: none;
}

.tg--filtered .tc {
  grid-row: auto !important;
  grid-column: auto !important;
  min-height: 44vh;
}

.tc--hidden { display: none !important; }

@media (max-width: 767px) {
  .tg--filtered { grid-template-columns: 1fr 1fr; }
  .tg--filtered .tc { min-height: 46vw; }
}

@media (max-width: 479px) {
  .tg--filtered { grid-template-columns: 1fr; }
  .tg--filtered .tc { min-height: 62vw; }
}