/* =========================================================
   skins/care — "Care"
   Referencia: Medically. Barra de reserva flotante superpuesta
   al hero, proceso numerado unido por línea punteada, fotos de
   equipo en arco y banda de cifras.

   Color: solo variables --sk-*. Tipografía: solo var(--font*).
   ========================================================= */
[data-skin="care"] {
  --k-paper:  #FFFFFF;
  --k-paper2: #F4F8FD;
  --k-card:   #FFFFFF;
  --k-ink:    #111C2E;
  --k-soft:   #55637A;   /* 5.9:1 sobre paper2 */
  --k-line:   #DDE7F3;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --section-py: 88px;
}
@media (max-width: 768px) { [data-skin="care"] { --section-py: 56px; } }

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

/* ── Cabecera con píldora centrada ────────────────────── */
.hx-head { max-width: 56ch; margin: 0 auto 2.9rem; text-align: center; }
.hx-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sk-on-safe);
  background: var(--sk-brand-light); padding: .45rem 1rem; border-radius: 999px; margin-bottom: .95rem;
}
.hx-title { font-size: clamp(1.8rem, 3.9vw, 2.7rem); line-height: 1.16; margin: 0 0 .75rem; }
.hx-title em { font-style: normal; color: var(--sk-on-safe); }
.hx-lede { font-size: 1rem; line-height: 1.75; color: var(--k-soft); margin: 0; }

/* ── Botones ──────────────────────────────────────────── */
[data-skin="care"] .btn {
  border-radius: 999px; font-weight: 600; padding: .95rem 1.9rem; font-size: .9rem;
  transition: transform .25s ease, background .25s ease;
}
[data-skin="care"] .btn:hover { transform: translateY(-2px); }
[data-skin="care"] .btn--primary, [data-skin="care"] .btn--red {
  background: var(--sk-brand); color: var(--sk-brand-on); border: none;
}
[data-skin="care"] .btn--primary:hover { background: var(--sk-brand-dark); }
[data-skin="care"] .btn--outline, [data-skin="care"] .btn--outline-white {
  background: transparent; color: var(--sk-on-safe); border: 1.5px solid var(--k-line);
}
[data-skin="care"] .btn--outline:hover { border-color: var(--sk-brand); }
[data-skin="care"] .btn--whatsapp { background: #25D366; color: #06230F; border: none; border-radius: 999px; }

/* ── Hero: texto + figura sobre burbuja de marca ──────── */
[data-skin="care"] .hero { min-height: auto; background: var(--k-paper2); }
.hx-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; background: var(--k-paper2); position: relative; }
.hx-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.hx-hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.08; margin: 0 0 1.15rem; }
.hx-hero__title span { display: block; }
.hx-hero__title .hx-script { color: var(--sk-on-safe); }
.hx-hero__sub { font-size: 1.04rem; line-height: 1.75; color: var(--k-soft); max-width: 45ch; margin: 0 0 1.9rem; }
.hx-hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hx-hero__figure {
  position: relative; aspect-ratio: 1/1; margin: 0; overflow: hidden;
  border-radius: 50% 50% var(--r-lg) var(--r-lg);   /* arco superior, como la referencia */
  background: var(--sk-brand-light);
}
.hx-hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hx-hero__figure--empty { display: grid; place-items: center; color: var(--sk-brand); font-size: 4rem; opacity: .5; }
/* Barra de reserva flotante: sobresale del hero hacia la sección siguiente */
.hx-hero__meta {
  position: relative; z-index: 2; margin: 2.75rem 0 calc(var(--section-py) * -0.5);
  background: var(--k-card); border-radius: var(--r-md); box-shadow: 0 18px 44px rgba(17,28,46,.13);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: .35rem;
}
.hx-hero__meta-item { padding: 1.1rem 1.35rem; border-right: 1px solid var(--k-line); }
.hx-hero__meta-item:last-child { border-right: none; }
.hx-hero__meta-k { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--k-soft); }
.hx-hero__meta-v { display: block; font-family: var(--font-heading); font-size: 1.15rem; color: var(--sk-on-safe); margin-top: .15rem; }
@media (max-width: 900px) {
  .hx-hero__grid { grid-template-columns: 1fr; }
  .hx-hero__figure { order: -1; max-width: 320px; margin: 0 auto; }
  .hx-hero__meta-item { border-right: none; border-bottom: 1px solid var(--k-line); }
  .hx-hero__meta-item:last-child { border-bottom: none; }
}

/* ── Servicios: icono circular arriba ─────────────────── */
.hx-services { background: var(--k-paper); padding-top: calc(var(--section-py) * 1.2); }
.hx-svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.hx-svc {
  display: block; background: var(--k-card); border: 1px solid var(--k-line); border-radius: var(--r-md);
  padding: 2rem 1.8rem; text-decoration: none; color: inherit; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hx-svc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(17,28,46,.1); }
.hx-svc__num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--sk-brand); color: var(--sk-brand-on); font-weight: 700; margin-bottom: 1.1rem;
}
.hx-svc__body { display: block; }
.hx-svc__name { display: block; font-size: 1.1rem; margin: 0 0 .45rem; }
.hx-svc__desc { font-size: .92rem; line-height: 1.7; color: var(--k-soft); margin: 0; }
.hx-svc__arrow { display: inline-block; margin-top: .9rem; color: var(--sk-on-safe); }

/* ── Departamentos ────────────────────────────────────── */
.hx-depts { background: var(--k-paper2); }
.hx-depts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .9rem; }
.hx-dept {
  display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center;
  background: var(--k-card); border: 1px solid var(--k-line); border-radius: var(--r-md);
  padding: 1.5rem 1rem; text-decoration: none; color: var(--k-ink); transition: all .25s ease;
}
.hx-dept:hover { border-color: var(--sk-brand); transform: translateY(-3px); }
.hx-dept__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sk-brand-light); color: var(--sk-on-safe); font-size: 1.1rem; }
.hx-dept__name { font-size: .84rem; font-weight: 600; line-height: 1.35; }

/* ── Proceso: pasos unidos por línea punteada ─────────── */
.hx-process { background: var(--k-paper); }
.hx-process__list {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem;
}
.hx-process__list::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%;
  border-top: 2px dashed var(--k-line); z-index: 0;
}
.hx-step { position: relative; z-index: 1; text-align: center; padding: 0 1rem; }
.hx-step__num {
  display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: var(--sk-brand); color: var(--sk-brand-on); border: 6px solid var(--k-paper);
  font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 1rem;
}
.hx-step__icon { display: block; font-size: 1.3rem; color: var(--sk-on-safe); margin-bottom: .5rem; }
.hx-step__title { font-size: 1.05rem; margin: 0 0 .4rem; }
.hx-step__text { font-size: .9rem; line-height: 1.7; color: var(--k-soft); margin: 0; }
@media (max-width: 780px) { .hx-process__list::before { display: none; } }

/* ── Contadores: banda de marca ───────────────────────── */
.hx-stats { background: var(--sk-band); padding: calc(var(--section-py) * .6) 0; }
.hx-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.hx-stat { text-align: center; color: var(--sk-band-on); position: relative; }
.hx-stat + .hx-stat::before {
  content: ""; position: absolute; left: 0; top: 15%; bottom: 15%;
  border-left: 1px solid rgba(255,255,255,.28);
}
.hx-stat__n { font-family: var(--font-heading); font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1; }
.hx-stat__l { font-size: .84rem; margin-top: .35rem; opacity: .9; }

/* ── Cita: tarjeta de marca con teléfono grande ───────── */
.hx-booking { background: var(--k-paper); }
.hx-booking__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  background: var(--sk-band); color: var(--sk-band-on);
  border-radius: var(--r-lg); padding: 2.4rem 2.6rem;
}
.hx-booking__text .hx-head { margin: 0; text-align: left; max-width: none; }
.hx-booking__text .hx-eyebrow { background: rgba(255,255,255,.18); color: var(--sk-band-on); }
.hx-booking__text .hx-title { color: var(--sk-band-on); }
.hx-booking__text .hx-lede { color: var(--sk-band-on); opacity: .88; }
.hx-booking__actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.hx-booking__phone { display: flex; align-items: center; gap: .6rem; color: var(--sk-band-on); font-family: var(--font-heading); font-size: 1.35rem; text-decoration: none; }
[data-skin="care"] .hx-booking .btn--primary { background: var(--sk-band-on); color: var(--sk-band); }
@media (max-width: 820px) { .hx-booking__inner { grid-template-columns: 1fr; padding: 1.9rem; } }

/* ── Misión, aseguradoras, galería ────────────────────── */
.hx-quote { background: var(--k-paper2); padding: var(--section-py) 0; }
.hx-quote__inner { max-width: 54ch; margin: 0 auto; text-align: center; }
.hx-quote__mark { font-size: 3rem; line-height: 1; color: var(--sk-on-safe); display: block; opacity: .5; }
.hx-quote__text { font-size: clamp(1.3rem, 2.7vw, 1.9rem); line-height: 1.5; margin: .3rem 0 1.3rem; }
.hx-quote__by { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--k-soft); }

.hx-ins { background: var(--k-paper); }
.hx-ins__row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hx-ins__item { display: flex; flex-direction: column; align-items: center; gap: .6rem; background: var(--k-paper2); border-radius: var(--r-md); padding: 1.3rem 1.5rem; min-width: 145px; filter: grayscale(1); opacity: .75; transition: all .25s ease; }
.hx-ins__item:hover { filter: none; opacity: 1; }
.hx-ins__item img { height: 36px; width: auto; object-fit: contain; }
.hx-ins__item span { font-size: .78rem; color: var(--k-soft); text-align: center; }

.hx-gallery { background: var(--k-paper2); }
.hx-gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem; }
.hx-gallery__item { margin: 0; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 3/4; }
.hx-gallery__item:nth-child(even) { aspect-ratio: 3/4; margin-top: 1.75rem; }  /* escalonado */
.hx-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.hx-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .hx-gallery__item:nth-child(even) { margin-top: 0; } }

/* ── Horario + ubicación ──────────────────────────────── */
.hx-info { background: var(--k-paper); }
.hx-info__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.6rem, 4vw, 3rem); }
.hx-info__grid > div { background: var(--k-paper2); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.3rem); }
.hx-info .hx-head { text-align: left; margin: 0 0 1.5rem; max-width: none; }
.hx-hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: .78rem 0; font-size: .93rem; border-bottom: 1px solid var(--k-line); }
.hx-hours__row:last-child { border-bottom: none; }
.hx-hours__d { font-weight: 600; }
.hx-hours__h { color: var(--k-soft); font-variant-numeric: tabular-nums; }
.hx-hours__row--today { background: var(--k-card); border-radius: var(--r-sm); padding-left: .85rem; padding-right: .85rem; }
.hx-hours__row--today .hx-hours__d, .hx-hours__row--today .hx-hours__h { color: var(--sk-on-safe); font-weight: 700; }
.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.15rem; font-size: .93rem; line-height: 1.7; color: var(--k-soft); }
.hx-addr strong { display: block; color: var(--k-ink); font-size: 1rem; margin-bottom: .25rem; }
@media (max-width: 860px) { .hx-info__grid { grid-template-columns: 1fr; } }

/* ── Equipo: fotos en arco sobre burbuja de marca ─────── */
.hx-team { background: var(--k-paper2); }
.hx-team__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 1.4rem; }
.hx-member { text-align: center; }
.hx-member__photo {
  aspect-ratio: 3/4; overflow: hidden; margin: 0 auto 1rem; max-width: 210px;
  border-radius: 999px 999px var(--r-md) var(--r-md);
  background: var(--sk-brand-light);
}
.hx-member__photo img { width: 100%; height: 100%; object-fit: cover; }
.hx-member__photo--empty { display: grid; place-items: center; color: var(--sk-brand); font-size: 2.8rem; opacity: .5; }
.hx-member__name { font-size: 1.06rem; margin: 0 0 .18rem; }
.hx-member__role { font-size: .82rem; color: var(--sk-on-safe); font-weight: 600; }

/* ── Reseñas ──────────────────────────────────────────── */
.hx-reviews { background: var(--k-paper); }
.hx-rev__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.hx-rev { background: var(--k-paper2); border-radius: var(--r-md); padding: 2rem; position: relative; }
.hx-rev::before {
  content: "\201C"; position: absolute; top: .6rem; right: 1.4rem;
  font-family: var(--font-heading); font-size: 3.4rem; line-height: 1; color: var(--sk-brand-light);
}
.hx-rev__stars { color: var(--sk-second-on-safe); margin-bottom: .85rem; letter-spacing: .1em; }
.hx-rev__text { font-size: .96rem; line-height: 1.75; margin: 0 0 1.25rem; position: relative; }
.hx-rev__by { display: flex; flex-direction: column; gap: .1rem; padding-top: .95rem; border-top: 1px solid var(--k-line); }
.hx-rev__by strong { font-size: .92rem; }
.hx-rev__by span { font-size: .79rem; color: var(--k-soft); }
.hx-rev__score { display: flex; align-items: baseline; gap: .65rem; justify-content: center; margin-top: .85rem; }
.hx-rev__score b { font-family: var(--font-heading); font-size: 2.3rem; color: var(--sk-on-safe); line-height: 1; }
.hx-rev__score span { font-size: .89rem; color: var(--k-soft); }

/* ── Noticias ─────────────────────────────────────────── */
.hx-news { background: var(--k-paper2); }
.hx-news__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.hx-post { background: var(--k-card); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--k-line); }
.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.4rem; }
.hx-post__title { font-size: 1.04rem; margin: 0 0 .4rem; }
.hx-post__text { font-size: .9rem; line-height: 1.68; color: var(--k-soft); margin: 0; }

/* ── CTA y redes ──────────────────────────────────────── */
.hx-cta { background: var(--k-paper); padding: calc(var(--section-py) * .8) 0; }
.hx-cta .container > * { text-align: center; }
.hx-cta__title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin: 0 0 .75rem; text-align: center; }
.hx-cta__sub { font-size: 1rem; color: var(--k-soft); margin: 0 0 1.8rem; text-align: center; }
.hx-cta__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.hx-social { background: var(--k-paper2); }
.hx-social__row { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.hx-social__link {
  display: flex; align-items: center; gap: .55rem; padding: .8rem 1.35rem;
  background: var(--k-card); border: 1px solid var(--k-line); border-radius: 999px;
  color: var(--k-ink); text-decoration: none; font-size: .87rem; transition: all .25s ease;
}
.hx-social__link:hover { border-color: var(--sk-brand); color: var(--sk-on-safe); transform: translateY(-2px); }

/* ── Accesibilidad ────────────────────────────────────── */
[data-skin="care"] a:focus-visible, [data-skin="care"] button:focus-visible {
  outline: 3px solid var(--sk-brand); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  [data-skin="care"] *, [data-skin="care"] *::before, [data-skin="care"] *::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; }
