/*
 * Home (index.blade.php) — rediseño 2026 desde Figma "LANDING PRINCIPAL".
 * CSS plano (sin utilidades Tailwind nuevas) para no depender del build de app.tailwind.css.
 * Concepto: azul noche → azul eléctrico, notas fijadas con chinchetas como único gesto lúdico.
 */

:root {
    --hm-page-width: 90%;
    --hm-navy: #000a51;
    --hm-navy-2: #00197a;
    --hm-ink: #0b1a6e;
    --hm-blue: #0066ff;
    --hm-accent: #0b5cff;
    --hm-bg: #eff5ff;
    --hm-pill: #d9eafc;
    --hm-card: #d6e5fb;
    --hm-text: #27324f;
    --hm-muted: #4a5674;
    --hm-white: #ffffff;
    --hm-radius-lg: 28px;
    --hm-radius: 18px;
    --hm-shadow: 0 18px 40px rgba(6, 30, 96, 0.12);
    --hm-font: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
}

/* clip (no hidden) en html y body: corta cualquier desborde lateral también en Safari/iOS,
   sin crear un contenedor de scroll que rompa position: sticky o el navbar fijo */
html:has(> .hm-body) {
    overflow-x: clip;
}

.hm-body {
    margin: 0;
    background: var(--hm-bg);
    color: var(--hm-text);
    font-family: var(--hm-font);
    overflow-x: clip;
}

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

.hm-body img {
    max-width: 100%;
    height: auto;
}

.hm-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--hm-navy);
    font-weight: 700;
}

.hm-skip:focus {
    top: 16px;
}

.hm-body :focus-visible {
    outline: 3px solid #7fb2ff;
    outline-offset: 3px;
}

.hm-container {
    width: var(--hm-page-width);
    margin: 0 auto;
}

.hm-section {
    padding: 96px 0;
}

.hm-accent {
    color: var(--hm-accent);
}

/* ---------- Tipografía compartida ---------- */

.hm-head {
    text-align: center;
    margin-bottom: 56px;
}

.hm-pill {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 30px;
    border-radius: 999px;
    background: var(--hm-pill);
    color: var(--hm-blue);
    font-size: 1.14rem;
    font-weight: 700;
}

.hm-pill--solid {
    background: var(--hm-blue);
    color: #fff;
}

.hm-h2 {
    margin: 0 auto;
    max-width: 26ch;
    color: var(--hm-ink);
    font-size: clamp(2.13rem, 4.7vw, 3.25rem);
    line-height: 1.08;
    text-align: center;
}

.hm-h2 .hm-accent {
    display: block;
}

.hm-h2--caps {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.005em;
}

.hm-h2--sentence {
    font-weight: 700;
    max-width: 32ch;
}

.hm-h2--navy {
    color: #00137f;
}

.hm-h2--left {
    margin: 0;
    text-align: left;
}

.hm-head__sub {
    margin: 14px 0 0;
    color: var(--hm-ink);
    font-size: 1.2rem;
    font-weight: 500;
}

.hm-lede {
    max-width: 62ch;
    margin: 20px auto 0;
    color: var(--hm-muted);
    font-size: 1.26rem;
    line-height: 1.6;
    text-align: center;
}

.hm-lede--wide {
    max-width: 70ch;
    font-size: 1.38rem;
}

.hm-lede strong,
.hm-connect__text strong {
    color: var(--hm-ink);
    font-weight: 700;
}

/* ---------- Botones ---------- */

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 44px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hm-btn:hover {
    transform: translateY(-2px);
}

.hm-btn--hero,
.hm-btn--primary {
    background: var(--hm-blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 102, 255, 0.35);
}

.hm-btn--hero {
    border-color: rgba(255, 255, 255, 0.55);
    font-size: 1.26rem;
}

.hm-btn--hero:hover,
.hm-btn--primary:hover {
    background: #0052d6;
}

.hm-btn--outline {
    border-color: rgba(255, 255, 255, 0.6);
    background: var(--hm-blue);
    color: #fff;
}

.hm-btn--ghost {
    border-color: #d5dbe6;
    background: #fff;
    color: #1d2433;
}

.hm-btn--ghost:hover {
    background: #f4f7fc;
}

.hm-btn--block {
    width: 100%;
}

.hm-btn[disabled] {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

/* ---------- Header (header-final sobre fondo oscuro) ---------- */

/* Absoluto dentro del hero (no ocupa flujo): así pasar a fixed no mueve el contenido. */
.hm-nav {
    position: absolute;
    top: 0;
    left: calc((100% - var(--hm-page-width)) / 2);
    z-index: 50;
    width: var(--hm-page-width);
    padding: 24px 0 0;
}

.hm-nav>header>nav {
    position: relative;
    isolation: isolate;
    border-radius: 999px;
    padding: 12px 14px 12px 28px;
    transform-origin: 50% 0;
}

/* Fondo y blur en un pseudo-elemento: backdrop-filter en el <nav> encerraría
   al menú móvil (position: fixed) dentro de la píldora. */
.hm-nav>header>nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: inherit;
    background: rgba(2, 18, 102, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hm-nav>header>nav>div:first-child svg {
    height: 1.5rem;
}

/* ---- Navbar flotante fuera del hero: aparece al subir y se esconde al bajar ----
   Inspirado en la Dynamic Island: al esconderse la píldora se encoge a lo ancho hasta
   ser una pastilla y se va hacia arriba; al aparecer nace de esa pastilla y se expande
   con rebote. El contenido se apaga antes de encogerse y vuelve después de abrirse. */
.hm-nav.is-floating {
    position: fixed;
    z-index: 60;
}

.hm-nav.is-floating>header>nav::before {
    background: rgba(2, 18, 102, 0.9);
    box-shadow: 0 18px 40px rgba(0, 10, 81, 0.28);
}

.hm-nav.is-floating>header>nav {
    animation: hm-nav-open 0.72s linear both;
}

.hm-nav.is-floating>header>nav>* {
    animation: hm-nav-content-in 0.32s ease 0.34s both;
}

.hm-nav.is-floating.is-hidden>header>nav {
    animation: hm-nav-min 0.5s linear forwards;
    pointer-events: none;
}

.hm-nav.is-floating.is-hidden>header>nav>* {
    animation: hm-nav-content-out 0.14s ease forwards;
}

/* al entrar a modo flotante ya escondido (fuera de pantalla) no se ve animación */
.hm-nav.is-instant>header>nav,
.hm-nav.is-instant>header>nav>* {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
}

@keyframes hm-nav-min {
    0% {
        opacity: 1;
        transform: none;
        animation-timing-function: cubic-bezier(0.6, 0, 0.35, 1);
    }

    55% {
        opacity: 1;
        transform: scale(0.2, 0.8);
        animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.4);
    }

    100% {
        opacity: 0;
        transform: translateY(-36px) scale(0.12, 0.5);
    }
}

@keyframes hm-nav-open {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.12, 0.5);
        animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
    }

    24% {
        opacity: 1;
        transform: scale(0.22, 0.84);
        animation-timing-function: cubic-bezier(0.25, 0.9, 0.3, 1);
    }

    68% {
        transform: scale(1.025, 1.02);
        animation-timing-function: ease-in-out;
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes hm-nav-content-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hm-nav-content-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hm-nav.is-floating>header>nav,
    .hm-nav.is-floating>header>nav>* {
        animation: none;
    }

    .hm-nav.is-floating.is-hidden {
        visibility: hidden;
    }
}

/* Lenis (scroll suave): estilos que pide la librería */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.hm-nav>header>nav>div:first-child svg path {
    fill: #fff;
}

.hm-nav>header>nav>div>.relative>button,
.hm-nav>header>nav>div:not(#mobileMenu)>div>div>a {
    color: #fff;
}

.hm-nav>header>nav>div>.relative>button svg {
    color: rgba(255, 255, 255, 0.6);
}

.hm-nav>header>nav>div:not(#mobileMenu)>div>div>a svg {
    color: rgba(255, 255, 255, 0.75);
}

.hm-nav>header>nav>div>a.rounded-full {
    background: #fff;
    color: var(--hm-navy);
    padding: 8px 18px;
}

.hm-nav .evidence-language-dropdown-classic-desktop .evidence-language-trigger {
    color: #fff;
}

.hm-nav .evidence-language-dropdown-classic-desktop .evidence-language-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hm-nav #btnOpenMenu img {
    filter: invert(1);
}

/* ---------- Hero ---------- */

.hm-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 24px;
    background:
        radial-gradient(70% 45% at 50% 78%, #10b4f5 0%, rgba(16, 180, 245, 0) 70%),
        radial-gradient(120% 70% at 50% 92%, #0466e0 0%, #01218f 45%, var(--hm-navy) 75%);
    color: #fff;
}

.hm-hero::after {
    content: "";
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: 0;
    height: 30%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: var(--hm-bg);
}

.hm-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    /* las dos columnas se agrupan al centro de la pantalla, no en las orillas */
    grid-template-columns: minmax(0, auto) minmax(0, 46ch);
    justify-content: center;
    gap: 64px;
    align-items: center;
    width: var(--hm-page-width);
    margin: 0 auto;
    /* 72px de aire + ~90px del navbar, que va en posición absoluta */
    padding: 162px 0 40px;
    text-align: left;
}

/* Planteamiento a la derecha, alineado con la base del bloque del título */
/* Tarjeta de vidrio con el planteamiento */
.hm-hero__intro {
    position: relative;
    max-width: 48ch;
    margin: 0;
    padding: 24px 26px 26px;
    border: 1px solid rgba(160, 196, 255, 0.28);
    border-radius: 22px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 60%),
        rgba(4, 22, 110, 0.35);
    box-shadow: 0 24px 50px rgba(0, 8, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* las 4 áreas: fichas unidas por una línea (en la animación llegan separadas y se juntan) */
.hm-intro__areas {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.hm-intro__areas::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    margin-top: -1px;
    background: linear-gradient(90deg, rgba(127, 178, 255, 0.2), #4f8dff 30%, #4f8dff 70%, rgba(127, 178, 255, 0.2));
    transform-origin: 0 50%;
}

.hm-intro__areas li {
    position: relative;
    padding: 6px 13px;
    border: 1px solid rgba(127, 178, 255, 0.55);
    border-radius: 999px;
    background: #0a2a9e;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.hm-intro__problem {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.02rem;
    line-height: 1.6;
}

.hm-intro__solution {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(160, 196, 255, 0.2);
    color: #fff;
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1.55;
}

/* llegan separadas y ladeadas, se juntan y la línea las conecta */
@media (prefers-reduced-motion: no-preference) {
    .hm-intro__areas li {
        animation: hm-area-join 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) both;
        animation-delay: calc(0.75s + var(--a, 0) * 0.08s);
    }

    .hm-intro__areas li:nth-child(1) { --sx: -26px; --sr: -8deg; }
    .hm-intro__areas li:nth-child(2) { --sx: -8px; --sr: 6deg; }
    .hm-intro__areas li:nth-child(3) { --sx: 8px; --sr: -5deg; }
    .hm-intro__areas li:nth-child(4) { --sx: 26px; --sr: 7deg; }

    .hm-intro__areas::before {
        animation: hm-area-link 0.6s cubic-bezier(0.65, 0, 0.35, 1) 1.35s both;
    }

    .hm-intro__solution {
        animation: hm-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.5s both;
    }
}

@keyframes hm-area-join {
    from {
        opacity: 0;
        transform: translate(var(--sx, 0), 14px) rotate(var(--sr, 0deg));
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hm-area-link {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.hm-hero__title {
    margin: 0 0 28px;
    font-weight: 400;
}

.hm-hero__lead {
    display: block;
    font-size: clamp(1.57rem, 3.81vw, 2.69rem);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hm-hero__big {
    display: block;
    max-width: 14ch;
    margin: 6px 0 0;
    font-size: clamp(2.8rem, 8.06vw, 4.93rem);
    font-weight: 800;
    line-height: 0.98;
    text-transform: uppercase;
}

.hm-hero__big .hm-accent {
    color: #1f6bff;
}

/* Línea de confianza bajo el botón del hero */
.hm-trust {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    margin: -24px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    font-weight: 600;
}

.hm-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hm-trust__stars {
    display: inline-flex;
    gap: 2px;
}

.hm-trust__stars svg {
    fill: #fac63f;
    filter: drop-shadow(0 0 6px rgba(250, 198, 63, 0.45));
}

.hm-trust__sep {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.hm-hero__device {
    position: relative;
    z-index: 2;
    width: min(860px, 92vw);
    margin: 0 auto;
}

.hm-hero__device img {
    display: block;
    width: 100%;
    filter: drop-shadow(0 30px 40px rgba(0, 16, 81, 0.25));
}

/* Secuencia de entrada: texto, botón y laptop suben en cadena; luego la laptop flota. */
@media (prefers-reduced-motion: no-preference) {
    .hm-hero__lead,
    .hm-hero__big,
    .hm-btn--hero,
    .hm-trust,
    .hm-hero__intro,
    .hm-hero__device {
        animation: hm-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .hm-hero__big {
        animation-delay: 0.12s;
    }

    .hm-btn--hero {
        animation-delay: 0.24s;
    }

    .hm-trust {
        animation-delay: 0.34s;
    }

    .hm-hero__intro {
        animation-delay: 0.3s;
    }

    .hm-hero__device {
        animation-delay: 0.44s;
    }

    .hm-hero__device img {
        animation: hm-float 9s ease-in-out 1.4s infinite;
    }

    /* El título grande y la laptop son candidatos a LCP: suben sin desvanecerse, porque un elemento
       con opacidad 0 no cuenta como pintado y retrasaría la métrica. */
    .hm-hero__big,
    .hm-hero__device {
        animation-name: hm-rise-solid;
    }
}

@keyframes hm-rise-solid {
    from {
        transform: translateY(28px);
    }

    to {
        transform: none;
    }
}

@keyframes hm-rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hm-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ---------- Logos (componente compartido) ---------- */

.hm-logos [data-evidence-companies] {
    padding: 28px 0 40px;
    background: transparent;
}

.hm-logos [data-evidence-companies] .evidence-companies-header {
    width: var(--hm-page-width);
    max-width: none;
    margin-bottom: 24px;
    padding: 0;
}

.hm-logos [data-evidence-companies] .evidence-companies-title {
    /* el componente lo pone al 50% de opacidad: muy poco contraste para Lighthouse */
    color: #4a5674;
    opacity: 1;
    font-size: 0.84rem;
}

/* ---------- Cifras ---------- */

.hm-stats {
    width: var(--hm-page-width);
    margin: 0 auto;
}

.hm-stats__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 44px 24px;
    border: 1px solid rgba(120, 170, 255, 0.4);
    border-radius: var(--hm-radius-lg);
    background:
        radial-gradient(60% 120% at 85% 20%, rgba(36, 120, 255, 0.55), transparent 60%),
        linear-gradient(100deg, #001e70 0%, #0233a8 55%, #0349d6 100%);
    box-shadow: 0 24px 48px rgba(1, 35, 130, 0.25);
    list-style: none;
    color: #fff;
}

.hm-stats__item {
    padding: 0 18px;
    text-align: center;
}

.hm-stats__item+.hm-stats__item {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hm-stats__value {
    /* flex descarta los espacios que mete el formateador entre la cifra y el acento */
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin: 0;
    font-size: clamp(2.69rem, 5.6vw, 3.81rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hm-stats__accent {
    color: #2f86ff;
}

.hm-stats__label {
    max-width: 16ch;
    margin: 12px auto 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

/* Textura de cada cifra (SVG en línea, sin peticiones extra): casi imperceptible */
.hm-stats__item {
    position: relative;
    isolation: isolate;
}

.hm-stats__item::before {
    content: "";
    position: absolute;
    /* cubre toda la columna de la franja, incluido su relleno vertical */
    inset: -44px 0;
    z-index: -1;
    background: var(--hm-stat-pattern) center / cover no-repeat;
    opacity: 0.14;
    pointer-events: none;
    -webkit-mask: radial-gradient(closest-side, #000 55%, transparent 100%);
    mask: radial-gradient(closest-side, #000 55%, transparent 100%);
}


/* aparece con la franja */
.hm-anim [data-reveal="stats"] .hm-stats__item::before {
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease 0.4s, transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.hm-anim [data-reveal="stats"].is-in .hm-stats__item::before {
    opacity: 0.14;
    transform: none;
}

/* ---------- Notas fijadas (áreas) ---------- */

.hm-notes-wrap {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

.hm-notes__trail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hm-notes__trail-line {
    fill: none;
    stroke: #6f82b8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 7 8;
    vector-effect: non-scaling-stroke;
}

/* Trazo sólido de la máscara: con pathLength=1 el dashoffset va de 1 (oculto) a 0 (completo). */
.hm-notes__trail-reveal {
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-dasharray: 1 2;
    stroke-dashoffset: 0;
}

/* Punta de la "pluma" que va dibujando el camino */
.hm-notes__tip {
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: #1747ff;
    box-shadow: 0 0 0 6px rgba(23, 71, 255, 0.16), 0 0 22px 4px rgba(23, 71, 255, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hm-notes__tip.is-drawing {
    opacity: 1;
}

.hm-notes__tip.is-drawing::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(23, 71, 255, 0.35);
    animation: hm-tip-pulse 1.2s ease-out infinite;
}

@keyframes hm-tip-pulse {
    from {
        opacity: 1;
        transform: scale(0.6);
    }

    to {
        opacity: 0;
        transform: scale(2.2);
    }
}

/* ---- Coreografía de cada nota (solo si el JS la activó) ----
   1) la hoja cae levantada y se asienta  2) el pin baja acelerando y se clava
   3) en el impacto la hoja se hunde un poco y sale una onda desde la punta del pin */

.hm-note::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    z-index: 1;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border: 2px solid rgba(23, 71, 255, 0.55);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.hm-notes--anim .hm-note__paper {
    opacity: 0;
    transform: translateY(-34px) scale(1.07) rotate(5deg);
}

.hm-notes--anim .hm-note__pin {
    opacity: 0;
}

.hm-notes--anim .hm-note.is-in .hm-note__paper {
    animation:
        hm-note-place 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        hm-note-thunk 0.42s cubic-bezier(0.3, 0.7, 0.4, 1) 0.92s;
}

.hm-notes--anim .hm-note.is-in .hm-note__pin {
    animation: hm-pin-stab 0.6s linear 0.45s both;
}

.hm-notes--anim .hm-note.is-in::after {
    animation: hm-pin-ripple 0.75s ease-out 0.92s forwards;
}

@keyframes hm-note-place {
    0% {
        opacity: 0;
        transform: translateY(-34px) scale(1.07) rotate(5deg);
        box-shadow: 0 50px 70px rgba(6, 30, 96, 0.3);
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: none;
        box-shadow: 0 16px 34px rgba(6, 30, 96, 0.16);
    }
}

@keyframes hm-note-thunk {
    0% {
        transform: none;
    }

    30% {
        transform: translateY(4px) scale(0.985);
    }

    65% {
        transform: translateY(-1px);
    }

    100% {
        transform: none;
    }
}

@keyframes hm-pin-stab {
    0% {
        opacity: 0;
        transform: translate(-50%, -90px) scale(1.7) rotate(-22deg);
        animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.45);
    }

    20% {
        opacity: 1;
    }

    78% {
        transform: translate(-50%, 3px) scale(1.18, 0.8) rotate(0deg);
        animation-timing-function: ease-out;
    }

    88% {
        transform: translate(-50%, -3px) scale(0.95, 1.06);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes hm-pin-ripple {
    0% {
        opacity: 0.9;
        transform: scale(0.4);
    }

    100% {
        opacity: 0;
        transform: scale(5);
    }
}

.hm-notes {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 300px;
    column-gap: 180px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-note {
    position: relative;
    grid-row: span 2;
    align-self: start;
    width: 100%;
    max-width: 380px;
    transform: rotate(var(--tilt, -4deg));
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-note:nth-child(odd) {
    grid-column: 1;
    justify-self: end;
}

.hm-note:nth-child(even) {
    grid-column: 2;
    justify-self: start;
    --tilt: 4deg;
}

.hm-note:nth-child(1) { grid-row: 1 / span 2; }
.hm-note:nth-child(2) { grid-row: 2 / span 2; }
.hm-note:nth-child(3) { grid-row: 3 / span 2; --tilt: 2.5deg; }
.hm-note:nth-child(4) { grid-row: 4 / span 2; --tilt: -3deg; }
.hm-note:nth-child(5) { grid-row: 5 / span 2; --tilt: 5deg; }
.hm-note:nth-child(6) { grid-row: 6 / span 2; --tilt: -4deg; }

.hm-note:nth-child(7) {
    grid-column: 1 / -1;
    grid-row: 8 / span 2;
    justify-self: center;
    --tilt: 0deg;
}

.hm-note:hover {
    transform: rotate(0deg) translateY(-4px);
}

/* .hm-note eleva la especificidad sobre .hm-body img { height: auto } */
.hm-note .hm-note__pin {
    position: absolute;
    top: 6px;
    left: 50%;
    z-index: 2;
    width: auto;
    height: 46px;
    transform: translateX(-50%);
}

.hm-note__paper {
    padding: 22px 22px 24px;
    border: 12px solid #fff;
    border-top-width: 60px;
    border-radius: 22px;
    background: linear-gradient(135deg, #e0f0ff 0%, #e8e9ff 100%);
    box-shadow: 0 16px 34px rgba(6, 30, 96, 0.16);
}

.hm-note__num {
    display: block;
    color: #0c1332;
    font-size: 2.46rem;
    font-weight: 500;
    line-height: 1;
}

.hm-note__title {
    margin: 8px 0 12px;
    color: #0c1332;
    font-size: 1.74rem;
    font-weight: 800;
    line-height: 1.12;
}

/* Puntos de cada nota */
.hm-note__points {
    display: grid;
    gap: 7px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.hm-note__points li {
    position: relative;
    padding-left: 18px;
    color: #20283f;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.35;
}

.hm-note__points li::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1747ff;
}

/* ---- La nota completa se marca (checklist del usuario) ---- */
.hm-note {
    cursor: pointer;
}

.hm-note__need {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 10px;
    border: 2px dashed #9db7ef;
    border-radius: 999px;
    background: #fff;
    color: #1747ff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.hm-note__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.hm-note__tick {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #9db7ef;
    border-radius: 7px;
    background: #fff;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hm-note__tick path {
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16;
    stroke-dashoffset: 16;
    transition: stroke-dashoffset 0.3s ease 0.1s;
}

.hm-note__input:focus-visible+.hm-note__tick {
    outline: 3px solid #7fb2ff;
    outline-offset: 2px;
}

.hm-note:hover .hm-note__need {
    border-color: #1747ff;
}

.hm-note.is-checked .hm-note__need {
    border-style: solid;
    border-color: #1747ff;
    background: #1747ff;
    color: #fff;
}

.hm-note.is-checked .hm-note__tick {
    border-color: #fff;
    background: #fff;
    transform: scale(1.1);
}

.hm-note.is-checked .hm-note__tick path {
    stroke: #1747ff;
    stroke-dashoffset: 0;
}

/* la hoja marcada se resalta con un contorno azul */
.hm-note.is-checked .hm-note__paper {
    outline: 3px solid #1747ff;
    outline-offset: 0;
}

/* ---- Tesoro al final del camino ---- */
@property --p {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

.hm-treasure {
    --p: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
    margin: calc(var(--pull, 0px) * -1) auto 0;
    padding-top: 90px;
    position: relative;
    text-align: center;
    transition: --p 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Tramo punteado que une la nota 07 con el tesoro. --trail-up (JS) es la distancia entre el borde
   inferior de la nota y el inicio de esta sección: el tramo sube hasta tocar la nota. */
.hm-treasure__trail {
    position: absolute;
    top: calc(var(--trail-up, 0px) * -1);
    left: 50%;
    width: 2px;
    height: calc(var(--trail-up, 0px) + var(--trail-base, 80px));
    margin-left: -1px;
    background: repeating-linear-gradient(to bottom, #6f82b8 0 7px, transparent 7px 15px);
}

.hm-treasure__spot {
    position: relative;
    display: grid;
    place-items: center;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    /* anillo delgado que se llena con cada área identificada, y un aro interior fino */
    background:
        radial-gradient(closest-side, #fff 88%, transparent 89%),
        conic-gradient(var(--ring, #00197a) calc(var(--p) * 360deg), #e3eaf6 0);
    box-shadow: 0 0 0 10px #fff, 0 0 0 11px #dbe5f6, 0 22px 44px rgba(6, 30, 96, 0.12);
}

/* halo dorado: aparece una sola vez al completar */
.hm-treasure__halo {
    position: absolute;
    inset: -40px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(250, 198, 63, 0.35), rgba(250, 198, 63, 0) 70%);
    opacity: 0;
}

.hm-treasure__outline,
.hm-treasure__logo {
    grid-area: 1 / 1;
}

.hm-treasure__outline {
    fill: none;
    stroke: #9db0d6;
    stroke-width: 4;
    stroke-dasharray: 10 9;
    stroke-linejoin: round;
    transition: opacity 0.5s ease;
}

.hm-treasure__logo {
    opacity: 0;
    transform: scale(0.85);
}

.hm-treasure__progress {
    margin: 26px 0 6px;
    color: var(--hm-ink);
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hm-treasure__hint {
    max-width: 44ch;
    margin: 0;
    color: var(--hm-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.hm-treasure__found {
    margin-top: 6px;
}

.hm-treasure__title {
    margin: 0 0 10px;
    color: var(--hm-ink);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
}

.hm-treasure__found p {
    max-width: 46ch;
    margin: 0 auto 22px;
    color: var(--hm-text);
    font-size: 1.1rem;
    line-height: 1.55;
}

/* completo: el anillo pasa a dorado, la silueta se rellena con el logo y aparece el diagnóstico */
.hm-treasure.is-found {
    --ring: #c9a227;
}

.hm-treasure.is-found .hm-treasure__spot {
    box-shadow: 0 0 0 10px #fff, 0 0 0 11px #ead79c, 0 22px 44px rgba(6, 30, 96, 0.14);
}

.hm-treasure.is-found .hm-treasure__outline {
    opacity: 0;
}

.hm-treasure.is-found .hm-treasure__logo {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease 0.15s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.hm-treasure.is-found .hm-treasure__halo {
    animation: hm-halo 1.6s ease-out both;
}

.hm-treasure.is-found .hm-treasure__hint {
    display: none;
}

.hm-treasure.is-found .hm-treasure__found {
    animation: hm-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

@keyframes hm-halo {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0.55;
        transform: none;
    }
}

@media (max-width: 767px) {
    .hm-treasure {
        padding-top: 60px;
    }

    .hm-treasure__trail {
        --trail-base: 52px;
    }

    .hm-treasure__spot {
        width: 150px;
        height: 150px;
    }

    .hm-treasure__outline,
    .hm-treasure__logo {
        width: 80px;
        height: 80px;
    }
}

/* ---- Pistas junto a cada nota: íconos azules de su área, como marcas en un mapa ----
   Van del lado de afuera de cada nota; la línea punteada corre por el centro y no se toca. */
.hm-note__clue {
    position: absolute;
    top: 16%;
    width: 128px;
    height: 150px;
    pointer-events: none;
    /* contrarresta la inclinación de la nota: las pistas quedan derechas */
    transform: rotate(calc(var(--tilt, 0deg) * -1));
}

.hm-note:nth-child(odd) .hm-note__clue {
    right: calc(100% + 34px);
}

.hm-note:nth-child(even) .hm-note__clue {
    left: calc(100% + 34px);
}

/* tramo punteado entre las dos pistas */
.hm-note__clue::before {
    content: "";
    position: absolute;
    top: 52px;
    width: 80px;
    height: 70px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 70'%3E%3Cpath d='M70 6 C 60 40, 30 30, 12 62' fill='none' stroke='%237aa6f0' stroke-width='2.5' stroke-dasharray='2 7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hm-note:nth-child(odd) .hm-note__clue::before {
    right: 14px;
}

.hm-note:nth-child(even) .hm-note__clue::before {
    left: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 70'%3E%3Cpath d='M10 6 C 20 40, 50 30, 68 62' fill='none' stroke='%237aa6f0' stroke-width='2.5' stroke-dasharray='2 7' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hm-clue {
    position: absolute;
    display: grid;
    place-items: center;
    border: 2px dashed #9dbdf5;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 71, 255, 0.14);
    color: #1747ff;
}

.hm-clue:first-child {
    top: 0;
    width: 68px;
    height: 68px;
}

.hm-clue:last-child {
    top: 104px;
    width: 46px;
    height: 46px;
    border-style: solid;
    border-color: #dbe7fd;
}

.hm-note:nth-child(odd) .hm-clue:first-child { right: 0; }
.hm-note:nth-child(odd) .hm-clue:last-child { right: 76px; }
.hm-note:nth-child(even) .hm-clue:first-child { left: 0; }
.hm-note:nth-child(even) .hm-clue:last-child { left: 76px; }

.hm-clue .material-symbols-outlined {
    font-size: 34px;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 40;
}

.hm-clue:last-child .material-symbols-outlined {
    font-size: 24px;
}

/* la última nota va centrada: una pista a cada lado */
.hm-note:nth-child(7) .hm-note__clue {
    inset: 0;
    width: auto;
    height: auto;
    transform: none;
}

.hm-note:nth-child(7) .hm-note__clue::before {
    display: none;
}

.hm-note:nth-child(7) .hm-clue:first-child {
    top: 24%;
    right: calc(100% + 44px);
    left: auto;
}

.hm-note:nth-child(7) .hm-clue:last-child {
    top: 38%;
    left: calc(100% + 44px);
    right: auto;
}


@keyframes hm-clue-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* aparecen después de que se clava el pin de su nota */
.hm-notes--anim .hm-note__clue {
    opacity: 0;
}

.hm-notes--anim .hm-note.is-in .hm-note__clue {
    animation: hm-clue-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.05s both;
}

@keyframes hm-clue-in {
    from {
        opacity: 0;
        scale: 0.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

/* solo hay espacio a los lados en pantallas anchas */
@media (max-width: 1199px) {
    .hm-note__clue {
        display: none;
    }
}

/* ---------- Áreas conectadas ---------- */

.hm-connect {
    padding-top: 48px;
}

.hm-connect__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hm-connect .hm-h2 {
    font-size: clamp(2.13rem, 4.03vw, 2.91rem);
}

.hm-connect__text {
    margin: 18px 0 0;
    max-width: 46ch;
    color: var(--hm-text);
    font-size: 1.22rem;
    line-height: 1.6;
}

.hm-connect__visual {
    position: relative;
    padding: 40px 0;
}

.hm-connect__visual img {
    display: block;
    width: 88%;
    margin: 0 auto;
}

.hm-connect__badges {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-badge {
    position: absolute;
    max-width: 180px;
    padding: 9px 18px;
    border-radius: 16px;
    background: #0a2a9e;
    box-shadow: 0 12px 22px rgba(0, 20, 110, 0.35);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.hm-badge:nth-child(1) { top: 9%; left: 0; }
.hm-badge:nth-child(2) { top: 10%; right: 0; }
.hm-badge:nth-child(3) { top: 50%; left: -6%; }
.hm-badge:nth-child(4) { top: 48%; right: -6%; }
.hm-badge:nth-child(5) { bottom: 4%; left: 12%; }
.hm-badge:nth-child(6) { bottom: 0; right: 4%; }

/* ---------- Módulos ---------- */

.hm-modules .hm-h2 {
    margin-bottom: 32px;
    max-width: 30ch;
}

/* Interruptor Con Evidence / Sin Evidence */
.hm-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(6, 30, 96, 0.12);
}

.hm-switch__thumb {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);
    border-radius: 999px;
    background: var(--hm-navy-2);
    transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1), background-color 0.4s ease;
}

.hm-switch[data-mode="without"] .hm-switch__thumb {
    transform: translateX(100%);
    background: #5c677d;
}

.hm-switch__opt {
    position: relative;
    z-index: 1;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--hm-ink);
    font-family: inherit;
    font-size: 1.14rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hm-switch__opt[aria-pressed="true"] {
    color: #fff;
}

.hm-mods-summary {
    margin: 18px 0 40px;
    color: var(--hm-muted);
    font-size: 1.14rem;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.25s ease;
}

.hm-mods-summary.is-swapping {
    opacity: 0;
}

/* Color de cada herramienta suelta (modo "Sin Evidence") */
.hm-tool--contable { --tool: #e8590c; }
.hm-tool--nomina { --tool: #ae3ec9; }
.hm-tool--crm { --tool: #0c8599; }
.hm-tool--inventarios { --tool: #2f9e44; }
.hm-tool--servicios { --tool: #d6336c; }
.hm-tool--proyectos { --tool: #4263eb; }
.hm-tool--produccion { --tool: #b8860b; }
.hm-tool--hojas { --tool: #5c677d; }
.hm-tool--cuentas { --tool: #c92a2a; }

/* Cuadrícula (izquierda) + panel de detalle fijo (derecha) */
.hm-mods__flat,
.hm-mods__groups,
.hm-group__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 8 columnas, cada tarjeta ocupa 2 (4 por fila); las dos últimas se centran */
.hm-mods__flat {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 18px;
}

.hm-mods__flat>li {
    grid-column: span 2;
}

.hm-mods__flat>li:nth-last-child(2):nth-child(4n + 1) {
    grid-column: 3 / span 2;
}

/* sin JS los grupos quedan vacíos y ocultos */
.hm-mods__groups {
    display: none;
}

.hm-mods[data-mode="without"] .hm-mods__flat {
    display: none;
}

/* 8 columnas, cada tarjeta ocupa 2: filas de 4 (3+1, 3+1, 3+1, 2+2) y el último grupo centrado */
.hm-mods[data-mode="without"] .hm-mods__groups {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 44px 18px;
    padding-top: 26px;
}

.hm-mods__groups>.hm-group:last-child {
    grid-column: 3 / span 4;
}

.hm-mod__desc {
    display: none;
}

.hm-mod {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 9px;
    border-radius: 14px;
    background: var(--hm-card);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.25s ease;
}

.hm-mod__media {
    display: block;
}

/* Fotos a color con filtro gris: se colorean al pasar el mouse o al estar seleccionadas */
.hm-mod img {
    display: block;
    width: 100%;
    aspect-ratio: 195 / 118;
    object-fit: cover;
    border-radius: 10px;
    filter: grayscale(1);
    transition: filter 0.5s ease;
}

.hm-mod__label {
    margin-top: auto;
    padding: 8px 10px;
    border: 1.5px solid #7aa6f0;
    border-radius: 8px;
    background: #e8f1fe;
    color: #0b1d43;
    font-size: 1.08rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hm-mod:hover img,
.hm-mod:focus-visible img,
.hm-mod[aria-current="true"] img {
    filter: none;
}

.hm-mod:hover,
.hm-mod:focus-visible,
.hm-mod[aria-current="true"] {
    background: var(--hm-navy-2);
}

.hm-mod:hover {
    transform: translateY(-3px);
}

.hm-mod:hover .hm-mod__label,
.hm-mod:focus-visible .hm-mod__label,
.hm-mod[aria-current="true"] .hm-mod__label {
    border-color: #3f6fe0;
    background: #06258f;
    color: #fff;
}

/* ---- Con Evidence: un trazo azul a mano encierra los 18 módulos ---- */
.hm-mods {
    position: relative;
}

.hm-mods__flat {
    position: relative;
    z-index: 1;
    padding: 34px 34px 32px;
}

.hm-mods__ring {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
}

.hm-mods__ring path {
    fill: color-mix(in srgb, #1747ff 4%, transparent);
    stroke: #1747ff;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hm-mods .hm-mods__ring-label {
    /* .hm-mods delante: le gana a .hm-group__label, que está más abajo */
    position: absolute;
    top: -6px;
    left: 30px;
    z-index: 2;
    margin: 0;
    --tool: #1747ff;
}

.hm-mods[data-mode="without"] .hm-mods__ring,
.hm-mods[data-mode="without"] .hm-mods__ring-label {
    display: none;
}

@media (max-width: 767px) {
    .hm-mods__flat {
        padding: 32px 18px 20px;
    }

    .hm-mods .hm-mods__ring-label {
        left: 16px;
        font-size: 0.86rem;
    }
}

/* ---- Líneas que se dibujan solas, en ciclo: recorren el contorno, se quedan, se borran y vuelven ----
   pathLength="1" en el SVG: dasharray 1 1 y dashoffset 1 (oculto) → 0 (completo) → -1 (borrado). */
.hm-group__frame {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.hm-group__frame rect {
    x: 1.5px;
    y: 1.5px;
    width: calc(100% - 3px);
    height: calc(100% - 3px);
    rx: 20px;
    fill: none;
    stroke: var(--tool);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.hm-group__frame rect,
.hm-mods__ring path {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .hm-group__frame rect {
        animation: hm-trace-draw 1.2s cubic-bezier(0.65, 0, 0.35, 1) both;
        animation-delay: calc(var(--g, 0) * 0.12s + 0.2s);
    }

    .hm-anim [data-reveal="mods"]:not(.is-in) .hm-mods__ring path {
        stroke-dashoffset: 1;
    }

    .hm-anim [data-reveal="mods"].is-in .hm-mods__ring path,
    html:not(.hm-anim) .hm-mods__ring path {
        animation: hm-trace-draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.9s both;
    }
}

@keyframes hm-trace-draw {
    from {
        stroke-dashoffset: 1;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* ---- Sin Evidence: recuadro del color de la herramienta + etiqueta con flecha ---- */
.hm-group {
    position: relative;
    isolation: isolate;
    grid-column: span calc(var(--size) * 2);
    padding: 14px;
}

/* el recuadro va en un pseudo-elemento: así se desvanece al entrar sin volver
   transparentes a las tarjetas que van llegando */
.hm-group::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 20px;
    background: color-mix(in srgb, var(--tool) 7%, #fff);
    animation: hm-group-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--g) * 45ms + 0.25s);
}

.hm-group__list {
    display: grid;
    grid-template-columns: repeat(var(--size), minmax(0, 1fr));
    gap: 12px;
}

.hm-group .hm-mod {
    background: #fff;
}

.hm-group .hm-mod img {
    opacity: 0.8;
}

.hm-group .hm-mod__label {
    border: 1.5px solid var(--tool);
    background: #fff;
}

.hm-group__label {
    /* en el flujo, montada sobre el borde: si el nombre ocupa 2 renglones empuja las tarjetas */
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: -36px 0 12px 4px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: var(--tool);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--tool) 35%, transparent);
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.2;
    animation: hm-group-label 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--g) * 45ms + 0.45s);
}

.hm-group__label strong {
    font-weight: 800;
}

/* flecha curva que baja de la etiqueta hacia sus módulos */
.hm-group__arrow {
    flex: none;
    margin: 4px 0 -16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: scaleX(-1);
}

.hm-group__arrow path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: hm-arrow-draw 0.5s ease forwards;
    animation-delay: calc(var(--g) * 45ms + 0.7s);
}

@keyframes hm-group-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hm-group-label {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.6);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hm-arrow-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ---- Ventana de detalle de un módulo ---- */
.hm-mod-dialog {
    width: min(920px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--hm-text);
}

.hm-mod-dialog::backdrop {
    background: rgba(0, 10, 61, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
    .hm-mod-dialog[open]::backdrop {
        animation: hm-backdrop-in 0.4s ease both;
    }

    .hm-mod-dialog.is-closing::backdrop {
        animation: hm-backdrop-out 0.38s ease both;
    }
}

@keyframes hm-backdrop-in {
    from {
        opacity: 0;
    }
}

@keyframes hm-backdrop-out {
    to {
        opacity: 0;
    }
}

.hm-mod-dialog__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 40px 80px rgba(0, 10, 61, 0.35);
    transform-origin: 0 0;
}

.hm-mod-dialog__media {
    position: relative;
    min-height: 100%;
    background: #dfe8f8;
}

.hm-mod-dialog__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

/* filo de color: en "Sin Evidence" toma el color de la herramienta que lo reemplazaría */
.hm-mod-dialog__media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: #1747ff;
}

.hm-mod-dialog[data-mode="without"] .hm-mod-dialog__media::after {
    background: var(--tool, #5c677d);
}

.hm-mod-dialog__body {
    display: flex;
    flex-direction: column;
    padding: 38px 36px 30px;
}

.hm-mod-dialog__counter {
    margin: 0 0 10px;
    color: var(--hm-muted);
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hm-mod-dialog__name {
    margin: 0 0 14px;
    padding-right: 36px;
    color: var(--hm-ink);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
}

.hm-mod-dialog__without {
    display: none;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 4px solid var(--tool, #5c677d);
    border-radius: 10px;
    background: color-mix(in srgb, var(--tool, #5c677d) 10%, #fff);
    color: #1d2433;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
}

.hm-mod-dialog[data-mode="without"] .hm-mod-dialog__without {
    display: block;
}

.hm-mod-dialog__text {
    margin: 0 0 26px;
    color: var(--hm-text);
    font-size: 1.14rem;
    line-height: 1.65;
}

.hm-mod-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
}

.hm-mod-dialog__nav {
    display: flex;
    gap: 8px;
}

.hm-mod-dialog__nav button,
.hm-mod-dialog__close {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #dbe5f6;
    border-radius: 50%;
    background: #fff;
    color: var(--hm-ink);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hm-mod-dialog__nav button:hover,
.hm-mod-dialog__close:hover {
    border-color: #1747ff;
    background: #f1f5ff;
}

.hm-mod-dialog__nav button:active {
    transform: scale(0.94);
}

.hm-mod-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
}

/* celular: hoja que sube desde abajo, con la foto arriba */
@media (max-width: 767px) {
    .hm-mod-dialog {
        width: 100vw;
        max-height: 92vh;
        margin: auto 0 0;
    }

    .hm-mod-dialog__card {
        grid-template-columns: 1fr;
        max-height: 92vh;
        overflow-y: auto;
        border-radius: 24px 24px 0 0;
    }

    .hm-mod-dialog__media img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .hm-mod-dialog__media::after {
        top: auto;
        left: 0;
        width: auto;
        height: 4px;
    }

    .hm-mod-dialog__body {
        padding: 24px 20px 26px;
    }

    .hm-mod-dialog__close {
        background: rgba(255, 255, 255, 0.92);
    }

    .hm-mod-dialog__actions .hm-btn {
        flex: 1;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ---------- Industrias ---------- */

.hm-industries {
    background: linear-gradient(180deg, #e6efff 0%, var(--hm-bg) 100%);
}

.hm-industries .hm-h2 {
    max-width: none;
    font-size: clamp(1.7rem, 3.3vw, 3rem);
}

/* cada frase del título en su propia línea */
.hm-h2__line {
    display: block;
}

.hm-industries .hm-h2 .hm-accent {
    display: inline;
}

.hm-ind {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
}

.hm-ind__track {
    /* Todas las tarjetas en la misma celda: la pista toma el alto de la más alta
       y cada una se coloca con transform según su estado (sin reordenar el DOM). */
    --ind-w: min(400px, 27vw);
    display: grid;
    flex: 0 1 calc(var(--ind-w) * 2.8);
    min-width: 0;
    margin: 0;
    padding: 30px 0 40px;
    list-style: none;
}

.hm-ind__item {
    grid-area: 1 / 1;
    justify-self: center;
    width: var(--ind-w);
    opacity: 0;
    transform: translateX(0) scale(0.6);
    transition:
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease;
    pointer-events: none;
}

.hm-ind__item[data-state="active"] {
    z-index: 3;
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hm-ind__item[data-state="prev"],
.hm-ind__item[data-state="next"] {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

.hm-ind__item[data-state="prev"] { transform: translateX(-95%) scale(0.82); }
.hm-ind__item[data-state="next"] { transform: translateX(95%) scale(0.82); }
.hm-ind__item[data-state="far-prev"] { z-index: 1; transform: translateX(-150%) scale(0.62); }
.hm-ind__item[data-state="far-next"] { z-index: 1; transform: translateX(150%) scale(0.62); }

.hm-ind__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: 470px;
    height: 100%;
    padding: 30px 28px 38px;
    overflow: hidden;
    border-radius: 26px;
    background: var(--hm-navy);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.6s ease, color 0.6s ease;
}

/* Lavado claro de las tarjetas laterales: se funde al llegar al centro */
.hm-ind__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #a8b6d8 0%, rgba(49, 64, 127, 0.75) 55%, rgba(11, 26, 99, 0) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hm-ind__item[data-state="next"] .hm-ind__card::before,
.hm-ind__item[data-state="far-next"] .hm-ind__card::before {
    background: linear-gradient(270deg, #a8b6d8 0%, rgba(49, 64, 127, 0.75) 55%, rgba(11, 26, 99, 0) 100%);
}

.hm-ind__item:not([data-state="active"]) .hm-ind__card::before {
    opacity: 1;
}

.hm-ind__card>* {
    position: relative;
}

.hm-ind__item[data-state="active"] .hm-ind__card {
    color: #fff;
    box-shadow: 0 30px 50px rgba(0, 10, 81, 0.3);
}

.hm-ind__icon {
    display: grid;
    place-items: center;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    background: #fff;
    color: #1554f5;
}

/* Al llegar al centro: el ícono hace pop y el texto sube en cascada */
.hm-ind__item[data-state="active"] .hm-ind__icon {
    animation: hm-ind-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hm-ind__item[data-state="active"] .hm-ind__icon .material-symbols-outlined {
    animation: hm-ind-spin 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.hm-ind__item[data-state="active"] .hm-ind__name,
.hm-ind__item[data-state="active"] .hm-ind__text,
.hm-ind__item[data-state="active"] .hm-ind__btn {
    animation: hm-ind-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.hm-ind__item[data-state="active"] .hm-ind__text,
.hm-ind__item[data-state="active"] .hm-ind__btn {
    animation-delay: 0.42s;
}

@keyframes hm-ind-pop {
    0% { transform: scale(0.82); }
    100% { transform: scale(1); }
}

@keyframes hm-ind-spin {
    0% { transform: rotate(-35deg) scale(0.85); }
    100% { transform: none; }
}

@keyframes hm-ind-rise {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: none; }
}

.hm-ind__icon .material-symbols-outlined {
    font-size: 72px;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 48;
}

.hm-ind__name {
    margin: 8px 0 0;
    padding-bottom: 14px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
}

.hm-ind__name::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 30px;
    height: 2px;
    margin-left: -15px;
    background: #3f7bff;
}

.hm-ind__text {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.45;
}

/* Textura de cada tarjeta del carrusel (SVG en línea), según su industria: casi imperceptible */
.hm-ind__card {
    isolation: isolate;
}

.hm-ind__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hm-ind-pattern) center / cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
    -webkit-mask: radial-gradient(closest-side, #000 55%, transparent 100%);
    mask: radial-gradient(closest-side, #000 55%, transparent 100%);
    transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-ind__item[data-state="active"] .hm-ind__card::after {
    opacity: 0.14;
    transform: scale(1.06);
}


/* Tarjeta CTA del carrusel: azul de marca en cualquier posición, con botón */
.hm-ind__item--cta[data-state] .hm-ind__card {
    justify-content: center;
    background: radial-gradient(120% 90% at 50% 0%, #2f7bff 0%, #0b5cff 40%, #0033b0 100%);
    color: #fff;
}

.hm-ind__item--cta[data-state="active"] .hm-ind__card {
    box-shadow: 0 30px 50px rgba(11, 92, 255, 0.35);
}

.hm-ind__item--cta .hm-ind__card::before {
    display: none;
}

.hm-ind__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    background: #fff;
    color: var(--hm-blue);
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.hm-ind__card:hover .hm-ind__btn {
    transform: translateY(-2px);
}

.hm-ind__arrow {
    position: relative;
    z-index: 4;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 14px 28px rgba(6, 30, 96, 0.18);
    color: #1554f5;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hm-ind__arrow:hover {
    transform: scale(1.06);
}

.hm-ind__arrow .material-symbols-outlined {
    font-size: 36px;
    font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 48;
}

/* ---------- Implementación ---------- */

.hm-impl .hm-h2 .hm-accent {
    color: var(--hm-blue);
}

/* min-width: 0 en cada columna: si no, el contenido de los pasos ensancha su columna fuera de la pantalla */
.hm-impl__grid>* {
    min-width: 0;
}

.hm-impl__grid {
    display: grid;
    grid-template-columns: 0.8fr 1.15fr 0.95fr;
    gap: 24px;
    align-items: center;
}

.hm-impl__card {
    padding: 28px 22px 22px;
    border-radius: 26px;
    background: radial-gradient(120% 70% at 30% 100%, #0d6bff 0%, #02176b 55%, #000a3d 100%);
    color: #fff;
}

.hm-impl__card-title {
    margin: 0 0 14px;
    font-size: 1.62rem;
    font-weight: 700;
    line-height: 1.2;
}

.hm-impl__card-title .hm-accent {
    color: #3a86ff;
}

.hm-impl__card p {
    margin: 0 0 22px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ---- Mensaje tipo WhatsApp ---- */
.hm-chat {
    position: relative;
    margin: 4px 0 22px;
}

.hm-impl__card .hm-chat__msg {
    position: relative;
    margin: 0;
    padding: 12px 14px 22px;
    border-radius: 4px 16px 16px 16px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    font-size: 1.02rem;
    line-height: 1.5;
}

/* colita de la burbuja */
.hm-chat__msg::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    border-top: 0 solid transparent;
    border-right: 8px solid rgba(255, 255, 255, 0.12);
    border-bottom: 10px solid transparent;
}

.hm-chat__meta {
    position: absolute;
    right: 10px;
    bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
}

.hm-chat__ticks {
    fill: none;
    stroke: #53bdeb;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hm-chat__typing {
    display: none;
}

.hm-anim [data-reveal="impl"] .hm-chat__typing {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 4px 16px 16px 16px;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0;
}

.hm-chat__typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}

.hm-anim [data-reveal="impl"] .hm-chat__msg {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transform-origin: 0 0;
}

.hm-anim [data-reveal="impl"] .hm-chat__ticks {
    stroke: rgba(255, 255, 255, 0.6);
}

/* 1) "escribiendo..." con los puntos rebotando  2) aparece el mensaje  3) las palomitas pasan a azul */
.hm-anim [data-reveal="impl"].is-in .hm-chat__typing {
    animation: hm-typing-life 2.1s ease 0.6s both;
}

.hm-anim [data-reveal="impl"].is-in .hm-chat__typing i {
    animation: hm-typing-dot 0.9s ease-in-out infinite;
}

.hm-anim [data-reveal="impl"].is-in .hm-chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.hm-anim [data-reveal="impl"].is-in .hm-chat__typing i:nth-child(3) { animation-delay: 0.3s; }

.hm-anim [data-reveal="impl"].is-in .hm-chat__msg {
    animation: hm-msg-in 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 2.55s both;
}

.hm-anim [data-reveal="impl"].is-in .hm-chat__ticks {
    animation: hm-ticks-read 0.3s ease 3.6s both;
}

@keyframes hm-typing-life {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    12%,
    88% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes hm-typing-dot {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@keyframes hm-msg-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hm-ticks-read {
    from {
        stroke: rgba(255, 255, 255, 0.6);
    }

    to {
        stroke: #53bdeb;
    }
}

.hm-impl__support {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.hm-impl__support-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--hm-blue);
}

.hm-impl__device img {
    display: block;
    width: 100%;
}

.hm-impl__steps {
    display: grid;
    gap: 22px;
}

.hm-steps {
    display: flex;
    gap: 14px;
    padding: 20px 18px;
    border: 1px solid #fff;
    border-radius: 18px;
    background: #d1e7ff;
    box-shadow: var(--hm-shadow);
    transform: rotate(-3deg);
}

.hm-steps+.hm-steps {
    background: #e4edfd;
    transform: rotate(-2deg);
}

.hm-steps__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: #1747ff;
}

.hm-steps__title {
    margin: 0 0 10px;
    color: #0c1332;
    font-size: 1.26rem;
    font-weight: 700;
}

.hm-steps__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.98rem;
    line-height: 1.35;
}

.hm-steps__list li {
    display: flex;
    gap: 8px;
}

.hm-steps__list strong {
    display: block;
    color: #0c1332;
}

.hm-steps__num {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1747ff;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
}

/* número y palomita en la misma celda; la palomita solo se ve con la animación */
.hm-steps__n,
.hm-steps__check {
    grid-area: 1 / 1;
}

.hm-steps__check {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.hm-impl__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 48px 0 0;
    color: var(--hm-muted);
    font-size: 1.2rem;
    text-align: center;
}

.hm-impl__footer::before,
.hm-impl__footer::after {
    content: "";
    width: 40px;
    height: 1.5px;
    background: #7d8db3;
}

/* ---------- Reconocimientos y premios ---------- */

.hm-awards {
    position: relative;
    padding: 80px 0;
    background: #fff;
}

/* Roseta del premio en la esquina superior derecha: ladeada y con un vaivén suave desde su moño.
   (.hm-awards delante para ganarle a .hm-body img { height: auto }) */
.hm-awards .hm-awards__ribbon {
    position: absolute;
    top: 34px;
    right: calc((100% - var(--hm-page-width)) / 2);
    z-index: 1;
    width: auto;
    height: 200px;
    transform: rotate(10deg);
    transform-origin: 50% 22%;
    filter: drop-shadow(0 14px 18px rgba(0, 20, 110, 0.25));
    pointer-events: none;
}

/* en escritorio la roseta tiene su propia columna a la derecha de las tarjetas */

@media (prefers-reduced-motion: no-preference) {
    .hm-awards--anim .hm-awards__ribbon {
        opacity: 0;
    }

    /* al aparecer la sección cae girando y se queda meciéndose */
    .hm-awards--anim.is-in .hm-awards__ribbon {
        animation: hm-ribbon-drop 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) 0.45s both;
    }
}

@keyframes hm-ribbon-drop {
    from {
        opacity: 0;
        transform: translateY(-60px) rotate(-25deg) scale(0.7);
    }

    to {
        opacity: 1;
        transform: rotate(10deg);
    }
}

@keyframes hm-ribbon-sway {

    0%,
    100% {
        opacity: 1;
        transform: rotate(10deg);
    }

    50% {
        opacity: 1;
        transform: rotate(4deg);
    }
}

@media (max-width: 1023px) {
    .hm-awards .hm-awards__ribbon {
        top: 36px;
        height: 130px;
    }

}

@media (max-width: 560px) {
    .hm-awards .hm-awards__ribbon {
        top: 30px;
        height: 104px;
    }

}

/* Encabezado centrado, 5 reconocimientos con medallón y cierre */
.hm-awards__inner {
    display: block;
    text-align: center;
}

.hm-awards__copy {
    max-width: 760px;
    margin: 0 auto 44px;
    /* deja libre la esquina de la roseta */
    padding: 0 110px;
    box-sizing: content-box;
}

.hm-awards__title {
    margin: 0 0 14px;
    color: var(--hm-ink);
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
}

.hm-awards__copy p {
    margin: 0;
    color: var(--hm-text);
    font-size: 1.14rem;
    line-height: 1.6;
}

.hm-awards__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-award {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 16px 24px;
    border: 1px solid #e3ebf8;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f4f8ff 100%);
    box-shadow: 0 14px 30px rgba(6, 30, 96, 0.08);
    text-align: center;
}

/* medallón azul noche con aro azul y punteado exterior, como en la pieza de premios */
.hm-award__medal {
    position: relative;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #0b2a8f 0%, #001556 70%);
    box-shadow:
        0 0 0 4px #fff,
        0 0 0 7px #1747ff,
        0 14px 28px rgba(0, 21, 86, 0.3);
}

.hm-award__medal::after {
    content: "";
    position: absolute;
    inset: -16px;
    border: 2px dotted rgba(23, 71, 255, 0.35);
    border-radius: 50%;
}

.hm-award__medal img {
    width: auto;
    max-width: 84px;
    height: auto;
    max-height: 66px;
    object-fit: contain;
}

.hm-award__name {
    margin: 0 0 10px;
    color: var(--hm-ink);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
}

.hm-award__text {
    margin: 0;
    color: var(--hm-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.hm-awards__closing {
    max-width: 62ch;
    margin: 40px auto 10px;
    color: var(--hm-ink);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.5;
}

.hm-awards__verified {
    margin: 0;
    color: var(--hm-muted);
    font-size: 1rem;
}

.hm-awards__verified a {
    color: var(--hm-blue);
    font-weight: 700;
}

/* tablet: 3 + 2 centradas · celular: 2 por fila y la última centrada */
@media (max-width: 1199px) {
    .hm-awards__copy {
        max-width: none;
        padding: 0 150px;
        box-sizing: border-box;
    }

    .hm-awards__list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .hm-award {
        grid-column: span 2;
    }

    .hm-award:nth-child(4) {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 767px) {
    .hm-awards__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .hm-award,
    .hm-award:nth-child(4) {
        grid-column: auto;
        padding: 32px 12px 20px;
    }

    .hm-awards__copy {
        padding: 0;
        box-sizing: border-box;
    }

    .hm-awards__title {
        padding: 0 64px;
    }

    .hm-award:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }

    .hm-award__medal {
        width: 104px;
        height: 104px;
    }

    .hm-award__medal img {
        max-width: 66px;
        max-height: 52px;
    }

    .hm-award__name {
        font-size: 1rem;
    }

    .hm-award__text {
        font-size: 0.9rem;
    }
}

/* Al aparecer, cada sello se "estampa": cae girado y grande, golpea y se asienta */
.hm-awards--anim .hm-award {
    opacity: 0;
}

.hm-awards--anim.is-in .hm-award {
    animation: hm-award-stamp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--i, 0) * 140ms);
}

@keyframes hm-award-stamp {
    0% {
        opacity: 0;
        transform: scale(1.35) rotate(-8deg);
    }

    55% {
        opacity: 1;
        transform: scale(0.96) rotate(1deg);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

/* Historias de éxito: se usa <x-casos-exito /> tal cual, igual que en las demás páginas. */

/* Texto más grande en el header y footer compartidos, solo dentro del home */
.hm-nav>header>nav>div>.relative>button,
.hm-nav>header>nav>div>a.rounded-full {
    font-size: 1rem;
}

.hm-body>footer .text-sm {
    font-size: 1rem;
    line-height: 1.6;
}

.hm-body>footer .text-xs {
    font-size: 0.875rem;
}

/* footer-simple: mismo ancho que el resto del home */
.hm-body>footer>div {
    width: var(--hm-page-width);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* ---------- Resultados ---------- */

.hm-results__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 24px 30px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 0 -4px rgba(6, 30, 96, 0.08), 0 18px 34px rgba(6, 30, 96, 0.1);
    text-align: center;
}

.hm-result__icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #dcecff;
    color: #1747ff;
}

.hm-result__icon .material-symbols-outlined {
    font-size: 38px;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 48;
}

.hm-result__title {
    margin: 18px 0 12px;
    color: #00137f;
    font-size: 1.38rem;
    font-weight: 700;
}

.hm-result__text {
    max-width: 30ch;
    margin: 0;
    color: var(--hm-muted);
    font-size: 1.14rem;
    line-height: 1.5;
}

/* ---------- CTA ---------- */

.hm-cta {
    /* el panel llega al borde derecho de la pantalla y la tablet se corta ahí */
    padding: 130px 0;
    overflow: hidden;
}

.hm-cta .hm-container {
    width: auto;
    margin-left: calc((100% - var(--hm-page-width)) / 2);
    margin-right: 0;
}

.hm-cta__panel {
    position: relative;
    min-height: 380px;
    padding: 56px 0 56px 44px;
    border-radius: var(--hm-radius-lg) 0 0 var(--hm-radius-lg);
    background: linear-gradient(90deg, #000a3d 0%, #021c86 45%, #0d6bff 100%);
    color: #fff;
}

.hm-cta__copy {
    position: relative;
    z-index: 1;
    max-width: 47%;
}

.hm-cta__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 2.9vw, 2.91rem);
    text-wrap: balance;
    font-weight: 800;
    line-height: 1.08;
}

.hm-cta__title .hm-accent {
    display: block;
    color: #1f6bff;
    white-space: nowrap;
}

.hm-cta__copy p {
    max-width: 52ch;
    margin: 0 0 26px;
    font-size: 1.22rem;
    line-height: 1.45;
}

/* la mitad derecha de la tablet queda fuera de la pantalla */
.hm-cta__img {
    position: absolute;
    top: 50%;
    right: 0;
    width: min(74%, 912px);
    max-width: none;
    margin: 0;
    /* translate(30%) deja siempre el 70% de la tablet visible */
    transform: translate(30%, -50%);
    filter: drop-shadow(0 26px 30px rgba(0, 10, 61, 0.35));
}

/* ---------- Formulario ---------- */

.hm-form__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.hm-form__intro {
    min-height: 100%;
    padding: 52px 32px;
    border-radius: 30px;
    background: linear-gradient(180deg, #001556 0%, #0442b8 55%, #0393c6 100%);
    color: #fff;
}

.hm-form__title {
    margin: 4px 0 26px;
    font-size: clamp(1.9rem, 3.36vw, 2.46rem);
    font-weight: 500;
    line-height: 1.2;
}

.hm-form__intro p {
    margin: 0;
    font-size: 1.14rem;
    line-height: 1.7;
}

/* Qué incluye la demostración personalizada */
.hm-form__session {
    margin-top: 28px;
    padding: 22px 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.hm-form__intro .hm-form__session-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.hm-form__session ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-form__session li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.04rem;
    line-height: 1.5;
}

.hm-form__session svg {
    flex: none;
    margin-top: 1px;
}

.hm-form__session circle {
    fill: #fff;
}

.hm-form__session path {
    fill: none;
    stroke: #0442b8;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hm-form__card {
    padding: 28px 26px 22px;
    border: 1px solid #e3e8f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 40px rgba(6, 30, 96, 0.14);
    font-family: var(--hm-font);
}

.hm-form__card-title {
    margin: 0 0 18px;
    color: #1d2433;
    font-size: 1.51rem;
    font-weight: 500;
}

.hm-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin-bottom: 8px;
}

.hm-field label {
    display: block;
    margin-bottom: 6px;
    color: #1d2433;
    font-size: 0.98rem;
    font-weight: 500;
}

.hm-field input,
.hm-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d5dbe6;
    border-radius: 10px;
    background: #fff;
    color: #1d2433;
    font-family: inherit;
    font-size: 1.1rem;
}

.hm-field input::placeholder {
    color: #6b7489;
}

.hm-field input:focus,
.hm-field select:focus {
    border-color: var(--hm-blue);
    outline: 2px solid rgba(0, 102, 255, 0.25);
    outline-offset: 0;
}

.hm-optin {
    color: #4a5674;
}

.hm-form__card .g-recaptcha {
    min-height: 78px;
    margin: 6px 0 16px;
}

.hm-form__messages:empty {
    display: none;
}

.hm-form__messages {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1.08rem;
}

.hm-form__messages.is-success {
    background: #e7f8ee;
    color: #0f6b3a;
}

.hm-form__messages.is-error {
    background: #fdecec;
    color: #a12020;
}

.hm-form__card .hm-btn {
    font-size: 1.14rem;
}

.hm-form__card .hm-btn+.hm-btn {
    margin-top: 10px;
}

.hm-form__privacy {
    margin: 16px 0 0;
    color: #5f6b80;
    font-size: 0.86rem;
    line-height: 1.6;
}

.hm-form__privacy a {
    color: inherit;
}

/* ---------- Evidence ERP en breve ---------- */

.hm-facts {
    padding-bottom: 32px;
}

.hm-facts__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1120px;
    margin: 36px auto 0;
    overflow: hidden;
    border: 1px solid #dbe5f6;
    border-radius: 20px;
    background: #fff;
}

.hm-fact {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 16px;
    padding: 20px 26px;
    border-top: 1px solid #e8eef9;
}

.hm-fact:nth-child(-n + 2) {
    border-top: 0;
}

.hm-fact:nth-child(even) {
    border-left: 1px solid #e8eef9;
}

.hm-fact dt {
    color: #00137f;
    font-size: 1.05rem;
    font-weight: 800;
}

.hm-fact dd {
    margin: 0;
    color: var(--hm-text);
    font-size: 1.05rem;
    line-height: 1.55;
}

.hm-anim [data-reveal="facts"] .hm-fact {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 60ms);
}

.hm-anim [data-reveal="facts"].is-in .hm-fact {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .hm-facts__list {
        grid-template-columns: 1fr;
    }

    .hm-fact:nth-child(2) {
        border-top: 1px solid #e8eef9;
    }

    .hm-fact:nth-child(even) {
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .hm-fact {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 16px 18px;
    }
}

/* ---------- FAQ ---------- */

.hm-faq {
    padding-top: 24px;
}

.hm-faq__list {
    display: grid;
    gap: 12px;
    margin-top: 36px;
}

.hm-faq__item {
    border: 1px solid #dbe5f6;
    border-radius: 14px;
    background: #fff;
}

.hm-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    list-style: none;
    cursor: pointer;
}

.hm-faq__item summary::-webkit-details-marker {
    display: none;
}

.hm-faq__item h3 {
    margin: 0;
    color: var(--hm-ink);
    font-size: 1.2rem;
    font-weight: 700;
}

.hm-faq__item summary .material-symbols-outlined {
    color: var(--hm-blue);
    transition: transform 0.25s ease;
}

.hm-faq__item[open] summary .material-symbols-outlined {
    transform: rotate(45deg);
}

.hm-faq__item p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--hm-muted);
    line-height: 1.6;
}

/* ---------- Eslogan ---------- */

.hm-slogan {
    display: grid;
    place-items: center;
    min-height: clamp(170px, 16vw, 240px);
    padding: 40px 5%;
    background:
        linear-gradient(rgba(3, 17, 58, 0.35), rgba(3, 17, 58, 0.35)),
        linear-gradient(110deg, #000a51 0%, #0233a8 60%, #0d6bff 100%);
    color: #fff;
    text-align: center;
}

/* la foto se pide hasta que la franja está cerca (ver data-slogan en el JS) */
.hm-slogan.is-near {
    background:
        linear-gradient(rgba(3, 17, 58, 0.35), rgba(3, 17, 58, 0.35)),
        url("../../img/home/slogan-fondo.webp") center 78% / cover no-repeat #00197a;
}

.hm-slogan__text {
    margin: 0;
    font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

@media (prefers-reduced-motion: no-preference) {
    .hm-slogan.is-near {
        animation: hm-pan 18s ease-in-out infinite alternate;
    }

    @supports ((-webkit-background-clip: text) or (background-clip: text)) {
        .hm-slogan__text {
            /* el #fff de fondo cubre el texto que queda fuera del degradado mientras este se desplaza */
            background: linear-gradient(110deg, #fff 42%, #8ff3ff 50%, #fff 58%) 120% 0 / 250% 100% no-repeat #fff;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: hm-shine 6s ease-in-out 1s infinite;
        }
    }
}

@keyframes hm-pan {
    from {
        background-position: 0 0, center 62%;
    }

    to {
        background-position: 0 0, center 92%;
    }
}

@keyframes hm-shine {
    0% {
        background-position: 120% 0;
    }

    35%,
    100% {
        background-position: -20% 0;
    }
}

/* =====================================================================
   ENTRADAS POR SECCIÓN (ligeras: solo transform, opacity y clip-path)
   Se activan con html.hm-anim (JS + IntersectionObserver + sin "reducir movimiento")
   y el observador agrega .is-in a cada [data-reveal] al aparecer.
   ===================================================================== */

/* --- Hero: un reflejo de luz cruza la laptop una vez al cargar --- */
@media (prefers-reduced-motion: no-preference) {
    .hm-hero__device::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, transparent 60%) 160% 0 / 250% 100% no-repeat;
        /* la máscara usa la misma imagen: el brillo solo se ve sobre la laptop, no en el fondo */
        -webkit-mask: url("../../img/home/laptop-erp-dashboard-sm.webp") center / 100% 100% no-repeat;
        mask: url("../../img/home/laptop-erp-dashboard-sm.webp") center / 100% 100% no-repeat;
        animation: hm-glare 1.6s cubic-bezier(0.4, 0, 0.2, 1) 1.25s both;
    }
}

@keyframes hm-glare {
    from {
        background-position: 160% 0;
    }

    to {
        background-position: -60% 0;
    }
}

/* --- Cifras: los números cuentan (JS) y un brillo recorre la franja --- */
.hm-stats__list {
    position: relative;
    overflow: hidden;
}

.hm-anim [data-reveal="stats"] .hm-stats__list::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-100%);
}

.hm-anim [data-reveal="stats"].is-in .hm-stats__list::after {
    animation: hm-band-sweep 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hm-anim [data-reveal="stats"] .hm-stats__label {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
}

.hm-anim [data-reveal="stats"].is-in .hm-stats__label {
    opacity: 1;
    transform: none;
}

@keyframes hm-band-sweep {
    to {
        transform: translateX(100%);
    }
}

/* --- Conecta las áreas: las etiquetas salen del centro de la tablet hacia su lugar --- */
.hm-anim [data-reveal="connect"] img {
    opacity: 0;
    transform: translateY(40px) rotate(-5deg) scale(0.94);
}

.hm-anim [data-reveal="connect"] .hm-badge {
    opacity: 0;
    transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.3);
}

/* la tablet sube enderezándose y su pantalla "se enciende" */
.hm-anim [data-reveal="connect"].is-in img {
    animation: hm-tablet-on 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hm-tablet-on {
    0% {
        opacity: 0;
        transform: translateY(40px) rotate(-5deg) scale(0.94);
        filter: brightness(0.15);
    }

    45% {
        opacity: 1;
        filter: brightness(0.15);
    }

    62% {
        filter: brightness(1.25);
    }

    100% {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.hm-anim [data-reveal="connect"].is-in .hm-badge {
    animation: hm-badge-plug 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) both;
    animation-delay: calc(0.35s + var(--i, 0) * 0.09s);
}

@keyframes hm-badge-plug {
    from {
        opacity: 0;
        transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.3);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hm-badge-float {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-6px);
    }
}

/* --- Implementación: las tarjetas giran hasta su inclinación y los pasos se marcan en orden --- */
.hm-anim [data-reveal="impl"] .hm-impl__card,
.hm-anim [data-reveal="impl"] .hm-impl__device {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-anim [data-reveal="impl"] .hm-impl__card {
    transform: translateX(-30px);
}

.hm-anim [data-reveal="impl"] .hm-impl__device {
    transform: translateY(24px) scale(0.97);
    transition-delay: 0.1s;
}

.hm-anim [data-reveal="impl"] .hm-steps {
    opacity: 0;
    transform: translateX(40px) rotate(8deg);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.34, 1.3, 0.64, 1);
    transition-delay: 0.25s;
}

.hm-anim [data-reveal="impl"] .hm-steps+.hm-steps {
    transition-delay: 0.45s;
}

.hm-anim [data-reveal="impl"] .hm-steps__num {
    transform: scale(0);
}

.hm-anim [data-reveal="impl"].is-in .hm-impl__card,
.hm-anim [data-reveal="impl"].is-in .hm-impl__device {
    opacity: 1;
    transform: none;
}

.hm-anim [data-reveal="impl"].is-in .hm-steps {
    opacity: 1;
    transform: rotate(-3deg);
}

.hm-anim [data-reveal="impl"].is-in .hm-steps+.hm-steps {
    transform: rotate(-2deg);
}

.hm-anim [data-reveal="impl"].is-in .hm-steps__num {
    animation:
        hm-ind-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        hm-step-done 0.5s ease both;
    animation-delay: var(--d, 0.8s), calc(var(--d, 0.8s) + 0.7s);
}

.hm-anim [data-reveal="impl"].is-in .hm-steps__n {
    animation: hm-num-out 0.25s ease calc(var(--d, 0.8s) + 0.7s) both;
}

.hm-anim [data-reveal="impl"].is-in .hm-steps__check {
    stroke-dasharray: 12;
    animation: hm-check-draw 0.35s ease calc(var(--d, 0.8s) + 0.95s) both;
}

@keyframes hm-step-done {
    0% {
        transform: rotateY(0);
    }

    50% {
        transform: rotateY(90deg);
        background: #1747ff;
    }

    100% {
        transform: rotateY(0);
        background: #12b76a;
    }
}

@keyframes hm-num-out {
    to {
        opacity: 0;
    }
}

@keyframes hm-check-draw {
    from {
        opacity: 1;
        stroke-dashoffset: 12;
    }

    to {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

.hm-steps:first-child li:nth-child(1) { --d: 0.8s; }
.hm-steps:first-child li:nth-child(2) { --d: 1.3s; }
.hm-steps+.hm-steps li:nth-child(1) { --d: 1.8s; }
.hm-steps+.hm-steps li:nth-child(2) { --d: 2.3s; }

/* el ícono de soporte late como una llamada entrante */
.hm-impl__support-icon {
    position: relative;
}

.hm-anim [data-reveal="impl"].is-in .hm-impl__support-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    animation: hm-ring 2.4s ease-out 1.2s 1 both;
}

@keyframes hm-ring {
    from {
        opacity: 0.9;
        transform: scale(1);
    }

    70%,
    to {
        opacity: 0;
        transform: scale(1.7);
    }
}

@media (max-width: 1023px) {

    .hm-anim [data-reveal="impl"].is-in .hm-steps,
    .hm-anim [data-reveal="impl"].is-in .hm-steps+.hm-steps {
        transform: none;
    }
}

/* --- Resultados: el círculo del ícono se llena de abajo arriba y el ícono hace pop --- */
.hm-result__icon {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hm-anim [data-reveal="results"] .hm-result__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #1747ff;
    transform: translateY(100%);
}

.hm-anim [data-reveal="results"] .hm-result__icon .material-symbols-outlined {
    transform: scale(0.4);
    opacity: 0;
}

/* las tarjetas se levantan desde su base, como fichas que se ponen de pie */
.hm-results__grid {
    perspective: 1400px;
}

.hm-anim [data-reveal="results"] .hm-result {
    opacity: 0;
    transform: rotateX(70deg) translateY(30px);
    transform-origin: 50% 100%;
    transition: opacity 0.4s ease, transform 0.9s cubic-bezier(0.34, 1.3, 0.64, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.hm-anim [data-reveal="results"].is-in .hm-result {
    opacity: 1;
    transform: none;
}

.hm-anim [data-reveal="results"].is-in .hm-result__icon::before {
    animation: hm-fill-up 1.1s cubic-bezier(0.65, 0, 0.35, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms + 0.15s);
}

.hm-anim [data-reveal="results"].is-in .hm-result__icon .material-symbols-outlined {
    animation: hm-icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms + 0.7s);
}

/* el círculo se llena y vuelve a su tono claro: queda como "completado" */
@keyframes hm-fill-up {
    0% {
        transform: translateY(100%);
        opacity: 1;
    }

    55% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

@keyframes hm-icon-pop {
    from {
        opacity: 0;
        transform: scale(0.4);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* --- CTA: la franja entra desde el borde derecho y la tablet llega después --- */
.hm-anim [data-reveal="cta"] {
    clip-path: inset(0 0 0 100% round var(--hm-radius-lg) 0 0 var(--hm-radius-lg));
    transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.hm-anim [data-reveal="cta"] .hm-cta__copy>* {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-anim [data-reveal="cta"] .hm-cta__img {
    opacity: 0;
    transform: translate(60%, -50%) rotate(6deg);
    transition: opacity 0.6s ease 0.55s, transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}

/* la franja recorta su contenido mientras entra; al terminar la tablet puede volver a salirse */
.hm-anim [data-reveal="cta"].is-in {
    clip-path: inset(-40% -40% -40% 0 round var(--hm-radius-lg) 0 0 var(--hm-radius-lg));
}

.hm-anim [data-reveal="cta"].is-in .hm-cta__copy>* {
    opacity: 1;
    transform: none;
}

.hm-anim [data-reveal="cta"].is-in .hm-cta__copy>:nth-child(1) { transition-delay: 0.45s; }
.hm-anim [data-reveal="cta"].is-in .hm-cta__copy>:nth-child(2) { transition-delay: 0.55s; }
.hm-anim [data-reveal="cta"].is-in .hm-cta__copy>:nth-child(3) { transition-delay: 0.65s; }

.hm-anim [data-reveal="cta"].is-in .hm-cta__img {
    opacity: 1;
    transform: translate(30%, -50%);
}

@media (max-width: 1023px) {
    .hm-anim [data-reveal="cta"] .hm-cta__img {
        transform: translateY(40px);
    }

    .hm-anim [data-reveal="cta"].is-in .hm-cta__img {
        transform: none;
    }
}

/* --- Formulario: la tarjeta se despliega de arriba abajo y los campos aparecen en orden --- */
.hm-anim [data-reveal="form"] {
    clip-path: inset(0 0 100% 0 round 18px);
    transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.hm-anim [data-reveal="form"] .hm-field {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(0.35s + var(--i, 0) * 70ms);
}

.hm-anim [data-reveal="form"].is-in {
    /* margen negativo para no recortar la sombra de la tarjeta */
    clip-path: inset(-80px round 18px);
}

.hm-anim [data-reveal="form"].is-in .hm-field {
    opacity: 1;
    transform: none;
}

/* --- Implementación: "principio a fin" se subraya solo --- */
.hm-impl__card-title .hm-accent {
    background: linear-gradient(#3a86ff, #3a86ff) 0 100% / 100% 3px no-repeat;
    padding-bottom: 2px;
}

.hm-anim [data-reveal="impl"] .hm-impl__card-title .hm-accent {
    background-size: 0 3px;
    transition: background-size 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.7s;
}

.hm-anim [data-reveal="impl"].is-in .hm-impl__card-title .hm-accent {
    background-size: 100% 3px;
}

/* --- Títulos: cada palabra sube desde su máscara, en cascada --- */
.hm-w {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
    vertical-align: top;
}

.hm-w__in {
    display: inline-block;
}

.hm-anim .hm-split .hm-w__in {
    transform: translateY(110%);
}

.hm-anim .hm-split.is-in .hm-w__in {
    transform: none;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(0.12s + var(--w, 0) * 45ms);
}

/* la píldora sobre el título se estira desde el centro */
.hm-anim .hm-reveal-parent>.hm-pill {
    opacity: 0;
    transform: scaleX(0.2);
}

.hm-anim .hm-reveal-parent.is-in>.hm-pill {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Módulos: las tarjetas salen apiladas del centro, como un mazo, y se reparten ---
   is-done (JS) apaga la entrada al terminar: así al volver de "Sin Evidence" no se repite */
.hm-anim [data-reveal="mods"]:not(.is-in) .hm-mods__flat .hm-mods__item {
    opacity: 0;
}

.hm-anim [data-reveal="mods"].is-in:not(.is-done) .hm-mods__flat .hm-mods__item {
    animation: hm-deal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 35ms);
}

@keyframes hm-deal {
    0% {
        opacity: 0;
        transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0deg)) scale(0.7);
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

/* --- Industrias: las laterales se abren en abanico desde detrás de la central --- */
.hm-anim [data-reveal="ind"]:not(.is-in) .hm-ind__track,
.hm-anim [data-reveal="ind"]:not(.is-in) .hm-ind__arrow {
    opacity: 0;
}

.hm-anim [data-reveal="ind"].is-in:not(.is-done) .hm-ind__item[data-state="active"] {
    animation: hm-ind-center 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.hm-anim [data-reveal="ind"].is-in:not(.is-done) .hm-ind__item[data-state="prev"],
.hm-anim [data-reveal="ind"].is-in:not(.is-done) .hm-ind__item[data-state="next"] {
    /* solo "from": termina en la posición que ya define su estado */
    animation: hm-ind-fan 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.hm-anim [data-reveal="ind"].is-in:not(.is-done) .hm-ind__arrow {
    animation: hm-icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

@keyframes hm-ind-center {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.85);
    }
}

@keyframes hm-ind-fan {
    from {
        opacity: 0;
        transform: translateX(0) scale(0.6) rotate(0deg);
    }
}

/* --- Preguntas frecuentes: cada pregunta se descubre de izquierda a derecha y el + gira --- */
.hm-anim [data-reveal="faq"] .hm-faq__item {
    clip-path: inset(0 100% 0 0 round 14px);
}

.hm-anim [data-reveal="faq"].is-in .hm-faq__item {
    clip-path: none;
    /* backwards: al terminar se quita el recorte para no cortar el foco ni la sombra */
    animation: hm-wipe 0.7s cubic-bezier(0.65, 0, 0.35, 1) backwards;
    animation-delay: calc(var(--i, 0) * 80ms);
}

.hm-anim [data-reveal="faq"].is-in .hm-faq__item summary .material-symbols-outlined {
    animation: hm-plus-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    animation-delay: calc(var(--i, 0) * 80ms + 0.45s);
}

@keyframes hm-wipe {
    from {
        clip-path: inset(0 100% 0 0 round 14px);
    }

    to {
        clip-path: inset(0 0 0 0 round 14px);
    }
}

@keyframes hm-plus-in {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.4);
    }
}

/* --- FAQ: la respuesta anima su altura (JS); aquí solo se recorta mientras crece --- */
.hm-faq__item p {
    overflow: hidden;
}

/* ---------- Botones flotantes (include compartido): solo ícono en el home ---------- */
/* El texto queda como tooltip al pasar el mouse; en pantallas táctiles solo el ícono (tienen aria-label). */
.hm-body .floating-cta-stack {
    gap: 10px;
}

.hm-body .floating-cta {
    position: relative;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
}

.hm-body .floating-cta .material-symbols-outlined {
    font-size: 24px;
}

.hm-body .floating-cta>span:not(.material-symbols-outlined) {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    display: block;
    padding: 7px 12px;
    border-radius: 8px;
    background: #041f49;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(6px, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {

    .hm-body .floating-cta:hover>span:not(.material-symbols-outlined),
    .hm-body .floating-cta:focus-visible>span:not(.material-symbols-outlined) {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@media (hover: none) {
    .hm-body .floating-cta>span:not(.material-symbols-outlined) {
        display: none;
    }
}

@media (max-width: 767px) {
    .hm-body .floating-cta {
        width: 46px;
        height: 46px;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
    /* tarjetas de pasos sin inclinar: así no rebasan el borde */
    .hm-steps,
    .hm-steps+.hm-steps {
        transform: none;
    }

    /* la tablet ocupa todo el ancho: las etiquetas laterales ya no pueden salirse del borde */
    .hm-badge:nth-child(3) { left: 0; }
    .hm-badge:nth-child(4) { right: 0; }

    .hm-stats__list {
        grid-template-columns: 1fr 1fr;
        row-gap: 32px;
    }

    .hm-stats__item:nth-child(3) {
        border-left: 0;
    }

    .hm-stats__item::before {
        inset: -14px 0;
    }

    .hm-nav>header>nav {
        padding: 12px 22px;
    }

    .hm-connect__grid,
    .hm-form__grid {
        grid-template-columns: 1fr;
    }

    .hm-impl__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hm-impl__device {
        grid-column: 1 / -1;
        grid-row: 1;
        max-width: 560px;
        margin: 0 auto;
    }

    .hm-cta {
        padding: 48px 0;
    }

    .hm-cta__panel {
        min-height: 0;
        padding: 36px 0 0 28px;
        overflow: hidden;
    }

    .hm-cta__copy {
        max-width: none;
        padding-right: 28px;
    }

    .hm-cta__title .hm-accent {
        white-space: normal;
    }

    .hm-cta__img {
        position: static;
        width: 156%;
        margin: 28px 0 -90px 12%;
        transform: none;
    }


    .hm-mods__flat {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hm-mods__flat>li,
    .hm-mods__flat>li:nth-last-child(2):nth-child(4n + 1) {
        grid-column: auto;
    }

    .hm-mods[data-mode="without"] .hm-mods__groups {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .hm-mods__groups>.hm-group:last-child {
        grid-column: span calc(var(--size) * 2);
    }

    .hm-results__grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 767px) {
    .hm-section {
        padding: 64px 0;
    }

    .hm-hero__inner {
        padding-top: 132px;
    }

    .hm-hero::after {
        height: 18%;
    }

    .hm-stats__list {
        grid-template-columns: 1fr 1fr;
        row-gap: 32px;
        padding: 32px 12px;
    }

    .hm-stats__item:nth-child(3) {
        border-left: 0;
    }

    .hm-stats__item {
        padding: 0 6px;
    }

    .hm-stats__label {
        font-size: 0.95rem;
    }

    .hm-notes__trail,
    .hm-notes__tip {
        display: none;
    }

    .hm-notes {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        row-gap: 18px;
        justify-items: center;
    }

    .hm-note:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        max-width: 380px;
    }

    .hm-connect__visual {
        padding: 0;
    }

    .hm-connect__visual img {
        width: 100%;
    }

    .hm-connect__badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 18px;
    }

    .hm-badge {
        position: static;
        max-width: none;
        padding: 8px 14px;
        font-size: 0.98rem;
    }

    .hm-mods__flat {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hm-awards {
        padding: 56px 0;
    }


    .hm-trust {
        flex-direction: column;
        gap: 6px;
        font-size: 0.95rem;
    }

    .hm-trust__sep {
        display: none;
    }

    .hm-mods[data-mode="without"] .hm-mods__groups {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hm-group,
    .hm-mods__groups>.hm-group:last-child {
        grid-column: 1 / -1;
        padding: 10px;
    }

    .hm-group__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hm-group__label {
        margin-top: -30px;
        font-size: 0.9rem;
    }

    .hm-switch__opt {
        font-size: 1rem;
    }

    .hm-mod__label {
        padding: 7px 6px;
        font-size: 0.96rem;
    }

    .hm-ind {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* móvil: la tarjeta usa todo el ancho y las flechas van debajo */
    .hm-ind__track {
        --ind-w: min(360px, 100%);
        flex: 1 1 100%;
        order: -1;
        overflow: hidden;
        padding: 10px 0 30px;
    }

    .hm-ind__item[data-state="prev"],
    .hm-ind__item[data-state="far-prev"] {
        opacity: 0;
        transform: translateX(-110%) scale(0.9);
    }

    .hm-ind__item[data-state="next"],
    .hm-ind__item[data-state="far-next"] {
        opacity: 0;
        transform: translateX(110%) scale(0.9);
    }

    .hm-ind__card {
        min-height: 400px;
    }

    .hm-ind__arrow {
        width: 48px;
        height: 48px;
    }

    .hm-ind__arrow .material-symbols-outlined {
        font-size: 26px;
    }

    .hm-impl__grid,
    .hm-results__grid,
    .hm-fields {
        grid-template-columns: 1fr;
    }

    .hm-steps,
    .hm-steps+.hm-steps {
        transform: none;
    }

    .hm-form__intro {
        padding: 36px 22px;
    }

    .hm-form__card {
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-awards--anim .hm-award {
        opacity: 1;
        animation: none !important;
    }

    .hm-group::before,
    .hm-group__label,
    .hm-group__arrow path {
        animation: none;
        stroke-dashoffset: 0;
    }

    .hm-ind__item[data-state="active"] .hm-ind__icon,
    .hm-ind__item[data-state="active"] .hm-ind__icon .material-symbols-outlined,
    .hm-ind__item[data-state="active"] .hm-ind__name,
    .hm-ind__item[data-state="active"] .hm-ind__text,
    .hm-ind__item[data-state="active"] .hm-ind__btn {
        animation: none;
    }

    .hm-note,
    .hm-switch__thumb,
    .hm-mod,
    .hm-btn,
    .hm-ind__item,
    .hm-ind__card,
    .hm-ind__card::before,
    .hm-ind__arrow {
        transition: none;
    }
}

/* Antes en css/header-tailwind.css (hoja bloqueante aparte): hover de los mega menús y menú móvil */
#btnProductos:hover #childProductos,
#btnIndustrias:hover #childIndustrias,
#btnEmpresa:hover #childEmpresa,
#btnExploreMas:hover #childExploreMas,
#btnModulos:hover #childModulos {
    display: block;
}

@media (width < 1024px) {
    #mobileMenu {
        transition: right 0.3s ease-in-out;
    }

    #btnOpenMenu:checked~#mobileMenu {
        right: 0;
    }
}

/* Componentes compartidos que piden Hanken Grotesk (el home ya no la descarga): usan la fuente del home */
.hm-body [data-evidence-companies] .evidence-companies-title,
.hm-body [data-success-stories] .success-stories-title {
    font-family: var(--hm-font);
}

/* con el menú móvil abierto, los botones flotantes no se encima sobre él */
.hm-body:has(#mobileMenu.flex) .floating-cta-stack {
    display: none;
}

/* ---------- Rendimiento ----------
   content-visibility: el navegador no calcula ni pinta las secciones de abajo hasta que se acercan
   a la pantalla. contain-intrinsic-size "auto" recuerda el alto real una vez vista (evita saltos al volver). */
.hm-main>.hm-section:not(.hm-areas),
.hm-main>.hm-cases,
.hm-main>.hm-awards,
.hm-main>.hm-slogan,
.hm-body>footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

/* el modo de fusión color-burn sobre ~100 logos en movimiento es caro de componer en celular;
   gris con opacidad se ve casi igual */
.hm-logos [data-evidence-companies] .evidence-companies-list {
    mix-blend-mode: normal;
    opacity: 0.55;
}

/* footer: texto legal con contraste suficiente */
.hm-body>footer .text-gray-500 {
    color: #5f6b80;
}



/* Carrusel de industrias en tablet chica: igual que en celular (una tarjeta, flechas abajo) */
@media (min-width: 768px) and (max-width: 899px) {
    .hm-ind {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* móvil: la tarjeta usa todo el ancho y las flechas van debajo */
    .hm-ind__track {
        --ind-w: min(360px, 100%);
        flex: 1 1 100%;
        order: -1;
        overflow: hidden;
        padding: 10px 0 30px;
    }

    .hm-ind__item[data-state="prev"],
    .hm-ind__item[data-state="far-prev"] {
        opacity: 0;
        transform: translateX(-110%) scale(0.9);
    }

    .hm-ind__item[data-state="next"],
    .hm-ind__item[data-state="far-next"] {
        opacity: 0;
        transform: translateX(110%) scale(0.9);
    }

    .hm-ind__card {
        min-height: 400px;
    }

    .hm-ind__arrow {
        width: 48px;
        height: 48px;
    }

    .hm-ind__arrow .material-symbols-outlined {
        font-size: 26px;
    }

    .hm-ind__track {
        --ind-w: min(420px, 100%);
    }
}

/* Tablet grande: tres tarjetas, con el texto de las laterales más chico para que quepa */
@media (min-width: 900px) and (max-width: 1100px) {
    .hm-ind__track {
        --ind-w: min(400px, 30vw);
    }

    .hm-ind__item:not([data-state="active"]) .hm-ind__name {
        font-size: 1.15rem;
    }

    .hm-ind__item:not([data-state="active"]) .hm-ind__text {
        font-size: 1rem;
    }

    .hm-ind {
        gap: 18px;
    }
}

/* las tarjetas que esperan fuera de cuadro (far-prev / far-next) no salen de la sección */
.hm-industries {
    overflow-x: clip;
}

/* Notas en tablet (768–1023): menos separación entre columnas y notas al ancho disponible */
@media (min-width: 768px) and (max-width: 1023px) {
    .hm-notes {
        column-gap: 48px;
    }

    .hm-note {
        max-width: none;
    }

    /* la última va centrada sola: que no se estire a todo el ancho */
    .hm-note:nth-child(7) {
        max-width: 420px;
    }
}

/* celular: la inclinación de la nota no debe rebasar el borde de la pantalla */
@media (max-width: 767px) {
    .hm-note:nth-child(n) {
        max-width: 94%;
    }
}

/* píldora "Módulos" centrada sobre el título de la sección de módulos */
.hm-head--pill {
    text-align: center;
}

/* Hero hasta laptops chicas: una sola columna (título, planteamiento) y todo centrado,
   porque título y párrafo no caben lado a lado sin encimarse */
@media (max-width: 1199px) {
    .hm-hero__inner {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .hm-hero__big {
        margin-left: auto;
        margin-right: auto;
    }

    .hm-trust {
        justify-content: center;
        margin-top: 4px;
    }

    .hm-hero__intro {
        justify-self: center;
        max-width: 60ch;
        margin: 6px auto 0;
        text-align: left;
    }

    .hm-intro__areas {
        justify-content: center;
    }
}

/* Navbar en laptops (1024–1365px): menú más compacto para que quepa completo en la píldora */
@media (min-width: 1024px) and (max-width: 1365px) {
    .hm-nav>header>nav {
        padding: 10px 10px 10px 20px;
    }

    .hm-nav>header>nav>div:first-child svg {
        height: 1.2rem;
    }

    .hm-nav>header>nav>div.lg\:flex {
        column-gap: 10px;
    }

    .hm-nav>header>nav>div>.relative>button {
        font-size: 0.88rem;
        white-space: nowrap;
    }

    .hm-nav>header>nav>div>a.rounded-full {
        padding: 7px 14px;
        font-size: 0.88rem;
        white-space: nowrap;
    }
}

/* Laptops chicas (1024–1199px): sin íconos de WhatsApp y teléfono (están en los botones flotantes)
   y el selector de idioma solo con la bandera */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hm-nav>header>nav>div>div.hidden>div.flex.gap-x-2 {
        display: none;
    }

    .hm-nav .evidence-language-dropdown-classic-desktop .evidence-language-label {
        display: none;
    }

    .hm-nav .evidence-language-dropdown-classic-desktop .evidence-language-trigger {
        min-width: 0;
    }

    .hm-nav>header>nav>div>.relative>button {
        font-size: 0.84rem;
    }
}

@media (max-width: 560px) {
    .hm-hero__intro {
        padding: 18px 16px 20px;
        border-radius: 18px;
    }

    .hm-intro__areas {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .hm-intro__areas li {
        padding: 5px 8px;
        font-size: 0.76rem;
    }

    .hm-intro__solution {
        font-size: 1.04rem;
    }
}

/* "Evidence ERP en breve": si el número de filas es impar, la última ocupa todo el ancho */
@media (min-width: 901px) {
    .hm-fact:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        grid-template-columns: 11rem minmax(0, 1fr);
    }
}
