/* =====================================================================
   TM Group — rediseño v2 (módulo rediseno-v2, 2026-10-16)
   Requerimientos del cliente: TM_GROUP_CLAUDE_CODE.md + 3 mockups.
   Se carga DESPUÉS de site.css y la sobrescribe: mismos nombres de
   clase, valores nuevos (tokens, Raleway, escala tipográfica) más los
   componentes nuevos. Deuda: cuando el rediseño esté validado, fusionar
   con site.css y borrar las reglas que esta hoja deja sin efecto.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    --tm-naranja: #EC6728;
    --tm-naranja-alt: #ED8622;
    --tm-verde: #43A946;
    --tm-rojo: #D72427;
    --tm-rojo-oscuro: #A41F28;
    --tm-rojo-enlace: #D72427;
    /* Texto naranja pequeño sobre blanco: el #EC6728 puro no llega a AA. */
    --tm-naranja-oscuro: #C2410C;
    --tm-naranja-texto: #B93A0B;

    --tm-tinta: #171717;
    --tm-texto: #4B4B4B;
    --tm-texto-suave: #5F5F5F;
    --tm-superficie: #FAFAFA;
    --tm-pie: #FAFAFA;
    --tm-borde: #EEEAE6;
    --tm-borde-fuerte: #E6E1DC;

    --tm-fondo-hero: linear-gradient(180deg, #FFFFFF 0%, #FAF7F4 100%);
    --tm-fondo-durazno: #F6F3F0;
    --tm-fondo-suave: #FAFAFA;
    --tm-durazno-icono: #FDEBE1;
    /* Degradado de marca (rojo oscuro → rojo → naranja). Texto blanco
       grande/negrita; el extremo naranja queda en tono #D9531F (≈4:1). */
    --tm-degradado-marca: linear-gradient(100deg, #A41F28 0%, #D72427 48%, #D9531F 100%);
    --tm-boton-primario: linear-gradient(180deg, #D72427 0%, #D72427 100%);
    --tm-boton-rojo: linear-gradient(180deg, #D72427 0%, #D72427 100%);
    --tm-grad-naranja: linear-gradient(160deg, #F58A4B 0%, #EC6728 100%);
    --tm-grad-verde: linear-gradient(160deg, #5CBB5F 0%, #43A946 100%);
    --tm-grad-rojo: linear-gradient(160deg, #E5484B 0%, #D72427 100%);

    --tm-radio-xl: 20px;
    --tm-radio-l: 16px;
    --tm-radio-m: 10px;
    --tm-radio-s: 8px;
    --tm-sombra-tarjeta: 0 4px 18px -10px rgba(23, 23, 23, .18);
    --tm-fuente: 'Raleway', Arial, sans-serif;
    --tm-ancho-max: 1200px;
    --tm-gutter: clamp(1rem, 4vw, 3rem);
    /* Margen de lo que va de borde a borde (barra, pie, foto de Contacto). */
    --tm-borde-pantalla: clamp(1rem, 2.5vw, 2.5rem);
    /* Ancho máximo de barra, pie y héroes: con el zoom del navegador, texto e
       imagen crecen o se achican juntos dentro de este ancho. */
    --tm-ancho-composicion: 1680px;
}

/* ---------- Base ---------- */
body {
    font-family: var(--tm-fuente);
    font-size: 16px;
    line-height: 1.6;
    color: var(--tm-texto);
    background: #fff;
}

h1, h2, h3, h4 {
    font-family: inherit;
    line-height: 1.15;
}

.txt-naranja { color: var(--tm-naranja-texto); }

/* En titulares grandes (≥24px) el naranja/rojo de marca puro sí cumple. */
.hero-tm__titulo .txt-naranja,
.titulo-seccion .txt-naranja,
.bloque-dividido__titulo .txt-naranja { color: var(--tm-naranja); }

.icono-svg {
    display: block;
    width: 24px;
    height: 24px;
}

.icono-svg--blanco { filter: brightness(0) invert(1); }

/* ---------- Tipografía de sección ---------- */
.antetitulo {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
}

.titulo-seccion {
    margin: .75rem 0 0;
    font-weight: 700;
    font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.bajada-seccion {
    margin: .5rem 0 0;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--tm-texto);
}

.seccion-tm { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* ---------- Botones ---------- */
.boton-tm {
    min-height: 44px;
    padding: 0 1.5rem;
    border-radius: var(--tm-radio-s);
    font: 700 .875rem/1.2 var(--tm-fuente);
}

.boton-tm-grande { min-height: 48px; padding: 0 1.75rem; }

.boton-tm-primario,
.boton-tm-rojo {
    background: var(--tm-rojo);
    box-shadow: none;
}

.boton-tm-primario:hover,
.boton-tm-rojo:hover {
    background: var(--tm-rojo-oscuro);
    filter: none;
}

.boton-tm-secundario,
.boton-tm-secundario:hover {
    background: #fff;
    color: var(--tm-tinta);
    border: 1px solid var(--tm-borde-fuerte);
    font-weight: 700;
    box-shadow: none;
}

.boton-tm-secundario:hover { border-color: var(--tm-tinta); }

.boton-tm-blanco,
.boton-tm-blanco:hover {
    color: var(--tm-rojo-oscuro);
    font-weight: 700;
    box-shadow: none;
}

.enlace-flecha {
    font-size: .875rem;
    font-weight: 700;
    color: var(--tm-naranja-oscuro);
}

/* ---------- Navegación ---------- */
/* Barra a todo el ancho (pedido del usuario 2026-10-21): el logo va a la
   esquina izquierda y el botón a la derecha, sin el margen del ancho de
   contenido. */
.barra-tm .navbar.contenedor-tm { max-width: var(--tm-ancho-composicion); padding-inline: var(--tm-borde-pantalla); }
.barra-tm .navbar { min-height: 72px; padding-top: .5rem; padding-bottom: .5rem; }

.marca-tm img { width: 40px; height: 40px; }
.marca-tm span { font-size: 1.25rem; font-weight: 800; letter-spacing: 0; }

.barra-tm .navbar-nav { gap: clamp(1.25rem, 2.6vw, 2.25rem); }
.barra-tm .nav-link { font-size: .875rem; font-weight: 600; color: var(--tm-tinta); }
.barra-tm .nav-link:hover,
.barra-tm .nav-link[aria-current="page"] { color: var(--tm-naranja-texto); }
.barra-tm .boton-contacto { min-height: 40px; padding: 0 1.5rem; }

/* Acciones a la derecha: Intranet + Contáctanos */
.barra-tm__acciones { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.barra-tm .enlace-intranet {
    font-size: .875rem;
    font-weight: 600;
    color: var(--tm-tinta);
    text-decoration: none;
    white-space: nowrap;
}
.barra-tm .enlace-intranet:hover { color: var(--tm-naranja-texto); }

/* Servicios como combo desplegable al pasar el mouse */
.nav-tiene-menu { position: relative; }
.nav-link-menu { display: inline-flex; align-items: center; gap: .35rem; }
.nav-link-caret { font-size: .7rem; transition: transform .22s ease; }
.submenu-tm {
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--tm-borde);
    border-radius: var(--tm-radio-m);
    box-shadow: var(--tm-sombra-tarjeta);
    padding: .5rem;
}
.submenu-tm ul { list-style: none; margin: 0; padding: 0; }
.submenu-tm a {
    display: block;
    padding: .55rem .75rem;
    border-radius: var(--tm-radio-s);
    font-size: .875rem;
    font-weight: 600;
    color: var(--tm-tinta);
    text-decoration: none;
    white-space: nowrap;
}
.submenu-tm a:hover { background: var(--tm-durazno-icono); color: var(--tm-naranja-texto); }

@media (min-width: 992px) {
    .submenu-tm {
        position: absolute;
        top: 100%;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
        z-index: 1050;
    }
    /* puente invisible para no perder el hover entre el enlace y el panel */
    .submenu-tm::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
    .nav-tiene-menu:hover .submenu-tm,
    .nav-tiene-menu:focus-within .submenu-tm {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-tiene-menu:hover .nav-link-caret { transform: rotate(180deg); }
}

/* En móvil (navbar colapsado) el combo queda desplegado en línea */
@media (max-width: 991.98px) {
    .submenu-tm { border: 0; box-shadow: none; padding: .25rem 0 .25rem 1rem; min-width: 0; }
    .nav-link-caret { display: none; }
    .barra-tm__acciones { flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 1rem; }
}

/* ---------- Ruta de navegación ---------- */
.ruta-tm {
    font-size: .75rem;
    letter-spacing: .08em;
}

/* ---------- Héroe ---------- */
.hero-tm { background: var(--tm-fondo-hero); }

.hero-tm__grilla {
    grid-template-columns: minmax(0, 1fr) minmax(0, 50%);
    min-height: 0;
}

.hero-tm--compacto .hero-tm__grilla { min-height: 400px; }

.hero-tm__texto {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4.5rem) var(--tm-gutter);
}

/* Inicio ≈ 58 px a 1280 y 76 px a 1680; páginas internas, un escalón menos.
   cqi = ancho del héroe (en escritorio); sin contenedor, el de la pantalla. */
.hero-tm__titulo {
    margin: 1rem 0 0;
    font-weight: 800;
    font-size: clamp(2.125rem, 4.5cqi, 4.75rem);
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero-tm__titulo--48 { font-size: clamp(2rem, 4.05cqi, 4.25rem); }

.hero-tm__bajada {
    margin: 1.25rem 0 0;
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.6;
    text-wrap: pretty;
}

.hero-tm__botones { gap: .75rem 1rem; margin-top: 1.75rem; }

/* Imágenes del cliente (TMGroup_16_Imagenes_Web_Responsive, 2026-10-20): los
   héroes son composiciones con el marco y las formas de marca ya incluidas, y
   las decoraciones traen el blanco como parte de la imagen (sin
   transparencia). Se muestran enteras y con mix-blend-mode: darken, que deja
   ganar al fondo claro de la página sobre ese blanco (multiply lo oscurecía y
   se notaba el recuadro). */
/* La composición se apoya en el borde inferior del héroe y sus bordes
   izquierdo y superior se esfuman: el blanco de la imagen no coincide
   exacto con el degradado del fondo y se notaba el recuadro. */
.hero-tm__media {
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem 0 0;
}

.hero-tm__media img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    mix-blend-mode: darken;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%), linear-gradient(to bottom, transparent 0, #000 10%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 12%), linear-gradient(to bottom, transparent 0, #000 10%);
    mask-composite: intersect;
}

/* Texto e imagen en un mismo contenedor (pedido del cliente 2026-10-27): la
   grilla mide como mucho --tm-ancho-composicion y todo se mide contra ella
   (cqi), así el zoom del navegador los agranda o achica a la par. Hasta ese
   ancho la imagen llega al borde derecho y el texto arranca en la línea del
   logo, como antes. */
@media (min-width: 992px) {
    .hero-tm { --hero-margen: var(--tm-borde-pantalla); }

    .hero-tm__grilla {
        container-type: inline-size;
        max-width: var(--tm-ancho-composicion);
        grid-template-columns: minmax(0, calc(var(--hero-margen) + min(780px, 48%))) minmax(0, 1fr);
    }

    .hero-tm__texto {
        max-width: none;
        padding: clamp(2.5rem, 5cqi, 4.5rem) clamp(1rem, 3cqi, 2.5rem) clamp(2.5rem, 5cqi, 4.5rem) var(--hero-margen);
    }

    /* La abertura blanca del borde izquierdo de la composición pasa por debajo
       del margen derecho del texto: la imagen queda pegada al texto y es más
       grande. (darken: sobre el texto, el blanco no tapa nada.) */
    .hero-tm:not(.hero-tm--superpuesto) .hero-tm__media { margin-left: calc(-1 * clamp(2rem, 5cqw, 6rem)); }
}

/* Inicio y detalle de servicio: el texto se monta sobre la abertura blanca del
   lado izquierdo de la composición (≈ 20 % de su ancho). La imagen mide el
   60 % del héroe; se esfuman su borde izquierdo y el superior. */
@media (min-width: 992px) {
    .hero-tm--superpuesto { --hero-ancho-imagen: 60cqi; }
    .hero-tm--superpuesto .hero-tm__grilla { grid-template-columns: minmax(0, 1fr); }

    .hero-tm--superpuesto .hero-tm__texto,
    .hero-tm--superpuesto .hero-tm__media { grid-area: 1 / 1; }

    .hero-tm--superpuesto .hero-tm__texto {
        z-index: 2;
        align-self: center;
        max-width: calc(100% - .8 * var(--hero-ancho-imagen));
    }

    /* Más abajo la forma verde se mete en la abertura: la bajada no la toca. */
    .hero-tm--superpuesto .hero-tm__bajada { max-width: 88%; }

    .hero-tm--superpuesto .hero-tm__media { justify-content: flex-end; padding: 0; }

    .hero-tm--superpuesto .hero-tm__media img {
        width: var(--hero-ancho-imagen);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%), linear-gradient(to bottom, transparent 0, #000 10%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to right, transparent 0, #000 15%), linear-gradient(to bottom, transparent 0, #000 10%);
        mask-composite: intersect;
    }
}

/* Más ancho que la composición: el héroe queda centrado y el borde derecho de
   la imagen ya no toca la pantalla, así que también se esfuma. */
@media (min-width: 1681px) {
    .hero-tm__media img {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%);
        mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%);
    }

    .hero-tm--superpuesto .hero-tm__media img {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%);
        mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%);
    }
}

/* En una columna la imagen va a todo el ancho: solo se esfuma el borde superior. */
@media (max-width: 991.98px) {
    .hero-tm__grilla { grid-template-columns: minmax(0, 1fr); }
    .hero-tm__media { height: auto; padding: 0; }

    .hero-tm__media img {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%);
        mask-image: linear-gradient(to bottom, transparent 0, #000 10%);
    }
}

/* ---------- Cifras (Inicio): fondo suave con divisores ---------- */
.franja-durazno { padding: 2rem 0; background: var(--tm-fondo-durazno); }

.franja-iconos__item { min-height: 88px; gap: .25rem; }

.franja-iconos__valor {
    font-size: clamp(1.75rem, 1.4rem + .9vw, 2.125rem);
    font-weight: 800;
    color: var(--tm-rojo);
}

.franja-iconos__etiqueta {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
}

.franja-iconos__dato { font-size: .9375rem; font-weight: 700; }
.franja-iconos__icono { font-size: 1.75rem; }

/* ---------- Tarjetas y mosaicos de icono ---------- */
.tarjeta-tm {
    background: #fff;
    border: 1px solid var(--tm-borde);
    border-radius: var(--tm-radio-l);
    box-shadow: var(--tm-sombra-tarjeta);
}

.mosaico-icono,
.mosaico-icono--chico,
.mosaico-icono--mediano {
    width: 44px;
    height: 44px;
    border-radius: var(--tm-radio-m);
    box-shadow: none;
    font-size: 1.25rem;
}

.mosaico-icono--rojo { background: var(--tm-grad-rojo); }
.mosaico-icono--verde { background: var(--tm-grad-verde); box-shadow: none; }
.mosaico-icono--claro { background: var(--tm-durazno-icono); }
.mosaico-icono--grande { width: 56px; height: 56px; border-radius: 14px; }

.mosaico-icono .icono-svg { width: 22px; height: 22px; }

/* ---------- Servicios en Inicio (mockup: 2x2, flecha arriba a la derecha) ---------- */
.grilla-servicios-inicio { gap: 1.25rem; margin-top: 1.75rem; }

.tarjeta-servicio {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.tarjeta-servicio:hover { box-shadow: 0 10px 26px -14px rgba(23, 23, 23, .28); }

.tarjeta-servicio__flecha {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.tarjeta-servicio__flecha .icono-svg { width: 16px; height: 16px; }

.tarjeta-servicio__titulo {
    margin: 1.25rem 0 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
}

.tarjeta-servicio__texto {
    margin: .5rem 0 0;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--tm-texto);
}

/* Enlace del título cubre toda la tarjeta (un solo destino, objetivo táctil amplio). */
.enlace-estirado { color: inherit; text-decoration: none; }
.enlace-estirado::after { content: ""; position: absolute; inset: 0; }
.enlace-estirado:hover { color: var(--tm-rojo); }

/* ---------- Bloque foto + panel degradado (Quiénes somos del Inicio) ---------- */
/* Maqueta: a todo el ancho y alto ≈ 56% del ancho. El 2026-10-20 se achicó
   para disimular la poca resolución de la foto 14; con la foto en alta
   resolución (Reunion_Equipo, tecnico.md §20) vuelve al tamaño de la maqueta. */
.bloque-dividido {
    grid-template-columns: minmax(0, 49%) minmax(0, 1fr);
    max-width: none;
    min-height: clamp(420px, 56vw, 760px);
}

.bloque-dividido__media { min-height: 0; }

/* Reunion_Equipo (2026-10-21) trae curvas de marca a la izquierda: se recorta
   por ese lado para que la persona de la derecha no quede cortada; las
   cabezas quedan en el tercio superior. */
.bloque-dividido__media img { object-position: right 20%; }

.bloque-dividido__texto {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: none;
    padding: clamp(2.5rem, 5vw, 4.5rem) var(--tm-gutter) clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4.5vw, 4.5rem);
}

.bloque-dividido__titulo {
    max-width: 440px;
    margin: .75rem 0 0;
    font-weight: 700;
    font-size: clamp(1.625rem, 1rem + 1.6vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: 0;
}

.bloque-dividido__parrafo { max-width: 470px; margin: 1.25rem 0 0; font-size: 1rem; line-height: 1.7; }
.bloque-dividido .boton-tm { margin-top: 2rem; min-width: 200px; }

/* Panel rojo y naranja de la maqueta: imagen 07 del cliente. Va en un
   pseudo-elemento 8 px más grande que el panel porque la imagen trae un filo
   claro en los bordes (recorte de la composición original). El degradado
   queda debajo por si la imagen no carga (el texto blanco sigue legible). */
.bloque-dividido--marca .bloque-dividido__texto {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--tm-degradado-marca);
    color: #fff;
}

.bloque-dividido--marca .bloque-dividido__texto::before {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    background: url("../images/07_decoracion_roja.webp") 10% center / cover no-repeat;
    pointer-events: none;
}

.bloque-dividido--marca .antetitulo,
.bloque-dividido--marca .bloque-dividido__titulo,
.bloque-dividido--marca .bloque-dividido__parrafo { color: #fff; }

.bloque-dividido--marca .txt-rojo,
.bloque-dividido--marca .txt-naranja { color: #FFE1CC; }

@media (max-width: 991.98px) {
    .bloque-dividido { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .bloque-dividido__media { min-height: 0; height: clamp(240px, 56vw, 380px); }
}

/* ---------- Bandas degradadas ---------- */
.banda-marca { border-top-right-radius: 0; }

/* ---------- Franja de clientes (Quiénes somos) ---------- */
.franja-clientes { padding: 1.75rem 0; background: #fff; border-bottom: 1px solid var(--tm-borde); }

.franja-clientes__etiqueta {
    margin: 0 0 1rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tm-tinta);
}

.franja-clientes__lista {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem clamp(2rem, 5vw, 4rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.franja-clientes__item { display: flex; align-items: center; }
/* Los logos llegan recortados al contorno; los muy anchos se limitan por ancho. */
.franja-clientes__item img { display: block; height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.franja-clientes__nombre { font-size: 1rem; font-weight: 800; color: var(--tm-tinta); }

/* ---------- Proceso en 4 pasos ---------- */
.seccion-proceso { background: var(--tm-fondo-suave); }
.seccion-proceso .titulo-seccion,
.seccion-proceso .bajada-seccion { text-align: center; }

.pasos-proceso {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.paso-proceso { position: relative; padding-right: 1.5rem; }

/* Flecha entre pasos (decorativa) */
.paso-proceso:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    right: -.25rem;
    width: 16px;
    height: 16px;
    background: url("../images/iconos/flecha_derecha_naranja.svg") center / contain no-repeat;
    opacity: .55;
}

.paso-proceso__numero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: .875rem;
    font-weight: 800;
}

.paso-proceso__numero--naranja { background: var(--tm-naranja-texto); }
.paso-proceso__numero--rojo { background: var(--tm-rojo); }
.paso-proceso__numero--verde { background: #2F8A33; }

.paso-proceso .mosaico-icono { margin-top: 1.25rem; width: 56px; height: 56px; }
.paso-proceso .mosaico-icono img { width: 30px; height: 30px; }

/* Divisor vertical entre pasos, bajo la fila de números (maqueta). */
.paso-proceso:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -.75rem;
    top: 56px;
    bottom: 0;
    border-left: 1px solid var(--tm-borde);
}

.paso-proceso__titulo { margin: 1rem 0 0; font-size: 1.125rem; font-weight: 700; }
.paso-proceso__texto { margin: .5rem 0 0; font-size: .875rem; line-height: 1.6; }

@media (max-width: 991.98px) {
    .pasos-proceso { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .paso-proceso:not(:last-child)::after,
    .paso-proceso:not(:first-child)::before { display: none; }
}

@media (max-width: 575.98px) {
    .pasos-proceso { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Banda de cifras con degradado ---------- */
/* Imagen 05 del cliente (degradado puro: se puede estirar). 24 px de más para
   dejar fuera el filo claro de sus bordes; el degradado de marca queda de
   respaldo. */
.banda-metricas { padding: 2rem 0; background: url("../images/05_fondo_degradado.webp") center / calc(100% + 24px) calc(100% + 24px) no-repeat, var(--tm-degradado-marca); color: #fff; }

.banda-metricas__lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.banda-metricas__item { display: flex; align-items: center; gap: 1rem; }
.banda-metricas__item + .banda-metricas__item { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .3); }
.banda-metricas__item .icono-svg { width: 36px; height: 36px; flex: none; }

.banda-metricas__valor {
    display: block;
    font-size: clamp(1.75rem, 1.4rem + .9vw, 2.125rem);
    font-weight: 800;
    line-height: 1.1;
}

.banda-metricas__etiqueta {
    display: block;
    margin-top: .25rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .banda-metricas__item + .banda-metricas__item { padding-left: 0; border-left: none; }
}

/* ---------- CTA "¿Hablamos de tu equipo?" ---------- */
.cta-equipo { padding: clamp(2rem, 4vw, 3.5rem) 0; background: var(--tm-fondo-suave); }

.cta-equipo__tarjeta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
    overflow: hidden;
    border-radius: var(--tm-radio-xl);
    background: #fff;
    box-shadow: var(--tm-sombra-tarjeta);
}

.cta-equipo__tarjeta--sin-imagen { grid-template-columns: minmax(0, 1fr); }

.cta-equipo__texto { padding: clamp(1.5rem, 4vw, 3rem); }

.cta-equipo__titulo {
    margin: 0;
    color: var(--tm-tinta);
    font-size: clamp(1.5rem, 1.2rem + .8vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
}

.cta-equipo__bajada { margin: .75rem 0 0; max-width: 420px; font-size: .9375rem; }

.cta-equipo__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }

.cta-equipo__telefono {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    min-height: 44px;
    padding: .25rem 1rem .25rem .5rem;
    border-radius: var(--tm-radio-m);
    background: #FDF1EA;
    color: var(--tm-tinta);
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: none;
}

.cta-equipo__telefono:hover { color: var(--tm-rojo); }
.cta-equipo__telefono .icono-svg { width: 28px; height: 28px; }

.cta-equipo__imagen { position: relative; min-height: 260px; }

/* Forma naranja de la maqueta a la izquierda de la foto, sin tocarla: imagen
   09 del cliente a todo el alto (su borde inferior cortado coincide con el de
   la tarjeta) y en su proporción; solo asoma su punta izquierda, el resto
   queda debajo de la foto. Encima de la foto la teñía y su borde cortado se
   veía como una raya. La 10 (verde) no se usa: todos sus bordes son de color.
   Solo en escritorio (ver la media query de abajo). */
.cta-equipo__imagen::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: calc(-1 * clamp(96px, 13vw, 180px));
    aspect-ratio: 600 / 270;
    background: url("../images/09_onda_naranja.webp") center / 100% 100% no-repeat;
    mix-blend-mode: darken;
    /* El blanco de la imagen no es puro: sin esto se nota su borde izquierdo. */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%);
    mask-image: linear-gradient(to right, transparent 0, #000 6%);
    pointer-events: none;
}

.cta-equipo__imagen img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Foto vertical en un marco apaisado: muestra rostro y teléfono, como la maqueta. */
    object-position: center 35%;
}

@media (max-width: 767.98px) {
    .cta-equipo__tarjeta { grid-template-columns: minmax(0, 1fr); }
    .cta-equipo__imagen { order: -1; min-height: 0; height: 240px; }
}

/* Por debajo de 992 px la columna de texto no deja lugar y la forma tapaba
   los botones. */
@media (max-width: 991.98px) {
    .cta-equipo__imagen::before { content: none; }
}

/* ---------- Cobertura ---------- */
.cobertura { padding: clamp(2rem, 4vw, 3.5rem) 0; background: #fff; }

.cobertura__grilla {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
}

.cobertura__grilla--con-imagen { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.cobertura__imagen { display: block; width: 100%; max-height: 260px; object-fit: contain; mix-blend-mode: darken; }
.cobertura__texto { margin: 0; max-width: 560px; font-size: 1.0625rem; line-height: 1.6; }

@media (max-width: 575.98px) {
    .cobertura__grilla--con-imagen { grid-template-columns: minmax(0, 1fr); }
}

/* Ícono del botón del menú móvil: Bootstrap 5.1 solo lo dibuja bajo
   .navbar-light/.navbar-dark, que la barra no usa. */
.barra-tm .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23171717' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Contacto: tarjeta del responsable comercial ---------- */
.contacto-hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--tm-fondo-hero); }

/* Sin forma de fondo (pedido del usuario 2026-10-21): la foto, más grande,
   lleva las curvas de marca. */
.contacto-hero__grilla {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, clamp(360px, 34vw, 540px));
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
}

/* Mismo ancho y margen que la foto de abajo (casi de borde a borde): el
   titular arranca en la línea del logo de la barra (2026-10-22). */
.contacto-hero__grilla.contenedor-tm { max-width: var(--tm-ancho-composicion); padding-inline: var(--tm-borde-pantalla); }

.contacto-hero__grilla > div:first-child { max-width: 780px; }

/* Ancho en em: el titular queda en 3 líneas a cualquier tamaño de letra. */
.contacto-hero .hero-tm__titulo { max-width: 11em; }

/* Tarjeta más grande (pedido del usuario 2026-10-22): menos blanco entre el
   texto y la tarjeta. */
.tarjeta-asesor {
    padding: clamp(1.5rem, 2.2vw, 2.25rem);
    border-radius: var(--tm-radio-l);
    background: #fff;
    box-shadow: 0 18px 40px -22px rgba(23, 23, 23, .35);
}

.tarjeta-asesor__perfil {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--tm-borde);
}

.tarjeta-asesor__foto,
.tarjeta-asesor__iniciales {
    flex: none;
    width: clamp(64px, 6vw, 96px);
    height: clamp(64px, 6vw, 96px);
    border-radius: 50%;
    object-fit: cover;
}

.tarjeta-asesor__iniciales {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-durazno-icono);
}

.tarjeta-asesor__iniciales .icono-svg { width: 36px; height: 36px; }

.tarjeta-asesor__nombre { margin: 0; font-size: clamp(1.125rem, .8rem + .6vw, 1.5rem); font-weight: 700; line-height: 1.25; }
.tarjeta-asesor__cargo { margin: .25rem 0 0; font-size: clamp(.9375rem, .8rem + .25vw, 1.0625rem); }

.tarjeta-asesor__datos { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }

.tarjeta-asesor__datos a {
    display: flex;
    align-items: center;
    gap: .875rem;
    font-size: clamp(.9375rem, .8rem + .25vw, 1.0625rem);
    color: var(--tm-tinta);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.tarjeta-asesor__datos a:hover { color: var(--tm-rojo); }
.tarjeta-asesor__datos .icono-svg { width: 22px; height: 22px; flex: none; }

.tarjeta-asesor .boton-tm { width: 100%; min-height: 52px; margin-top: 1.5rem; font-size: 1rem; }

@media (max-width: 991.98px) {
    .contacto-hero__grilla { grid-template-columns: minmax(0, 1fr); }
}

/* Composición 03 del cliente (foto con las cintas de marca incluidas): entera.
   Sin mezcla: pasa por encima de la forma naranja y se teñiría. */
/* Foto más grande (pedido del usuario 2026-10-21): sale del ancho de
   contenido y va casi de borde a borde, con el mismo margen que la barra y el
   pie. Sin forma detrás, el blanco de la composición se funde con el fondo
   del héroe (darken). */
.contacto-foto.contenedor-tm {
    max-width: var(--tm-ancho-composicion);
    padding-inline: var(--tm-borde-pantalla);
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* La composición deja blanco a la izquierda (la cinta roja arranca al ~3,5 %
   del ancho) y llega al borde por la derecha: se corre a la izquierda para que
   la cinta quede en la misma línea que el titular y los dos lados se vean con
   el mismo margen (2026-10-22). El verde de abajo sobresale hacia el borde de
   la pantalla (el héroe recorta con overflow: hidden). */
.contacto-foto img { display: block; width: calc(100% / .965); max-width: none; height: auto; margin-left: calc(100% - 100% / .965); mix-blend-mode: darken; }

/* ---------- Lista "En qué podemos ayudarte" ---------- */
.lista-ayuda { display: flex; flex-direction: column; gap: .875rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }

.fila-servicio {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--tm-borde);
    border-radius: var(--tm-radio-l);
    background: #fff;
    box-shadow: var(--tm-sombra-tarjeta);
    transition: border-color .2s ease;
}

.fila-servicio:hover { border-color: var(--tm-naranja); }
.fila-servicio__cuerpo { flex: 1; min-width: 0; }
.fila-servicio__titulo { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.fila-servicio__texto { margin: .125rem 0 0; font-size: .875rem; line-height: 1.5; -webkit-line-clamp: 2; }
.fila-servicio__enlace { color: inherit; text-decoration: none; }
.fila-servicio__enlace::after { content: ""; position: absolute; inset: 0; }
.fila-servicio__enlace:hover { color: var(--tm-rojo); }
.fila-servicio .icono-svg { width: 20px; height: 20px; }
.fila-servicio__flecha { flex: none; }
.fila-servicio__flecha .icono-svg { width: 16px; height: 16px; }

/* ---------- Detalle de un servicio (/servicios/{id}/{nombre}, tecnico.md §29) ---------- */
/* Sin foto propia (el sitio solo usa imágenes del cliente): fondo de ondas 04
   y el ícono del servicio grande, con el mismo color que su tarjeta del Inicio. */
.hero-servicio {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3.5rem, 7vw, 6rem);
    background: var(--tm-fondo-hero);
}

/* 8 px más grande que el héroe: la imagen trae un filo claro en el borde
   derecho y su fondo no es el del héroe (se notaba el corte arriba). */
.hero-servicio::before {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    background: url("../images/04_fondo_ondas_claro.webp") center bottom / cover no-repeat;
    pointer-events: none;
}

.hero-servicio__grilla.contenedor-tm {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    max-width: var(--tm-ancho-composicion);
    padding-inline: var(--tm-borde-pantalla);
}

.hero-servicio__texto { max-width: 780px; }
.hero-servicio .hero-tm__titulo { max-width: 14em; }

.hero-servicio__icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(120px, 14vw, 200px);
    height: clamp(120px, 14vw, 200px);
    margin-right: clamp(0px, 6vw, 8rem);
    border-radius: clamp(24px, 3vw, 40px);
}

.hero-servicio__icono .icono-svg { width: 46%; height: 46%; }

/* Con imagen cargada desde el CMS (hero.imagen) la página usa el héroe del
   Inicio (hero-tm--superpuesto, 2026-10-27); este bloque queda para el ícono. */

.grilla-detalle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.tarjeta-detalle { padding: clamp(1.25rem, 2.5vw, 2rem); }
.tarjeta-detalle__titulo { margin: 1rem 0 0; color: var(--tm-tinta); font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.tarjeta-detalle__texto { margin: .5rem 0 0; font-size: .9375rem; line-height: 1.65; }

/* Pegado a las tarjetas del detalle: sin esto suma el padding inferior de una sección y el superior de la otra. */
.seccion-tm + .seccion-sistemas { padding-top: 0; margin-top: calc(-1 * clamp(1.75rem, 3.5vw, 2.75rem)); }
.lista-sistemas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.lista-sistemas__item { display: flex; }
.chip-sistema {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1rem;
    border: 1px solid var(--tm-borde);
    border-radius: var(--tm-radio-l);
    background: #fff;
    box-shadow: var(--tm-sombra-tarjeta);
    color: var(--tm-tinta);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.chip-sistema:hover { border-color: var(--tm-naranja); color: var(--tm-rojo); }
.chip-sistema__flecha { flex: none; }

@media (max-width: 767.98px) {
    .lista-sistemas { flex-direction: column; }
    .chip-sistema { justify-content: space-between; }
}

@media (min-width: 992px) {
    .lista-ayuda--dos-columnas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .hero-servicio__grilla.contenedor-tm { grid-template-columns: minmax(0, 1fr); }
    .hero-servicio__icono { display: none; }
    .grilla-detalle { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Testimonios (carrusel) ---------- */
/* Fondo con ondas naranja y verde de la maqueta: imagen 04 del cliente. */
.seccion-testimonios {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: url("../images/04_fondo_ondas_claro.webp") center / cover no-repeat, #FAFAFA;
}

.testimonios { position: relative; z-index: 1; }

.testimonio {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2.25rem;
    max-width: 820px;
    margin: 0 auto;
}

.testimonio[hidden] { display: none; }

/* Comillas sobre la foto, como la maqueta */
.testimonio__lateral { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }

.testimonio__foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.testimonio__foto--vacia {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E6E3E0;
    color: #A39E99;
    font-size: 3.25rem;
}

.testimonio__comillas { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 4.5rem; font-weight: 700; line-height: .5; height: 2rem; color: var(--tm-naranja); }
.testimonio__texto { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--tm-tinta); }
.testimonio__autor { margin: .75rem 0 0; font-size: .8125rem; font-weight: 700; color: var(--tm-tinta); }
.testimonio__cargo { margin: 0; font-size: .8125rem; font-weight: 400; color: var(--tm-texto-suave); }

.testimonios__controles {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 820px;
    margin: 1.5rem auto 0;
}

.testimonios__boton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--tm-borde-fuerte);
    border-radius: 50%;
    background: #fff;
    color: var(--tm-tinta);
    cursor: pointer;
}

.testimonios__boton:hover { border-color: var(--tm-naranja); color: var(--tm-naranja-texto); }

.testimonios__puntos { display: flex; gap: .5rem; }

.testimonios__punto {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #D8D2CC;
    cursor: pointer;
}

.testimonios__punto[aria-current="true"] { background: var(--tm-naranja); }

@media (max-width: 575.98px) {
    .testimonio { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 1.25rem; }
    .testimonio__lateral { align-items: flex-start; gap: 1rem; }
    .testimonio__foto { width: 88px; height: 88px; }
    .testimonio__foto--vacia { font-size: 2.5rem; }
}

/* ---------- Contacto: formulario ---------- */
.contacto-principal { padding: clamp(2rem, 4vw, 3.5rem) 0; background: #fff; }
.contacto-grilla { grid-template-columns: minmax(0, 720px); justify-content: center; }
.tarjeta-formulario { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--tm-radio-xl); box-shadow: var(--tm-sombra-tarjeta); }
.tarjeta-formulario h2 { font-size: 1.625rem; font-weight: 700; }
.tarjeta-formulario__bajada { font-size: .9375rem; }
.formulario-grilla { gap: 1.125rem 1rem; margin-top: 1.25rem; }
.campo-tm label { font-size: .875rem; font-weight: 600; }
.control-tm { min-height: 48px; border-radius: var(--tm-radio-s); font: 500 .9375rem var(--tm-fuente); }
textarea.control-tm { min-height: 120px; }
.control-tm:focus { border-color: var(--tm-naranja); box-shadow: 0 0 0 4px rgba(236, 103, 40, .18); }

/* ---------- 404 ---------- */
/* Fondo: imagen 04 del cliente (reemplaza la forma verde y el brillo naranja;
   la 11 tapaba el texto con su arco rojo). */
.pagina-404 { background: url("../images/04_fondo_ondas_claro.webp") center / cover no-repeat, var(--tm-fondo-hero); }
.pagina-404 h1 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; }
.pagina-404 p { font-size: 1rem; }

/* ---------- Pie de página ---------- */
.pie-tm {
    padding: 2.5rem 0 1.5rem;
    background: #fff;
    border-top: 1px solid var(--tm-borde);
    font-size: .875rem;
}

/* Pie a todo el ancho, como la barra: el logo en la esquina izquierda. */
.pie-tm > .contenedor-tm { max-width: var(--tm-ancho-composicion); padding-inline: var(--tm-borde-pantalla); }
.pie-tm__grilla { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; padding-bottom: 1.75rem; }
.pie-tm .marca-tm span { font-size: 1.125rem; }
.pie-tm__lema { margin-top: 1rem; }
.pie-tm h2 { margin-bottom: .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.pie-tm ul { gap: .5rem; }
.pie-tm a { color: var(--tm-texto); }
.pie-tm .boton-red { width: 36px; height: 36px; font-size: .9375rem; }
.pie-tm__base { padding-top: 1.25rem; font-size: .75rem; }

@media (max-width: 991.98px) {
    .pie-tm__grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .pie-tm__grilla { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    .tarjeta-servicio,
    .fila-servicio { transition: none; }
}

/* ---------- Modal "Nuestros sistemas" (modal-sistemas) ---------- */
:root {
    --tm-azul-panel: #0B2F6B;
    --tm-azul-tinta: #14234B;
    --tm-whatsapp: #128C7E;        /* borde, ícono y foco (4,1:1 sobre blanco) */
    --tm-whatsapp-tinta: #075E54;  /* texto (7,7:1) */
    --tm-whatsapp-suave: #E7F6EF;  /* fondo del hover */
}

body:has(.modal-sistemas.show) > .modal-backdrop.show { background: rgb(11, 26, 51); opacity: .55; }

@supports ((backdrop-filter: blur(3px)) or (-webkit-backdrop-filter: blur(3px))) {
    .modal-sistemas.show { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
}

.modal-sistemas__dialogo { max-width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }

.modal-sistemas__contenido {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: var(--tm-radio-xl);
    box-shadow: 0 32px 64px -24px rgba(11, 26, 51, .5);
    font-family: var(--tm-fuente);
}

.modal-sistemas__cerrar {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--tm-azul-tinta);
    cursor: pointer;
}

.modal-sistemas__cerrar:hover { background: rgba(20, 35, 75, .08); }
.modal-sistemas__cerrar:focus-visible { outline: 3px solid var(--tm-naranja); outline-offset: 0; }

.modal-sistemas__panel {
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    padding: 2.75rem 2.25rem 8.5rem;
    /* Respaldo si la <img> de fondo no está o no carga; con <img> (cover) queda tapado. */
    background: var(--tm-azul-panel) url("../images/fondo-panel-sistemas.webp") center bottom / cover no-repeat;
    color: #fff;
}

/* Fondo editable en el CMS (panel-sistemas.fondo): una <img> detrás del contenido. Sombra y corte de palabras largas
   para que los textos editables se lean y no se salgan sobre cualquier foto. */
.modal-sistemas__panel > :not(.modal-sistemas__fondo) { text-shadow: 0 2px 10px rgba(5, 20, 50, .45); overflow-wrap: break-word; }
.modal-sistemas__fondo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

.modal-sistemas__marca {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    gap: .5rem;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.modal-sistemas__marca img { width: 96px; height: 96px; object-fit: contain; }
.modal-sistemas__linea { align-self: center; width: 104px; height: 1px; margin: 1.75rem 0 2rem; background: rgba(255, 255, 255, .6); }

.modal-sistemas__titulo { margin: 0 0 1.25rem; color: #fff; font-size: 2.875rem; font-weight: 800; line-height: 1.05; }
.modal-sistemas__titulo:focus { outline: none; }
.modal-sistemas__bajada { margin: 0; color: rgba(255, 255, 255, .92); font-size: 1.125rem; font-weight: 500; line-height: 1.45; }

.modal-sistemas__cuerpo { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; min-width: 0; padding: 4.25rem 2.25rem 3.25rem; }

.modal-sistemas__demo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .375rem .625rem;
    margin: 0;
    color: var(--tm-tinta);
    font-size: 1.0625rem;
    font-weight: 600;
    text-align: center;
}

.modal-sistemas__demo-enlace {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .5rem 1.125rem;
    border: 1.5px solid var(--tm-whatsapp);
    border-radius: 999px;
    color: var(--tm-whatsapp-tinta);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease;
}

.modal-sistemas__demo-enlace .fa-whatsapp { font-size: 1.375rem; color: var(--tm-whatsapp); }
.modal-sistemas__demo-enlace:hover { color: var(--tm-whatsapp-tinta); background: var(--tm-whatsapp-suave); }
.modal-sistemas__demo-enlace:focus-visible { outline: 3px solid var(--tm-whatsapp); outline-offset: 2px; }

.modal-sistemas__carrusel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "anterior pista siguiente";
    align-items: center;
    width: 100%;
}

.modal-sistemas__pista {
    grid-area: pista;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: .25rem;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .25rem;
    scrollbar-width: none;
}

.modal-sistemas__pista::-webkit-scrollbar { display: none; }
.modal-sistemas__pista--uno { justify-content: center; }

/* Con menos tarjetas de las que entran, quedan centradas (los márgenes auto valen 0 si hay desborde). */
.modal-sistemas__pista > .tarjeta-sistema:first-child { margin-left: auto; }
.modal-sistemas__pista > .tarjeta-sistema:last-child { margin-right: auto; }

/* Flecha activa: naranja llena para invitar al clic; deshabilitada: contorno gris tenue. */
.modal-sistemas__flecha--anterior { grid-area: anterior; margin-right: .75rem; }
.modal-sistemas__flecha--siguiente { grid-area: siguiente; margin-left: .75rem; }
.modal-sistemas__flecha {
    width: 48px;
    height: 48px;
    border-color: var(--tm-naranja);
    background: var(--tm-naranja);
    color: #fff;
    font-size: 1.125rem;
    box-shadow: 0 6px 16px -4px rgba(236, 103, 40, .6);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.modal-sistemas__flecha:hover { border-color: var(--tm-naranja-oscuro); background: var(--tm-naranja-oscuro); color: #fff; transform: scale(1.08); }
.modal-sistemas__flecha:not([aria-disabled="true"]) { animation: modal-sistemas-llamar 1.6s ease-out .6s 3; }
.modal-sistemas__flecha[aria-disabled="true"],
.modal-sistemas__flecha[aria-disabled="true"]:hover {
    border-color: var(--tm-borde-fuerte);
    background: #fff;
    color: var(--tm-tinta);
    box-shadow: none;
    opacity: .4;
    transform: none;
    cursor: default;
}
.modal-sistemas__flecha:focus-visible { outline: 3px solid var(--tm-azul-panel); outline-offset: 2px; }

@keyframes modal-sistemas-llamar {
    0% { box-shadow: 0 6px 16px -4px rgba(236, 103, 40, .6), 0 0 0 0 rgba(236, 103, 40, .55); }
    70% { box-shadow: 0 6px 16px -4px rgba(236, 103, 40, .6), 0 0 0 12px rgba(236, 103, 40, 0); }
    100% { box-shadow: 0 6px 16px -4px rgba(236, 103, 40, .6), 0 0 0 0 rgba(236, 103, 40, 0); }
}

.tarjeta-sistema {
    display: flex;
    flex: 0 0 calc((100% - 1.5rem) / 2);
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1.5px solid var(--sistema-color, var(--tm-azul-panel));
    border-radius: var(--tm-radio-l);
    background: #fff;
    box-shadow: var(--tm-sombra-tarjeta);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Sin foto (o si falla): degradado claro del color del sistema, misma altura. */
.tarjeta-sistema__media {
    position: relative;
    aspect-ratio: 12 / 5;
    background-color: var(--sistema-color, var(--tm-azul-panel));
    background-image: linear-gradient(100deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .92) 100%);
}

.tarjeta-sistema__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

.tarjeta-sistema__cuerpo { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.25rem 1.5rem 1.5rem; }
.tarjeta-sistema__texto { flex: 1 1 auto; padding-bottom: 1.25rem; }
.tarjeta-sistema__nombre { margin: 0; color: var(--tm-azul-tinta); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }

.tarjeta-sistema__descripcion {
    display: -webkit-box;
    margin: .75rem 0 0;
    overflow: hidden;
    color: var(--tm-texto-suave);
    font-size: 1.0625rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tarjeta-sistema__pie { padding-top: 1.25rem; border-top: 1px solid var(--tm-borde-fuerte); }

.tarjeta-sistema__boton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    min-height: 52px;
    padding: .625rem 1rem;
    text-align: center;
    border-radius: 999px;
    background: var(--sistema-color, var(--tm-azul-panel));
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter .2s ease;
}

.tarjeta-sistema__boton:hover { color: #fff; filter: brightness(.88); }
.tarjeta-sistema__boton:focus-visible { color: #fff; outline: 3px solid var(--sistema-color, var(--tm-azul-panel)); outline-offset: 3px; }
.tarjeta-sistema__icono { flex: none; color: var(--sistema-color, var(--tm-azul-panel)); }

@media (min-width: 992px) {
    .modal-sistemas__contenido { grid-template-columns: 280px minmax(0, 1fr); }
}

/* Escritorio ancho: 3 tarjetas visibles (debajo de 1200 px quedan 2). */
@media (min-width: 1200px) {
    .modal-sistemas__cuerpo { padding-inline: 1.5rem; }
    .modal-sistemas__pista { gap: 1rem; }
    .tarjeta-sistema { flex-basis: calc((100% - 2rem) / 3); }
    .tarjeta-sistema__cuerpo { padding: 1rem; }
    .tarjeta-sistema__texto { padding-bottom: 1rem; }
    .tarjeta-sistema__nombre { font-size: 1.25rem; }
    .tarjeta-sistema__descripcion { margin-top: .5rem; font-size: .9375rem; }
    .tarjeta-sistema__pie { padding-top: 1rem; }
    .tarjeta-sistema__boton { gap: .5rem; min-height: 46px; padding: .5rem .625rem; font-size: .9375rem; white-space: nowrap; }
    .tarjeta-sistema__icono { width: 22px; height: 22px; }
}

/* Tableta y celular: el panel pasa a una franja arriba. */
@media (max-width: 991.98px) {
    .modal-sistemas__panel {
        padding: 1.5rem 4rem 1.5rem 2rem;
        background-position: center top;
        border-bottom: 4px solid var(--tm-naranja);
    }

    .modal-sistemas__marca { flex-direction: row; align-self: flex-start; gap: .75rem; font-size: 1.25rem; }
    .modal-sistemas__marca img { width: 56px; height: 56px; }
    .modal-sistemas__linea { display: none; }
    .modal-sistemas__titulo { margin: 1rem 0 .375rem; font-size: 1.75rem; font-weight: 800; }
    .modal-sistemas__fondo { object-position: center top; }
    .modal-sistemas__bajada { font-size: 1rem; }
    .modal-sistemas__cerrar { color: #fff; }
    .modal-sistemas__cerrar:hover { background: rgba(255, 255, 255, .15); }
    .modal-sistemas__cuerpo { padding: 1.75rem 1.5rem 2rem; }
}

@media (max-width: 575.98px) {
    .modal-sistemas__dialogo { max-width: calc(100% - 1.5rem); margin: .75rem auto; }
    .modal-sistemas__panel { padding: 1rem 3.5rem 1rem 1.25rem; }
    .modal-sistemas__marca { font-size: 1.0625rem; gap: .625rem; }
    .modal-sistemas__marca img { width: 44px; height: 44px; }
    .modal-sistemas__titulo { margin: .75rem 0 .25rem; font-size: 1.5rem; }
    .modal-sistemas__bajada { font-size: .9375rem; }
    .modal-sistemas__cerrar { top: .5rem; right: .5rem; }
    .modal-sistemas__cuerpo { gap: 1rem; padding: 1.25rem 1rem 1.25rem; }

    .modal-sistemas__carrusel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "pista pista" "anterior siguiente";
        row-gap: .75rem;
    }

    .modal-sistemas__flecha--anterior { justify-self: start; margin-right: 0; }
    .modal-sistemas__flecha--siguiente { justify-self: end; margin-left: 0; }
    .modal-sistemas__pista { gap: 1rem; }
    .tarjeta-sistema { flex-basis: 100%; }
    .tarjeta-sistema__cuerpo { padding: 1rem 1.25rem 1.25rem; }
    .tarjeta-sistema__nombre { font-size: 1.25rem; }
    .tarjeta-sistema__descripcion { font-size: 1rem; }
    .modal-sistemas__demo { font-size: .9375rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tarjeta-sistema__boton, .modal-sistemas__demo-enlace, .modal-sistemas__flecha { transition: none; }
    .modal-sistemas__flecha:not([aria-disabled="true"]) { animation: none; }
    .modal-sistemas__flecha:hover { transform: none; }
}

/* ---------- Texto con formato del CMS (editor-enriquecido) ---------- */
.ql-size-small { font-size: .8em; }                 /* en línea: dentro de h1, h2, p o span */
.ql-size-large { font-size: 1.15em; }
.ql-size-huge  { font-size: 1.3em; }
.texto-bloque .ql-size-small { font-size: .875em; } /* párrafos */
.texto-bloque .ql-size-large { font-size: 1.25em; }
.texto-bloque .ql-size-huge  { font-size: 1.5em; }
/* ql-px: generado por generar_css_px.js */
.ql-px-10 { font-size: 10px; }
.ql-px-11 { font-size: 11px; }
.ql-px-12 { font-size: 12px; }
.ql-px-13 { font-size: 13px; }
.ql-px-14 { font-size: 14px; }
.ql-px-15 { font-size: 15px; }
.ql-px-16 { font-size: 16px; }
.ql-px-17 { font-size: 17px; }
.ql-px-18 { font-size: 18px; }
.ql-px-19 { font-size: 19px; }
.ql-px-20 { font-size: 20px; }
.ql-px-21 { font-size: 21px; }
.ql-px-22 { font-size: 22px; }
.ql-px-23 { font-size: 23px; }
.ql-px-24 { font-size: 24px; }
.ql-px-25 { font-size: 25px; }
.ql-px-26 { font-size: 26px; }
.ql-px-27 { font-size: 27px; }
.ql-px-28 { font-size: 28px; }
.ql-px-29 { font-size: 29px; }
.ql-px-30 { font-size: 30px; }
.ql-px-31 { font-size: 31px; }
.ql-px-32 { font-size: 32px; }
.ql-px-33 { font-size: 33px; }
.ql-px-34 { font-size: 34px; }
.ql-px-35 { font-size: 35px; }
.ql-px-36 { font-size: 36px; }
.ql-px-37 { font-size: 37px; }
.ql-px-38 { font-size: 38px; }
.ql-px-39 { font-size: 39px; }
.ql-px-40 { font-size: 40px; }
.ql-px-41 { font-size: 41px; }
.ql-px-42 { font-size: 42px; }
.ql-px-43 { font-size: 43px; }
.ql-px-44 { font-size: 44px; }
.ql-px-45 { font-size: 45px; }
.ql-px-46 { font-size: 46px; }
.ql-px-47 { font-size: 47px; }
.ql-px-48 { font-size: 48px; }
.ql-px-49 { font-size: 49px; }
.ql-px-50 { font-size: 50px; }
.ql-px-51 { font-size: 51px; }
.ql-px-52 { font-size: 52px; }
.ql-px-53 { font-size: 53px; }
.ql-px-54 { font-size: 54px; }
.ql-px-55 { font-size: 55px; }
.ql-px-56 { font-size: 56px; }
.ql-px-57 { font-size: 57px; }
.ql-px-58 { font-size: 58px; }
.ql-px-59 { font-size: 59px; }
.ql-px-60 { font-size: 60px; }
.ql-px-61 { font-size: 61px; }
.ql-px-62 { font-size: 62px; }
.ql-px-63 { font-size: 63px; }
.ql-px-64 { font-size: 64px; }
.ql-px-65 { font-size: 65px; }
.ql-px-66 { font-size: 66px; }
.ql-px-67 { font-size: 67px; }
.ql-px-68 { font-size: 68px; }
.ql-px-69 { font-size: 69px; }
.ql-px-70 { font-size: 70px; }
.ql-px-71 { font-size: 71px; }
.ql-px-72 { font-size: 72px; }
.ql-px-73 { font-size: 73px; }
.ql-px-74 { font-size: 74px; }
.ql-px-75 { font-size: 75px; }
.ql-px-76 { font-size: 76px; }
.ql-px-77 { font-size: 77px; }
.ql-px-78 { font-size: 78px; }
.ql-px-79 { font-size: 79px; }
.ql-px-80 { font-size: 80px; }
@media (max-width: 575.98px) {
  .ql-px-29 { font-size: min(29px, 9vw); }
  .ql-px-30 { font-size: min(30px, 9vw); }
  .ql-px-31 { font-size: min(31px, 9vw); }
  .ql-px-32 { font-size: min(32px, 9vw); }
  .ql-px-33 { font-size: min(33px, 9vw); }
  .ql-px-34 { font-size: min(34px, 9vw); }
  .ql-px-35 { font-size: min(35px, 9vw); }
  .ql-px-36 { font-size: min(36px, 9vw); }
  .ql-px-37 { font-size: min(37px, 9vw); }
  .ql-px-38 { font-size: min(38px, 9vw); }
  .ql-px-39 { font-size: min(39px, 9vw); }
  .ql-px-40 { font-size: min(40px, 9vw); }
  .ql-px-41 { font-size: min(41px, 9vw); }
  .ql-px-42 { font-size: min(42px, 9vw); }
  .ql-px-43 { font-size: min(43px, 9vw); }
  .ql-px-44 { font-size: min(44px, 9vw); }
  .ql-px-45 { font-size: min(45px, 9vw); }
  .ql-px-46 { font-size: min(46px, 9vw); }
  .ql-px-47 { font-size: min(47px, 9vw); }
  .ql-px-48 { font-size: min(48px, 9vw); }
  .ql-px-49 { font-size: min(49px, 9vw); }
  .ql-px-50 { font-size: min(50px, 9vw); }
  .ql-px-51 { font-size: min(51px, 9vw); }
  .ql-px-52 { font-size: min(52px, 9vw); }
  .ql-px-53 { font-size: min(53px, 9vw); }
  .ql-px-54 { font-size: min(54px, 9vw); }
  .ql-px-55 { font-size: min(55px, 9vw); }
  .ql-px-56 { font-size: min(56px, 9vw); }
  .ql-px-57 { font-size: min(57px, 9vw); }
  .ql-px-58 { font-size: min(58px, 9vw); }
  .ql-px-59 { font-size: min(59px, 9vw); }
  .ql-px-60 { font-size: min(60px, 9vw); }
  .ql-px-61 { font-size: min(61px, 9vw); }
  .ql-px-62 { font-size: min(62px, 9vw); }
  .ql-px-63 { font-size: min(63px, 9vw); }
  .ql-px-64 { font-size: min(64px, 9vw); }
  .ql-px-65 { font-size: min(65px, 9vw); }
  .ql-px-66 { font-size: min(66px, 9vw); }
  .ql-px-67 { font-size: min(67px, 9vw); }
  .ql-px-68 { font-size: min(68px, 9vw); }
  .ql-px-69 { font-size: min(69px, 9vw); }
  .ql-px-70 { font-size: min(70px, 9vw); }
  .ql-px-71 { font-size: min(71px, 9vw); }
  .ql-px-72 { font-size: min(72px, 9vw); }
  .ql-px-73 { font-size: min(73px, 9vw); }
  .ql-px-74 { font-size: min(74px, 9vw); }
  .ql-px-75 { font-size: min(75px, 9vw); }
  .ql-px-76 { font-size: min(76px, 9vw); }
  .ql-px-77 { font-size: min(77px, 9vw); }
  .ql-px-78 { font-size: min(78px, 9vw); }
  .ql-px-79 { font-size: min(79px, 9vw); }
  .ql-px-80 { font-size: min(80px, 9vw); }
}
/* /ql-px */
.texto-bloque > * { margin: 0; }                    /* anula el margin-bottom del reboot de Bootstrap */
.texto-bloque > * + * { margin-top: .75em; }
.texto-bloque ul, .texto-bloque ol { padding-left: 1.25em; }
.texto-bloque li + li { margin-top: .25em; }
.texto-bloque .ql-align-center { text-align: center; }
.texto-bloque .ql-align-right { text-align: right; }
.texto-bloque a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.tarjeta-detalle__texto.texto-bloque > * + * { margin-top: .5rem; }   /* igual que hoy entre párrafos */
