/* ==========================================================================
   tms-ux.css — capa de UX/UI exclusiva de tms.html
   --------------------------------------------------------------------------
   - Sólo la carga tms.html. Todas las reglas van bajo `body.tms-ux` para que
     sean inertes en cualquier otra página aunque alguien la enlace por error.
   - Va en el <head>, pero le gana a los <style> inline del <body> por
     especificidad (body.tms-ux suma clase + elemento), no por orden.
   - No toca ids ni hrefs: el tracking de GTM de esta página sigue igual.
   - Lucide reemplaza <i data-lucide> por <svg>: los iconos se dimensionan
     con width/height sobre el svg, no con font-size.
   ========================================================================== */

body.tms-ux {
  --tms-azul: #0D2AD1;
  --tms-azul-700: #0a1f9e;
  --tms-azul-900: #08154f;
  --tms-acento: #007bff;
  --tms-celeste-50: #f3f6ff;
  --tms-celeste-100: #e6ecff;
  --tms-tinta: #1b2140;
  --tms-texto: #4a5068;
  --tms-borde: rgba(13, 42, 209, 0.10);
  --tms-wa: #10b982;
  --tms-radio: 16px;
  --tms-sombra: 0 1px 2px rgba(16, 24, 64, .04), 0 8px 24px rgba(16, 24, 64, .06);
  --tms-sombra-hover: 0 2px 4px rgba(16, 24, 64, .05), 0 16px 36px rgba(16, 24, 64, .10);
  /* gutter que deja el contenido en 1100px pero el fondo a todo el ancho */
  --tms-gutter: max(1.25rem, calc((100% - 1100px) / 2));
  background: #fff;
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   Secciones: fondo a todo el ancho, contenido a 1100px, ritmo vertical único
   -------------------------------------------------------------------------- */
body.tms-ux .tms-benefits,
body.tms-ux .video-section-main,
body.tms-ux .tms-extra-videos,
body.tms-ux .ventajas-tms-section,
body.tms-ux .procedimiento-section,
body.tms-ux .condiciones-section,
body.tms-ux .faq-section,
body.tms-ux .tms-respaldo,
body.tms-ux .contacto {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(3rem, 7vw, 5.5rem) var(--tms-gutter);
}

body.tms-ux .tms-benefits        { background: #fff; }
body.tms-ux .video-section-main  { background: var(--tms-celeste-50); padding-bottom: clamp(2rem, 4vw, 3rem); }
body.tms-ux .tms-extra-videos    { background: var(--tms-celeste-50); padding-top: clamp(1.5rem, 3vw, 2.5rem); }
body.tms-ux .ventajas-tms-section{ background: #fff; }
body.tms-ux .procedimiento-section { background: var(--tms-celeste-50); }
body.tms-ux .condiciones-section { background: #fff; }
body.tms-ux .faq-section         { background: var(--tms-celeste-50); }
body.tms-ux .tms-respaldo        { background: #fff; }
body.tms-ux .contacto            { background: var(--tms-celeste-50); }

/* Títulos de sección: mismo tamaño, color y acento en toda la página */
body.tms-ux .tms-benefits h2,
body.tms-ux .video-section-main h2,
body.tms-ux .tms-extra-videos h2,
body.tms-ux .ventajas-tms-title,
body.tms-ux .procedimiento-section h2,
body.tms-ux .condiciones-section h2,
body.tms-ux .faq-section h2,
body.tms-ux .tms-respaldo h2,
body.tms-ux .contacto h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--tms-tinta);
  text-align: center;
  max-width: 22ch;
  margin: 0 auto 1rem;
  text-wrap: balance;
}
body.tms-ux .tms-benefits h2::after,
body.tms-ux .video-section-main h2::after,
body.tms-ux .ventajas-tms-title::after,
body.tms-ux .procedimiento-section h2::after,
body.tms-ux .condiciones-section h2::after,
body.tms-ux .faq-section h2::after,
body.tms-ux .tms-respaldo h2::after,
body.tms-ux .contacto h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 0.9rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--tms-azul), var(--tms-acento));
}
/* "Más videos" es continuación del bloque de video: sin acento, más chico */
body.tms-ux .tms-extra-videos h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  max-width: none;
}

body.tms-ux .tms-intro,
body.tms-ux .tms-subintro,
body.tms-ux .video-description,
body.tms-ux .tms-extra-intro,
body.tms-ux .ventajas-tms-subtitle,
body.tms-ux .tms-respaldo-intro,
body.tms-ux .contacto-subtitulo {
  max-width: 62ch;
  margin: 0 auto 1rem;
  padding: 0;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: var(--tms-texto);
  text-wrap: pretty;
}
body.tms-ux .tms-subintro {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tms-azul);
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
body.tms-ux .hero {
  /* svh: en mobile no salta cuando aparece/desaparece la barra del navegador */
  min-height: calc(100vh - 57px);
  min-height: calc(100svh - 57px);
}
body.tms-ux .hero-overlay {
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(8, 21, 79, .55) 0%, rgba(8, 21, 79, 0) 100%),
    linear-gradient(180deg, rgba(8, 21, 79, .60) 0%, rgba(8, 21, 79, .30) 45%, rgba(8, 21, 79, .80) 100%);
}
/* Fuera los translateY(-8%) de ajuste: centrado real por flex */
body.tms-ux .hero-content-wrapper {
  transform: none;
  min-height: 0;
  padding: clamp(2rem, 5vh, 3.5rem) 1.25rem clamp(3rem, 8vh, 4.5rem);
}
body.tms-ux .hero-content {
  max-width: 760px;
  padding: 0;
}
body.tms-ux .hero-badge {
  margin-bottom: clamp(1rem, 2.5vh, 1.5rem);
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  text-shadow: none;
}
body.tms-ux .hero-content h1 {
  font-size: clamp(1.85rem, 4.4vw, 3.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 auto clamp(1.25rem, 3vh, 1.75rem);
  max-width: 24ch;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
/* Beneficios: bloque alineado a la izquierda y centrado como conjunto */
body.tms-ux .hero-features {
  display: grid;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(1.5rem, 3.5vh, 2rem);
}
body.tms-ux .hero-features li {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  gap: 0.7rem;
  padding: 0;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.45;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
body.tms-ux .hero-features li:hover { transform: none; }
body.tms-ux .hero-features svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 0.1rem 0 0;
  padding: 3px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(16, 185, 130, .18);
  color: #5ee6b4;
  filter: none;
}
body.tms-ux .hero-buttons {
  max-width: 560px;
  gap: 0.75rem;
  margin: 0 auto;
  padding: 0;
}
body.tms-ux .hero-buttons .btn {
  min-height: 52px;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: 999px;
}
body.tms-ux .hero-buttons .btn-primary {
  background: var(--tms-acento);
  box-shadow: 0 8px 24px rgba(0, 123, 255, .45);
}
body.tms-ux .hero-buttons .btn-primary:hover { background: #0069e0; }
body.tms-ux .hero-buttons .btn-secondary {
  border: 1.5px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}
body.tms-ux .hero-buttons .btn-secondary span::before {
  /* triangulito de "play" para que se lea como video */
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0.6rem;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  vertical-align: 1px;
}
body.tms-ux .hero-stats { margin-top: clamp(1.5rem, 3.5vh, 2.25rem); }
body.tms-ux .hero-stats .stats-list {
  gap: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
body.tms-ux .hero-stats .stat-item {
  flex-direction: row;
  gap: 0.6rem;
  padding: 0 1.5rem;
}
body.tms-ux .hero-stats .stat-item + .stat-item { border-left: 1px solid rgba(255, 255, 255, .25); }
body.tms-ux .hero-stats .stat-item svg {
  width: 22px;
  height: 22px;
  color: #8fc4ff;
  filter: none;
}
body.tms-ux .hero-stats .stat-number { font-size: 1.5rem; }
body.tms-ux .hero-stats .stat-label {
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: left;
  max-width: 9ch;
}
body.tms-ux .scroll-down { bottom: 1.25rem; }
body.tms-ux .scroll-down svg { width: 28px; height: 28px; }

@media (max-width: 768px) {
  body.tms-ux .hero { min-height: 0; }
  body.tms-ux .hero-content-wrapper { padding: 2rem 1.25rem 2.5rem; }
  body.tms-ux .hero-content { padding: 0; }
  body.tms-ux .hero-badge { font-size: 0.7rem; padding: 0.45rem 0.9rem; }
  body.tms-ux .hero-content h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
  }
  body.tms-ux .hero-features li { font-size: 0.98rem; }
  body.tms-ux .hero-buttons { flex-direction: column; }
  body.tms-ux .hero-buttons .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    padding: 0.85rem 1.25rem;
  }
  body.tms-ux .hero-stats .stat-item { padding: 0 1rem; }
  body.tms-ux .hero-stats .stat-number { font-size: 1.3rem; }
  body.tms-ux .hero-stats .stat-label { font-size: 0.68rem; }
  /* en mobile el contenido ya ocupa la pantalla: el chevron sólo estorbaba */
  body.tms-ux .scroll-down { display: none; }
}
@media (max-width: 420px) {
  body.tms-ux .hero-stats .stat-item { padding: 0 0.75rem; gap: 0.45rem; }
  body.tms-ux .hero-stats .stat-number { font-size: 1.2rem; }
  body.tms-ux .hero-stats .stat-label { font-size: 0.62rem; }
}
@media (max-width: 360px) {
  body.tms-ux .hero-content-wrapper { padding-inline: 1rem; }
  body.tms-ux .hero-stats .stat-item { padding: 0 0.7rem; }
  body.tms-ux .hero-stats .stat-item svg { display: none; }
}

/* --------------------------------------------------------------------------
   ¿Para qué sirve? — 10 indicaciones
   -------------------------------------------------------------------------- */
body.tms-ux .tms-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
body.tms-ux .tms-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tms-tinta);
  background: #fff;
  border: 1px solid var(--tms-borde);
  border-radius: var(--tms-radio);
  box-shadow: var(--tms-sombra);
}
body.tms-ux .tms-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tms-sombra-hover);
  border-color: rgba(13, 42, 209, .22);
}
body.tms-ux .tms-card svg {
  width: 22px;
  height: 22px;
  padding: 9px;
  box-sizing: content-box;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--tms-azul);
  background: var(--tms-celeste-100);
}
@media (max-width: 1024px) {
  body.tms-ux .tms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tms-ux .tms-card { flex-direction: row; align-items: center; }
}
@media (max-width: 600px) {
  body.tms-ux .tms-grid { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  body.tms-ux .tms-card { padding: 0.8rem 0.9rem; font-size: 0.95rem; gap: 0.8rem; }
  body.tms-ux .tms-card svg { width: 20px; height: 20px; padding: 8px; border-radius: 10px; }
}

/* --------------------------------------------------------------------------
   Videos
   -------------------------------------------------------------------------- */
body.tms-ux .video-container-main {
  max-width: 880px;
  margin-top: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(8, 21, 79, .22);
}
body.tms-ux .tms-extra-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin-top: 1.25rem;
}
body.tms-ux .video-card {
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.75rem 0.75rem 1rem;
  background: #fff;
  border-radius: var(--tms-radio);
  box-shadow: var(--tms-sombra);
}
body.tms-ux .video-card .video-wrapper {
  order: 1;
  border-radius: 10px;
  box-shadow: none;
}
body.tms-ux .video-card .video-wrapper:hover { transform: none; box-shadow: none; }
body.tms-ux .video-card .video-caption {
  order: 2;
  text-align: left;
  font-size: 1rem;
  color: var(--tms-tinta);
  padding: 0 0.25rem;
}
@media (max-width: 768px) {
  body.tms-ux .tms-extra-grid { gap: 1rem; }
  body.tms-ux .video-container-main { border-radius: 14px; }
}
/* Tablet y mobile: carrusel horizontal con "peek" en vez de videos apilados */
@media (max-width: 768px) {
  body.tms-ux .tms-extra-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 46%;
    gap: 0.875rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin: 1.25rem calc(var(--tms-gutter) * -1) 0;
    padding: 0.25rem var(--tms-gutter) 1rem;
    scroll-padding-inline: var(--tms-gutter);
    scrollbar-width: none;
  }
  body.tms-ux .tms-extra-grid::-webkit-scrollbar { display: none; }
  body.tms-ux .video-card { scroll-snap-align: start; }
  body.tms-ux .video-card .video-caption { font-size: 0.95rem; }
  body.tms-ux .video-container-main { border-radius: 14px; }
}
@media (max-width: 600px) {
  body.tms-ux .tms-extra-grid { grid-auto-columns: 82%; }
}

/* Controles de carrusel (videos y testimonios): ← puntos →.
   El script los muestra sólo si hay algo para deslizar; sin JS quedan [hidden]. */
body.tms-ux .tms-carousel-nav[hidden] { display: none; }
body.tms-ux .tms-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
body.tms-ux .tms-carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--tms-azul);
  background: #fff;
  border: 1.5px solid rgba(13, 42, 209, .22);
  box-shadow: var(--tms-sombra);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
body.tms-ux .tms-carousel-btn svg { width: 20px; height: 20px; }
body.tms-ux .tms-carousel-btn:not(:disabled):hover,
body.tms-ux .tms-carousel-btn:not(:disabled):active {
  color: #fff;
  background: var(--tms-azul);
  border-color: var(--tms-azul);
}
body.tms-ux .tms-carousel-btn:disabled {
  opacity: .35;
  box-shadow: none;
  cursor: default;
}
body.tms-ux .tms-carousel-dots { display: flex; }
/* el botón mide 24px (tap target), el punto visible es el ::before */
body.tms-ux .tms-carousel-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
body.tms-ux .tms-carousel-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(13, 42, 209, .22);
  transition: width .25s ease, background .25s ease;
}
body.tms-ux .tms-carousel-dot[aria-current="true"]::before {
  width: 20px;
  background: var(--tms-azul);
}

/* Variante sobre fondo oscuro (testimonios) */
body.tms-ux .tms-carousel-nav--dark .tms-carousel-btn {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: none;
}
body.tms-ux .tms-carousel-nav--dark .tms-carousel-btn:not(:disabled):hover,
body.tms-ux .tms-carousel-nav--dark .tms-carousel-btn:not(:disabled):active {
  color: var(--tms-azul-900);
  background: #fff;
  border-color: #fff;
}
body.tms-ux .tms-carousel-nav--dark .tms-carousel-dot::before { background: rgba(255, 255, 255, .3); }
body.tms-ux .tms-carousel-nav--dark .tms-carousel-dot[aria-current="true"]::before { background: #fff; }

/* ==========================================================================
   Experiencias de pacientes — tarjetas verticales tipo "story"
   Los videos son verticales publicados en 16:9 (con costados desenfocados):
   la miniatura se recorta al centro con object-fit y queda el cuadro real.
   ========================================================================== */
body.tms-ux .tms-testimonios {
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) var(--tms-gutter);
  color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(0, 123, 255, .28), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(112, 169, 213, .18), transparent 60%),
    linear-gradient(160deg, var(--tms-azul-700) 0%, var(--tms-azul-900) 70%);
}
body.tms-ux .tms-testi-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas:
    "head track"
    "nav  track";
  /* con las flechas ocultas (todo entra) la fila 2 mide 0 y el texto queda centrado */
  grid-template-rows: 1fr auto;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
body.tms-ux .tms-testi-head { grid-area: head; align-self: center; }
body.tms-ux .tms-testi-track { grid-area: track; }
body.tms-ux .tms-testimonios .tms-carousel-nav {
  grid-area: nav;
  align-self: end;
  justify-content: flex-start;
  margin-top: 1.75rem;
}

body.tms-ux .tms-testi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bfe0ff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
}
body.tms-ux .tms-testi-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tms-wa);
  box-shadow: 0 0 0 4px rgba(16, 185, 130, .2);
}
body.tms-ux .tms-testi-head h2 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
  text-align: left;
  text-wrap: balance;
}
body.tms-ux .tms-testi-head p {
  max-width: 42ch;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
}
body.tms-ux .tms-testi-head .tms-testi-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, .5);
}

/* Track: 2 tarjetas visibles en desktop; si hay más, se desliza */
body.tms-ux .tms-testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1.25rem) / 2);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.5rem 0 1.5rem;
}
body.tms-ux .tms-testi-track::-webkit-scrollbar { display: none; }

body.tms-ux .tms-testi-card {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
  isolation: isolate;
}
body.tms-ux .tms-testi-play {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  border-radius: inherit;
}
body.tms-ux .tms-testi-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
/* degradé inferior para que el texto se lea sobre cualquier cuadro */
body.tms-ux .tms-testi-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 40, 0) 30%, rgba(5, 10, 40, .7) 60%, rgba(5, 10, 40, .97) 100%);
  pointer-events: none;
}
body.tms-ux .tms-testi-playicon {
  position: absolute;
  top: 38%;
  left: 50%;
  z-index: 1;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .3s;
}
body.tms-ux .tms-testi-playicon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
body.tms-ux .tms-testi-card:hover .tms-testi-play img { transform: scale(1.05); }
body.tms-ux .tms-testi-card:hover .tms-testi-playicon {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--tms-acento);
  border-color: var(--tms-acento);
}
body.tms-ux .tms-testi-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}

body.tms-ux .tms-testi-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.25rem 1.25rem 1.4rem;
  pointer-events: none; /* el click lo toma el link de abajo */
}
body.tms-ux .tms-testi-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.tms-ux .tms-testi-info h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
body.tms-ux .tms-testi-info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 860px) {
  body.tms-ux .tms-testi-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "track" "nav";
    grid-template-rows: auto;
  }
  body.tms-ux .tms-testi-head { margin-bottom: 1.75rem; }
  body.tms-ux .tms-testi-head h2 { max-width: 20ch; }
  /* el track sangra hasta los bordes para que se vea el "peek" de la siguiente */
  body.tms-ux .tms-testi-track {
    grid-auto-columns: min(300px, 72%);
    margin-inline: calc(var(--tms-gutter) * -1);
    padding-inline: var(--tms-gutter);
    scroll-padding-inline: var(--tms-gutter);
  }
  body.tms-ux .tms-testimonios .tms-carousel-nav {
    justify-content: center;
    margin-top: 0.25rem;
  }
}
/* Tablet: si las tarjetas entran, se centran (con "safe" para que, si se suman
   más casos y desbordan, no se corte la primera; sin soporte queda a la izquierda) */
@media (min-width: 601px) and (max-width: 860px) {
  body.tms-ux .tms-testi-track {
    justify-content: start;
    justify-content: safe center;
  }
  body.tms-ux .tms-testi-head { text-align: center; }
  body.tms-ux .tms-testi-head h2,
  body.tms-ux .tms-testi-head p { margin-inline: auto; text-align: center; }
}
@media (max-width: 480px) {
  body.tms-ux .tms-testi-card { border-radius: 20px; }
  body.tms-ux .tms-testi-playicon { width: 58px; height: 58px; }
  body.tms-ux .tms-testi-info { padding: 1rem 1rem 1.15rem; }
  body.tms-ux .tms-testi-info h3 { font-size: 1.2rem; }
  body.tms-ux .tms-testi-info p { font-size: 0.85rem; }
}

/* --------------------------------------------------------------------------
   Lightbox de video
   -------------------------------------------------------------------------- */
html.tms-modal-open { overflow: hidden; }
body.tms-ux .tms-video-modal {
  width: min(94vw, 1000px);
  max-width: none;
  max-height: none;
  padding: 0;
  margin: auto;
  border: 0;
  background: transparent;
  overflow: visible;
}
body.tms-ux .tms-video-modal::backdrop {
  background: rgba(5, 10, 40, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.tms-ux .tms-video-modal[open] { animation: tmsModalIn .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes tmsModalIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: none; }
}
body.tms-ux .tms-video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  /* que nunca se pase del alto de la pantalla en landscape */
  max-height: calc(100vh - 7rem);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
/* Videos subidos en vertical (Shorts): data-ratio="9:16" en el link de la tarjeta */
body.tms-ux .tms-video-modal.is-vertical { width: auto; }
body.tms-ux .tms-video-modal.is-vertical .tms-video-modal-frame {
  aspect-ratio: 9 / 16;
  height: min(calc(100vh - 7rem), calc(94vw * 16 / 9));
  height: min(calc(100svh - 7rem), calc(94vw * 16 / 9));
  max-height: none;
}
body.tms-ux .tms-video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}
body.tms-ux .tms-video-modal-close {
  position: absolute;
  top: -56px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s, color .2s;
}
body.tms-ux .tms-video-modal-close:hover {
  color: var(--tms-azul-900);
  background: #fff;
}
body.tms-ux .tms-video-modal-close svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  body.tms-ux .tms-video-modal[open] { animation: none; }
  body.tms-ux .tms-testi-card:hover .tms-testi-play img { transform: none; }
}

/* --------------------------------------------------------------------------
   CTAs intermedios (los dos bloques "¿Querés saber si la TMS es para vos?")
   -------------------------------------------------------------------------- */
body.tms-ux .cta-inba-tms,
body.tms-ux .cta-box {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  width: calc(100% - 2.5rem);
  margin: clamp(2rem, 5vw, 3.5rem) auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: 24px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(112, 169, 213, .45), transparent 45%),
    linear-gradient(135deg, var(--tms-azul) 0%, var(--tms-azul-900) 100%);
  box-shadow: 0 20px 50px rgba(13, 42, 209, .25);
}
body.tms-ux .cta-inba-tms .cta-title,
body.tms-ux .cta-box h3 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.25;
  margin: 0 auto 0.5rem;
  max-width: 24ch;
  color: #fff;
  text-wrap: balance;
}
body.tms-ux .cta-sub {
  margin: 0.6rem auto 1.5rem;
  max-width: 46ch;
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
}
body.tms-ux .cta-inba-tms .cta-btn-wsp,
body.tms-ux .cta-box > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: auto;
  min-height: 54px;
  margin: 0;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--tms-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.tms-ux .cta-inba-tms .cta-btn-wsp::before,
body.tms-ux .cta-box > a::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%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") center / contain no-repeat;
}
body.tms-ux .cta-inba-tms .cta-btn-wsp:hover,
body.tms-ux .cta-box > a:hover {
  background: #0ea371;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 130, .45);
}
body.tms-ux .cta-inba-tms .cta-btn-wsp:focus-visible,
body.tms-ux .cta-box > a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  body.tms-ux .cta-inba-tms,
  body.tms-ux .cta-box {
    width: calc(100% - 2rem);
    border-radius: 20px;
  }
  body.tms-ux .cta-inba-tms .cta-btn-wsp,
  body.tms-ux .cta-box > a {
    display: flex;
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Ventajas
   -------------------------------------------------------------------------- */
body.tms-ux .ventajas-tms-inner { max-width: none; }
body.tms-ux .ventajas-tms-subtitle { margin-bottom: 2.25rem; }
body.tms-ux .ventajas-tms-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
body.tms-ux .ventaja-card {
  padding: 1.5rem 1.25rem;
  text-align: left;
  border: 1px solid var(--tms-borde);
  border-radius: var(--tms-radio);
  box-shadow: var(--tms-sombra);
}
body.tms-ux .ventaja-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tms-sombra-hover);
}
body.tms-ux .ventaja-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  color: var(--tms-azul);
  background: var(--tms-celeste-100);
}
body.tms-ux .ventaja-icon svg { width: 22px; height: 22px; }
body.tms-ux .ventaja-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--tms-tinta);
}
body.tms-ux .ventaja-card p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--tms-texto);
}
@media (max-width: 1024px) {
  body.tms-ux .ventajas-tms-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.tms-ux .ventaja-card { grid-column: span 2; }
  /* 3 + 2 centradas en vez de dejar un hueco */
  body.tms-ux .ventaja-card:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 700px) {
  body.tms-ux .ventajas-tms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  body.tms-ux .ventaja-card,
  body.tms-ux .ventaja-card:nth-child(4) { grid-column: auto; padding: 1.1rem 1rem; }
  body.tms-ux .ventaja-card:last-child { grid-column: 1 / -1; }
  body.tms-ux .ventaja-icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 0.7rem; }
  body.tms-ux .ventaja-icon svg { width: 20px; height: 20px; }
  body.tms-ux .ventaja-card h3 { font-size: 1rem; }
  body.tms-ux .ventaja-card p { font-size: 0.875rem; }
}
@media (max-width: 340px) {
  body.tms-ux .ventajas-tms-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Procedimiento: pasos numerados
   -------------------------------------------------------------------------- */
body.tms-ux .procedimiento-section h2 { margin-bottom: 2.25rem; }
body.tms-ux .procedimiento-grid {
  counter-reset: paso;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: none;
}
body.tms-ux .procedimiento-card {
  counter-increment: paso;
  position: relative;
  padding: 1.5rem 1.25rem;
  text-align: left;
  border: 1px solid var(--tms-borde);
  border-radius: var(--tms-radio);
  box-shadow: var(--tms-sombra);
}
body.tms-ux .procedimiento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tms-sombra-hover);
}
body.tms-ux .procedimiento-card::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tms-celeste-100);
}
body.tms-ux .procedimiento-card svg {
  display: block;
  width: 22px;
  height: 22px;
  padding: 11px;
  box-sizing: content-box;
  margin-bottom: 1rem;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--tms-azul), var(--tms-acento));
}
body.tms-ux .procedimiento-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--tms-tinta);
}
body.tms-ux .procedimiento-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--tms-texto);
}
@media (max-width: 1024px) {
  body.tms-ux .procedimiento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mobile: línea de tiempo vertical, número a la izquierda */
@media (max-width: 600px) {
  body.tms-ux .procedimiento-section h2 { margin-bottom: 1.75rem; }
  body.tms-ux .procedimiento-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.tms-ux .procedimiento-card,
  body.tms-ux .procedimiento-card:hover {
    padding: 0 0 1.5rem 3.5rem;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
  }
  body.tms-ux .procedimiento-card::before {
    content: counter(paso);
    top: 0;
    left: 0;
    right: auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tms-azul), var(--tms-acento));
    box-shadow: 0 0 0 5px var(--tms-celeste-50);
    z-index: 1;
  }
  body.tms-ux .procedimiento-card::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--tms-celeste-100);
  }
  body.tms-ux .procedimiento-card:last-child { padding-bottom: 0; }
  body.tms-ux .procedimiento-card:last-child::after { display: none; }
  body.tms-ux .procedimiento-card svg { display: none; }
  body.tms-ux .procedimiento-card h3 { font-size: 1.05rem; padding-top: 0.35rem; }
}

/* --------------------------------------------------------------------------
   Condiciones (details) y FAQ
   -------------------------------------------------------------------------- */
body.tms-ux .condiciones-section details {
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 1.5rem 0 0;
  text-align: center;
}
body.tms-ux .condiciones-section summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  margin: 0;
  padding: 0.75rem 1.5rem;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tms-azul);
  background: #fff;
  border: 1.5px solid rgba(13, 42, 209, .3);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
body.tms-ux .condiciones-section summary::-webkit-details-marker { display: none; }
body.tms-ux .condiciones-section summary:hover {
  background: var(--tms-celeste-50);
  border-color: var(--tms-azul);
}
body.tms-ux .condiciones-section summary::after,
body.tms-ux .faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
body.tms-ux .condiciones-section details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
body.tms-ux .condiciones-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.5rem;
  text-align: left;
}
body.tms-ux .condiciones-list li {
  position: relative;
  padding: 0.65rem 0.85rem 0.65rem 2.1rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--tms-tinta);
  background: var(--tms-celeste-50);
  border: 0;
  border-radius: 10px;
}
body.tms-ux .condiciones-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--tms-wa);
  border-bottom: 2px solid var(--tms-wa);
  transform: rotate(-45deg);
}
@media (max-width: 900px) {
  body.tms-ux .condiciones-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  body.tms-ux .condiciones-list { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  body.tms-ux .condiciones-list li { font-size: 0.9rem; }
  body.tms-ux .condiciones-section summary { width: 100%; justify-content: center; }
}

/* FAQ: faq.css pone padding al <details> y el inline otro al <summary>
   (doble relleno). Se deja uno solo, en el summary, que es el área clickeable. */
body.tms-ux .faq-section .faq-item {
  max-width: 820px;
  margin: 0 auto 0.75rem;
  padding: 0;
  background: #fff;
  border: 1px solid var(--tms-borde);
  border-radius: 14px;
  box-shadow: none;
  cursor: auto;
}
body.tms-ux .faq-section .faq-item:first-of-type { margin-top: 2rem; }
body.tms-ux .faq-section .faq-item[open] {
  background: #fff;
  border-color: rgba(13, 42, 209, .28);
  box-shadow: var(--tms-sombra);
}
body.tms-ux .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--tms-tinta);
}
body.tms-ux .faq-item summary::after {
  position: static;
  font-size: 0;
  color: var(--tms-azul);
}
body.tms-ux .faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
body.tms-ux .faq-item summary:hover { color: var(--tms-azul); }
body.tms-ux .faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--tms-texto);
}
@media (max-width: 600px) {
  body.tms-ux .faq-item summary { padding: 0.9rem 1rem; font-size: 0.97rem; }
  body.tms-ux .faq-item p { padding: 0 1rem 1rem; font-size: 0.94rem; }
}

/* --------------------------------------------------------------------------
   Respaldo científico y contacto
   -------------------------------------------------------------------------- */
body.tms-ux .tms-respaldo-link {
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  margin-top: 0.75rem;
  color: var(--tms-azul);
  background: #fff;
  border: 1.5px solid rgba(13, 42, 209, .3);
  border-radius: 999px;
  box-shadow: none;
}
body.tms-ux .tms-respaldo-link:hover {
  color: #fff;
  background: var(--tms-azul);
  border-color: var(--tms-azul);
  box-shadow: 0 10px 24px rgba(13, 42, 209, .25);
}
body.tms-ux .tms-respaldo-link svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
  body.tms-ux .tms-respaldo-link { width: 100%; max-width: 420px; }
}

body.tms-ux .contacto-grid { margin-top: 2rem; gap: 1.5rem; align-items: stretch; }
body.tms-ux .contacto-info-centro {
  max-width: none;
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--tms-borde);
  border-radius: var(--tms-radio);
  box-shadow: var(--tms-sombra);
}
/* contacto.min.css le da 1.1rem bold y padding .9rem 2rem: en celular quedaba enorme */
body.tms-ux .contacto-info-centro .cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--tms-wa);
}
body.tms-ux .contacto-info-centro .cta a::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--tms-wa-mask) center / contain no-repeat;
  mask: var(--tms-wa-mask) center / contain no-repeat;
}
body.tms-ux .contacto-info-centro .cta a:hover { background: #0ea371; }
@media (max-width: 600px) {
  body.tms-ux .contacto-info-centro .cta a {
    min-height: 46px;
    margin-top: 1.25rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }
}
/* íconos de línea en la tarjeta de contacto (antes emojis), igual que el footer */
body.tms-ux .contacto .icono {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-top: 0;
  border-radius: 12px;
  color: var(--tms-azul);
  background: var(--tms-celeste-100);
}
body.tms-ux .contacto .icono svg { width: 20px; height: 20px; }
body.tms-ux .mapa-wrapper {
  height: 100%;
  min-height: 280px;
  padding-bottom: 0;
  border-radius: var(--tms-radio);
}
body.tms-ux .mapa-wrapper iframe { margin: 0; }
body.tms-ux .frase-final { margin-top: 2rem; }
@media (max-width: 768px) {
  body.tms-ux .contacto-info-centro { padding: 1.25rem; }
  body.tms-ux .mapa-wrapper { min-height: 260px; }
  body.tms-ux .frase-final { font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   Flotantes: en mobile, despegados del borde y con área táctil de 52px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body.tms-ux .whatsapp-button {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  }
  body.tms-ux .scroll-to-top { left: 16px; bottom: 20px; width: 44px; height: 44px; }
}

/* ==========================================================================
   HERO — motion
   Todo es CSS sobre transform/opacity (GPU, sin reflow). Con
   prefers-reduced-motion se apaga al final del archivo.
   ========================================================================== */

/* El hero no puede depender del CDN de AOS para verse: el inline pone
   [data-aos]{opacity:0} y si unpkg tarda o falla, el hero quedaba en blanco.
   La entrada la hace tms-ux con animaciones propias. */
body.tms-ux .hero[data-aos],
body.tms-ux .hero [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
body.tms-ux .hero-content { animation: none; }

/* --- Ken Burns: la foto pasa a un pseudo-elemento para poder escalarla --- */
body.tms-ux .hero {
  background: var(--tms-azul-900) !important;
  overflow: hidden !important;
  isolation: isolate;
}
body.tms-ux .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/image/tms-hero-new.jpeg") center 22% / cover no-repeat;
  transform-origin: 50% 35%;
  /* zoom muy leve, una sola vez: que se sienta, no que se vea */
  animation: tmsKenBurns 12s cubic-bezier(.25, .1, .25, 1) both;
  will-change: transform;
}
@media (max-width: 1024px) {
  body.tms-ux .hero::before { background-position: center 18%; }
}
@keyframes tmsKenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

/* --- Entrada escalonada --- */
@keyframes tmsRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
body.tms-ux .hero-badge,
body.tms-ux .hero-content h1,
body.tms-ux .hero-features,
body.tms-ux .hero-buttons,
body.tms-ux .hero-stats .stats-list,
body.tms-ux .tms-trust {
  animation: tmsRise .7s cubic-bezier(.2, .7, .2, 1) both;
}
body.tms-ux .hero-badge             { animation-delay: .05s; }
body.tms-ux .hero-content h1        { animation-delay: .15s; }
body.tms-ux .hero-features          { animation-delay: .3s; }
body.tms-ux .hero-buttons           { animation-delay: .42s; }
body.tms-ux .hero-stats .stats-list { animation-delay: .54s; }
body.tms-ux .tms-trust              { animation-delay: .7s; }
body.tms-ux .hero-features li {
  opacity: 1;
  animation: none;
}
body.tms-ux .hero-badge:hover { transform: none; }

/* --- Resaltado tipo marcador que barre "Neuroestimulación TMS" --- */
body.tms-ux .hero-content h1 .hl {
  background-image: linear-gradient(90deg, rgba(0, 123, 255, .75), rgba(112, 169, 213, .6));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% .22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: tmsSweep 1.1s cubic-bezier(.65, 0, .25, 1) .85s forwards;
}
@keyframes tmsSweep { to { background-size: 100% .22em; } }

body.tms-ux .hero-stats .stat-number { font-variant-numeric: tabular-nums; }

/* La barra de confianza que asoma ya invita a scrollear: el chevron sobra */
body.tms-ux .scroll-down { display: none; }

/* ==========================================================================
   Barra de confianza (entre el hero y "¿Para qué sirve?")
   ========================================================================== */
body.tms-ux .hero-content-wrapper { padding-bottom: clamp(4.5rem, 11vh, 6rem); }
body.tms-ux .tms-trust {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  width: calc(100% - 2.5rem);
  margin: -52px auto 0;
  background: #fff;
  border: 1px solid var(--tms-borde);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(8, 21, 79, .16);
}
body.tms-ux .tms-trust-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.tms-ux .tms-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  position: relative;
}
body.tms-ux .tms-trust-list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--tms-borde);
}
body.tms-ux .tms-trust-list svg {
  width: 22px;
  height: 22px;
  padding: 10px;
  box-sizing: content-box;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--tms-azul);
  background: var(--tms-celeste-100);
}
body.tms-ux .tms-trust-list span {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--tms-texto);
}
body.tms-ux .tms-trust-list strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tms-tinta);
}
body.tms-ux .tms-benefits { padding-top: clamp(3rem, 6vw, 4.5rem); }

@media (max-width: 900px) {
  body.tms-ux .tms-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tms-ux .tms-trust-list li:nth-child(3)::before { display: none; }
  body.tms-ux .tms-trust-list li:nth-child(n+3) { border-top: 1px solid var(--tms-borde); }
}
@media (max-width: 600px) {
  body.tms-ux .tms-trust { width: calc(100% - 2rem); margin-top: -40px; border-radius: 16px; }
  body.tms-ux .tms-trust-list { padding: 0.25rem; }
  body.tms-ux .tms-trust-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 0.8rem;
  }
  body.tms-ux .tms-trust-list svg { width: 18px; height: 18px; padding: 8px; border-radius: 10px; }
  body.tms-ux .tms-trust-list strong { font-size: 0.86rem; }
  body.tms-ux .tms-trust-list span { font-size: 0.76rem; }
}

/* ==========================================================================
   Spotlight en tarjetas (la posición la escribe el script del final de tms.html)
   ========================================================================== */
body.tms-ux .tms-card,
body.tms-ux .ventaja-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
body.tms-ux .tms-card::after,
body.tms-ux .ventaja-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 123, 255, .10), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
body.tms-ux .tms-card:hover::after,
body.tms-ux .ventaja-card:hover::after { opacity: 1; }
body.tms-ux .tms-card svg,
body.tms-ux .ventaja-icon { transition: transform .3s cubic-bezier(.2, .7, .2, 1), background .3s, color .3s; }
body.tms-ux .tms-card:hover svg,
body.tms-ux .ventaja-card:hover .ventaja-icon {
  transform: translateY(-2px) rotate(-6deg);
  color: #fff;
  background: var(--tms-azul);
}

/* ==========================================================================
   Movimiento reducido: todo quieto y visible
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  body.tms-ux .tms-card:hover,
  body.tms-ux .ventaja-card:hover,
  body.tms-ux .procedimiento-card:hover,
  body.tms-ux .cta-inba-tms .cta-btn-wsp:hover,
  body.tms-ux .cta-box > a:hover { transform: none; }
  body.tms-ux .hero::before,
  body.tms-ux .hero-badge,
  body.tms-ux .hero-content h1,
  body.tms-ux .hero-features,
  body.tms-ux .hero-buttons,
  body.tms-ux .hero-stats .stats-list,
  body.tms-ux .tms-trust { animation: none; }
  body.tms-ux .hero-content h1 .hl { animation: none; background-size: 100% .22em; }
  body.tms-ux .tms-card:hover svg,
  body.tms-ux .ventaja-card:hover .ventaja-icon { transform: none; }
}

/* ==========================================================================
   HERO SPLIT — texto a la izquierda, foto del equipo en marco a la derecha.
   Reemplaza la versión de foto de fondo + overlay: este bloque va al final
   a propósito y pisa las reglas de hero anteriores con la misma especificidad.
   ========================================================================== */
body.tms-ux .hero {
  background:
    radial-gradient(ellipse 50% 65% at 80% 45%, rgba(0, 123, 255, .32), transparent 65%),
    radial-gradient(ellipse 40% 50% at 0% 0%, rgba(112, 169, 213, .16), transparent 60%),
    linear-gradient(160deg, var(--tms-azul-700) 0%, var(--tms-azul-900) 75%) !important;
}
/* textura de puntos muy tenue, desvanecida hacia los bordes */
body.tms-ux .hero::before {
  background: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 30% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 65% at 30% 45%, #000 15%, transparent 75%);
  transform: none;
  animation: none;
  will-change: auto;
}
body.tms-ux .hero-overlay { display: none; }

body.tms-ux .hero-content-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4.5rem) 2rem clamp(5.5rem, 11vh, 7rem);
  transform: none;
}
body.tms-ux .hero-content {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
body.tms-ux .hero-content h1 {
  max-width: 17ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.1;
  text-shadow: none;
}
body.tms-ux .hero-features {
  width: auto;
  margin: 0 0 2rem;
}
body.tms-ux .hero-features li { text-shadow: none; color: rgba(255, 255, 255, .9); }
body.tms-ux .hero-buttons {
  justify-content: flex-start;
  max-width: none;
  margin: 0;
}

/* --- Foto en marco --- */
body.tms-ux .hero-media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 470px;
  animation: tmsRise .8s cubic-bezier(.2, .7, .2, 1) .25s both;
}
/* marco desplazado detrás de la foto */
body.tms-ux .hero-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 32px;
}
body.tms-ux .hero-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 28px;
  background: var(--tms-azul-900);
  box-shadow: 0 40px 80px rgba(3, 8, 35, .45), 0 0 0 1px rgba(255, 255, 255, .1);
}
body.tms-ux .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* la foto es 3:4 con mucho techo: se encuadra en el equipo y el aparato */
  object-position: 50% 72%;
}

/* --- Stats como chips flotantes sobre la foto --- */
body.tms-ux .hero-stats {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}
/* sin animación propia: un transform (aunque sea identidad) la volvería el
   bloque contenedor de los chips, y mide 0px de alto. Ya anima .hero-media. */
body.tms-ux .hero-stats .stats-list { display: block; animation: none; }
body.tms-ux .hero-stats .stat-item {
  position: absolute;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  padding: 0.75rem 1.1rem 0.75rem 0.75rem;
  text-align: left;
  background: rgba(255, 255, 255, .97);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(3, 8, 35, .35);
}
body.tms-ux .hero-stats .stat-item + .stat-item { border-left: 0; }
body.tms-ux .hero-stats .stat-item:nth-child(1) { left: -40px; bottom: 16%; }
body.tms-ux .hero-stats .stat-item:nth-child(2) { right: -32px; top: 10%; }
body.tms-ux .hero-stats .stat-item svg {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  padding: 10px;
  box-sizing: content-box;
  border-radius: 12px;
  color: var(--tms-azul);
  background: var(--tms-celeste-100);
}
body.tms-ux .hero-stats .stat-number {
  align-self: end;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--tms-tinta);
  text-shadow: none;
}
body.tms-ux .hero-stats .stat-label {
  align-self: start;
  max-width: none;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  color: var(--tms-texto);
  text-shadow: none;
}

@media (max-width: 1100px) {
  /* en media columna el texto largo del badge corta en 2 renglones */
  body.tms-ux .badge-text-full { display: none; }
  body.tms-ux .badge-text-mobile { display: inline; }
  body.tms-ux .hero-stats .stat-item:nth-child(1) { left: -18px; }
  body.tms-ux .hero-stats .stat-item:nth-child(2) { right: -14px; }
  body.tms-ux .hero-media::before { inset: 16px -14px -16px 14px; }
}

/* Tablet y mobile: una columna — texto y CTAs primero, foto después */
@media (max-width: 860px) {
  body.tms-ux .hero { min-height: 0; }
  body.tms-ux .hero-content-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    padding: 2.25rem 1.25rem 5rem;
  }
  body.tms-ux .hero-content h1 { max-width: 20ch; }
  body.tms-ux .hero-media {
    max-width: 560px;
    justify-self: stretch;
    margin-inline: auto;
  }
  body.tms-ux .hero-media::before { display: none; }
  body.tms-ux .hero-photo {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }
  body.tms-ux .hero-photo img { object-position: 50% 66%; }
  /* En foto chica los chips en las esquinas tapaban caras: van en fila
     debajo de la foto, montados sobre su borde inferior */
  body.tms-ux .hero-stats {
    position: relative;
    inset: auto;
    margin: -30px 0 0;
    padding: 0 0.75rem;
  }
  body.tms-ux .hero-stats .stats-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  body.tms-ux .hero-stats .stat-item,
  body.tms-ux .hero-stats .stat-item:nth-child(1),
  body.tms-ux .hero-stats .stat-item:nth-child(2) {
    position: static;
    padding: 0.6rem 0.75rem 0.6rem 0.6rem;
    column-gap: 0.6rem;
    border-radius: 14px;
  }
  body.tms-ux .hero-stats .stat-item svg { width: 18px; height: 18px; padding: 8px; border-radius: 10px; }
  body.tms-ux .hero-stats .stat-number { font-size: 1.15rem; }
  body.tms-ux .hero-stats .stat-label { font-size: 0.68rem; }
}
@media (max-width: 600px) {
  body.tms-ux .hero-content-wrapper { padding: 2rem 1.25rem 4.5rem; gap: 2rem; }
  body.tms-ux .hero-content h1 { font-size: clamp(1.75rem, 7.4vw, 2.2rem); }
  body.tms-ux .hero-features { margin-bottom: 1.75rem; }
}
@media (max-width: 360px) {
  body.tms-ux .hero-content-wrapper { padding-inline: 1rem; }
  body.tms-ux .hero-stats .stat-item svg { display: none; }
  body.tms-ux .hero-stats .stat-item { grid-template-columns: auto; padding: 0.5rem 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.tms-ux .hero-media { animation: none; }
}

/* ==========================================================================
   CTA leve de fin de sección: una línea de texto + link tipo pastilla.
   Complementa (no reemplaza) los dos bloques CTA grandes.
   ========================================================================== */
body.tms-ux .tms-cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1rem;
  max-width: 820px;
  margin: 2.25rem auto 0;
  text-align: center;
}
body.tms-ux .tms-cta-inline span {
  font-size: 0.98rem;
  color: var(--tms-texto);
}
body.tms-ux .tms-cta-inline a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  font-size: 0.95rem;
  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;
}
/* ícono de WhatsApp como máscara: toma el color del texto (currentColor) */
body.tms-ux { --tms-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"); }
body.tms-ux .tms-cta-inline a::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--tms-wa-mask) center / contain no-repeat;
  mask: var(--tms-wa-mask) center / contain no-repeat;
}
body.tms-ux .tms-cta-inline a:hover {
  color: #fff;
  background: var(--tms-wa);
  border-color: var(--tms-wa);
}
body.tms-ux .tms-cta-inline a:focus-visible {
  outline: 3px solid rgba(16, 185, 130, .5);
  outline-offset: 2px;
}

/* Sobre fondo oscuro (Experiencias): alineado con el texto, contorno blanco */
body.tms-ux .tms-cta-inline--dark {
  justify-content: flex-start;
  margin: 1.5rem 0 0;
}
body.tms-ux .tms-cta-inline--dark a {
  color: #fff;
  background: rgba(16, 185, 130, .18);
  border-color: rgba(94, 230, 180, .55);
}
body.tms-ux .tms-cta-inline--dark a:hover { background: var(--tms-wa); border-color: var(--tms-wa); }
@media (min-width: 601px) and (max-width: 860px) {
  body.tms-ux .tms-cta-inline--dark { justify-content: center; }
}
@media (max-width: 600px) {
  body.tms-ux .tms-cta-inline { flex-direction: column; gap: 0.6rem; margin-top: 1.75rem; }
  body.tms-ux .tms-cta-inline span { font-size: 0.93rem; }
  body.tms-ux .tms-cta-inline--dark { align-items: flex-start; margin-top: 1.25rem; }
}

/* ==========================================================================
   NAVBAR (piloto sólo en tms.html)
   Sólo cambia COLOR y marca la página activa. No se toca layout, alturas ni
   el mega-menú: menu.css lo comparten 11 páginas y está documentado como
   delicado en CLAUDE.md.
   ========================================================================== */
body.tms-ux .navbar {
  background-color: rgba(8, 21, 79, .96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  transition: background-color .3s ease, box-shadow .3s ease;
}
/* al scrollear: vidrio + sombra (la clase la pone el script del final) */
body.tms-ux .navbar.is-scrolled {
  /* .9 y no menos: sobre secciones blancas, más transparente se veía gris */
  background-color: rgba(8, 21, 79, .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 8px 30px rgba(3, 8, 35, .28), 0 1px 0 rgba(255, 255, 255, .06);
}
/* Panel desplegable (desktop) y panel mobile: mismo azul que la barra.
   Va opaco: el vidrio sobre contenido largo complica la lectura del menú. */
body.tms-ux .dropdown-content,
body.tms-ux .navbar-links.active { background-color: var(--tms-azul-900); }
@media (max-width: 768px) {
  body.tms-ux .navbar-links { background-color: var(--tms-azul-900); }
}

/* Página activa */
body.tms-ux .navbar-links > li > a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}
body.tms-ux .navbar-links > li > a[aria-current="page"]::after { width: 100%; }
body.tms-ux .dropdown-content a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}
@media (max-width: 768px) {
  /* en el panel mobile el subrayado ocuparía todo el ancho y se leería como
     un divisor: se marca con una barra vertical a la izquierda + leve tinte */
  body.tms-ux .navbar-links > li > a[aria-current="page"] {
    background: rgba(255, 255, 255, .06);
  }
  body.tms-ux .navbar-links > li > a[aria-current="page"]::after {
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 3px;
    height: auto;
    border-radius: 0 3px 3px 0;
  }
}

/* ==========================================================================
   FOOTER (piloto sólo en tms.html: el HTML del footer es propio de cada página
   y footer.min.css se pisa acá sin tocarlo — lo cargan 13 páginas)
   ========================================================================== */
body.tms-ux .footer-inba {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5rem) var(--tms-gutter) 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(0, 123, 255, .16), transparent 60%),
    linear-gradient(180deg, var(--tms-azul-900) 0%, #050d36 100%);
}
/* línea de luz arriba, separa del contacto */
body.tms-ux .footer-inba::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 196, 255, .45), transparent);
}
body.tms-ux .footer-grid {
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 2.5rem;
}
body.tms-ux .footer-inba .footer-logo img {
  width: 160px;
  height: auto;
  max-width: none;
  margin: 0 0 1.1rem;
}
body.tms-ux .footer-inba .footer-desc {
  max-width: 34ch;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .7);
}
body.tms-ux .footer-inba h4 {
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
body.tms-ux .footer-links li { margin-bottom: 0.7rem; }
body.tms-ux .footer-inba .footer-links a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color .2s;
}
body.tms-ux .footer-inba .footer-links a:hover { color: #fff; text-decoration: none; }
body.tms-ux .footer-inba .footer-links a[aria-current="page"] { color: #fff; font-weight: 600; }

/* Contacto con íconos de línea (antes emojis) */
body.tms-ux .footer-contacto-lista {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
body.tms-ux .footer-contacto-lista li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.45;
}
body.tms-ux .footer-contacto-lista svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #8fc4ff;
}
body.tms-ux .footer-inba .footer-contacto a {
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  word-break: break-word;
}
body.tms-ux .footer-inba .footer-contacto-lista a:hover { color: #fff; }
body.tms-ux .footer-inba .footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem 0.5rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: rgba(16, 185, 130, .16);
  border: 1.5px solid rgba(94, 230, 180, .5);
  border-radius: 999px;
  transition: background .2s, border-color .2s;
}
body.tms-ux .footer-inba .footer-wa::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--tms-wa-mask) center / contain no-repeat;
  mask: var(--tms-wa-mask) center / contain no-repeat;
}
body.tms-ux .footer-inba .footer-wa:hover { background: var(--tms-wa); border-color: var(--tms-wa); }

/* Redes: monocromo, círculo con borde */
body.tms-ux .footer-inba .footer-redes { display: flex; gap: 0.6rem; margin: 0; }
body.tms-ux .footer-inba .footer-redes a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s;
}
body.tms-ux .footer-inba .footer-redes svg { width: 19px; height: 19px; }
body.tms-ux .footer-inba .footer-redes a:hover {
  color: var(--tms-azul-900);
  background: #fff;
  border-color: #fff;
}

/* Barra inferior: copyright + legales */
body.tms-ux .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* todo a la izquierda: a la derecha están los botones flotantes y tapaban
     "Política de Privacidad" */
  justify-content: flex-start;
  gap: 0.75rem 2.5rem;
  max-width: 1100px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .5);
}
body.tms-ux .footer-bottom p { margin: 0; }
body.tms-ux .footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
body.tms-ux .footer-legal a { color: rgba(255, 255, 255, .6); text-decoration: none; }
body.tms-ux .footer-legal a:hover { color: #fff; }
body.tms-ux .footer-inba a:focus-visible { outline: 2px solid #8fc4ff; outline-offset: 3px; border-radius: 4px; }

@media (max-width: 1024px) {
  /* marca y contacto arriba a todo el ancho de su fila; las dos listas de links lado a lado */
  body.tms-ux .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2rem; }
}
@media (max-width: 600px) {
  body.tms-ux .footer-inba { padding-top: 3rem; }
  body.tms-ux .footer-grid { gap: 2rem 1.25rem; }
  body.tms-ux .footer-logo,
  body.tms-ux .footer-contacto { grid-column: 1 / -1; }
  /* orden en mobile: marca → contacto → navegación + servicios */
  body.tms-ux .footer-contacto { order: 2; }
  body.tms-ux .footer-links { order: 3; }
  body.tms-ux .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    /* espacio para que el botón flotante de WhatsApp no tape los legales */
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  body.tms-ux .footer-links li { margin-bottom: 0.6rem; }
}
