/* =========================================================
   style5.css — "Wellness verde"
   Scope: [data-skin="wellness"]. Verde salvia + neutros cálidos,
   formas orgánicas, esquinas muy redondeadas, sombras suaves.
   Mismo marcado .hx-* que las demás variantes (home_template.php).
   ========================================================= */
[data-skin="wellness"] {
  --v5-bg:       #F2F5F1;
  --v5-bg-2:     #E7EDE6;
  --v5-surface:  #FFFFFF;
  --v5-ink:      #1F2D24;
  --v5-ink-soft: #4A5B50;
  --v5-line:     #D5E0D3;
  --v5-accent:   var(--sk-on-safe);   /* texto/iconos sobre fondo claro */
  --v5-fill:     var(--sk-brand);     /* rellenos: color del admin sin alterar */
  --v5-fill-on:  var(--sk-brand-on);
  --v5-accent-d: var(--sk-brand-dark);
  --v5-warm:     var(--sk-second-on-safe);
  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 34px;
  --section-py: 88px;
}
@media (max-width: 768px) { [data-skin="wellness"] { --section-py: 56px; } }

[data-skin="wellness"] body { background: var(--v5-bg); color: var(--v5-ink); font-family: var(--font); }
[data-skin="wellness"] h1, [data-skin="wellness"] h2, [data-skin="wellness"] h3 {
  font-family: var(--font-heading); font-weight: var(--font-weight-heading); letter-spacing: var(--letter-spacing-heading); color: var(--v5-ink);
}
[data-skin="wellness"] .section { padding: var(--section-py) 0; }

/* ── Cabecera ─────────────────────────────────────────── */
.hx-head { max-width: 58ch; margin: 0 auto 3.25rem; text-align: center; }
.hx-head--center { text-align: center; }
.hx-eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--v5-accent);
  background: var(--v5-bg-2); padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hx-title { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; margin: 0 0 .9rem; }
.hx-title em { font-style: normal; color: var(--v5-accent); }
.hx-lede { font-size: 1.05rem; line-height: 1.75; color: var(--v5-ink-soft); margin: 0; }

/* ── Botones tipo píldora ─────────────────────────────── */
[data-skin="wellness"] .btn {
  border-radius: 999px; font-weight: 600; padding: .95rem 1.9rem;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
[data-skin="wellness"] .btn:hover { transform: translateY(-2px); }
[data-skin="wellness"] .btn--primary, [data-skin="wellness"] .btn--red {
  background: var(--v5-fill); color: var(--v5-fill-on); border: none; box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
[data-skin="wellness"] .btn--primary:hover, [data-skin="wellness"] .btn--red:hover { background: var(--v5-accent-d); }
[data-skin="wellness"] .btn--outline, [data-skin="wellness"] .btn--outline-white {
  background: var(--v5-surface); color: var(--v5-accent); border: 1.5px solid var(--v5-line);
}
[data-skin="wellness"] .btn--outline:hover, [data-skin="wellness"] .btn--outline-white:hover { border-color: var(--v5-accent); }
[data-skin="wellness"] .btn--whatsapp { background: #25D366; color: #fff; border: none; border-radius: 999px; }

/* ── Hero orgánico ────────────────────────────────────── */
[data-skin="wellness"] .hero { min-height: auto; background: transparent; }
.hx-hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0; background: var(--v5-bg); }
.hx-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hx-hero__title { font-size: clamp(2.3rem, 5.5vw, 3.9rem); line-height: 1.08; margin: 0 0 1.35rem; }
.hx-hero__title span { display: block; }
.hx-hero__title .hx-script { color: var(--v5-accent); }
.hx-hero__sub { font-size: 1.1rem; line-height: 1.75; color: var(--v5-ink-soft); max-width: 44ch; margin: 0 0 2rem; }
.hx-hero__actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.hx-hero__figure {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%;   /* blob orgánico */
  box-shadow: 0 24px 60px rgba(31,45,36,.13);
}
.hx-hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hx-hero__figure--empty { background: var(--v5-bg-2); display: grid; place-items: center; color: var(--v5-line); font-size: 4.5rem; }
.hx-hero__meta {
  margin-top: 2.25rem; padding: 1.35rem 1.6rem; background: var(--v5-surface);
  border-radius: var(--r-md); box-shadow: 0 6px 22px rgba(31,45,36,.07);
  display: flex; gap: 2.25rem; flex-wrap: wrap;
}
.hx-hero__meta-item { display: flex; flex-direction: column; gap: .2rem; }
.hx-hero__meta-k { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--v5-ink-soft); }
.hx-hero__meta-v { font-weight: 600; font-size: 1.05rem; color: var(--v5-accent); }
@media (max-width: 900px) {
  .hx-hero__grid { grid-template-columns: 1fr; }
  .hx-hero__figure { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ── Servicios: tarjetas suaves ───────────────────────── */
.hx-services { background: var(--v5-bg); }
.hx-svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.hx-svc {
  --hx-svc-px: 1.75rem;   /* relleno lateral: la foto lo cancela para ir a sangre */
  display: block; background: var(--v5-surface); border-radius: var(--r-md);
  padding: 2rem 1.75rem; text-decoration: none; color: inherit;
  border: 1px solid var(--v5-line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hx-svc:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(31,45,36,.1); }
.hx-svc__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--v5-bg-2); color: var(--v5-accent); font-weight: 700; font-size: .9rem; margin-bottom: 1.1rem;
}
.hx-svc__body { display: block; }
.hx-svc__name { display: block; font-size: 1.2rem; font-weight: 600; margin: 0 0 .5rem; }
.hx-svc__desc { font-size: .94rem; line-height: 1.7; color: var(--v5-ink-soft); margin: 0; }
.hx-svc__arrow { display: inline-block; margin-top: 1rem; color: var(--v5-accent); transition: transform .25s ease; }
.hx-svc:hover .hx-svc__arrow { transform: translateX(5px); }

/* ── Cita ─────────────────────────────────────────────── */
.hx-quote { background: var(--v5-accent); padding: var(--section-py) 0; }
.hx-quote__inner { max-width: 52ch; margin: 0 auto; text-align: center; }
.hx-quote__mark { font-size: 3.4rem; line-height: 1; color: rgba(255,255,255,.5); display: block; margin-bottom: .4rem; }
.hx-quote__text { font-size: clamp(1.4rem, 2.9vw, 2rem); line-height: 1.5; font-weight: 500; margin: 0 0 1.5rem; color: #fff; }
.hx-quote__by { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* ── Estadísticas ─────────────────────────────────────── */
.hx-stats { background: var(--v5-bg-2); }
.hx-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; }
.hx-stat { background: var(--v5-surface); border-radius: var(--r-md); padding: 2rem 1.5rem; text-align: center; }
.hx-stat__n { font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 700; color: var(--v5-accent); line-height: 1; margin-bottom: .5rem; }
.hx-stat__l { font-size: .92rem; color: var(--v5-ink-soft); line-height: 1.6; }

/* ── Aseguradoras ─────────────────────────────────────── */
.hx-ins { background: var(--v5-bg); }
.hx-ins__row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.hx-ins__item {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  background: var(--v5-surface); border: 1px solid var(--v5-line);
  border-radius: var(--r-lg); padding: 1.5rem 1.75rem; min-width: 150px;
  transition: border-color .3s ease, transform .3s ease;
}
.hx-ins__item:hover { border-color: var(--v5-accent); transform: translateY(-3px); }
.hx-ins__item img { height: 40px; width: auto; object-fit: contain; }
.hx-ins__item span { font-size: .84rem; color: var(--v5-ink-soft); text-align: center; }
.hx-ins__note { max-width: 62ch; margin: 1.6rem auto 0; text-align: center; font-size: .9rem; line-height: 1.65; color: var(--v5-ink-soft); }

/* ── Galería ──────────────────────────────────────────── */
.hx-gallery { background: var(--v5-bg-2); }
.hx-gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.hx-gallery__item { overflow: hidden; border-radius: var(--r-md); margin: 0; aspect-ratio: 4/3; }
.hx-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hx-gallery__item:hover img { transform: scale(1.05); }

/* ── Horario + ubicación ──────────────────────────────── */
.hx-info { background: var(--v5-bg); }
.hx-info__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.75rem, 4vw, 3rem); }
.hx-info__grid > div { background: var(--v5-surface); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.hx-info .hx-head { text-align: left; margin: 0 0 1.75rem; }
.hx-hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--v5-line); font-size: .95rem; }
.hx-hours__row:last-child { border-bottom: none; }
.hx-hours__d { font-weight: 500; }
.hx-hours__h { color: var(--v5-ink-soft); font-variant-numeric: tabular-nums; }
.hx-hours__row--today { background: var(--v5-bg-2); border-radius: var(--r-sm); padding-left: .9rem; padding-right: .9rem; }
.hx-hours__row--today .hx-hours__d, .hx-hours__row--today .hx-hours__h { color: var(--v5-accent); font-weight: 600; }
.hx-map { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r-md); }
.hx-map > div { width: 100%; height: 100%; }
.hx-addr { margin-top: 1.25rem; font-size: .95rem; line-height: 1.7; color: var(--v5-ink-soft); }
.hx-addr strong { display: block; color: var(--v5-ink); font-size: 1.05rem; margin-bottom: .3rem; }
@media (max-width: 860px) { .hx-info__grid { grid-template-columns: 1fr; } }

/* ── Equipo ───────────────────────────────────────────── */
.hx-team { background: var(--v5-bg); }
.hx-team__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.75rem; }
.hx-member { text-align: center; }
.hx-member__photo {
  aspect-ratio: 1/1; overflow: hidden; margin: 0 auto 1.1rem; max-width: 190px;
  border-radius: 50%; background: var(--v5-bg-2); box-shadow: 0 10px 28px rgba(31,45,36,.1);
}
.hx-member__photo img { width: 100%; height: 100%; object-fit: cover; }
.hx-member__photo--empty { display: grid; place-items: center; color: var(--v5-line); font-size: 3rem; }
.hx-member__name { font-size: 1.1rem; margin: 0 0 .2rem; }
.hx-member__role { font-size: .85rem; color: var(--v5-accent); }
.hx-member__role, .hx-member__spec { display: block; }
.hx-member__spec { font-size: .8rem; color: var(--v5-ink-soft); margin-top: .15rem; }
.hx-member__bio { font-size: .88rem; line-height: 1.65; color: var(--v5-ink-soft); margin: .7rem 0 0; }

/* ── Reseñas ──────────────────────────────────────────── */
.hx-reviews { background: var(--v5-bg-2); }
.hx-rev__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.hx-rev { background: var(--v5-surface); border-radius: var(--r-md); padding: 2rem; }
.hx-rev__stars { color: var(--v5-warm); margin-bottom: .9rem; letter-spacing: .1em; }
.hx-rev__text { font-size: 1rem; line-height: 1.75; color: var(--v5-ink); margin: 0 0 1.4rem; }
.hx-rev__by { display: flex; flex-direction: column; gap: .1rem; padding-top: 1rem; border-top: 1px solid var(--v5-line); }
.hx-rev__by strong { font-size: .92rem; }
.hx-rev__by span { font-size: .8rem; color: var(--v5-ink-soft); }
.hx-rev__score { display: flex; align-items: baseline; gap: .7rem; justify-content: center; margin-top: 1rem; }
.hx-rev__score b { font-size: 2.4rem; font-weight: 700; color: var(--v5-accent); line-height: 1; }
.hx-rev__score span { font-size: .9rem; color: var(--v5-ink-soft); }

/* ── CTA ──────────────────────────────────────────────── */
.hx-cta { background: var(--v5-accent); padding: calc(var(--section-py) * .8) 0; text-align: center; border-radius: 0; }
.hx-cta__title { font-size: clamp(1.8rem, 3.8vw, 2.7rem); color: #fff; margin: 0 0 .8rem; }
.hx-cta__sub { font-size: 1.05rem; color: rgba(255,255,255,.9); margin: 0 0 2rem; }
.hx-cta__actions { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
[data-skin="wellness"] .hx-cta .btn--primary { background: #fff; color: var(--v5-accent-d); box-shadow: none; }
[data-skin="wellness"] .hx-cta .btn--outline-white { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
[data-skin="wellness"] .hx-cta .btn--outline-white:hover { background: #fff; color: var(--v5-accent-d); }

/* ── Redes ────────────────────────────────────────────── */
.hx-social { background: var(--v5-bg); }
.hx-social__row { display: flex; gap: .85rem; flex-wrap: wrap; justify-content: center; }
.hx-social__link {
  display: flex; align-items: center; gap: .55rem; padding: .8rem 1.4rem;
  background: var(--v5-surface); border: 1px solid var(--v5-line); border-radius: 999px;
  color: var(--v5-ink); text-decoration: none; font-size: .9rem; transition: all .25s ease;
}
.hx-social__link:hover { border-color: var(--v5-accent); color: var(--v5-accent); transform: translateY(-2px); }

/* ── Accesibilidad ────────────────────────────────────── */
[data-skin="wellness"] a:focus-visible, [data-skin="wellness"] button:focus-visible {
  outline: 3px solid var(--v5-accent); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  [data-skin="wellness"] *, [data-skin="wellness"] *::before, [data-skin="wellness"] *::after {
    transition-duration: .01ms !important; animation-duration: .01ms !important;
  }
}


/* ── Adelanto de servicios ────────────────────────────────
   La portada muestra solo los primeros (home_services_max) y
   enlaza al listado completo. Las descripciones se recortan a
   3 lineas: con 16 servicios de 2-3 frases la seccion se hacia
   interminable y repetia lo que ya lista Departamentos.       */
.hx-svc__desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hx-svc-more { margin-top: 2.25rem; text-align: center; }

/* ── Secciones del marcado compartido que faltaban ────────
   Departamentos, proceso, cita y noticias las pinta
   home_template.php; sin estas reglas salian como texto
   corrido y un <ol> con numeros.                             */

.hx-depts { background: var(--v5-bg-2); }
.hx-depts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: .85rem; }
.hx-dept {
  display: flex; align-items: center; gap: .75rem; background: var(--v5-surface);
  border-radius: 999px; padding: .95rem 1.3rem; text-decoration: none; color: var(--v5-ink);
  box-shadow: 0 6px 18px rgba(31,45,36,.06); transition: transform .25s ease, box-shadow .25s ease;
}
.hx-dept:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,45,36,.1); }
.hx-dept__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--sk-brand-light); color: var(--v5-accent); font-size: .9rem; }
.hx-dept__name { font-size: .86rem; font-weight: 500; line-height: 1.3; }

.hx-process { background: var(--v5-bg); }
.hx-process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.hx-step { background: var(--v5-surface); border-radius: var(--r-md); padding: 2rem 1.8rem; box-shadow: 0 8px 24px rgba(31,45,36,.06); }
.hx-step__num { display: block; font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--sk-brand-tint); line-height: 1; margin-bottom: .5rem; }
.hx-step__icon { display: block; font-size: 1.4rem; color: var(--v5-accent); margin-bottom: .6rem; }
.hx-step__title { font-size: 1.08rem; margin: 0 0 .45rem; }
.hx-step__text { font-size: .92rem; line-height: 1.75; color: var(--v5-ink-soft); margin: 0; }

.hx-booking { background: var(--v5-bg-2); }
.hx-booking__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  background: var(--v5-surface); border-radius: var(--r-lg); padding: 2.5rem 2.6rem; box-shadow: 0 10px 30px rgba(31,45,36,.07);
}
.hx-booking__text .hx-head { margin: 0; text-align: left; max-width: none; }
.hx-booking__actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.hx-booking__phone { display: flex; align-items: center; gap: .55rem; color: var(--v5-accent); font-weight: 700; text-decoration: none; font-size: 1.08rem; }
@media (max-width: 800px) { .hx-booking__inner { grid-template-columns: 1fr; padding: 1.9rem; } }

.hx-news { background: var(--v5-bg); }
.hx-news__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.4rem; }
.hx-post { background: var(--v5-surface); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 8px 24px rgba(31,45,36,.06); }
.hx-post__img { aspect-ratio: 16/10; overflow: hidden; }
.hx-post__img img { width: 100%; height: 100%; object-fit: cover; }
.hx-post__body { padding: 1.5rem; }
.hx-post__title { font-size: 1.06rem; margin: 0 0 .45rem; }
.hx-post__text { font-size: .92rem; line-height: 1.7; color: var(--v5-ink-soft); margin: 0; }
