/*
Theme Name: TransMilenio Congreso 2027
Theme URI: https://julianvalencia.co/clientes/acomedios/2026/transmilenio/
Author: Acomedios
Author URI: https://acomedios.com
Description: Tema institucional del Congreso Internacional TransMilenio 2027. Brandbook: rojo #DA1E29, carbón #1A1A1A, Source Sans 3 (sustituto Myriad Pro). El prototipo estático vive en template/.
Version: 0.6.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.3.36
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: transmilenio
Tags: custom-menu, custom-logo, featured-images, translation-ready, one-column
*/

/*
 * Cabecera requerida por WordPress.
 * Tokens de diseño alineados con template/DESIGN.md.
 * Los estilos de secciones se irán portando desde template/index.html.
 */

:root {
  /* Brandbook TransMilenio */
  --tm-primary: #da1e29;
  --tm-primary-hover: #b20018;
  --tm-charcoal: #1a1a1a;
  --tm-canvas: #ffffff;
  --tm-surface: #ffffff;
  --tm-surface-soft: #f2f2f2;
  --tm-paper: #f6f3ee;
  --tm-border: #d9d9d9;
  --tm-meta: #8c8c8c;
  --tm-slate: #4a4a4a;
  --tm-ink: #1a1a1a;
  --tm-hero: #0b0b0b;
  --tm-error: #b42318;

  /* Alias UI */
  --tm-red: var(--tm-primary);
  --tm-black: #0b0b0b;
  --tm-text: #1a1a1a;
  --tm-white: #ffffff;
  --tm-gray: #4a4a4a;
  --tm-line: #d9d9d9;
  --tm-stats-overlay: 0.4;
  --tm-stats-overlay-bottom: 0.7;

  /* Ola / troncales (nunca en rojo UI) */
  --tm-troncal-a: #26358c;
  --tm-troncal-g: #009cde;
  --tm-troncal-lm: #009a9d;
  --tm-troncal-b: #80ba27;
  --tm-troncal-c: #fcbd1b;

  /* Material / tokens Tailwind */
  --tm-on-surface: #1a1a1a;
  --tm-on-surface-variant: #4a4a4a;
  --tm-secondary: #4a4a4a;
  --tm-tertiary: #009cde;
  --tm-outline: #d9d9d9;

  /* Tipografía: Source Sans 3 = sustituto Myriad Pro */
  --tm-font-body: "Source Sans 3", system-ui, sans-serif;
  --tm-font-display: "Source Sans 3", system-ui, sans-serif;
  --tm-font-metric: "Barlow Condensed", "Arial Narrow", sans-serif;

  /* Layout */
  --tm-max: 1200px;
  --tm-gutter: 1rem;
  --tm-gutter-desktop: 1.5rem;
  --tm-margin: 1rem;
  --tm-margin-desktop: 2.5rem;
  --tm-radius: 0.25rem;
  --tm-radius-lg: 0.5rem;
  --tm-radius-btn: 30px;
  --tm-radius-pill: 30px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Root −2px vs 0.2.6 */
  font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

body {
  margin: 0;
  font-family: var(--tm-font-body);
  font-size: 1.0625rem; /* ~17–18px */
  line-height: 1.6;
  color: var(--tm-ink);
  background: var(--tm-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Menú blanco: tipografía y enlaces sin depender de Tailwind */
.tm-top-header .tm-top-inner {
  min-height: 92px;
}

/*
 * Logos del header: tamaño en px (no rem) para evitar fracciones
 * cuando html { font-size: 17px } y para que el SVG se rasterice
 * con más píxeles. Sobrescribe img { height: auto }.
 */
.tm-logo-tm {
  /* Isologo cuadrado 1080×1080 (fondos claros) */
  height: 56px;
  width: 56px;
  max-width: none;
  object-fit: contain;
  image-rendering: auto;
}

.tm-logo-bogota {
  max-width: none;
  object-fit: contain;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* PNG oficial fondos claros (menú): 1920×974 */
.tm-logo-bogota--claro {
  height: 44px;
  width: 87px; /* 44 × (1920/974) ≈ 86.7 */
}

.tm-logo-bogota--sm {
  height: 32px;
  width: 63px;
}

.tm-logo-bogota--claro.tm-logo-bogota--sm {
  height: 36px;
  width: 71px;
}

/* Marca ciudad fondos oscuros (footer): 755×249 */
.tm-logo-bogota--footer {
  height: 72px;
  width: 218px; /* 72 × (755/249) ≈ 218.2 */
}

@media (min-width: 768px) {
  .tm-logo-bogota--footer {
    height: 88px;
    width: 267px; /* 88 × (755/249) ≈ 266.8 */
  }
}

@media (max-width: 767px) {
  .tm-logo-tm {
    height: 48px;
    width: 48px;
  }
}

.tm-top-header .tm-nav-link {
  color: #5d3f3d;
  font-family: var(--tm-font-body);
  font-size: 0.9375rem; /* ~16px */
  font-weight: 600;
  line-height: 1.3;
  padding-block: 0.25rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.tm-top-header .tm-nav-link:hover {
  color: #1b1c1c;
}

.tm-nav-link-mobile {
  color: #1b1c1c;
  font-family: var(--tm-font-body);
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Selector de idioma ES/EN (/ y /en/) */
.tm-lang-switcher {
  gap: 0;
}

.tm-lang-switcher a,
.tm-lang-switcher .tm-lang-switcher__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.625rem;
  border-radius: 0.25rem;
  text-decoration: none !important;
  color: #635d5e !important;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--tm-font-display);
  line-height: 1.2;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tm-lang-switcher a.gt-current-lang,
.tm-lang-switcher .tm-lang-switcher__item.is-active {
  background: #303030 !important;
  color: #f2f0f0 !important;
}

.tm-lang-switcher a:hover {
  color: #1b1c1c !important;
}

.tm-lang-switcher a.gt-current-lang:hover {
  color: #f2f0f0 !important;
}

/* —— Contact Form 7 · preinscripción —— */
.tm-cf7-card .wpcf7 {
  margin: 0;
}

.tm-cf7-card .wpcf7-form > p {
  margin: 0;
}

.tm-cf7-label {
  display: block;
  font-family: var(--tm-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tm-secondary);
  margin-bottom: 0.375rem;
}

.tm-cf7-card .wpcf7-form-control-wrap {
  display: block;
}

.tm-cf7-card .tm-cf7-input,
.tm-cf7-card input.wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.tm-cf7-card select.wpcf7-form-control,
.tm-cf7-card textarea.wpcf7-form-control {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.75rem;
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: 0.125rem;
  font-family: var(--tm-font-body);
  font-size: 0.875rem;
  color: var(--tm-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tm-cf7-card .tm-cf7-input:focus,
.tm-cf7-card input.wpcf7-form-control:focus,
.tm-cf7-card select.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--tm-ink);
  box-shadow: 0 0 0 1px var(--tm-ink);
}

.tm-cf7-phone {
  display: flex;
  align-items: stretch;
}

.tm-cf7-phone__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  background: var(--tm-surface-soft);
  border: 1px solid var(--tm-border);
  border-right: 0;
  border-radius: 0.125rem 0 0 0.125rem;
  font-size: 0.875rem;
  color: var(--tm-secondary);
  white-space: nowrap;
}

.tm-cf7-phone .tm-cf7-phone__input,
.tm-cf7-phone input {
  border-radius: 0 0.125rem 0.125rem 0 !important;
  flex: 1;
}

.tm-cf7-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.tm-cf7-sector .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.tm-cf7-sector .wpcf7-list-item {
  margin: 0;
  display: block;
}

.tm-cf7-sector .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--tm-border);
  border-radius: 0.125rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tm-ink);
  min-height: 100%;
}

.tm-cf7-sector .wpcf7-list-item label:hover {
  background: var(--tm-surface);
}

.tm-cf7-sector input[type="radio"] {
  accent-color: var(--tm-primary);
  flex-shrink: 0;
}

.tm-cf7-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: 0.125rem;
}

.tm-cf7-switch__title {
  margin: 0;
  font-family: var(--tm-font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tm-ink);
}

.tm-cf7-switch__hint {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--tm-secondary);
}

.tm-cf7-switch .wpcf7-list-item {
  margin: 0;
}

.tm-cf7-switch .wpcf7-list-item-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tm-cf7-switch input[type="checkbox"],
.tm-cf7-consents input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--tm-primary);
}

.tm-cf7-consents .wpcf7-acceptance,
.tm-cf7-consents .wpcf7-list-item {
  margin: 0;
  display: block;
}

.tm-cf7-consents .wpcf7-list-item label,
.tm-cf7-consents .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--tm-secondary);
  cursor: pointer;
  line-height: 1.4;
}

.tm-cf7-consents input[type="checkbox"] {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.tm-cf7-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tm-cf7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  height: auto;
  padding: 0.75rem 1.25rem;
  border-radius: var(--tm-radius-btn);
  font-family: var(--tm-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

.tm-cf7-btn--full {
  width: 100%;
  font-size: 1rem;
}

.tm-cf7-btn--primary,
.tm-cf7-card input.wpcf7-submit {
  background: var(--tm-primary);
  color: #fff !important;
  border-color: var(--tm-primary);
}

.tm-cf7-btn--primary:hover,
.tm-cf7-card input.wpcf7-submit:hover {
  background: var(--tm-primary-hover);
  border-color: var(--tm-primary-hover);
  color: #fff !important;
}

.tm-cf7-btn--ghost {
  width: 33.333%;
  background: #fff;
  color: var(--tm-ink);
  border-color: var(--tm-ink);
}

.tm-cf7-btn--ghost:hover {
  background: var(--tm-surface-soft);
}

.tm-cf7-btn--submit,
.tm-cf7-actions input.wpcf7-submit {
  flex: 1 1 auto;
  width: 66.666% !important;
  min-width: 290px;
  height: 3.5rem;
  font-size: 1rem;
}

.tm-cf7-card .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: var(--tm-error);
  margin-top: 0.25rem;
}

.tm-cf7-card .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.tm-cf7-card .wpcf7 form-sent .wpcf7-response-output {
  display: none;
}

@media (max-width: 639px) {
  .tm-cf7-sector .wpcf7-radio {
    grid-template-columns: 1fr;
  }

  .tm-cf7-actions {
    flex-direction: column;
  }

  .tm-cf7-btn--ghost,
  .tm-cf7-btn--submit,
  .tm-cf7-actions input.wpcf7-submit {
    width: 100% !important;
  }
}

/*
 * Pisos de tamaño (−2px respecto a 0.2.6).
 */
.tm-readable :where(.text-\[10px\], .text-\[11px\]) {
  font-size: 0.8125rem !important; /* ~14px */
  line-height: 1.4 !important;
}

.tm-readable :where(.text-xs) {
  font-size: 0.875rem !important; /* ~15px */
  line-height: 1.45 !important;
}

.tm-readable :where(.text-sm) {
  font-size: 1rem !important; /* ~16–17px */
  line-height: 1.55 !important;
}

.tm-readable :where(.text-base) {
  font-size: 1.0625rem !important;
  line-height: 1.6 !important;
}

.tm-readable :where(.text-lg) {
  font-size: 1.1875rem !important;
  line-height: 1.5 !important;
}

.tm-readable :where(p, li, label, input, select, textarea, button) {
  font-size: inherit;
}

.tm-readable :where(h2) {
  line-height: 1.2;
}

.tm-readable :where(h3, h4) {
  line-height: 1.25;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tm-primary);
}

a:hover {
  color: var(--tm-primary-hover);
}

.tm-wrap {
  width: 100%;
  max-width: var(--tm-max);
  margin-inline: auto;
  padding-inline: var(--tm-margin);
}

@media (min-width: 1024px) {
  .tm-wrap {
    padding-inline: var(--tm-margin-desktop);
  }
}

.tm-rule {
  display: inline-block;
  width: 1.5rem;
  height: 3px;
  background: var(--tm-primary);
  vertical-align: middle;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Anclas: el header fijo (~92px) no debe tapar el título */
.tm-anchor,
#por-que-asistir,
#cifras,
#preinscripcion,
#tmPreRegCard,
#el-congreso,
#programa,
#faq {
  scroll-margin-top: 7.25rem; /* ~116px */
}

@media (min-width: 768px) {
  .tm-anchor,
  #por-que-asistir,
  #cifras,
  #preinscripcion,
  #tmPreRegCard,
  #el-congreso,
  #programa,
  #faq {
    scroll-margin-top: 8rem; /* ~128px */
  }
}

/* —— Botones brandbook: fondo rojo, texto blanco Bold, radio 30px —— */
.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--tm-radius-btn);
  font-family: var(--tm-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.tm-btn--primary {
  background: var(--tm-red);
  color: var(--tm-white) !important;
  border-color: var(--tm-red);
}

.tm-btn--primary:hover {
  background: var(--tm-primary-hover);
  border-color: var(--tm-primary-hover);
  color: var(--tm-white) !important;
}

.tm-btn--secondary {
  background: transparent;
  color: var(--tm-text) !important;
  border-color: var(--tm-text);
}

.tm-btn--secondary:hover {
  background: var(--tm-text);
  color: var(--tm-white) !important;
  border-color: var(--tm-text);
}

/* —— Save the Date —— */
.tm-std {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

.tm-std__toggle {
  width: 100%;
}

.tm-std__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  min-width: 100%;
  width: max-content;
  max-width: 280px;
  background: var(--tm-white);
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.35rem;
}

.tm-std__menu[hidden] {
  display: none;
}

.tm-std__option {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  color: var(--tm-text) !important;
  text-decoration: none;
  font-family: var(--tm-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.tm-std__option:hover {
  background: var(--tm-paper);
  color: var(--tm-red) !important;
}

.tm-std--compact .tm-btn {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

.tm-std--strip {
  align-items: flex-start;
}

.tm-std--strip .tm-std__menu {
  left: 0;
  transform: none;
}

.tm-btn:focus-visible,
.tm-cf7-btn:focus-visible,
.tm-cf7-card input.wpcf7-submit:focus-visible,
.tm-float__whatsapp:focus-visible {
  outline: 2px solid var(--tm-black);
  outline-offset: 2px;
}

.tm-btn:disabled,
.tm-cf7-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tm-cf7-card input.wpcf7-submit {
  border-radius: var(--tm-radius-pill) !important;
  min-height: 48px;
  letter-spacing: 0.04em;
}

.tm-chip {
  border-radius: var(--tm-radius-pill);
}

/* —— Logo oficial Congreso (SVG web color / blanco) —— */
.tm-congress-logo {
  display: inline-flex;
  align-items: center;
  margin: 0;
  max-width: 100%;
  line-height: 0;
}

.tm-congress-logo__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.tm-congress-logo--hero {
  justify-content: center;
  width: 100%;
}

.tm-congress-logo--hero .tm-congress-logo__img {
  width: min(100%, 34rem);
  height: auto;
  object-position: center;
}

.tm-congress-logo--header .tm-congress-logo__img,
.tm-congress-logo--header-lockup .tm-congress-logo__img {
  height: clamp(2.5rem, 4.8vw, 3.5rem);
  width: auto;
  max-width: min(17.5rem, 40vw);
}

.tm-congress-logo--footer .tm-congress-logo__img {
  height: clamp(2.75rem, 5.5vw, 4rem);
  width: auto;
  max-width: min(20rem, 90vw);
}

@media (max-width: 380px) {
  .tm-congress-logo--hero .tm-congress-logo__img {
    width: min(100%, 18rem);
  }
}

/* —— Hero blanco —— */
.tm-hero-lema {
  font-family: var(--tm-font-body);
  font-size: clamp(1.125rem, 2.4vw, 1.625rem);
  color: var(--tm-text);
  letter-spacing: 0.06em;
}

.tm-hero-illustration {
  margin-top: 1.5rem;
  line-height: 0;
}

.tm-hero-illustration__img {
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: cover;
  object-position: 78% center;
}

@media (min-width: 768px) {
  .tm-hero-illustration__img {
    min-height: 0;
    object-fit: contain;
    object-position: center;
  }
}

/* —— Preinscripción: columnas a la misma altura (desktop) —— */
@media (min-width: 1024px) {
  #preinscripcion .tm-prereg-col {
    min-height: 100%;
  }

  #preinscripcion .tm-prereg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
  }

  #preinscripcion .tm-whatsapp-pitch {
    margin-top: auto;
  }
}

/* —— Frase vendedora WhatsApp (preinscripción) —— */
.tm-whatsapp-pitch__btn {
	background: #25d366;
	border-color: #25d366;
	color: #fff !important;
	gap: 0.5rem;
}

.tm-whatsapp-pitch__btn:hover {
	background: #1ebe57;
	border-color: #1ebe57;
	color: #fff !important;
}

/* —— Pitch bullets —— */
.tm-pitch-bullets__item {
  position: relative;
  padding-left: 1.25rem;
}

.tm-pitch-bullets__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tm-red);
}

/* —— Cifras sobre foto —— */
.tm-stats {
  min-height: 560px;
  background: var(--tm-black);
}

@media (min-width: 1024px) {
  .tm-stats {
    min-height: 620px;
  }
}

.tm-stats__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  max-width: none;
}

.tm-stats__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, var(--tm-stats-overlay)) 0%,
      rgba(0, 0, 0, var(--tm-stats-overlay)) 45%,
      rgba(0, 0, 0, var(--tm-stats-overlay-bottom)) 55%,
      rgba(0, 0, 0, var(--tm-stats-overlay-bottom)) 100%
    );
}

.tm-stats__fallback {
  position: absolute;
  inset: 0;
  background: var(--tm-black);
}

.tm-stats__content {
  min-height: inherit;
  padding-top: 40%;
  padding-bottom: 2.5rem;
}

.tm-stats__item {
  position: relative;
  padding-top: 0.75rem;
}

/* Parada brandbook: círculo con borde rojo (viñeta / avance) */
.tm-stats__dot,
.tm-parada {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tm-white);
  border: 2px solid var(--tm-red);
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}

.tm-stats__dot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* Antetítulo: rojo, mayúsculas espaciadas, guion rojo delante */
.tm-antetitulo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--tm-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tm-red);
  line-height: 1.2;
}

.tm-antetitulo::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 3px;
  flex: 0 0 1.25rem;
  background: var(--tm-red);
}

.tm-antetitulo--on-dark {
  color: rgba(255, 255, 255, 0.85);
}

.tm-antetitulo--on-dark::before {
  background: var(--tm-red);
}

.tm-antetitulo--muted {
  color: var(--tm-secondary);
}

/* Stepper formulario = línea con paradas */
.tm-stepper-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: var(--tm-line);
  z-index: 0;
}

.tm-stepper-line__progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background: var(--tm-red);
  transition: width 0.3s ease;
}

.tm-stepper-node {
  position: relative;
  z-index: 10;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tm-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--tm-white);
  border: 2px solid var(--tm-red);
  color: var(--tm-red);
  box-sizing: border-box;
}

.tm-stepper-node.is-active,
.tm-stepper-node.is-done {
  background: var(--tm-red);
  border-color: var(--tm-red);
  color: var(--tm-white);
}

.tm-stepper-node.is-pending {
  border-color: var(--tm-text);
  color: var(--tm-text);
}

/* —— Cierre —— */
.tm-closing__img {
  margin-top: 1rem;
  min-height: 220px;
  object-fit: cover;
  object-position: 78% center;
}

@media (min-width: 768px) {
  .tm-closing__img {
    min-height: 0;
    object-fit: contain;
    object-position: center;
  }
}

/* —— Flotantes —— */
.tm-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

@media (min-width: 768px) {
  .tm-float {
    right: max(32px, env(safe-area-inset-right));
    bottom: max(32px, env(safe-area-inset-bottom));
  }
}

.tm-float.is-hidden-focus,
.tm-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tm-float__whatsapp {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.tm-float__whatsapp--pending {
  border: 2px dashed #fff;
  opacity: 0.7;
  cursor: help;
}

.tm-float__cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tm-float__cta {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tm-btn,
  .tm-cf7-btn,
  .tm-float,
  .tm-float__cta {
    transition: none;
  }
}

#tmFloatingCta.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
