/* ==========================================================================
   home-ux.css — capa de UX/UI exclusiva de index.html
   --------------------------------------------------------------------------
   - Sólo la carga index.html. Todas las reglas van bajo `body.home-ux`:
     doctor.css y testimonios.css también los carga landing/lading-gnr.html,
     y cta.min.css lo comparten 7 páginas. Acá se pisan sin tocarlos.
   - Misma paleta y lenguaje visual que tms-ux.css (azul oscuro, tarjetas
     con borde suave, pastillas verdes de WhatsApp).
   - Secciones: Excelencia → Dr. Andersson → Testimonios → CTA.
   ========================================================================== */

body.home-ux {
  --hx-azul: #0D2AD1;
  --hx-azul-700: #0a1f9e;
  --hx-azul-900: #08154f;
  --hx-acento: #007bff;
  --hx-celeste-50: #f3f6ff;
  --hx-celeste-100: #e6ecff;
  --hx-tinta: #1b2140;
  --hx-texto: #4a5068;
  --hx-borde: rgba(13, 42, 209, 0.10);
  --hx-wa: #10b982;
  --hx-radio: 16px;
  --hx-sombra: 0 1px 2px rgba(16, 24, 64, .04), 0 8px 24px rgba(16, 24, 64, .06);
  /* fondo a todo el ancho, contenido a 1100px */
  --hx-gutter: max(1.25rem, calc((100% - 1100px) / 2));
  --hx-wa-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.75-.86-2.02-.96-.27-.1-.47-.15-.67.15-.2.3-.77.96-.94 1.16-.17.2-.35.22-.64.07-.3-.15-1.25-.46-2.38-1.47-.88-.79-1.47-1.76-1.65-2.06-.17-.3-.02-.46.13-.6.13-.14.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.03-.52-.07-.15-.67-1.6-.92-2.2-.24-.58-.49-.5-.67-.5h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48s1.06 2.88 1.21 3.08c.15.2 2.1 3.2 5.08 4.48.71.31 1.26.49 1.69.63.71.22 1.36.19 1.87.12.57-.09 1.75-.72 2-1.41.25-.7.25-1.29.17-1.41-.07-.13-.27-.2-.57-.35M12.05 21.5h-.01a9.43 9.43 0 0 1-4.8-1.32l-.35-.2-3.57.93.95-3.48-.22-.36a9.4 9.4 0 0 1-1.44-5.02c0-5.2 4.24-9.44 9.45-9.44a9.38 9.38 0 0 1 6.68 2.77 9.38 9.38 0 0 1 2.76 6.68c0 5.21-4.24 9.45-9.45 9.45M20.1 3.9A11.3 11.3 0 0 0 12.05.56C5.78.56.67 5.66.67 11.94c0 2 .53 3.96 1.52 5.69L.57 23.5l6-1.57a11.36 11.36 0 0 0 5.47 1.4h.01c6.27 0 11.38-5.1 11.38-11.38 0-3.04-1.18-5.9-3.33-8.05'/%3E%3C/svg%3E");
  /* corta el scroll horizontal de 3px a 320px que causaba el carrusel viejo */
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   Piezas comunes
   -------------------------------------------------------------------------- */
body.home-ux .home-eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hx-azul);
}
body.home-ux .excelencia-neuro .excelencia-header h2,
body.home-ux .doctor-info h2,
body.home-ux .google-reviews-carousel .carousel-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hx-tinta);
  text-wrap: balance;
}

/* CTA liviano: pastilla verde con ícono de WhatsApp */
body.home-ux .home-cta-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 1.25rem 0.6rem 1rem;
  font-size: 0.97rem;
  font-weight: 600;
  color: #0a7f58;
  text-decoration: none;
  background: rgba(16, 185, 130, .08);
  border: 1.5px solid rgba(16, 185, 130, .45);
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
body.home-ux .home-cta-inline::before,
body.home-ux .cta-custom-button::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--hx-wa-mask) center / contain no-repeat;
  mask: var(--hx-wa-mask) center / contain no-repeat;
}
body.home-ux .home-cta-inline:hover {
  color: #fff;
  background: var(--hx-wa);
  border-color: var(--hx-wa);
}
body.home-ux a:focus-visible,
body.home-ux button:focus-visible,
body.home-ux summary:focus-visible {
  outline: 3px solid rgba(0, 123, 255, .45);
  outline-offset: 3px;
}

/* ==========================================================================
   1. EXCELENCIA EN NEUROLOGÍA
   ========================================================================== */
body.home-ux .excelencia-neuro {
  max-width: none;
  margin: 0;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--hx-gutter);
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.home-ux .excelencia-header {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  text-align: center;
}
body.home-ux .excelencia-subtitulo {
  max-width: none;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  color: var(--hx-texto);
}

/* Métricas: franja clara con 4 números (antes 4 tarjetas sueltas).
   Fondo celeste suave y no azul oscuro: era demasiado pesado para una franja de datos. */
body.home-ux .excelencia-metricas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  margin: 0 0 clamp(2.75rem, 6vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(0.75rem, 2vw, 1.5rem);
  border-radius: 22px;
  background: linear-gradient(135deg, #f3f6ff 0%, #e9eeff 100%);
  border: 1px solid var(--hx-borde);
}
body.home-ux .excelencia-metrica,
body.home-ux .excelencia-metrica:hover {
  position: relative;
  padding: 0.5rem 1rem;
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
body.home-ux .excelencia-metrica + .excelencia-metrica::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(13, 42, 209, .14);
}
body.home-ux .excelencia-metrica-numero {
  display: block;
  margin-bottom: 0.3rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--hx-azul);
  font-variant-numeric: tabular-nums;
}
body.home-ux .excelencia-metrica-texto {
  display: block;
  max-width: 22ch;
  margin: 0 auto;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--hx-texto);
}

/* Foto + texto con pilares */
body.home-ux .excelencia-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
body.home-ux .excelencia-imagen { min-width: 0; text-align: left; }
body.home-ux .excelencia-imagen img {
  display: block;
  width: 100%;
  max-width: none;
  /* cuadrada: en 4:5 la sección quedaba más alta que la original */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(8, 21, 79, .18);
}
body.home-ux .excelencia-texto { min-width: 0; font-size: 1rem; color: var(--hx-texto); }
body.home-ux .excelencia-texto .excelencia-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.6;
  color: var(--hx-tinta);
}
body.home-ux .excelencia-texto strong { color: var(--hx-tinta); }
body.home-ux .excelencia-pilares {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
body.home-ux .excelencia-pilares li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--hx-celeste-50);
  border: 1px solid var(--hx-borde);
  border-radius: 14px;
}
body.home-ux .excelencia-pilar-icono {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--hx-azul), var(--hx-acento));
}
body.home-ux .excelencia-pilar-icono svg { width: 21px; height: 21px; }
body.home-ux .excelencia-pilares strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.02rem;
}
body.home-ux .excelencia-pilares div span {
  display: block;
  font-size: 0.93rem;
  line-height: 1.5;
}
body.home-ux .excelencia-texto .excelencia-equipo {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--hx-texto);
}

@media (max-width: 860px) {
  body.home-ux .excelencia-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  body.home-ux .excelencia-imagen img {
    aspect-ratio: 16 / 10;
    object-position: 50% 30%;
    border-radius: 20px;
  }
}
@media (max-width: 700px) {
  /* 2×2: en celular cada métrica era una tarjeta de media pantalla */
  body.home-ux .excelencia-metricas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
    padding: 1.4rem 0.5rem;
    border-radius: 18px;
  }
  body.home-ux .excelencia-metrica { padding: 0.25rem 0.6rem; }
  body.home-ux .excelencia-metrica:nth-child(3)::before { display: none; }
  body.home-ux .excelencia-metrica-texto { font-size: 0.82rem; }
  body.home-ux .excelencia-pilares li { padding: 0.9rem; gap: 0.8rem; }
}
@media (max-width: 360px) {
  /* en 160px de columna "Pacientes atendidos" cortaba en 2 renglones */
  body.home-ux .excelencia-metrica-texto { font-size: 0.76rem; }
  body.home-ux .excelencia-metrica { padding: 0.25rem 0.4rem; }
  body.home-ux .excelencia-pilar-icono { width: 38px; height: 38px; border-radius: 10px; }
}

/* ==========================================================================
   2. DR. ANDERSSON
   ========================================================================== */
body.home-ux .doctor-info {
  max-width: none;
  margin: 0;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--hx-gutter);
  background: var(--hx-celeste-50);
}
body.home-ux .doctor-container {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
body.home-ux .doctor-img {
  position: relative;
  isolation: isolate;
}
/* marco desplazado detrás de la foto (mismo recurso que la hero de TMS) */
body.home-ux .doctor-img::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(13, 42, 209, .18);
  border-radius: 28px;
}
body.home-ux .doctor-img img {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(8, 21, 79, .2);
}
body.home-ux .doctor-content { min-width: 0; }
body.home-ux .doctor-content h2 { text-align: left; }
body.home-ux .doctor-cargo {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--hx-azul);
}
body.home-ux .doctor-bio {
  max-width: 54ch;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--hx-texto);
}
/* logros como chips (doctor.css pone list-style:disc y margin-left en todo ul) */
body.home-ux .doctor-content ul { margin: 0; padding: 0; list-style: none; }
body.home-ux .doctor-content ul li { margin: 0; }
body.home-ux .doctor-logros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem !important;
}
body.home-ux .doctor-logros li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--hx-tinta);
  background: #fff;
  border: 1px solid var(--hx-borde);
  border-radius: 999px;
}
body.home-ux .doctor-logros svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--hx-azul); }

/* "Divulgador científico en": el dato de más impacto, antes era una viñeta */
body.home-ux .doctor-prensa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hx-borde);
  border-bottom: 1px solid var(--hx-borde);
}
body.home-ux .doctor-prensa-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hx-texto);
}
body.home-ux .doctor-prensa ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}
body.home-ux .doctor-prensa li {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hx-tinta);
  opacity: .8;
}

/* membresías plegadas */
body.home-ux .doctor-trayectoria { margin: 0 0 1.75rem; }
body.home-ux .doctor-trayectoria summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hx-azul);
  list-style: none;
  cursor: pointer;
}
body.home-ux .doctor-trayectoria summary::-webkit-details-marker { display: none; }
body.home-ux .doctor-trayectoria summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
body.home-ux .doctor-trayectoria[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
body.home-ux .doctor-trayectoria-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 0.75rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--hx-borde);
  border-radius: 14px;
}
body.home-ux .doctor-trayectoria h3 {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hx-texto);
}
body.home-ux .doctor-trayectoria li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.45rem !important;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--hx-tinta);
}
body.home-ux .doctor-trayectoria li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hx-azul);
}

@media (max-width: 860px) {
  body.home-ux .doctor-container { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  body.home-ux .doctor-img { max-width: 420px; width: 100%; margin: 0 auto; }
  body.home-ux .doctor-img::before { inset: 12px -12px -12px 12px; }
  body.home-ux .doctor-img img { aspect-ratio: 1 / 1; object-position: 50% 15%; }
}
@media (max-width: 600px) {
  /* a todo el ancho la foto ocupaba casi una pantalla entera */
  body.home-ux .doctor-img { max-width: 280px; margin: 0 auto; }
  body.home-ux .doctor-img::before { inset: 10px -10px -10px 10px; }
  body.home-ux .doctor-bio { font-size: 1rem; }
  body.home-ux .doctor-logros li { font-size: 0.86rem; }
  body.home-ux .doctor-prensa { flex-direction: column; align-items: flex-start; }
  body.home-ux .doctor-prensa li { font-size: 1.05rem; }
  body.home-ux .doctor-trayectoria-cols { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
  body.home-ux .home-cta-inline { display: flex; justify-content: center; }
}

/* ==========================================================================
   3. TESTIMONIOS (reseñas de Google)
   ========================================================================== */
body.home-ux .google-reviews-carousel {
  max-width: none;
  margin: 0;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--hx-gutter);
  text-align: left;
  background: #fff;
}
body.home-ux .reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
}
body.home-ux .google-reviews-carousel .carousel-title { margin: 0; text-align: left; }
body.home-ux .reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem 0.65rem 0.8rem;
  text-decoration: none;
  color: var(--hx-tinta);
  background: #fff;
  border: 1px solid var(--hx-borde);
  border-radius: 16px;
  box-shadow: var(--hx-sombra);
  transition: border-color .2s, box-shadow .2s;
}
body.home-ux .reviews-badge:hover {
  border-color: rgba(13, 42, 209, .3);
  box-shadow: 0 2px 4px rgba(16, 24, 64, .05), 0 16px 36px rgba(16, 24, 64, .1);
}
body.home-ux .reviews-badge img { width: 32px; height: 32px; }
body.home-ux .reviews-badge-score {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
body.home-ux .reviews-badge-info { display: flex; flex-direction: column; gap: 0.15rem; }
body.home-ux .reviews-badge-stars { font-size: 0.95rem; line-height: 1; letter-spacing: 0.06em; color: #fbbc04; }
body.home-ux .reviews-badge-text { font-size: 0.8rem; color: var(--hx-texto); }

/* Carrusel con scroll-snap (reemplaza a testimonios.js en la home) */
body.home-ux .google-reviews-carousel .carousel-container { overflow: visible; }
body.home-ux .google-reviews-carousel .carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
  gap: 1.25rem;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.25rem 0.25rem 1.25rem;
  transform: none !important;
  transition: none;
}
body.home-ux .google-reviews-carousel .carousel-track::-webkit-scrollbar { display: none; }
body.home-ux .google-reviews-carousel .review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: none;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 1.5rem;
  scroll-snap-align: start;
  text-align: left;
  background: #fff;
  border: 1px solid var(--hx-borde);
  border-radius: var(--hx-radio);
  box-shadow: var(--hx-sombra);
}
/* comilla decorativa */
body.home-ux .google-reviews-carousel .review-card::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  right: 1.1rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--hx-celeste-100);
  pointer-events: none;
}
body.home-ux .google-reviews-carousel .stars {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #fbbc04;
}
body.home-ux .google-reviews-carousel .content {
  flex-grow: 1;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--hx-tinta);
}
body.home-ux .google-reviews-carousel .reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hx-borde);
}
body.home-ux .reviewer-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 700;
  color: var(--hx-azul);
  background: var(--hx-celeste-100);
}
body.home-ux .google-reviews-carousel .reviewer-info { min-width: 0; }
body.home-ux .google-reviews-carousel .reviewer-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hx-tinta);
}
body.home-ux .google-reviews-carousel .reviewer-date { margin: 0; font-size: 0.8rem; color: var(--hx-texto); }
body.home-ux .google-reviews-carousel .google-logo { width: 22px; height: 22px; margin-left: auto; }

/* Controles: flechas + barra de progreso (22 puntos serían demasiados) */
body.home-ux .home-carousel-nav[hidden] { display: none; }
body.home-ux .home-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
body.home-ux .home-carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--hx-azul);
  background: #fff;
  border: 1.5px solid rgba(13, 42, 209, .22);
  border-radius: 50%;
  box-shadow: var(--hx-sombra);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
body.home-ux .home-carousel-btn svg { width: 20px; height: 20px; }
body.home-ux .home-carousel-btn:not(:disabled):hover,
body.home-ux .home-carousel-btn:not(:disabled):active {
  color: #fff;
  background: var(--hx-azul);
  border-color: var(--hx-azul);
}
body.home-ux .home-carousel-btn:disabled { opacity: .35; box-shadow: none; cursor: default; }
body.home-ux .home-carousel-progress {
  flex: 0 1 220px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--hx-celeste-100);
}
body.home-ux .home-carousel-progress span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--hx-azul);
  transition: margin-left .15s linear, width .15s linear;
}

body.home-ux .reviews-video-link { margin: 1.75rem 0 0; text-align: center; }
body.home-ux .reviews-video-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--hx-azul);
  text-decoration: none;
}
/* botoncito de play */
body.home-ux .reviews-video-link a::before {
  content: "";
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--hx-azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
body.home-ux .reviews-video-link a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  body.home-ux .google-reviews-carousel .carousel-track { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); }
}
@media (max-width: 768px) {
  body.home-ux .google-reviews-carousel .carousel-track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
}
@media (max-width: 600px) {
  body.home-ux .reviews-head { align-items: flex-start; flex-direction: column; margin-bottom: 1.5rem; }
  /* el carrusel sangra hasta los bordes: se ve el "peek" de la siguiente reseña */
  body.home-ux .google-reviews-carousel .carousel-track {
    grid-auto-columns: 84%;
    gap: 0.875rem;
    margin-inline: calc(var(--hx-gutter) * -1);
    padding-inline: var(--hx-gutter);
    scroll-padding-inline: var(--hx-gutter);
  }
  body.home-ux .google-reviews-carousel .review-card { padding: 1.25rem; }
  body.home-ux .google-reviews-carousel .content { font-size: 0.95rem; }
}

/* ==========================================================================
   4. CTA (después de la prueba social)
   ========================================================================== */
body.home-ux .cta-custom-section {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  width: calc(100% - 2.5rem);
  margin: clamp(1rem, 3vw, 1.5rem) auto clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2.5rem, 6vw, 3.75rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  color: #fff;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(112, 169, 213, .45), transparent 45%),
    linear-gradient(135deg, var(--hx-azul) 0%, var(--hx-azul-900) 100%);
  box-shadow: 0 20px 50px rgba(13, 42, 209, .25);
}
body.home-ux .cta-custom-title {
  max-width: 22ch;
  margin: 0 auto 0.75rem;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}
body.home-ux .cta-custom-description {
  max-width: 46ch;
  margin: 0 auto 1.75rem;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
}
body.home-ux .cta-custom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--hx-wa);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16, 185, 130, .35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body.home-ux .cta-custom-button:hover {
  color: #fff;
  background: #0ea371;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 130, .45);
}
body.home-ux .cta-custom-button::before { width: 22px; height: 22px; }
body.home-ux .cta-custom-info {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, .65);
}
@media (max-width: 600px) {
  body.home-ux .cta-custom-section { width: calc(100% - 2rem); border-radius: 20px; }
  body.home-ux .cta-custom-button { display: flex; width: 100%; font-size: 1rem; padding: 0.9rem 1.25rem; }
}

/* ==========================================================================
   Contacto: origen real del scroll horizontal de 3px a 320px.
   contacto.min.css usa `1fr`, cuyo mínimo implícito es el ancho de contenido:
   el email (una sola "palabra" larga) no deja que la columna baje de 323px.
   ========================================================================== */
@media (max-width: 768px) {
  body.home-ux .contacto-grid { grid-template-columns: minmax(0, 1fr); }
  body.home-ux .contacto-info-centro,
  body.home-ux .contacto-mapa-centro { min-width: 0; }
  body.home-ux .info-lista a { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  body.home-ux .cta-custom-button:hover { transform: none; }
  body.home-ux .home-carousel-progress span { transition: none; }
}
