/* ═══════════════════════════════════════════════════════════
   Ahá Herramientas Digitales · inicio (solo se carga en la home). Prefijo hm-.
   Usa los tokens de assets/app.css. Mobile-first.
   Efectos: 150–250 ms, hover solo con mouse, todo se apaga con prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════ */
.hm { --amber: #e9a400; --hm-r: 20px; --hm-ease: cubic-bezier(.2, .8, .2, 1); --hm-t: .2s; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

/* Íconos (sprite del sitio o propios de la home) */
.hm-i { width: 1em; height: 1em; flex: none; vertical-align: -.14em; }
.hm-emoji { display: inline-grid; place-items: center; width: auto; height: auto; line-height: 1; font-style: normal; }
.hm h1, .hm h2 { text-wrap: balance; }
/* Anclas: el lugar del encabezado fijo lo da scroll-padding (el mismo valor que app.css; acá por si se sube antes).
   No sumar scroll-margin en los destinos: se suman los dos y la sección queda 160 px abajo. */
html { scroll-padding-top: 80px; }
#conversor { scroll-margin-top: 0; }
/* Rendimiento: lo que está fuera de pantalla no se dibuja hasta acercarse (el tamaño estimado se recuerda después).
   .hm-nocv (en <html>) lo apaga: al llegar con #ancla o al tocar un link a una sección, así el salto cae justo. */
.hm-cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.hm-nocv .hm-cv, .hm-nocv .hm-show { content-visibility: visible; }

/* Titulares de sección */
.hm-sec { margin-top: 64px; }
.hm-head { text-align: center; max-width: 720px; margin: 0 auto 24px; }
.hm-head h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; }
.hm-head p { color: var(--ink-2); margin: 0; }
.hm-head-left { text-align: left; max-width: none; margin-left: 0; }
.hm-eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--orange-700); margin-bottom: 8px; }
.hm-eyebrow-dark { color: var(--orange-hl-oscuro); }

/* Etiquetas */
.hm-tag { display: inline-block; font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; vertical-align: 2px; white-space: nowrap; }
.hm-tag-ok { background: var(--ok-50); color: var(--ok-700); }
.hm-tag-ia { background: var(--violeta-50); color: var(--violeta); }   /* violeta = todo lo que usa IA */
.hm-tag-pronto { background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Mosaico de ícono con el color de la categoría */
.hm-tile { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; font-size: 1.1rem; line-height: 1;
  color: var(--c, var(--blue)); background: var(--blue-50); background: color-mix(in srgb, var(--c, var(--blue)) 11%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--blue)) 16%, transparent);
  transition: transform var(--hm-t) var(--hm-ease), background-color var(--hm-t), color var(--hm-t); }
.hm-tile .hm-i { width: 20px; height: 20px; }
.hm-tile-sm { width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; }
.hm-tile-sm .hm-i { width: 17px; height: 17px; }

/* ═════════ HERO ═════════ */
.hm-hero { position: relative; padding: 24px 0 8px;
  background: radial-gradient(700px 380px at 92% 0%, rgba(254, 130, 2, .13), transparent 62%),
              radial-gradient(760px 420px at 0% 0%, rgba(0, 113, 188, .12), transparent 62%); }
.hm-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(20, 26, 60, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 26, 60, .05) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.hm-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hm-hero-main { min-width: 0; position: relative; z-index: 2; }
.hm-hero .pill { margin-bottom: 14px; font-size: .78rem; max-width: 100%; }
.hm-h1 { font-size: clamp(1.75rem, 6.2vw, 2.75rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.12; margin-bottom: 14px; }
/* Segunda parte del H1 (la palabra clave que trae visitas): en su propio renglón, más chica */
.hm-h1-k { display: block; margin-top: 10px; font-size: clamp(1.05rem, 3.4vw, 1.3rem); line-height: 1.35; letter-spacing: -.01em; color: var(--ink-2); font-weight: 700; }
.hm-lead { font-size: 1.04rem; color: var(--ink-2); margin-bottom: 20px; max-width: 580px; }

.hm-conv { margin: 0; max-width: none; }
.hm-conv .dropzone { padding: 26px 14px; transition: border-color var(--hm-t), background var(--hm-t), padding .2s, box-shadow var(--hm-t), transform var(--hm-t); }
.hm-conv .dz-title { font-size: 1.15rem; }
.hm-conv .dropzone.over { box-shadow: 0 0 0 6px rgba(254, 130, 2, .16); }
.hm-conv #pickBtn .hm-i { width: 18px; height: 18px; }
.hm-dz-otros { display: block; margin-top: 4px; color: var(--ink-2); }
.hm-conv .privacy { display: flex; align-items: center; justify-content: center; gap: 6px; }
.hm-conv .privacy .hm-i { color: var(--ok); }
.hm-conv .promo-ico .hm-i { width: 28px; height: 28px; color: var(--orange-hl-oscuro); }
.hm-conv .promo-x { display: grid; place-items: center; }
.hm-conv .promo-x .hm-i { width: 18px; height: 18px; }

/* Lo más buscado (links directos) */
.hm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: .82rem; }
.hm-chips > span { color: var(--muted); font-weight: 600; margin-right: 2px; }
.hm-chips a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; white-space: nowrap;
  transition: border-color var(--hm-t), color var(--hm-t), transform var(--hm-t) var(--hm-ease), box-shadow var(--hm-t); }
.hm-chips a:active { transform: scale(.97); }

/* Sellos */
.hm-sellos { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.hm-sellos li { display: inline-flex; align-items: center; gap: 7px; }
.hm-sellos .hm-i, .hm-sellos .hm-emoji { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ok-50); color: var(--ok); font-size: .8rem; }

.hm-hero-buscar { margin-top: 20px; }

/* Archivo inteligente (PDF, audio, video…) */
.hm-smart { position: relative; margin-top: 14px; border: 1.5px solid var(--blue-100); background: linear-gradient(180deg, var(--blue-50), #fff 70%); border-radius: 16px; padding: 16px; animation: hmIn .2s var(--hm-ease); }
.hm-smart-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 1.1rem; }
.hm-smart-x .hm-i { width: 18px; height: 18px; }
.hm-smart-grp + .hm-smart-grp { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--blue-100); }
.hm-smart-tit { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); margin: 0 34px 2px 0; font-size: 1rem; }
.hm-smart-tit .hm-i { color: var(--orange); width: 20px; height: 20px; }
.hm-smart-sub { font-size: .82rem; color: var(--muted); margin: 0 0 10px; overflow-wrap: anywhere; }
.hm-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.hm-act { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  transition: border-color var(--hm-t), transform var(--hm-t) var(--hm-ease), box-shadow var(--hm-t); }
.hm-act b { display: block; font-size: .9rem; line-height: 1.25; }
.hm-act small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.hm-act .hm-go { margin-left: auto; color: var(--orange); transition: transform var(--hm-t) var(--hm-ease); }
.hm-act:active { transform: scale(.98); }
.hm-also { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-size: .85rem; animation: hmIn .2s var(--hm-ease); }
.hm-also > span { font-weight: 700; color: var(--ink-2); margin-right: 2px; }
.hm-also a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .82rem;
  transition: border-color var(--hm-t), color var(--hm-t), transform var(--hm-t) var(--hm-ease); }
.hm-also a .hm-i { color: var(--blue); }
@keyframes hmIn { from { opacity: 0; transform: translateY(-4px); } }

/* ── Vitrina ── */
.hm-show { min-width: 0; }
/* En el celu la vitrina queda debajo del conversor: no se dibuja hasta acercarse */
@media (max-width: 999px) { .hm-show { content-visibility: auto; contain-intrinsic-size: auto 490px; } }
.hm-stage { position: relative; height: 430px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: radial-gradient(420px 300px at 85% 10%, rgba(254, 130, 2, .32), transparent 70%),
              radial-gradient(500px 360px at 0% 100%, rgba(0, 113, 188, .5), transparent 70%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  box-shadow: 0 30px 60px -28px rgba(12, 17, 48, .65); }
.hm-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.2px); background-size: 18px 18px; }
.hm-stage-tag { position: absolute; top: 14px; left: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; color: var(--txt-claro); letter-spacing: .02em; }
.hm-stage-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--aha-verde); box-shadow: 0 0 0 4px rgba(0, 203, 154, .22); }
/* Pausar / reanudar la vitrina (rota sola: tiene que poder frenarse también sin mouse) */
.hm-pause { position: absolute; top: 8px; right: 10px; z-index: 4; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24);
  transition: background-color var(--hm-t), border-color var(--hm-t), transform .15s var(--hm-ease); }
.hm-pause svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hm-pause .hm-pause-r { display: none; fill: currentColor; stroke-width: 1.6; }
.hm-pause[aria-pressed=true] .hm-pause-p { display: none; }
.hm-pause[aria-pressed=true] .hm-pause-r { display: inline; }
.hm-pause:active { transform: scale(.94); }
/* Foco con teclado sobre los fondos azul marino: anillo blanco (el azul global no se ve ahí) */
.hm-stage :focus-visible, .hm-aud-sec :focus-visible, .hm-final :focus-visible, .hm-ag-cta :focus-visible { outline-color: #fff; }
.hm-pause:focus-visible { border-radius: 50%; }

/* Solo la escena activa se dibuja (las otras no gastan layout ni animaciones) */
.hm-scene { position: absolute; inset: 44px 16px 56px; display: none; place-items: center; }
.hm-scene.is-on { display: grid; animation: hmScene .25s var(--hm-ease) both; }
@keyframes hmScene { from { opacity: 0; transform: translateY(8px) scale(.985); } }
/* Fuera de pantalla, con la pestaña oculta o con el botón de pausa, las animaciones de la vitrina se frenan */
.hm-show.is-quieta .hm-scene, .hm-show.is-quieta .hm-chip, .hm-show.is-quieta .hm-ring, .hm-show.is-quieta .hm-checks li, .hm-show.is-quieta .hm-ba-before, .hm-show.is-quieta .hm-ba-line, .hm-show.is-quieta .hm-prog,
.hm-show.is-detenida .hm-chip, .hm-show.is-detenida .hm-ba-before, .hm-show.is-detenida .hm-ba-line, .hm-show.is-detenida .hm-prog { animation-play-state: paused !important; }
.hm-scene-cta { position: absolute; left: 0; right: 0; bottom: -42px; margin: 0 auto; width: max-content; max-width: 100%; display: inline-flex; gap: 6px; align-items: center;
  font-size: .86rem; font-weight: 700; color: #fff; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  transition: background var(--hm-t), border-color var(--hm-t), transform var(--hm-t) var(--hm-ease); }
.hm-scene-cta .hm-i { transition: transform var(--hm-t) var(--hm-ease); }
.hm-scene-cta:focus-visible { background: var(--orange-btn); border-color: var(--orange-btn); color: var(--orange-btn-txt); border-radius: 999px; outline-offset: 3px; }
.hm-scene-cta:active { transform: scale(.97); }
.hm-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: var(--navy); background: #fff; padding: 7px 12px; border-radius: 999px;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); white-space: nowrap; animation: hmFloat 4s ease-in-out infinite; }
.hm-chip .hm-i { color: var(--orange); }
.hm-chip-a { top: -4px; right: 2px; }
.hm-chip-b { top: -6px; right: 0; background: var(--violeta); color: #fff; }   /* IA = violeta (blanco encima 7,3:1) */
.hm-chip-b .hm-i { color: #fff; }
.hm-chip-c { bottom: 2px; right: 0; }
.hm-chip-c .hm-i, .hm-chip-d .hm-i { color: var(--ok); }
.hm-chip-d { top: -4px; left: 0; }
@keyframes hmFloat { 50% { transform: translateY(-5px); } }

/* Escena 1 · auditoría */
.hm-win { width: min(100%, 380px); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); }
.hm-win-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.hm-win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4dbe8; }
.hm-win-bar i:first-child { background: #f3a0a0; } .hm-win-bar i:nth-child(2) { background: #f6cf7d; } .hm-win-bar i:nth-child(3) { background: #9edbb5; }
.hm-win-bar span { margin-left: 8px; font-size: .7rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-aud { padding: 14px 16px 10px; }
.hm-rings { display: flex; justify-content: center; gap: 22px; margin-bottom: 8px; }
.hm-ring { --c: var(--ok); --size: 96px; position: relative; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-content: center; text-align: center; line-height: 1;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0);
  --p: var(--v); }
.hm-scene.is-on .hm-ring { animation: hmRing 1.1s var(--hm-ease) .1s both; }
@keyframes hmRing { from { --p: 0; } }
.hm-ring-sm, .hm-mini-ring { --p: var(--v); }
.hm-ring.hm-medio, .hm-mini-ring.hm-medio { --c: var(--amber); }
.hm-ring.hm-bajo { --c: var(--err); }
.hm-ring b { font-size: 1.6rem; color: var(--ink); font-weight: 800; }
.hm-ring span { font-size: .66rem; font-weight: 800; letter-spacing: .07em; color: var(--muted); margin-top: 3px; }
.hm-ring small { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .64rem; color: var(--muted); font-weight: 600; }
.hm-checks { list-style: none; margin: 22px 0 0; padding: 0; font-size: .8rem; }
.hm-checks li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.hm-checks li::before { content: ''; position: absolute; left: 0; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: var(--ok-50) center/11px no-repeat; }
.hm-checks li.ok::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23007A5C' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hm-checks li.warn::before { background-color: #fff5dc; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v5' stroke='%23c78c00' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12' r='1.3' fill='%23c78c00'/%3E%3C/svg%3E"); }
.hm-checks li.err::before { background-color: var(--err-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%23d64545' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hm-scene.is-on .hm-checks li { animation: hmLi .25s both; }
.hm-scene.is-on .hm-checks li:nth-child(2) { animation-delay: .12s; } .hm-scene.is-on .hm-checks li:nth-child(3) { animation-delay: .24s; } .hm-scene.is-on .hm-checks li:nth-child(4) { animation-delay: .36s; }
@keyframes hmLi { from { opacity: 0; transform: translateX(-6px); } }

/* Escena 2 · post con IA */
.hm-ig { width: min(100%, 300px); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); }
.hm-ig-head { display: flex; align-items: center; gap: 9px; padding: 9px 12px; }
.hm-ig-head b { display: block; font-size: .78rem; line-height: 1.2; }
.hm-ig-head small { display: block; font-size: .66rem; color: var(--muted); line-height: 1.2; }
.hm-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #f58529, #dd2a7b 60%, #8134af); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #f2a14b; }
.hm-ig-img { height: 124px; }
.hm-ig-img svg { display: block; }
.hm-ig-txt { margin: 0; padding: 10px 12px 12px; font-size: .78rem; line-height: 1.45; color: var(--ink); min-height: 92px; }
.hm-hash { color: var(--blue); font-weight: 600; }
.hm-ig-txt.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--orange); vertical-align: -2px; margin-left: 1px; animation: hmBlink .8s steps(1) infinite; }
@keyframes hmBlink { 50% { opacity: 0; } }

/* Escena 3 · quitar fondo */
.hm-ba { position: relative; width: min(100%, 360px); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); }
.hm-ba-after, .hm-ba-before { position: absolute; inset: 0; display: grid; place-items: center; }
.hm-ba-after { background-color: #fff; background-image: linear-gradient(45deg, #edf0f5 25%, transparent 25%, transparent 75%, #edf0f5 75%), linear-gradient(45deg, #edf0f5 25%, transparent 25%, transparent 75%, #edf0f5 75%);
  background-size: 18px 18px; background-position: 0 0, 9px 9px; }
.hm-ba-before { clip-path: inset(0 50% 0 0);
  background: radial-gradient(90px 70px at 18% 30%, rgba(76, 140, 74, .75), transparent 70%), radial-gradient(70px 60px at 30% 18%, rgba(98, 160, 88, .65), transparent 70%),
              linear-gradient(180deg, #e9d3b4 0 62%, #b9845a 62% 100%); }
.hm-ba-before::after { content: ''; position: absolute; left: 70%; top: 14%; width: 46px; height: 62px; border-radius: 6px; background: #f6efe4; box-shadow: inset 0 -16px 0 #d8c2a2; opacity: .8; }
.hm-mate { position: relative; z-index: 1; width: 46%; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .12)); }
/* la línea es una capa del ancho de la foto que se desplaza con transform (sin recalcular el layout) */
.hm-ba-line { position: absolute; inset: 0; z-index: 2; pointer-events: none; transform: translateX(50%); }
.hm-ba-line::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .25); }
.hm-ba-line i { position: absolute; top: 50%; left: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff center/18px no-repeat; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 6l-4 4 4 4M13 6l4 4-4 4' stroke='%23141A3C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hm-scene.is-on .hm-ba-before { animation: hmWipeC 5.2s ease-in-out infinite; }
.hm-scene.is-on .hm-ba-line { animation: hmWipeL 5.2s ease-in-out infinite; }
@keyframes hmWipeC { 0%, 100% { clip-path: inset(0 18% 0 0); } 50% { clip-path: inset(0 82% 0 0); } }
@keyframes hmWipeL { 0%, 100% { transform: translateX(82%); } 50% { transform: translateX(18%); } }
.hm-ba-lbl { position: absolute; bottom: 10px; z-index: 3; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; background: rgba(20, 26, 60, .72); color: #fff; }
.hm-ba-l1 { left: 10px; } .hm-ba-l2 { right: 10px; background: var(--ok-700); }

/* Escena 4 · QR */
.hm-qr-card { width: min(100%, 340px); display: flex; align-items: center; gap: 16px; padding: 16px; background: #fff; border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); }
.hm-qr { position: relative; flex: 0 0 auto; width: 132px; height: 132px; }
.hm-qr svg { display: block; }
.hm-qr-logo { position: absolute; top: 50%; left: 50%; width: 26%; height: 26%; transform: translate(-50%, -50%); padding: 3px; background: #fff; border-radius: 10px; display: grid; place-items: center; }
.hm-qr-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hm-qr-txt { min-width: 0; }
.hm-qr-txt b { display: block; font-size: .95rem; color: var(--navy); line-height: 1.25; }
.hm-qr-txt small { display: block; font-size: .74rem; color: var(--muted); margin: 4px 0 10px; }
.hm-sw { display: flex; gap: 6px; }
.hm-sw i { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.hm-sw i:first-child { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Pestañas de la vitrina */
.hm-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.hm-tab { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-size: .72rem; font-weight: 700; color: var(--ink-2);
  padding: 10px 4px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; line-height: 1.2; text-align: center;
  transition: border-color var(--hm-t), color var(--hm-t), box-shadow var(--hm-t), transform .15s var(--hm-ease), background-color var(--hm-t); }
.hm-tab .hm-i, .hm-tab .hm-emoji { width: 20px; height: 20px; font-size: 1.05rem; color: var(--blue); transition: transform var(--hm-t) var(--hm-ease), color var(--hm-t); }
.hm-tab.is-on { border-color: var(--navy); color: var(--navy); box-shadow: 0 6px 16px -10px rgba(20, 26, 60, .5); }
.hm-tab.is-on .hm-i { color: var(--orange); }
.hm-tab:active { transform: scale(.97); }
.hm-tab:focus-visible { border-radius: 12px; }
.hm-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.hm-show.is-auto .hm-tab.is-on .hm-prog { animation: hmProg var(--dur, 6s) linear forwards; }
.hm-show.is-paused .hm-tab.is-on .hm-prog { animation-play-state: paused; }
@keyframes hmProg { to { transform: scaleX(1); } }

/* ═════════ OBJETIVOS ═════════ */
.hm-ac-vender { --ac: var(--orange); --ac-50: var(--orange-50); --ac-ink: var(--orange-700); }
.hm-ac-redes  { --ac: var(--g-voz); --ac-50: var(--g-voz-50); --ac-ink: var(--g-voz); }
.hm-ac-google { --ac: var(--blue); --ac-50: var(--blue-50); --ac-ink: var(--blue); }
.hm-ac-tiempo { --ac: var(--ok); --ac-50: var(--ok-50); --ac-ink: var(--ok-700); }
.hm-obj-sec { margin-top: 48px; }
.hm-objs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-obj { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 35, 70, .05); overflow: hidden; text-decoration: none !important;
  transition: transform var(--hm-t) var(--hm-ease), border-color var(--hm-t), box-shadow var(--hm-t); }
.hm-obj::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ac); transform-origin: left; transition: height var(--hm-t) var(--hm-ease); }
.hm-obj-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--ac-50); color: var(--ac-ink); margin-bottom: 8px;
  transition: background-color var(--hm-t), color var(--hm-t), transform var(--hm-t) var(--hm-ease); }
.hm-obj-ico .hm-i { width: 22px; height: 22px; }
.hm-obj b { font-size: .98rem; color: var(--navy); line-height: 1.25; }
.hm-obj small { color: var(--ink-2); font-size: .8rem; line-height: 1.4; display: none; }
.hm-obj-n { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--ac-ink); font-size: .8rem; font-weight: 700; }
.hm-obj-go { transition: transform var(--hm-t) var(--hm-ease); }
.hm-obj:active { transform: scale(.98); }
.hm-obj:focus-visible { border-radius: 18px; outline-offset: 3px; }

/* ═════════ LO MÁS USADO (bento) ═════════ */
.hm-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hm-card { --c: var(--blue); position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--hm-r); background: #fff; border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 35, 70, .05); text-decoration: none !important;
  transition: transform var(--hm-t) var(--hm-ease), box-shadow var(--hm-t), border-color var(--hm-t); }
.hm-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hm-card-ico { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: var(--c);
  background: var(--blue-50); background: color-mix(in srgb, var(--c) 11%, #fff); transition: transform var(--hm-t) var(--hm-ease), background-color var(--hm-t), color var(--hm-t); }
.hm-card-ico .hm-i { width: 24px; height: 24px; }
.hm-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.hm-card-tit { font-size: 1.1rem; color: var(--navy); line-height: 1.25; }
.hm-card-txt { color: var(--ink-2); font-size: .9rem; line-height: 1.5; flex: 1; }
.hm-card-go { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--blue); transition: color var(--hm-t); }
.hm-card-go .hm-i { transition: transform var(--hm-t) var(--hm-ease); }
.hm-card:active { transform: scale(.985); }
.hm-card:focus-visible { border-radius: var(--hm-r); outline-offset: 3px; }
.hm-card-xl { color: #fff; border: 0; background: radial-gradient(420px 260px at 100% 0%, rgba(254, 130, 2, .3), transparent 70%), linear-gradient(150deg, var(--navy-2), var(--navy-900)); }
.hm-card-xl .hm-card-ico { background: rgba(255, 255, 255, .12); color: #fff; }
.hm-card-xl .hm-card-tit { color: #fff; font-size: 1.35rem; }
.hm-card-xl .hm-card-txt { color: var(--txt-claro); }
.hm-card-xl .hm-card-go { color: var(--orange-hl-oscuro); }
.hm-card-xl .hm-tag-ok { background: rgba(0, 203, 154, .18); color: var(--aha-verde); }
.hm-card-xl .hm-tag-ia { background: rgba(192, 86, 230, .26); color: #fff; }
.hm-card-viz { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.hm-mini-ring { --c: var(--aha-verde); width: 66px; height: 66px; border-radius: 50%; display: grid; place-content: center; text-align: center; line-height: 1;
  background: radial-gradient(closest-side, var(--navy-900) 76%, transparent 77% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); }
.hm-mini-ring.hm-medio { --c: #ffc24b; }
.hm-mini-ring b { font-size: 1.15rem; color: #fff; }
.hm-mini-ring small { font-size: .58rem; font-weight: 800; letter-spacing: .06em; color: var(--txt-claro-2); margin-top: 2px; }
.hm-mini-q { flex: 1 1 200px; font-size: .8rem; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 10px 12px; line-height: 1.4; }
.hm-mini-q small { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; color: var(--txt-claro-2); font-weight: 800; margin-bottom: 3px; }
.hm-mini-q em { display: block; font-style: normal; color: var(--orange-hl-oscuro); font-weight: 700; margin-top: 4px; font-size: .76rem; }
.hm-viz-fondo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 12px; border-radius: 14px; overflow: hidden; height: 110px; border: 1px solid var(--line); }
.hm-viz-fondo > span { display: grid; place-items: center; }
.hm-viz-fondo .hm-mate { width: auto; height: 92px; filter: none; transition: transform .25s var(--hm-ease); }
.hm-vf-a { background: radial-gradient(50px 40px at 20% 30%, rgba(76, 140, 74, .7), transparent 70%), linear-gradient(180deg, #e9d3b4 0 62%, #b9845a 62% 100%); }
.hm-vf-b { background-color: #fff; background-image: linear-gradient(45deg, #edf0f5 25%, transparent 25%, transparent 75%, #edf0f5 75%), linear-gradient(45deg, #edf0f5 25%, transparent 25%, transparent 75%, #edf0f5 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; }

/* ═════════ CONVERSOR (bloque SEO) ═════════ */
.hm-seo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 22px 16px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.hm-seo h2 { color: var(--navy); font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.hm-seo p { color: var(--ink-2); }
.hm-steps { list-style: none; counter-reset: hm; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.hm-steps li { counter-increment: hm; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.hm-steps li::before { content: counter(hm); width: 28px; height: 28px; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; flex-shrink: 0; }
.hm-steps b { color: var(--ink); }
.hm-seo .btn .hm-i { width: 18px; height: 18px; }
.hm-mini-tit { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.hm-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hm-pair { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--bg); border: 1px solid transparent; color: var(--ink); font-size: .78rem; text-decoration: none !important;
  transition: border-color var(--hm-t), background-color var(--hm-t), transform var(--hm-t) var(--hm-ease), box-shadow var(--hm-t); }
.hm-pair span { color: var(--orange); font-weight: 800; }
.hm-pair:active { transform: scale(.97); }

/* ═════════ BUSCADOR ═════════ */
.hm-search { position: relative; z-index: 15; }
.hm-field { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 18px; padding: 6px 8px 6px 16px;
  box-shadow: 0 2px 4px rgba(20, 35, 70, .04), 0 18px 44px -24px rgba(20, 26, 60, .4); transition: border-color var(--hm-t), box-shadow var(--hm-t); }
.hm-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 188, .16), 0 18px 44px -24px rgba(20, 26, 60, .4); }
.hm-field-ico { color: var(--blue); width: 22px; height: 22px; }
.hm-field .hm-q, .hm-field .hm-q:focus { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; background: transparent; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--ink); min-height: 48px; padding: 0; -webkit-appearance: none; appearance: none; }
.hm-q::placeholder { color: var(--muted); font-weight: 500; }
.hm-q::-webkit-search-cancel-button { display: none; }
.hm-kbd { font: inherit; font-size: .75rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; display: none; }
.hm-clear { border: 0; background: var(--bg); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; flex-shrink: 0; display: grid; place-items: center; font-size: 1.1rem; line-height: 1;
  transition: background-color var(--hm-t), color var(--hm-t); }
.hm-clear .hm-i { width: 16px; height: 16px; }
.hm-search-sm .hm-field { border-radius: 14px; padding: 4px 6px 4px 12px; box-shadow: 0 1px 2px rgba(20, 35, 70, .05); }
.hm-search-sm .hm-q, .hm-search-sm .hm-q:focus { font-size: 1rem; min-height: 42px; }   /* 16 px: el iPhone no hace zoom al tocar */
.hm-search-sm .hm-field-ico { width: 19px; height: 19px; }

.hm-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 70px -24px rgba(20, 35, 70, .45); padding: 8px; max-height: min(460px, 62vh); overflow-y: auto; overscroll-behavior: contain; animation: hmIn .15s ease-out; }
.hm-results ul { list-style: none; margin: 0; padding: 0; }
.hm-opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; cursor: pointer; color: var(--ink); transition: background-color .12s; }
.hm-opt[aria-selected=true] { background: var(--blue-50); }
.hm-opt-txt { flex: 1; min-width: 0; }
.hm-opt-txt b { display: block; font-size: .95rem; line-height: 1.3; }
.hm-opt-txt small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-opt-txt mark { background: none; color: var(--orange-600); }
.hm-opt-cat { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; display: none; }
.hm-opt-go { color: var(--blue); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s var(--hm-ease); }
.hm-opt-go .hm-i { width: 18px; height: 18px; }
.hm-opt[aria-selected=true] .hm-opt-go { opacity: 1; transform: none; }
.hm-res-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px 4px; margin-top: 4px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.hm-res-foot a { font-weight: 700; }
.hm-empty { padding: 14px 12px; color: var(--ink-2); font-size: .93rem; }
.hm-empty b { color: var(--navy); }

.hm-proba { display: flex; align-items: center; gap: 8px; margin: 12px -16px 0; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.hm-proba::-webkit-scrollbar { display: none; }
.hm-proba > span { font-size: .84rem; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.hm-sug { flex-shrink: 0; font: inherit; font-size: .84rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer;
  transition: border-color var(--hm-t), color var(--hm-t), transform var(--hm-t) var(--hm-ease); }
.hm-sug:active { transform: scale(.96); }
.hm-sug:focus-visible { border-radius: 999px; }

/* ═════════ TODAS LAS HERRAMIENTAS ═════════ */
#herramientas .hm-search { margin: 4px auto 0; max-width: 760px; }
.hm-cats { display: flex; gap: 8px; margin: 18px -16px 12px; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.hm-cats::-webkit-scrollbar { display: none; }
.hm-cat { --c: var(--navy); flex-shrink: 0; font: inherit; font-size: .84rem; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: background-color var(--hm-t), color var(--hm-t), border-color var(--hm-t), transform .15s var(--hm-ease); }
.hm-cat .hm-i { color: var(--c); width: 17px; height: 17px; transition: color var(--hm-t); }
.hm-cat em { font-style: normal; font-size: .72rem; color: var(--muted); }
.hm-cat[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.hm-cat[aria-pressed=true] .hm-i, .hm-cat[aria-pressed=true] em { color: #fff; }
.hm-cat:active { transform: scale(.97); }
.hm-cat:focus-visible { border-radius: 999px; }
.hm-filtro { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--blue-50); color: var(--navy); font-size: .92rem; animation: hmIn .2s var(--hm-ease); }
.hm-filtro:focus { outline: none; }
.hm-filtro:focus-visible { outline: 3px solid rgba(254, 130, 2, .6); border-radius: 14px; }

.hm-groups { column-gap: 14px; }
.hm-group { --c: var(--blue); break-inside: avoid; display: block; width: 100%; margin: 0 0 12px; padding: 14px 10px 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--hm-r); }
.hm-group-ia { background: linear-gradient(180deg, var(--violeta-50), #fff 70%); border-color: var(--line); border-color: color-mix(in srgb, var(--violeta) 16%, #fff); }   /* IA = violeta */
.hm-group h3 { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--navy); margin: 0 4px 8px; }
.hm-group h3 small { margin-left: auto; font-size: .72rem; font-weight: 800; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 999px; }
.hm-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
/* ícono | nombre (+ etiqueta) / descripción: grilla sin envoltorio extra (menos DOM) */
.hm-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; padding: 7px 4px; border-radius: 12px; color: var(--ink); text-decoration: none !important; transition: background-color .15s; }
.hm-item .hm-tile { grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 9px; font-size: .95rem; }
.hm-item .hm-tile .hm-i { width: 18px; height: 18px; }
.hm-group-ia .hm-item .hm-tile { background: #fff; }
.hm-item > b { display: block; min-width: 0; font-size: .84rem; line-height: 1.3; }
.hm-item > small { display: none; }
/* en el celu la etiqueta (Gratis / IA / Pronto) va abajo del nombre, chiquita */
.hm-item .hm-tag { display: table; margin-top: 3px; font-size: .58rem; padding: 1px 6px; vertical-align: 0; }
.hm-item.is-pronto b { color: var(--ink-2); }
.hm-item:active { background: var(--blue-50); }
.hm-item:focus-visible { border-radius: 12px; outline-offset: 0; }

/* ═════════ AUDITORÍA SEO + IA ═════════ */
.hm-aud-sec { margin-top: 72px; padding: 48px 0; color: #fff;
  background: radial-gradient(700px 420px at 100% 0%, rgba(254, 130, 2, .24), transparent 65%), radial-gradient(700px 500px at 0% 100%, rgba(0, 113, 188, .4), transparent 65%),
              linear-gradient(165deg, var(--navy), var(--navy-900)); }
.hm-aud-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hm-aud-sec h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.hm-aud-lead { color: var(--txt-claro); font-size: 1.04rem; }
.hm-aud-lead b { color: #fff; }
.hm-aud-form { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 14px; padding: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; transition: border-color var(--hm-t), background-color var(--hm-t); }
.hm-aud-form:focus-within { border-color: rgba(255, 154, 46, .7); background: rgba(255, 255, 255, .14); }
.hm-aud-form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; min-height: 50px; padding: .7em 1em; border: 0; border-radius: 12px; background: #fff; color: var(--ink); }
.hm-aud-form input:focus { outline: 3px solid var(--orange-hl-oscuro); outline-offset: 1px; border: 0; box-shadow: none; }
.hm-aud-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; color: var(--txt-claro); }
.hm-aud-list li { display: flex; align-items: flex-start; gap: 8px; }
.hm-aud-list .hm-i { color: var(--aha-verde); margin-top: 3px; }
.hm-aud-viz { position: relative; display: grid; gap: 12px; }
.hm-chat { background: #fff; color: var(--ink); border-radius: 20px; padding: 16px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); }
.hm-chat p { margin: 0; font-size: .86rem; line-height: 1.45; }
.hm-chat-q { margin-left: auto !important; max-width: 85%; width: fit-content; background: var(--blue-50); color: var(--navy); font-weight: 600; padding: 9px 13px; border-radius: 16px 16px 4px 16px; }
.hm-chat-a { position: relative; margin-top: 12px !important; padding: 2px 0 0 38px; color: var(--ink-2); }
.hm-chat-a u { text-decoration-color: var(--line-2); text-underline-offset: 3px; color: var(--ink); font-weight: 600; }
.hm-chat-ai { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff; background: var(--violeta); }
.hm-chat-alert { margin-top: 12px !important; padding: 9px 12px; border-radius: 12px; background: var(--err-50); color: var(--err-700); font-weight: 700; font-size: .82rem !important; }
.hm-aud-score { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.hm-ring-sm { --size: 64px; flex: none; background: radial-gradient(closest-side, var(--navy) 76%, transparent 77% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .15) 0); }
.hm-ring-sm b { color: #fff; font-size: 1.1rem; }
.hm-ring-sm span { color: var(--txt-claro-2); font-size: .56rem; }
.hm-aud-score-txt { font-size: .8rem; color: var(--txt-claro); line-height: 1.35; }
.hm-aud-score-txt b { display: block; color: #fff; font-size: .92rem; }

/* ═════════ AGENCIA ═════════ */
.hm-ag { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.hm-ag-main { padding: 26px 18px; }
.hm-ag-main h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.hm-ag-main > p { color: var(--ink-2); }
.hm-servs { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-servs li { background: var(--bg); border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: .84rem; padding: 6px 12px; border-radius: 999px; }
.hm-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-pasos li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--bg); transition: background-color var(--hm-t), transform var(--hm-t) var(--hm-ease); }
.hm-pasos li > span { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--orange-700); color: #fff; font-weight: 800; }
.hm-pasos b { display: block; color: var(--navy); }
.hm-pasos small { color: var(--ink-2); font-size: .86rem; }
.hm-ag-cta { position: relative; padding: 26px 18px; color: #fff; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  background: radial-gradient(220px 150px at 100% 0%, rgba(254, 130, 2, .38), transparent 70%), radial-gradient(260px 200px at 0% 100%, rgba(147, 0, 176, .32), transparent 70%), linear-gradient(165deg, var(--navy-2), var(--navy)); }
  /* fondo noche (blanco encima 14,6:1 o más); la franja de 4 colores de la marca va arriba, como borde */
.hm-ag-cta::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--aha-franja); z-index: 1; }
.hm-ag-cta::after { content: ''; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .07); pointer-events: none; }
.hm-ag-cta > * { position: relative; z-index: 1; }
.hm-ag-big { display: block; font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hm-ag-cta p { color: var(--txt-claro); font-size: .95rem; margin: 10px 0 16px; }
.hm-ag-cta ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 7px; font-size: .9rem; font-weight: 600; }
.hm-ag-cta li { display: flex; align-items: center; gap: 8px; }
.hm-ag-cta li .hm-i { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: rgba(0, 203, 154, .18); color: var(--aha-verde); }

/* ═════════ PRECIOS ═════════ */
.hm-toggle { margin: 14px 0 0; }
.hm-toggle button { transition: background-color var(--hm-t), color var(--hm-t); }
.hm-toggle button:focus-visible { border-radius: 999px; }
.hm-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: stretch; margin-top: 8px; }
.hm-plan { position: relative; display: flex; flex-direction: column; padding: 22px 20px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line);
  transition: transform var(--hm-t) var(--hm-ease), box-shadow var(--hm-t), border-color var(--hm-t); }
.hm-plan.best { border-color: var(--orange); box-shadow: 0 24px 50px -24px rgba(254, 130, 2, .5); order: -1; }
.hm-plan-free { background: linear-gradient(180deg, var(--blue-50), #fff 60%); order: 5; }
.hm-ribbon { position: absolute; top: -12px; left: 20px; background: var(--orange-700); color: #fff; box-shadow: 0 0 0 3px #fff; font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.hm-plan h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: .3em; }
.hm-price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.hm-price small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.hm-price-sub { color: var(--muted); font-size: .8rem; margin: 6px 0 14px; min-height: 1.4em; }
.hm-plan .feats { margin-bottom: 18px; gap: 7px; }
.hm-plan .feats li { font-size: .9rem; }
.hm-plans-foot { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 20px; }

/* ═════════ FAQ ═════════ */
.hm-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hm-faq-side h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); }
.hm-faq-side p { color: var(--ink-2); }
.hm-faq-list details { margin-bottom: 8px; transition: border-color var(--hm-t), box-shadow var(--hm-t); }
.hm-faq-list details[open] { border-color: var(--line-2); box-shadow: 0 10px 24px -18px rgba(20, 35, 70, .4); }
.hm-faq-list summary { transition: color var(--hm-t); }
.hm-faq-list summary:focus-visible { border-radius: 8px; }

/* ═════════ CIERRE ═════════ */
.hm-final { display: flex; flex-direction: column; gap: 18px; padding: 26px 20px; border-radius: 24px; color: #fff;
  position: relative; overflow: hidden;
  background: radial-gradient(500px 260px at 100% 100%, rgba(254, 130, 2, .38), transparent 70%), linear-gradient(135deg, var(--navy), var(--blue)); }
.hm-final::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--aha-franja); }
.hm-final h2 { color: #fff; margin-bottom: .3em; }
.hm-final p { color: #fff; margin: 0; opacity: .92; }
.hm-final-btns { display: flex; flex-direction: column; gap: 10px; }
.hm-btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.hm-btn-glass:focus-visible { outline-color: #fff; border-radius: 12px; }

/* Botones: un poco más de vida en la home */
.hm .btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }

/* ═════════ HOVER (solo con mouse) ═════════ */
@media (hover: hover) {
  .hm .btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(219, 106, 0, .6); }
  .hm .btn-dark:hover { transform: translateY(-1px); }
  .hm-chips a:hover { border-color: var(--orange); color: var(--orange-600); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 14px -10px rgba(254, 130, 2, .6); }
  .hm-act:hover { border-color: var(--orange); transform: translateY(-1px); text-decoration: none; box-shadow: 0 8px 18px -12px rgba(20, 35, 70, .4); }
  .hm-act:hover .hm-go { transform: translateX(3px); }
  .hm-also a:hover { border-color: var(--orange); color: var(--orange-600); text-decoration: none; transform: translateY(-1px); }
  .hm-smart-x:hover { background: #fff; color: var(--ink); }
  .hm-scene-cta:hover { background: var(--orange-btn); border-color: var(--orange-btn); color: var(--orange-btn-txt); text-decoration: none; }
  .hm-scene-cta:hover .hm-i { transform: translateX(3px); }
  .hm-pause:hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .45); }
  .hm-tab:hover { border-color: var(--line-2); color: var(--navy); background: var(--bg); }
  .hm-tab:hover .hm-i { transform: translateY(-1px) scale(1.08); }
  .hm-obj:hover { transform: translateY(-3px); border-color: var(--ac); box-shadow: 0 18px 34px -22px rgba(20, 35, 70, .45); }
  .hm-obj:hover::after { height: 6px; }
  .hm-obj:hover .hm-obj-ico { background: var(--ac); color: #fff; transform: rotate(-4deg); }
  .hm-obj:hover .hm-obj-go { transform: translateX(4px); }
  .hm-card:hover { transform: translateY(-4px); border-color: var(--line); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: var(--shadow), 0 22px 40px -26px rgba(20, 35, 70, .45); }
  .hm-card:hover .hm-card-ico { transform: scale(1.06) rotate(-4deg); }
  .hm-card:hover .hm-card-go { color: var(--orange-600); }
  .hm-card:hover .hm-card-go .hm-i { transform: translateX(4px); }
  .hm-card:hover .hm-viz-fondo .hm-mate { transform: translateY(-3px); }
  .hm-card-xl:hover { border-color: transparent; }
  .hm-card-xl:hover .hm-card-go { color: #fff; }
  .hm-pair:hover { background: #fff; border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(254, 130, 2, .55); }
  .hm-clear:hover { background: var(--blue-50); color: var(--ink); }
  .hm-opt:hover { background: var(--blue-50); }
  .hm-sug:hover { border-color: var(--orange); color: var(--orange-600); transform: translateY(-1px); }
  .hm-cat:not([aria-pressed=true]):hover { border-color: var(--c); color: var(--navy); }
  .hm-item:hover { background: var(--blue-50); }
  .hm-group-ia .hm-item:hover { background: #fff; }
  .hm-item:hover .hm-tile { transform: scale(1.08); background: var(--c); color: #fff; }
  .hm-item:hover b { color: var(--navy); }
  .hm-pasos li:hover { background: var(--orange-50); transform: translateX(3px); }
  .hm-plan:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(20, 35, 70, .45); }
  .hm-plan.best:hover { box-shadow: 0 26px 54px -24px rgba(254, 130, 2, .6); }
  .hm-faq-list summary:hover { color: var(--navy); }
  .hm-faq-list details:hover { border-color: var(--line-2); }
  .hm-btn-glass:hover { background: #fff; color: var(--navy); }
  .hm-conv .dropzone:hover { box-shadow: 0 0 0 5px rgba(254, 130, 2, .12); }
}

/* ═════════ Responsive ═════════ */
@media (max-width: 640px) {
  .hm-conv .dropzone .dz-icon { display: none; }
  .hm-chips { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
  .hm-chips::-webkit-scrollbar { display: none; }
  .hm-chips > span { flex-shrink: 0; }
  .hm-chip { font-size: .68rem; padding: 6px 10px; }
  .hm-sellos { gap: 8px 14px; font-size: .84rem; }
  .hm-acts { grid-template-columns: 1fr; }
  .hm-res-foot > span { display: none; }
}
@media (min-width: 600px) and (max-width: 859px) {
  /* 2 columnas: si la última tarjeta de "Lo más usado" queda sola en su fila, no se muestra */
  .hm-card-xl ~ .hm-card:last-child:nth-child(even), .hm-bento > .hm-card:not(.hm-card-xl):first-child ~ .hm-card:last-child:nth-child(odd) { display: none; }
}
@media (max-width: 599px) {
  .hm-chip { display: none; }
  .hm-stage { height: 410px; }
  .hm-card:not(.hm-card-xl) .hm-card-txt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .hm-aud-sec { padding: 40px 0; }
  .hm-aud-score { display: none; }
  .hm-servs { display: none; }
  .hm-pasos small { line-height: 1.4; display: block; }
  .hm-bento .hm-card:nth-child(n+7) { display: none; }   /* en el celu, las 6 más usadas */
  .hm-proba { display: none; }   /* en el celu alcanza con los ejemplos que rotan en el buscador */
  .hm-pasos { gap: 4px; }
  .hm-pasos li { padding: 8px 0; background: none; }
  .hm-pasos li > span { width: 28px; height: 28px; border-radius: 9px; font-size: .9rem; }
  .hm-pasos small { font-size: .82rem; }
  .hm-ag-cta ul { margin-bottom: 18px; }
  .hm-plan:not(.best) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 16px; }
  .hm-plan:not(.best) h3 { margin: 0; }
  .hm-plan:not(.best) .hm-price { font-size: 1.45rem; text-align: right; }
  .hm-plan:not(.best) .hm-price small { font-size: .78rem; }
  .hm-plan:not(.best) .hm-price-sub { grid-column: 1 / -1; margin: 2px 0 10px; min-height: 0; }
  .hm-plan:not(.best) .feats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin-bottom: 12px; }
  .hm-plan:not(.best) .feats li { font-size: .78rem; line-height: 1.35; padding-left: 21px; }
  .hm-plan:not(.best) .feats li::before { width: 15px; height: 15px; top: 1px; background-size: 11px; }
  .hm-plan:not(.best) .btn { grid-column: 1 / -1; padding: .7em 1em; }
  /* Gratis, en el celu: una fila (lo que incluye ya lo dicen el hero y las preguntas frecuentes) */
  .hm-plan.hm-plan-free .feats { display: none; }
  .hm-plan.hm-plan-free .hm-price-sub { grid-column: 1; align-self: center; margin: 4px 0 0; }
  .hm-plan.hm-plan-free .btn { grid-column: 2; width: auto; margin-top: 4px; }
  .hm-faq-side .btn { display: none; }
  .hm-card:not(.hm-card-xl) { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 14px; }
  .hm-card:not(.hm-card-xl) .hm-card-top { grid-row: 1 / span 2; margin: 0; }
  .hm-card:not(.hm-card-xl) .hm-card-ico { width: 44px; height: 44px; font-size: 1.3rem; }
  .hm-card:not(.hm-card-xl) .hm-tags, .hm-card:not(.hm-card-xl) .hm-card-go, .hm-viz-fondo { display: none; }
  .hm-card:not(.hm-card-xl) .hm-card-tit { font-size: 1rem; }
  .hm-card:not(.hm-card-xl) .hm-card-txt { font-size: .84rem; line-height: 1.45; }
}
@media (min-width: 600px) {
  .hm-objs { gap: 14px; }
  .hm-obj { padding: 20px 18px 16px; }
  .hm-obj small { display: block; }
  .hm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hm-card-xl { grid-column: 1 / -1; }
  .hm-pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .hm-pair { font-size: .88rem; padding: 11px 8px; gap: 6px; }
  .hm-seo { padding: 26px 22px; }
  .hm-groups { columns: 2; }
  .hm-groups.is-uno { columns: auto; }
  .hm-group { display: inline-block; }
  .hm-group { padding: 16px 12px 10px; margin-bottom: 14px; }
  .hm-group ul { grid-template-columns: minmax(0, 1fr); }
  .hm-item { align-items: start; column-gap: 10px; padding: 8px; }
  .hm-item > small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.35; }
  .hm-item .hm-tag { display: inline-block; margin-top: 0; font-size: .62rem; padding: 2px 7px; vertical-align: 2px; }
  .hm-item > b { font-size: .9rem; }
  .hm-groups.is-uno .hm-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* filtrado por objetivo: pocas herramientas en varias categorías → grilla pareja, sin columnas vacías */
  .hm-groups.is-filtrado { columns: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
  .hm-groups.is-filtrado .hm-group { margin: 0; }
  .hm-groups.is-filtrado .hm-group ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .hm-aud-form { flex-direction: row; }
  .hm-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-plan.best, .hm-plan-free { order: 0; }
  .hm-final-btns { flex-direction: row; }
  .hm-stage { height: 460px; }
  .hm-tab { font-size: .8rem; padding: 10px 6px 12px; }
  .hm-ag-main, .hm-ag-cta { padding: 32px 30px; }
  .hm-opt-cat { display: inline; }
  .hm-cats { flex-wrap: wrap; margin: 18px 0 12px; padding: 0; overflow: visible; }
}
@media (min-width: 860px) {
  .hm-objs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-card-xl { grid-column: span 2; }
  .hm-seo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding: 34px; gap: 40px; align-items: center; }
  .hm-groups { columns: 3; }
  .hm-groups.is-uno { columns: auto; }
  .hm-groups.is-uno .hm-group ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-aud-sec { padding: 64px 0; }
  .hm-aud-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .hm-ag { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
  .hm-ag-main { padding: 40px; }
  .hm-pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-pasos li { flex-direction: column; gap: 10px; }
  .hm-ag-cta { padding: 40px 32px; }
  .hm-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
  .hm-faq-side { position: sticky; top: 90px; }
  .hm-final { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 40px; }
  .hm-kbd { display: inline-block; }
  .hm-proba { flex-wrap: wrap; justify-content: center; margin: 12px 0 0; padding: 0; overflow: visible; }
  .hm-cats { justify-content: center; }
  .hm-sec { margin-top: 80px; }
  .hm-obj-sec { margin-top: 56px; }
}
@media (min-width: 1000px) {
  .hm-hero { padding: 40px 0 12px; }
  .hm-hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 48px; align-items: start; }
  .hm-show { position: sticky; top: 84px; }
  .hm-h1 { font-size: clamp(2.3rem, 3.6vw, 2.9rem); }
  .hm-hero-buscar { display: none; }
  .hm-stage { height: 540px; }
  .hm-scene { inset: 56px 24px 64px; }
  .hm-win { width: min(100%, 400px); }
  .hm-ig { width: min(100%, 340px); }
  .hm-ig-img { height: 150px; }
  .hm-ig-txt { font-size: .84rem; }
  .hm-ba { width: min(100%, 410px); }
  .hm-qr-card { width: min(100%, 410px); padding: 20px; gap: 20px; }
  .hm-qr { width: 170px; height: 170px; }
  .hm-qr-txt b { font-size: 1.08rem; }
}

/* ═════════ ¿QUÉ VENDÉS? Kit por rubro (home.js lo arma; los datos salen de inc/emprendedores.php) ═════════ */
.hm-rubros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* cada rubro toma uno de los colores del logo, en orden (versiones que pasan AA como ícono y como texto) */
.hm-rub { --rc: var(--orange-700); --rc-50: var(--orange-50);
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 58px; padding: 8px 10px; text-align: left;
  font: inherit; font-size: .88rem; font-weight: 700; line-height: 1.25; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: border-color var(--hm-t), background-color var(--hm-t), color var(--hm-t), transform .15s var(--hm-ease), box-shadow var(--hm-t); }
.hm-rub:nth-child(4n+1) { --rc: var(--ok-700); --rc-50: var(--ok-50); }
.hm-rub:nth-child(4n+3) { --rc: var(--violeta); --rc-50: var(--violeta-50); }
.hm-rub:nth-child(4n+4) { --rc: var(--blue); --rc-50: var(--blue-50); }
.hm-rub-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--rc-50); color: var(--rc);
  transition: background-color var(--hm-t), color var(--hm-t), transform var(--hm-t) var(--hm-ease); }
.hm-rub-ico .hm-i { width: 22px; height: 22px; vertical-align: 0; }
.hm-rub-n { min-width: 0; overflow-wrap: anywhere; }
.hm-rub[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 22px -14px rgba(20, 26, 60, .7); }
.hm-rub[aria-pressed=true] .hm-rub-ico { background: #fff; }
.hm-rub:active { transform: scale(.97); }
.hm-rub:focus-visible { border-radius: 14px; outline-offset: 2px; }

.hm-kit { position: relative; overflow: hidden; margin-top: 14px; padding: 18px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--hm-r); box-shadow: var(--shadow-sm); animation: hmIn .2s var(--hm-ease); }
.hm-kit::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--aha-franja); }
.hm-kit:focus { outline: none; }
.hm-kit-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hm-kit-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--navy); color: #fff; }
.hm-kit-ico .hm-i { width: 24px; height: 24px; }
.hm-kit-tit { flex: 1; min-width: 0; }
.hm-kit-tit small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-700); }
.hm-kit-tit h3 { margin: 0; font-size: 1.2rem; color: var(--navy); line-height: 1.2; }
.hm-kit-x { font: inherit; font-size: .84rem; font-weight: 700; color: var(--blue); background: none; border: 0; min-height: 40px; padding: 6px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hm-kit-x:focus-visible { border-radius: 8px; }
.hm-kit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hm-kit-item { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none !important;
  transition: border-color var(--hm-t), box-shadow var(--hm-t), transform var(--hm-t) var(--hm-ease); }
.hm-kit-txt { flex: 1; min-width: 0; }
.hm-kit-txt b { display: block; font-size: .93rem; line-height: 1.3; color: var(--navy); }
.hm-kit-txt small { display: block; margin-top: 2px; font-size: .82rem; line-height: 1.4; color: var(--ink-2); }
.hm-kit-item .hm-go { flex: none; color: var(--orange-700); transition: transform var(--hm-t) var(--hm-ease); }
.hm-kit-item .hm-go .hm-i { width: 18px; height: 18px; }
.hm-kit-item:active { transform: scale(.98); }
.hm-kit-item:focus-visible { border-radius: 14px; }
.hm-kit-tip { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--orange-50); border-left: 4px solid var(--orange); }
.hm-kit-tip-ico { flex: none; color: var(--orange-700); line-height: 0; margin-top: 1px; }
.hm-kit-tip-ico .hm-i { width: 22px; height: 22px; }
.hm-kit-tip p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink); }
.hm-kit-tip b { color: var(--navy); }
.hm-kit-foot { margin: 10px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.hm-kit-foot a { font-weight: 700; }
.hm-rub-more { margin: 14px 0 0; text-align: center; font-size: .9rem; color: var(--ink-2); }

/* "Tu kit": las herramientas del rubro elegido quedan marcadas en el resto de la home */
.hm-tag-kit { background: var(--aha-verde); color: var(--navy); }   /* noche sobre verde: 8:1 */
.hm-card.is-kit { border-color: var(--aha-verde); box-shadow: 0 0 0 1px var(--aha-verde), 0 1px 2px rgba(20, 35, 70, .05); }
.hm-card-xl.is-kit { box-shadow: 0 0 0 3px var(--aha-verde); }
#hmGrid li.is-kit .hm-item, .hm-et-tools li.is-kit .hm-et-item { background: var(--ok-50); }
.hm-item .hm-tag-kit { margin-left: 0; }

/* ═════════ TU EMPRENDIMIENTO, PASO A PASO ═════════ */
/* En el celu y la tablet, las 3 etapas se deslizan de costado (el siguiente paso asoma); en compu, 3 columnas */
.hm-etapas { --gut: 20px; list-style: none; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 12px; display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 360px); gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: thin; }
.hm-etapa { --ec: var(--ok); --ec-ink: var(--ok-700); --ec-50: var(--ok-50);
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 14px 12px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--hm-r); box-shadow: 0 1px 2px rgba(20, 35, 70, .05); }
.hm-et-vende { --ec: var(--orange); --ec-ink: var(--orange-700); --ec-50: var(--orange-50); }
.hm-et-crece { --ec: var(--blue); --ec-ink: var(--blue); --ec-50: var(--blue-50); }
.hm-etapa::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: var(--hm-r) var(--hm-r) 0 0; background: var(--ec); }
.hm-etapa-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.hm-etapa-n { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; background: var(--ec-50); color: var(--ec-ink); box-shadow: inset 0 0 0 2px var(--ec); }
.hm-etapa h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; color: var(--navy); }
.hm-etapa-head p { margin: 2px 0 0; font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
.hm-et-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hm-et-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; color: var(--ink); text-decoration: none !important; transition: background-color .15s; }
.hm-et-item .hm-tile { transition: transform var(--hm-t) var(--hm-ease), background-color var(--hm-t), color var(--hm-t); }
.hm-et-txt { min-width: 0; }
.hm-et-txt b { display: block; font-size: .88rem; line-height: 1.3; }
.hm-et-txt small { display: block; font-size: .78rem; line-height: 1.35; color: var(--muted); }
.hm-et-item:focus-visible { border-radius: 12px; outline-offset: 0; }
.hm-et-ag { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .86rem; color: var(--ink-2); }
.hm-et-tools + .hm-et-ag { margin-top: 10px; }
.hm-et-hint { margin: 2px 0 0; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); }
.hm-link { font: inherit; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hm-link:focus-visible { border-radius: 4px; }

@media (hover: hover) {
  .hm-rub:not([aria-pressed=true]):hover { border-color: var(--rc); box-shadow: 0 8px 18px -14px rgba(20, 26, 60, .5); }
  .hm-rub:not([aria-pressed=true]):hover .hm-rub-ico { background: var(--rc); color: #fff; transform: rotate(-4deg); }
  .hm-kit-item:hover { border-color: var(--orange); transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(20, 35, 70, .4); }
  .hm-kit-item:hover .hm-go { transform: translateX(3px); }
  .hm-kit-x:hover, .hm-link:hover { color: var(--blue-h); }
  .hm-et-item:hover { background: var(--ec-50); }
  .hm-et-item:hover .hm-tile { transform: scale(1.08); background: var(--c); color: #fff; }
  .hm-et-item:hover b { color: var(--navy); }
}
@media (max-width: 640px) {
  .hm-etapas { --gut: 16px; }
}
@media (min-width: 600px) {
  .hm-rubros { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .hm-kit { padding: 22px 22px 18px; }
  .hm-kit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (min-width: 860px) {
  .hm-etapas { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 22px; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .hm-etapa { padding: 22px 16px 14px; }
  /* flecha entre etapas */
  .hm-etapa:not(:last-child)::after { content: ''; position: absolute; top: 34px; right: -17px; width: 11px; height: 11px; border-top: 2.5px solid var(--line-2); border-right: 2.5px solid var(--line-2); transform: rotate(45deg); }
  .hm-et-hint { display: none; }
}
@media (min-width: 1000px) {
  .hm-rubros { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .hm-rub { flex-direction: column; justify-content: center; gap: 8px; min-height: 116px; padding: 14px 8px; text-align: center; }
  .hm-rub-ico { width: 46px; height: 46px; border-radius: 13px; }
  .hm-rub-ico .hm-i { width: 24px; height: 24px; }
  .hm-kit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-rub:hover .hm-rub-ico, .hm-kit-item:hover, .hm-et-item:hover .hm-tile, .hm-rub:active, .hm-kit-item:active { transform: none !important; }
}

/* ═════════ Menos movimiento ═════════ */
@media (prefers-reduced-motion: reduce) {
  .hm *:not(.spinner), .hm *:not(.spinner)::before, .hm *:not(.spinner)::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hm-chip, .hm-scene.is-on .hm-ba-before, .hm-scene.is-on .hm-ba-line { animation: none !important; }
  .hm-card:hover, .hm-obj:hover, .hm-plan:hover, .hm-pair:hover, .hm-chips a:hover, .hm-act:hover, .hm-pasos li:hover, .hm .btn:hover, .hm .btn:active,
  .hm-card:hover .hm-card-ico, .hm-obj:hover .hm-obj-ico, .hm-item:hover .hm-tile, .hm-tab:hover .hm-i { transform: none !important; }
}
