/* ═══════════════════════════════════════════════════════════════
   Home — capa de diseño propia de la portada (solo se carga en ella).
   Mobile-first: los estilos base son para teléfono (~390px) y se
   amplían con min-width. Reutiliza tokens de main.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── Ritmo general: cabeceras centradas y más aire ── */
.content .section-header--center {
    max-width: 860px;
    margin-inline: auto;
    margin-bottom: 32px;
}

.content .section-header--center p {
    max-width: 620px;
    margin-inline: auto;
}

.content .section-header h2 {
    font-size: clamp(27px, 7vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — "De Google a tu WhatsApp" (v2, 31 oct 2026)
   Fondo: Marbella en hora azul (velado suave, se ve la foto).
   Protagonista: demo animada (.hm-demo) conducida por home-hero.js vía
   data-step (0–8) y data-phase (1 Google · 2 web · 3 mensajes).
   Los móviles escalan con --phone-w: todo lo de dentro va en em
   (font-size de la pantalla = --phone-w / 20).
   Base = móvil; se amplía con min-width.
   ═══════════════════════════════════════════════════════════════ */
.hero.hm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "demo" "proof";
    align-items: center;
    column-gap: clamp(32px, 4vw, 72px);
    min-height: 0;
    padding: calc(var(--header-h) + 16px) 18px 78px;
    overflow-x: clip;
    background: #0b1f45;
}

/* Fondo en su propia capa recortada: el zoom lento no se sale del hero
   y el hero puede dejar asomar el trust strip por abajo. */
.hero.hm-hero::before { content: none; }

.hm-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.hm-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 72% 30%;
    animation: hm-kenburns 32s ease-in-out infinite alternate;
    transform-origin: 70% 40%;
    will-change: transform;
}

/* Velo encima de la foto */
.hm-hero-bg::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(9, 26, 60, 0.86) 0%, rgba(9, 26, 60, 0.74) 42%, rgba(9, 26, 60, 0.30) 64%, rgba(9, 26, 60, 0.38) 86%, rgba(9, 26, 60, 0.75) 100%);
}

/* Glow de marca detrás de la demo */
.hero.hm-hero::after {
    height: 100%;
    background: radial-gradient(60% 40% at 50% 70%, rgba(7, 87, 248, 0.22), transparent 70%);
}

@keyframes hm-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* Header claro sobre el velo azul (hasta hacer scroll) */
body.page-template-page-home:not(.is-scrolled) #site-header .brand { color: #fff; }

@media (min-width: 901px) {
    body.page-template-page-home:not(.is-scrolled) #site-header .nav-links { color: rgba(255, 255, 255, 0.9); }
    body.page-template-page-home:not(.is-scrolled) #site-header .nav-links > a:hover,
    body.page-template-page-home:not(.is-scrolled) #site-header .nav-dropdown-toggle:hover { color: #fff; }
    body.page-template-page-home:not(.is-scrolled) #site-header .nav-links > a[aria-current="page"] { color: #9cc2ff; }
}

/* ── Copy ── */
.hm-hero .hero-copy {
    grid-area: copy;
    width: 100%;
    max-width: 600px;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 18px rgba(4, 14, 36, 0.35);
}

.hm-hero .h1-kicker {
    margin-bottom: 14px;
    padding: 6px 12px;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: #dbe8ff;
    font-size: 10px;
    text-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hm-hero h1 {
    color: #fff;
    font-size: clamp(42px, 12.2vw, 76px);
    line-height: 0.98;
}

/* Degradado azul luminoso: contrasta sobre el velo */
.hm-hero .h1-grad {
    background:
        linear-gradient(115deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 58%) no-repeat,
        linear-gradient(100deg, #5b97ff 5%, #8dbaff 55%, #c3dbff 95%);
    background-size: 240% 100%, 100% 100%;
    background-position: -140% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
}

.hm-hero .lead {
    max-width: 540px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
}

.hm-hero .lead strong { color: #fff; }

/* Ventajas: fila compacta de 3 */
.hm-hero .hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    margin-top: 16px;
}

.hm-hero .hero-benefits li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    font-weight: 550;
    line-height: 1.25;
    text-align: center;
}

.hm-hero .hero-benefits svg { width: 20px; height: 20px; }

.hm-hero .hero-benefits li strong {
    display: block;
    color: #fff;
    font-size: 12.5px;
    font-weight: 780;
    letter-spacing: -0.01em;
}

/* CTAs en móvil: principal ancho + "Ver trabajos" compacto al lado */
.hm-hero .hero-ctas {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 18px;
}

.hm-hero .hero-ctas .btn { width: auto; min-height: 50px; padding-inline: 16px; text-shadow: none; }

.hm-hero .btn-soft {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hm-hero .btn-soft:hover { background: rgba(255, 255, 255, 0.2); }

/* Auditoría: cristal */
.hm-hero .proof-audit {
    grid-area: proof;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(9, 26, 60, 0.45);
    box-shadow: 0 14px 34px rgba(4, 14, 36, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hm-hero .proof-audit p {
    max-width: none;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12.5px;
    line-height: 1.45;
}

.hm-hero .proof-audit p strong { display: block; margin-bottom: 2px; color: #fff; font-size: 13.5px; }

.hm-hero .proof-avatar { box-shadow: 0 0 0 2px #0b1f45, 0 0 0 4px rgba(141, 186, 255, 0.7); }

.hm-avatar { position: relative; flex-shrink: 0; display: block; }

.hm-online {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 14px;
    height: 14px;
    border: 2.5px solid #0b1f45;
    border-radius: 50%;
    background: #2ee06a;
}

.hm-online::after {
    content: '';
    position: absolute;
    inset: -2.5px;
    border-radius: 50%;
    animation: livePulse 2.2s infinite;
}

/* ═══ Demo ═══ */
.hm-demo {
    --phone-w: 196px;
    grid-area: demo;
    position: relative;
    width: 100%;
    max-width: 430px;
    height: calc(var(--phone-w) * 2.13 + 138px);
    margin: 26px auto 10px;
}

/* Pasos: fila de 3 bajo los móviles */
.hm-dsteps {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-dstep {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 22px rgba(20, 38, 80, 0.08);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hm-dstep span {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Barra de progreso: se llena mientras dura cada fase */
.hm-dstep::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.85);
}

.hm-demo[data-phase="1"] .hm-dstep[data-for="1"],
.hm-demo[data-phase="2"] .hm-dstep[data-for="2"],
.hm-demo[data-phase="3"] .hm-dstep[data-for="3"] {
    background: linear-gradient(135deg, var(--accent), #3d7dff);
    box-shadow: 0 12px 26px rgba(7, 87, 248, 0.35);
    color: #fff;
    transform: translateY(-3px);
}

.hm-demo[data-phase="1"] .hm-dstep[data-for="1"] span,
.hm-demo[data-phase="2"] .hm-dstep[data-for="2"] span,
.hm-demo[data-phase="3"] .hm-dstep[data-for="3"] span {
    background: #fff;
    color: var(--accent);
}

.hm-demo.is-playing[data-phase="1"] .hm-dstep[data-for="1"]::after { width: 100%; transition: width 3.2s linear; }
.hm-demo.is-playing[data-phase="2"] .hm-dstep[data-for="2"]::after { width: 100%; transition: width 2.1s linear; }
.hm-demo.is-playing[data-phase="3"] .hm-dstep[data-for="3"]::after { width: 100%; transition: width 3.3s linear; }

/* ── Marco de móvil realista: canto de titanio, bisel negro, botones,
   isla dinámica, reflejo y barra de inicio ── */
.hm-phone {
    position: absolute;
    top: 44px;
    width: var(--phone-w);
    aspect-ratio: 9 / 19.2;
    padding: calc(var(--phone-w) * 0.032);
    border-radius: calc(var(--phone-w) * 0.165);
    background: #06080d;
    box-shadow:
        0 0 0 1.5px #59627a,
        0 0 0 3px #232a38,
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 34px 70px rgba(15, 36, 84, 0.30),
        0 12px 24px rgba(15, 36, 84, 0.18);
}

.hm-btn {
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #6b7489, #2a3140);
}

.hm-btn--v1 { left: -4px; top: 21%; height: 8%; }
.hm-btn--v2 { left: -4px; top: 31%; height: 8%; }
.hm-btn--pw { right: -4px; top: 26%; height: 12%; }

.hm-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: calc(var(--phone-w) * 0.135);
    background: #fff;
    font-size: calc(var(--phone-w) / 20);
    line-height: 1.25;
}

/* Isla dinámica */
.hm-screen::before {
    content: '';
    position: absolute;
    z-index: 6;
    top: 0.7em;
    left: 50%;
    width: 5.4em;
    height: 1.55em;
    border-radius: 999px;
    background: #000;
    transform: translateX(-50%);
}

/* Reflejo del cristal */
.hm-screen::after {
    content: '';
    position: absolute;
    z-index: 7;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(255, 255, 255, 0) 45%);
    pointer-events: none;
}

.hm-cap {
    position: absolute;
    top: -40px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    padding: 5px 13px 5px 6px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 22px rgba(20, 38, 80, 0.14);
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transform: translateX(-50%);
}

.hm-cap svg {
    flex-shrink: 0;
    box-sizing: content-box;
    width: 11px;
    height: 11px;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #5b97ff);
    color: #fff;
}

/* Línea fina que "ancla" el subtítulo al móvil */
.hm-cap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 10px;
    background: linear-gradient(180deg, rgba(7, 87, 248, 0.45), transparent);
}

.hm-phone--client { z-index: 2; left: 2%; }

.hm-phone--owner {
    --phone-w-own: calc(var(--phone-w) * 0.84);
    z-index: 1;
    right: 1%;
    top: 80px;
    width: var(--phone-w-own);
    padding: calc(var(--phone-w-own) * 0.032);
    border-radius: calc(var(--phone-w-own) * 0.165);
    transform: rotate(4deg);
}

.hm-phone--owner .hm-screen {
    border-radius: calc(var(--phone-w-own) * 0.135);
    font-size: calc(var(--phone-w-own) / 20);
}

.hm-phone--owner .hm-cap { transform: translateX(-50%) rotate(-4deg); }
.hm-phone--owner .hm-cap svg { background: linear-gradient(135deg, #25d366, #12a150); }

/* Barra de estado */
.hm-status {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2.95em;
    padding: 0 1.55em 0 1.9em;
    color: #111;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.hm-status-ico { width: 3.6em; height: auto; fill: currentColor; }

.hm-homebar {
    position: absolute;
    z-index: 6;
    bottom: 0.45em;
    left: 50%;
    width: 7em;
    height: 0.3em;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.75);
    transform: translateX(-50%);
}

/* ── Pantalla 1: Google ── */
.hm-scr {
    position: absolute;
    inset: 0;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}

.hm-scr--search {
    padding: 3.3em 0.9em 0;
    background: #fff;
}

.hm-search {
    display: flex;
    align-items: center;
    gap: 0.5em;
    height: 2.7em;
    padding: 0 0.9em;
    border: 1px solid #e3e6ec;
    border-radius: 999px;
    box-shadow: 0 0.2em 0.7em rgba(16, 24, 40, 0.1);
    color: #6b7280;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
}

.hm-search svg { flex-shrink: 0; width: 1.1em; height: 1.1em; }

.hm-typed { color: #1f2329; font-weight: 600; }

.hm-caret {
    flex-shrink: 0;
    width: 1.5px;
    height: 1.2em;
    margin-left: -0.35em;
    background: var(--accent);
    animation: hm-blink 1s steps(1) infinite;
}

@keyframes hm-blink { 50% { opacity: 0; } }

.hm-chips {
    display: flex;
    gap: 0.4em;
    margin: 0.7em 0 0.6em;
    overflow: hidden;
}

.hm-chips span {
    flex-shrink: 0;
    padding: 0.25em 0.7em;
    border: 1px solid #e3e6ec;
    border-radius: 999px;
    color: #4d5562;
    font-size: 0.78em;
    font-weight: 600;
}

.hm-chips .is-on { border-color: #1a47c2; background: #e8f0fe; color: #1a47c2; }

/* Mapa local con pins */
.hm-map {
    position: relative;
    height: 6.2em;
    overflow: hidden;
    border-radius: 0.8em;
    background:
        linear-gradient(28deg, transparent 46%, #fff 46.5%, #fff 50%, transparent 50.5%),
        linear-gradient(-62deg, transparent 58%, #fff 58.5%, #fff 61%, transparent 61.5%),
        linear-gradient(90deg, transparent 30%, #fde9b8 30.5%, #fde9b8 33%, transparent 33.5%),
        radial-gradient(40% 60% at 85% 20%, #cfe9d0 0%, #cfe9d0 60%, transparent 62%),
        linear-gradient(180deg, #e9edf2, #e3e8ee);
    opacity: 0;
    transform: translateY(0.5em);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hm-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 1.1em;
    height: 1.1em;
    border-radius: 50% 50% 50% 0;
    background: #ea4335;
    transform: rotate(-45deg);
    box-shadow: 0 0.15em 0.3em rgba(0, 0, 0, 0.25);
}

.hm-pin::after {
    content: '';
    position: absolute;
    inset: 0.32em;
    border-radius: 50%;
    background: #fff;
}

.hm-pin--us {
    width: 1.5em;
    height: 1.5em;
    background: var(--accent);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hm-pin--us::before {
    content: '';
    position: absolute;
    inset: -0.5em;
    border-radius: 50%;
    background: rgba(7, 87, 248, 0.25);
    opacity: 0;
}

/* Resultados */
.hm-results {
    position: relative;
    height: 18em;
    margin-top: 0.6em;
    opacity: 0;
    transform: translateY(0.6em);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hm-res {
    --top: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--top);
    height: 4.3em;
    padding: 0.65em 0.8em;
    border: 1px solid #eef0f4;
    border-radius: 0.8em;
    background: #fff;
    transition: top 0.55s cubic-bezier(0.65, 0, 0.35, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.hm-res b,
.hm-res i {
    display: block;
    height: 0.5em;
    margin-bottom: 0.5em;
    border-radius: 0.3em;
    background: #e8ebf1;
}

.hm-res b { width: 62%; height: 0.7em; background: #c9d6f5; }
.hm-res i:last-child { width: 78%; }

/* Posiciones iniciales: "tu negocio" 3º */
.hm-res--a  { --top: 0em; }
.hm-res--b  { --top: 4.9em; }
.hm-res--us { --top: 9.8em; z-index: 2; height: 7.4em; }

.hm-res-url { display: block; color: #4d5562; font-size: 0.68em; }

.hm-res--us strong {
    display: block;
    margin: 0.05em 0 0.1em;
    color: #1a47c2;
    font-size: 1em;
    font-weight: 700;
    white-space: nowrap;
}

.hm-res-stars { display: block; color: #f5a623; font-size: 0.72em; letter-spacing: 0.06em; }
.hm-res-stars em { margin-left: 0.4em; color: #188038; font-style: normal; font-weight: 700; letter-spacing: 0; }

.hm-res-actions { display: flex; gap: 0.35em; margin-top: 0.5em; }

.hm-res-actions span {
    padding: 0.28em 0.6em;
    border: 1px solid #d6dbe4;
    border-radius: 999px;
    color: #1a47c2;
    font-size: 0.66em;
    font-weight: 700;
    white-space: nowrap;
}

.hm-res-badge {
    position: absolute;
    top: -0.7em;
    right: -0.4em;
    display: grid;
    place-items: center;
    width: 2.4em;
    height: 2.4em;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #4d8dff);
    box-shadow: 0 0.4em 1em rgba(7, 87, 248, 0.45);
    color: #fff;
    font-size: 0.9em;
    font-style: normal;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.25s ease 0.4s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

/* ── Pantalla 2: la web (captura real, hace scroll) ── */
.hm-scr--web {
    z-index: 3;
    background: #f5f1ea;
    transform: translateX(105%);
}

.hm-urlbar {
    position: absolute;
    z-index: 2;
    top: 2.95em;
    left: 0.8em;
    right: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    height: 2.2em;
    border-radius: 0.7em;
    background: rgba(240, 242, 246, 0.95);
    color: #1f2329;
    font-size: 0.85em;
    font-weight: 600;
}

.hm-urlbar svg { width: 0.9em; height: 0.9em; color: #6b7280; }

.hm-web {
    position: absolute;
    top: 5.6em;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hm-web img {
    width: 100%;
    height: auto;
    transition: transform 1.25s cubic-bezier(0.45, 0, 0.25, 1) 0.2s;
}

/* Botón flotante de WhatsApp de la web, en la esquina inferior derecha */
.hm-wa-fab {
    position: absolute;
    z-index: 3;
    right: 0.75em;
    bottom: 1.5em;
    display: grid;
    place-items: center;
    width: 2.9em;
    height: 2.9em;
    border-radius: 50%;
    background: rgb(77, 112, 72);
    box-shadow: 0 0.45em 1.1em rgba(20, 40, 18, 0.35);
    color: rgb(246, 242, 233);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.25s ease 0.5s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

.hm-wa-fab svg { width: 1.45em; height: 1.45em; }

/* Halo que late, como en la web original */
.hm-wa-fab::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0.9em rgba(77, 112, 72, 0.35);
    opacity: 0;
}

.hm-demo.is-playing:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .hm-wa-fab::after {
    animation: hm-fab-ring 2s ease-out infinite;
}

@keyframes hm-fab-ring {
    0%   { opacity: 1; transform: scale(0.55); }
    100% { opacity: 0; transform: scale(1); }
}

.hm-demo:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .hm-wa-fab { opacity: 1; transform: none; }
.hm-demo[data-step="6"] .hm-wa-fab { animation: hm-press 0.55s ease-out; }

@keyframes hm-press {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(0.86); }
}

/* Barra de estado sobre la web: fondo claro */
.hm-demo:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .hm-phone--client .hm-status { background: #fff; }

/* Indicador de toque */
.hm-tap {
    position: absolute;
    z-index: 8;
    top: 50%;
    left: 50%;
    width: 2.6em;
    height: 2.6em;
    margin: -1.3em 0 0 -1.3em;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(7, 87, 248, 0.7), 0 0.3em 1em rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}

/* ── Móvil del dueño: pantalla de bloqueo ── */
.hm-phone--owner .hm-screen {
    padding: 0 0.75em;
    background:
        radial-gradient(90% 55% at 50% 0%, rgba(170, 206, 255, 0.95), transparent 70%),
        radial-gradient(70% 50% at 100% 100%, rgba(140, 110, 255, 0.55), transparent 70%),
        linear-gradient(180deg, #4f86e8, #1d3f8f);
    color: #fff;
    text-align: center;
}

.hm-phone--owner .hm-status { color: #fff; }
.hm-phone--owner .hm-homebar { background: rgba(255, 255, 255, 0.8); }

.hm-lock { display: block; width: 1.1em; height: 1.1em; margin: 3.4em auto 0.3em; color: rgba(255, 255, 255, 0.9); }

.hm-date { display: block; color: rgba(255, 255, 255, 0.85); font-size: 0.85em; font-weight: 600; }

.hm-clock {
    display: block;
    margin-bottom: 0.5em;
    color: #fff;
    font-size: 4.4em;
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hm-notifs { display: grid; gap: 0.45em; text-align: left; }

.hm-notif {
    display: flex;
    align-items: flex-start;
    gap: 0.55em;
    padding: 0.6em 0.65em;
    border-radius: 1.1em;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0.5em 1.4em rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-1em) scale(0.94);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hm-notif-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2em;
    height: 2em;
    border-radius: 0.55em;
}

.hm-notif-ico svg { width: 1.25em; height: 1.25em; }
.hm-notif-ico--wa { background: #25d366; }
.hm-notif-ico--ig { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); }
.hm-notif-ico--g  { background: linear-gradient(135deg, #4285f4, #34a853); }

.hm-notif-body { min-width: 0; color: #3d4350; font-size: 0.72em; line-height: 1.25; }
.hm-notif-body small { display: flex; justify-content: space-between; color: #6b7280; font-size: 0.86em; font-weight: 600; }
.hm-notif-body small i { font-style: normal; font-weight: 500; }
.hm-notif-body strong { display: block; color: #0d1117; font-size: 1.08em; font-weight: 750; }
.hm-notif-body > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hm-lockbtn {
    position: absolute;
    bottom: 1.6em;
    display: grid;
    place-items: center;
    width: 2.6em;
    height: 2.6em;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hm-lockbtn svg { width: 1.2em; height: 1.2em; }
.hm-lockbtn--l { left: 1.4em; }
.hm-lockbtn--r { right: 1.4em; }

/* ═══ Coreografía por paso ═══ */

/* 2+ : mapa y resultados */
.hm-demo:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) :is(.hm-map, .hm-results) {
    opacity: 1;
    transform: none;
}

/* 3+ : "tu negocio" sube al 1º y su pin destaca */
.hm-demo:is([data-step="3"], [data-step="4"], [data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .hm-res--us {
    --top: 0em;
    border-color: rgba(7, 87, 248, 0.5);
    box-shadow: 0 0.6em 1.6em rgba(7, 87, 248, 0.25);
}

.hm-demo:is([data-step="3"], [data-step="4"], [data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .hm-res--a { --top: 8em; }
.hm-demo:is([data-step="3"], [data-step="4"], [data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .hm-res--b { --top: 12.9em; }

.hm-demo:is([data-step="3"], [data-step="4"], [data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .hm-res-badge {
    opacity: 1;
    transform: none;
}

.hm-demo:is([data-step="3"], [data-step="4"]) .hm-pin--us { transform: rotate(-45deg) scale(1.3); }
.hm-demo[data-step="3"] .hm-pin--us::before { animation: hm-ping 0.9s ease-out; }

/* 4 : toque en el resultado */
.hm-demo[data-step="4"] .hm-tap {
    top: 20.2em;
    left: 42%;
    animation: hm-tap 0.45s ease-out;
}

/* 5+ : entra la web y hace scroll hasta el botón de WhatsApp */
.hm-demo:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .hm-scr--web { transform: none; }
.hm-demo:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .hm-web img { transform: translateY(-7%); }

/* 6 : toque en el WhatsApp de la web */
.hm-demo[data-step="6"] .hm-tap {
    top: calc(100% - 2.95em);
    left: calc(100% - 2.2em);
    animation: hm-tap 0.55s ease-out;
}

/* 7 / 8 : llegan los mensajes al móvil del dueño */
.hm-demo:is([data-step="7"], [data-step="8"]) .hm-notif--wa,
.hm-demo[data-step="8"] .hm-notif--ig,
.hm-demo[data-step="8"] .hm-notif--g {
    opacity: 1;
    transform: none;
}

.hm-demo[data-step="8"] .hm-notif--g { transition-delay: 0.7s; }

.hm-demo[data-step="7"] .hm-phone--owner { animation: hm-buzz 0.45s ease-in-out; }
.hm-demo[data-step="8"] .hm-phone--owner { animation: hm-buzz2 0.45s ease-in-out; }

/* Reinicio: la web desaparece sin animar */
.hm-demo[data-step="0"] .hm-scr--web { opacity: 0; transition: none; }
.hm-demo[data-step="0"] .hm-web img { transition: none; }

@keyframes hm-tap {
    0%   { opacity: 0; transform: scale(1.8); }
    35%  { opacity: 1; transform: scale(0.85); }
    100% { opacity: 0; transform: scale(1.1); }
}

@keyframes hm-ping {
    0%   { opacity: 1; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(2.2); }
}

/* Dos nombres iguales para que la vibración se repita en el paso 8 */
@keyframes hm-buzz {
    0%, 100% { transform: rotate(var(--tilt, 4deg)) translateX(0); }
    25% { transform: rotate(var(--tilt, 4deg)) translateX(-3px); }
    50% { transform: rotate(var(--tilt, 4deg)) translateX(3px); }
    75% { transform: rotate(var(--tilt, 4deg)) translateX(-2px); }
}

@keyframes hm-buzz2 {
    0%, 100% { transform: rotate(var(--tilt, 4deg)) translateX(0); }
    25% { transform: rotate(var(--tilt, 4deg)) translateX(-3px); }
    50% { transform: rotate(var(--tilt, 4deg)) translateX(3px); }
    75% { transform: rotate(var(--tilt, 4deg)) translateX(-2px); }
}

@media (prefers-reduced-motion: reduce) {
    .hm-hero-bg img { animation: none; }
    .hm-hero .h1-grad { animation: none; }
    .hm-caret { animation: none; }
}

/* ── Tablet ── */
@media (min-width: 641px) {
    .hero.hm-hero { padding: calc(var(--header-h) + 40px) 40px 110px; }

    .hm-hero .h1-kicker { padding: 8px 15px; font-size: 12px; }

    .hm-hero .lead { font-size: clamp(17px, 1.35vw, 20px); }

    .hm-hero .hero-benefits {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 24px;
    }

    .hm-hero .hero-benefits li {
        flex-direction: row;
        gap: 8px;
        padding: 7px 14px 7px 8px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.07);
        font-size: 13.5px;
        text-align: left;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .hm-hero .hero-benefits svg { width: 19px; height: 19px; }
    .hm-hero .hero-benefits li strong { display: inline; font-size: 14px; font-weight: 700; }
    .hm-hero .hero-benefits li > span { margin-left: -3px; }

    .hm-hero .hero-ctas { display: flex; gap: 12px; margin-top: 26px; }
    .hm-hero .hero-ctas .btn { padding-inline: 26px; }

    .hm-demo { --phone-w: 236px; max-width: 540px; }
    .hm-dstep { font-size: 12.5px; padding: 10px 11px; }

    .hm-hero .proof-audit { max-width: 600px; }
}

/* ── Escritorio: copy | demo ── */
@media (min-width: 1024px) {
    .hero.hm-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "copy  demo"
            "proof demo";
        align-content: center;
        min-height: 860px;
        padding: calc(var(--header-h) + 36px) max(40px, calc((100% - var(--max-content)) / 2)) 120px;
    }

    .hm-hero-bg img { object-position: center 45%; }

    .hm-hero-bg::after {
        background-image:
            linear-gradient(90deg, rgba(9, 26, 60, 0.92) 0%, rgba(9, 26, 60, 0.80) 34%, rgba(9, 26, 60, 0.38) 56%, rgba(9, 26, 60, 0.08) 78%, rgba(9, 26, 60, 0.12) 100%),
            linear-gradient(180deg, rgba(9, 26, 60, 0.45) 0%, rgba(9, 26, 60, 0) 22%, rgba(9, 26, 60, 0) 70%, rgba(9, 26, 60, 0.55) 100%);
    }

    .hero.hm-hero::after { background: radial-gradient(38% 52% at 76% 52%, rgba(7, 87, 248, 0.20), transparent 70%); }

    .hm-hero .hero-copy { align-self: end; }

    .hm-hero .proof-audit {
        align-self: start;
        margin-top: 28px;
        padding: 0;
        border: 0;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hm-hero .proof-audit p { font-size: 13px; max-width: 420px; }

    .hm-demo {
        --phone-w: 272px;
        max-width: 590px;
        margin: 0 0 0 auto;
    }
}

/* ── Trust strip: raíl de cristal con marquee infinito ──
   Sin cortes visibles: el marquee ocupa todo el raíl y se funde por ambos
   lados; cada logo lleva su separador delante para que el ritmo entre sets
   duplicados sea idéntico y el bucle no se note. */
.hm-hero .trust-strip {
    gap: 0;
    min-height: 74px;
    padding: 0 0 0 28px;
    border: 1px solid #fff;
    border-radius: 18px;
    background: #fff; /* blanco sólido: translúcido dejaba ver la foto y quedaba sucio */
    box-shadow:
        0 24px 60px rgba(15, 36, 84, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.hm-hero .trust-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-right: 24px;
    border-right: 1px solid var(--border);
    color: var(--fg);
    font-size: 11px;
    letter-spacing: 0.1em;
}

/* Punto "en vivo" junto al título */
.hm-hero .trust-title::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(7, 87, 248, 0.14);
}

.hm-hero .marquee-viewport {
    align-self: stretch;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

/* 6 sets idénticos (ver page-home.php): avanzar exactamente uno hace el
   bucle invisible. translate3d + will-change lo lleva a la GPU: sin tirones. */
.hm-hero .marquee-track {
    animation: hm-marquee 40s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.hm-hero .marquee-viewport:hover .marquee-track { animation-play-state: paused; }

@keyframes hm-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(calc(-100% / 6), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hm-hero .marquee-track { animation: none; }
}

.hm-hero .client-logo {
    position: relative;
    display: block;
    min-height: 0;
    padding-inline: 34px;
    border-left: 0;
    color: #16213a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    transition: color 0.25s ease;
}

/* Separador: línea fina y discreta antes de cada logo */
.hm-hero .client-logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 22px;
    background: var(--border);
    transform: translateY(-50%);
}

.hm-hero .client-logo small {
    margin-top: 4px;
    color: #7a869e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

@media (hover: hover) {
    .hm-hero .client-logo:hover { color: var(--accent); }
}

@media (max-width: 640px) {
    .hm-hero .trust-strip {
        gap: 10px;
        padding: 14px 0 16px;
        border-radius: 18px;
    }
    .hm-hero .trust-title {
        justify-content: center;
        padding: 0 16px;
        border-right: 0;
        font-size: 10.5px;
    }
    .hm-hero .marquee-track { animation-duration: 26s; }
    .hm-hero .client-logo { padding-inline: 24px; font-size: 13px; }
}

/* ═══ Servicios ═══ */
.hm-services {
    background:
        radial-gradient(700px 320px at 50% 0%, rgba(7, 87, 248, 0.07), transparent 70%),
        var(--bg);
}

.hm-service-grid {
    display: grid;
    gap: 20px;
}

.hm-service {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hm-service-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-soft);
}

.hm-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hm-service-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 13, 31, 0) 55%, rgba(4, 13, 31, 0.35) 100%);
}

.hm-service-tag {
    position: absolute;
    z-index: 1;
    left: 16px;
    bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hm-service-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.hm-service h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hm-service h3 a { color: inherit; text-decoration: none; }

.hm-service-lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.hm-checks {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.hm-checks li {
    position: relative;
    padding-left: 30px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.hm-checks li strong { color: var(--fg); font-weight: 650; }

.hm-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%230757f8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
        var(--accent-soft);
}

.hm-service-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.hm-price {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.hm-price strong {
    color: var(--fg);
    font-size: 18px;
    letter-spacing: -0.03em;
}

/* Enlace-flecha: CTA secundario que no compite con el botón principal */
.hm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.hm-link span { transition: transform 0.2s ease; }
.hm-link:hover span { transform: translateX(4px); }

@media (hover: hover) {
    .hm-service:hover {
        transform: translateY(-4px);
        box-shadow: 0 30px 60px rgba(9, 32, 88, 0.14);
    }
    .hm-service:hover .hm-service-media img { transform: scale(1.04); }
}

/* Digitalización — banda compacta y oscura, acabado premium:
   borde degradado de 1px, retícula de puntos difuminada, dos halos de luz
   y piezas en cristal. Mismas medidas que la versión base. */
.hm-extra {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 20px;
    margin-top: 20px;
    padding: 26px 22px;
    overflow: hidden;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(380px 240px at 100% 0%, rgba(56, 128, 255, 0.42), transparent 70%),
        radial-gradient(320px 220px at 0% 100%, rgba(79, 70, 229, 0.22), transparent 70%),
        linear-gradient(155deg, #0c1f57 0%, #081431 48%, #050b18 100%);
    box-shadow:
        0 30px 60px -20px rgba(5, 20, 60, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

/* Retícula de puntos que se desvanece hacia la izquierda */
.hm-extra::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 65%);
    mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 65%);
    pointer-events: none;
}

/* Borde degradado de 1px (luz arriba a la derecha) */
.hm-extra::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(127, 176, 255, 0.55) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Kicker como chip luminoso */
.hm-extra .section-kicker {
    margin-bottom: 12px;
    padding: 5px 11px 5px 9px;
    border: 1px solid rgba(127, 176, 255, 0.28);
    border-radius: 999px;
    background: rgba(127, 176, 255, 0.10);
    color: #b9d3ff;
    font-size: 11px;
    letter-spacing: 0.12em;
}

.hm-extra .section-kicker::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6ea8ff;
    box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.18), 0 0 10px rgba(110, 168, 255, 0.9);
}

.hm-extra h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hm-extra h3 span {
    background: linear-gradient(90deg, #a9c9ff 0%, #5d9bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hm-extra-copy p {
    margin: 0;
    color: rgba(226, 234, 255, 0.70);
    font-size: 14.5px;
    line-height: 1.6;
}

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

/* Piezas en cristal con brillo superior */
.hm-extra-list li {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.025) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(226, 234, 255, 0.68);
    font-size: 13.5px;
    line-height: 1.5;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hm-extra-list li > span:last-child > strong:first-child {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.hm-extra-list li strong { color: #dce8ff; font-weight: 650; }

.hm-extra-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #4d8dff 0%, #0757f8 55%, #0640c0 100%);
    color: #fff;
    box-shadow:
        0 8px 18px -6px rgba(7, 87, 248, 0.75),
        0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

/* CTA en píldora de cristal con flecha en círculo */
.hm-link--light {
    justify-self: start;
    gap: 10px;
    padding: 0 6px 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 14.5px;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hm-link--light span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--accent-dark);
    font-size: 15px;
}

@media (hover: hover) and (min-width: 900px) {
    .hm-step:hover {
        border-color: rgba(7, 87, 248, 0.22);
        box-shadow: 0 1px 0 #fff inset, 0 26px 50px -24px rgba(9, 32, 88, 0.30);
        transform: translateY(-4px);
    }
}

@media (hover: hover) {
    .hm-extra-list li:hover {
        border-color: rgba(127, 176, 255, 0.32);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
        transform: translateY(-2px);
    }
    .hm-link--light:hover {
        border-color: rgba(255, 255, 255, 0.32);
        background: rgba(255, 255, 255, 0.12);
    }
}

/* ═══ Métricas ═══ */
.hm-metrics-wrap {
    padding-top: 0 !important;
    padding-bottom: 24px !important;
    background: var(--bg);
}

/* ═══ Proceso: timeline vertical en móvil, 4 cards enlazadas en desktop ═══
   El fondo termina en blanco y la banda de Proyectos aparece con un fundido
   (ver más abajo) para que no haya cortes entre secciones. */
.hm-process {
    position: relative;
    isolation: isolate;
    padding-top: 56px;
    background:
        radial-gradient(60% 300px at 50% 260px, rgba(7, 87, 248, 0.05), transparent 70%);
}

/* Sin fondo sólido: la sombra de las métricas no queda cortada */
.hm-metrics-wrap { position: relative; z-index: 1; background: transparent; }

/* Retícula de puntos muy tenue tras la cabecera */
.hm-process::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 520px;
    background-image: radial-gradient(rgba(7, 87, 248, 0.14) 1px, transparent 1.3px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000 0%, transparent 100%);
    mask-image: radial-gradient(60% 70% at 50% 30%, #000 0%, transparent 100%);
    pointer-events: none;
}

.hm-steps {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    max-width: 640px;
}

.hm-step {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
}

/* Raíl que une los pasos (móvil: vertical) */
.hm-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 52px;
    bottom: -10px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(7, 87, 248, 0.30), rgba(7, 87, 248, 0.06));
}

.hm-step > div {
    padding: 16px 18px 18px;
    border: 1px solid rgba(7, 87, 248, 0.09);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    box-shadow: 0 1px 0 #fff inset, 0 10px 26px -14px rgba(9, 32, 88, 0.16);
}

.hm-step-num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(7, 87, 248, 0.22);
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 5px rgba(7, 87, 248, 0.06), 0 8px 18px -6px rgba(7, 87, 248, 0.30);
}

/* El paso 1 (gratis) es el que invita a empezar: va relleno */
.hm-step--free .hm-step-num {
    border-color: transparent;
    background: linear-gradient(145deg, #4d8dff 0%, #0757f8 55%, #0640c0 100%);
    color: #fff;
    box-shadow:
        0 0 0 5px rgba(7, 87, 248, 0.12),
        0 10px 22px -6px rgba(7, 87, 248, 0.65),
        0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.hm-step-when {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 20px;
    margin-bottom: 6px;
    color: var(--accent);
    line-height: 1;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hm-step-tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 10.5px;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0.06em;
}

.hm-step h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.hm-step p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* CTA del proceso: misma banda oscura que "Digitalización" */
.hm-process-cta {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 16px;
    max-width: 640px;
    margin: 28px auto 0;
    padding: 24px 22px;
    overflow: hidden;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(380px 240px at 100% 0%, rgba(56, 128, 255, 0.42), transparent 70%),
        radial-gradient(320px 220px at 0% 100%, rgba(79, 70, 229, 0.22), transparent 70%),
        linear-gradient(155deg, #0c1f57 0%, #081431 48%, #050b18 100%);
    box-shadow:
        0 30px 60px -24px rgba(5, 20, 60, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

.hm-process-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(127, 176, 255, 0.55) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hm-process-cta-ico {
    display: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #4d8dff 0%, #0757f8 55%, #0640c0 100%);
    color: #fff;
    box-shadow:
        0 8px 18px -6px rgba(7, 87, 248, 0.75),
        0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.hm-process-cta p {
    margin: 0;
    color: rgba(226, 234, 255, 0.72);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.hm-process-cta p strong { color: #fff; }

.hm-process-actions {
    display: grid;
    gap: 10px;
}

.hm-process-actions .btn,
.hm-process-actions .btn-outline { justify-content: center; width: 100%; }

.hm-process-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.hm-process-cta .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Proceso → Proyectos: la banda tech entra con un fundido desde blanco
   en vez de un corte de color (la aurora y los anillos quedaban truncados) */
/* Proceso → Proyectos: la banda tech entra con un fundido desde blanco
   en vez de un corte de color (la aurora y los anillos quedaban truncados) */
.hm-process + .section--tech {
    padding-top: 120px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px);
    mask-image: linear-gradient(180deg, transparent 0, #000 110px);
}

.hm-process + .section--tech .tech-orb-2 { top: -60px; }

@media (max-width: 640px) {
    .hm-process + .section--tech {
        padding-top: 80px;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70px);
        mask-image: linear-gradient(180deg, transparent 0, #000 70px);
    }
}

/* ═══ Reseñas de Google ═══ */
/* Fondo claro y limpio: retícula de puntos muy tenue y dos anillos finos
   con los 4 colores de Google, girando muy despacio. */
.hm-reviews {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* Arriba arranca del tono en que termina el portafolio y abajo acaba en
       blanco (bloque del fundador): sin cortes entre secciones. */
    background:
        radial-gradient(700px 360px at 50% 120px, rgba(66, 133, 244, 0.07), transparent 70%),
        linear-gradient(180deg, #e9f1ff 0%, #f7f9fd 160px, #f5f7fb 70%, #ffffff 100%);
}

/* Hilo con los 4 colores de Google en la unión con el portafolio */
.hm-reviews::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: min(420px, 70%);
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #4285F4 18%, #EA4335 40%, #FBBC04 62%, #34A853 82%, transparent);
    opacity: 0.7;
    transform: translateX(-50%);
}

/* Cierre de la sección */
.hm-reviews-join {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    width: fit-content;
    max-width: 100%;
    margin: 18px auto 0;
    padding: 14px 16px 14px 14px;
    border: 1px solid #e8ebf1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06), 0 10px 26px rgba(60, 64, 67, 0.07);
}

.hm-join-avatars { display: inline-flex; }

.hm-join-avatars span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-left: -7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hm-join-avatars span:first-child { margin-left: 0; }
.hm-join-avatars span:nth-child(4n+2) { background: #188038; }
.hm-join-avatars span:nth-child(4n+3) { background: #e37400; }
.hm-join-avatars span:nth-child(4n)   { background: #a142f4; }

.hm-reviews-join p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.hm-reviews-join p strong { color: var(--fg); }

.hm-reviews-join .hm-link { min-height: 40px; color: #1a73e8; white-space: nowrap; }

@media (min-width: 900px) {
    .hm-reviews { padding-bottom: 60px; }
}

@media (min-width: 1100px) {
    .hm-reviews-join { flex-wrap: nowrap; padding-right: 26px; }
    .hm-reviews-join p { font-size: 14px; white-space: nowrap; }
}

.hm-reviews::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(60, 64, 67, 0.10) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(60% 55% at 50% 40%, #000 0%, transparent 100%);
    mask-image: radial-gradient(60% 55% at 50% 40%, #000 0%, transparent 100%);
    pointer-events: none;
}

.hm-reviews > * { position: relative; z-index: 1; }

.hm-reviews > .hm-reviews-rings {
    position: absolute;
    z-index: 0;
    top: -260px;
    right: -360px;
    width: 760px;
    max-width: none;
    height: 760px;
    margin: 0;
    opacity: 0.4;
    pointer-events: none;
}

.hm-ring { transform-origin: 0 0; }
.hm-ring--outer { animation: hm-spin 90s linear infinite; }
.hm-ring--inner { animation: hm-spin 120s linear infinite reverse; opacity: 0.6; }

@keyframes hm-spin { to { transform: rotate(360deg); } }

/* Anillo pequeño (CSS) abajo a la izquierda para equilibrar */
.hm-reviews > .hm-reviews-ring-sm {
    position: absolute;
    z-index: 0;
    left: -120px;
    bottom: 60px;
    width: 260px;
    height: 260px;
    margin: 0;
    border-radius: 50%;
    background: conic-gradient(#4285F4 0 25%, #EA4335 0 50%, #FBBC04 0 75%, #34A853 0);
    -webkit-mask: radial-gradient(circle, transparent 0 128px, #000 129px 130px, transparent 131px);
    mask: radial-gradient(circle, transparent 0 128px, #000 129px 130px, transparent 131px);
    opacity: 0.45;
    pointer-events: none;
}

/* Kicker con los 4 puntos de Google en lugar de la línea */
.hm-g-kicker { color: #5f6368; }
.hm-g-kicker::before { display: none; }

.hm-g-dots { display: inline-flex; gap: 4px; }
.hm-g-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4285F4;
}
.hm-g-dots i:nth-child(2) { background: #EA4335; }
.hm-g-dots i:nth-child(3) { background: #FBBC04; }
.hm-g-dots i:nth-child(4) { background: #34A853; }

.hm-reviews .section-header h2 span { color: #1a73e8; }

/* Insignia resumen: logo G + nota + estrellas + enlace a la ficha */
.hm-google-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 18px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 26px;
    padding: 14px 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08), 0 12px 32px rgba(60, 64, 67, 0.10);
    color: var(--fg);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hm-google-logo { display: grid; width: 40px; height: 40px; }
.hm-google-logo svg { width: 100%; height: 100%; }

.hm-google-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-google-score strong {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hm-stars {
    display: inline-flex;
    gap: 2px;
    color: #fbbc04;
}

.hm-stars svg { width: 18px; height: 18px; }

.hm-google-meta {
    display: grid;
    gap: 2px;
    padding-left: 18px;
    border-left: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.hm-google-cta {
    color: #1a73e8;
    font-weight: 700;
}

@media (hover: hover) {
    .hm-google-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 44px rgba(9, 32, 88, 0.12);
    }
    .hm-google-badge:hover .hm-google-cta { text-decoration: underline; }
}

/* Cards */
/* Aire alrededor para que la sombra de las cards no quede recortada
   (horizontal < gap del track: no asoma la card siguiente en móvil) */
.hm-review-slider .testi-viewport {
    box-sizing: border-box;
    margin: -10px -14px -30px;
    padding: 20px 14px 54px;
    transition: height 0.45s cubic-bezier(.16, 1, .3, 1);
}

.hm-review.testimonial-card {
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06), 0 10px 28px rgba(60, 64, 67, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hm-review-head {
    display: grid;
    grid-template-columns: 44px 1fr 22px;
    gap: 12px;
    align-items: center;
}

.hm-review-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* Colores de avatar a lo Google, rotando por card */
.hm-review:nth-child(4n+2) .hm-review-avatar { background: #188038; }
.hm-review:nth-child(4n+3) .hm-review-avatar { background: #e37400; }
.hm-review:nth-child(4n)   .hm-review-avatar { background: #a142f4; }

.hm-review-who { display: grid; min-width: 0; }

.hm-review-who strong {
    overflow: hidden;
    color: var(--fg);
    font-size: 15.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-review-who small { color: var(--muted); font-size: 12.5px; }

.hm-review-g { display: grid; width: 22px; height: 22px; }
.hm-review-g svg { width: 100%; height: 100%; }

.hm-review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-review-rating .hm-stars svg { width: 16px; height: 16px; }

.hm-review-rating time {
    color: var(--muted);
    font-size: 12.5px;
}

.hm-review-text {
    flex: 1;
    margin: 0;
    color: #3c4043;
    font-size: 15px;
    line-height: 1.65;
}

.hm-review-text p { margin: 0; }
.hm-review-text p + p { margin-top: 10px; }

/* Textos largos: recorte a ~7 líneas con fundido + "Leer más" (main.js) */
.hm-review-text.is-clamped {
    max-height: calc(1.65em * 7);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.hm-review-more {
    align-self: flex-start;
    min-height: 44px;
    margin-top: -8px;
    padding: 0;
    border: 0;
    background: none;
    color: #1a73e8;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.hm-review-more:hover { text-decoration: underline; }

/* Cada card con su altura: al expandir una no se estiran las demás */
.hm-review-slider .testi-track { align-items: flex-start; }

/* Testimonio directo (no de Google): sin logo G, cabecera de 2 columnas */
.hm-review--cliente .hm-review-head { grid-template-columns: 44px 1fr; }

/* Navegación sobre fondo claro */
.hm-review-slider .testi-nav {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--fg);
    box-shadow: var(--shadow-soft);
}

.hm-review-slider .testi-dot { background: rgba(60, 64, 67, 0.18); }
.hm-review-slider .testi-dot:hover { background: rgba(60, 64, 67, 0.32); }

@media (hover: hover) {
    .hm-review.testimonial-card:hover {
        transform: translateY(-3px);
        border-color: rgba(26, 115, 232, 0.3);
        box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08), 0 20px 40px rgba(60, 64, 67, 0.14);
    }
}

/* En desktop caben las 3: sin flechas ni dots que no harían nada */
@media (min-width: 1025px) {
    .hm-review-slider { padding: 0; }
    .hm-review-slider .testi-nav,
    .hm-review-slider .testi-dots { display: none; }
}

@media (max-width: 640px) {
    .hm-google-badge { gap: 12px; padding: 14px 18px; }
    .hm-google-meta {
        flex-basis: 100%;
        padding: 10px 0 0;
        border-left: 0;
        border-top: 1px solid var(--border);
        text-align: center;
    }
    .hm-review.testimonial-card { padding: 22px 20px; }
    .hm-reviews > .hm-reviews-rings { top: -200px; right: -320px; width: 480px; height: 480px; opacity: 0.3; }
    .hm-reviews > .hm-reviews-ring-sm { left: -170px; bottom: 120px; }
    .hm-reviews-join {
        flex-direction: column;
        gap: 10px;
        padding: 18px 20px 12px;
        border-radius: 20px;
        text-align: center;
    }
}

/* ═══ Portafolio / founder / CTA: menos ruido ═══ */
.portfolio-preview-cta,
.content .founder-strip .btn { text-align: center; }

.portfolio-preview-cta .btn-outline { background: #fff; }

.hm-carousel-dots { display: none; }

/* ═══ Móvil ═══ */
@media (max-width: 640px) {
    .content .section { padding-left: 18px; padding-right: 18px; }

    /* Los "check-more" alargan mucho la card en teléfono */
    .hm-checks .check-more { display: none; }

    /* Métricas en 2×2 en lugar de 4 filas */
    .hm-metrics-wrap .metrics {
        grid-template-columns: 1fr 1fr;
    }
    .hm-metrics-wrap .metric {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 20px 16px;
        border: 0;
    }
    .hm-metrics-wrap .metric + .metric::before { display: none; }
    .hm-metrics-wrap .metric:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.18); }
    .hm-metrics-wrap .metric:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
    .hm-metrics-wrap .metrics { border-radius: 20px; }
    .hm-metrics-wrap .metric-icon { display: none; }
    .hm-metrics-wrap .metric-copy { max-width: none; font-size: 12px; }
    .hm-metrics-wrap .metric strong { margin-bottom: 6px; font-size: 28px; }
    .hm-metrics-wrap .metric.place strong { font-size: 22px; line-height: 1.27; }

    /* Portafolio: carrusel deslizable con la siguiente card asomando */
    .section--tech .portfolio-preview-grid {
        display: flex;
        gap: 14px;
        width: auto;
        max-width: none;
        margin-inline: -18px;
        padding: 4px 18px 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 18px;
        scrollbar-width: none;
    }
    .section--tech .portfolio-preview-grid::-webkit-scrollbar { display: none; }
    /* Cards a igual altura con el CTA anclado abajo; las métricas van
       compactas para que la card que las tiene apenas sea más alta */
    .section--tech .portfolio-preview-grid { align-items: stretch; padding-bottom: 10px; }
    .section--tech .portfolio-preview-grid .portfolio-card-body { display: flex; flex-direction: column; }
    .section--tech .portfolio-preview-grid .card-actions { margin-top: auto; }
    .section--tech .portfolio-preview-grid .portfolio-item:has(.card-metrics) .portfolio-excerpt { -webkit-line-clamp: 1; margin-bottom: 0; }
    .section--tech .portfolio-preview-grid .card-metrics {
        grid-auto-flow: row;
        gap: 6px;
        margin: 4px 0 14px;
        padding-top: 12px;
    }
    .section--tech .portfolio-preview-grid .card-metric {
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
    }
    .section--tech .portfolio-preview-grid .card-metric-val .metric-ico { display: none; }
    .section--tech .portfolio-preview-grid .card-metric strong { font-size: 15px; color: var(--accent); }
    .section--tech .portfolio-preview-grid .card-metric-label { font-size: 12.5px; }
    .section--tech .portfolio-preview-grid .portfolio-item.card {
        flex: 0 0 86%;
        scroll-snap-align: start;
    }
    .section--tech .portfolio-preview-grid .portfolio-card-body { padding-bottom: 18px; }
    .section--tech .portfolio-preview-grid .chip-row { display: none; }
    .section--tech .portfolio-preview-grid .portfolio-excerpt { -webkit-line-clamp: 4; margin-bottom: 14px; }

    /* Puntos del carrusel */
    .hm-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 7px;
        margin-top: 6px;
    }
    .hm-carousel-dots span {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: rgba(7, 87, 248, 0.2);
        transition: width 0.3s cubic-bezier(.16, 1, .3, 1), background 0.3s ease;
    }
    .hm-carousel-dots span.is-active { width: 22px; background: var(--accent); }

    .section--tech .portfolio-preview-cta { margin-top: 22px; }

    /* Reseñas → fundador: menos hueco */
    .hm-reviews { padding-bottom: 36px; }
    .hm-reviews + .section { padding-top: 12px; }

    /* Fundador: fila compacta avatar + texto */
    .content .founder-strip {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 14px;
        align-items: start;
        padding: 20px;
    }
    .content .founder-avatar-wrap,
    .content .founder-avatar { width: 56px; height: 56px; }
    .content .founder-strip .btn { grid-column: 1 / -1; }


    /* CTA final: la imagen solo suma scroll en teléfono */
    .cta-panel--split .cta-visual { display: none; }
}

/* ═══ Tablet+ ═══ */
@media (min-width: 641px) {
    .hm-process-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hm-process-actions .btn,
    .hm-process-actions .btn-outline { width: auto; }
}

@media (min-width: 900px) {
    .hm-service-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hm-service-body { padding: 28px 30px 30px; }
    .hm-service h3 { font-size: 25px; }

    .hm-extra {
        grid-template-columns: 1fr 1.65fr auto;
        align-items: center;
        gap: 32px;
        margin-top: 28px;
        padding: 32px 36px;
    }
    .hm-extra-list { grid-template-columns: 1fr 1fr; }

    .hm-process { padding-top: 64px; }

    .hm-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: none;
    }
    .hm-step {
        grid-template-columns: 1fr;
        gap: 0;
        height: 100%;
        align-content: start;
        padding: 26px 24px 28px;
        border: 1px solid rgba(7, 87, 248, 0.09);
        border-radius: 20px;
        background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
        box-shadow: 0 1px 0 #fff inset, 0 18px 40px -22px rgba(9, 32, 88, 0.22);
        transition: transform 0.3s cubic-bezier(.16, 1, .3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .hm-step > div {
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
    }
    .hm-step-num { margin-bottom: 22px; }
    /* Raíl horizontal: sale del número y cruza el hueco hasta la card siguiente */
    .hm-step:not(:last-child)::before {
        left: 80px;
        right: -21px;
        top: 48px;
        bottom: auto;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, rgba(7, 87, 248, 0.30), rgba(7, 87, 248, 0.05) 85%, rgba(7, 87, 248, 0.22));
    }
    .hm-step p { font-size: 14px; }

    .hm-process-cta {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 22px;
        max-width: none;
        margin-top: 28px;
        padding: 24px 26px 24px 24px;
    }
    .hm-process-cta-ico { display: grid; }
    .hm-process-cta p { max-width: 560px; text-align: left; }
    .hm-process-actions { flex-wrap: nowrap; }

    .hm-process + .section--tech { padding-top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-service,
    .hm-service-media img,
    .hm-link span,
    .hm-extra-list li,
    .hm-link--light,
    .hm-google-badge,
    .hm-review.testimonial-card,
    .hm-step { transition: none; }
    .hm-ring--outer,
    .hm-ring--inner { animation: none; }
    .hm-review-slider .testi-viewport { transition: none; }
}

/* Rendimiento móvil (revisión nov 2026): sin Ken Burns en pantallas pequeñas
   y sin pulsos infinitos si el usuario pide menos movimiento. */
@media (max-width: 640px) {
    .hm-hero-bg img { animation: none; will-change: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-wa-fab::after,
    .hm-demo.is-playing .hm-wa-fab::after,
    .hm-online::after { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Pulido del hero + métricas (1 nov 2026)
   Mismos elementos, más orden: ventajas en una barra de 3 columnas,
   auditoría como pie del bloque de texto, demo más compacta en móvil
   (cabe entera en una pantalla) y sin pantalla en blanco al teclear.
   ═══════════════════════════════════════════════════════════════ */

/* ── Sugerencias de Google mientras se teclea (pasos 0–1) ── */
.hm-suggest {
    position: absolute;
    z-index: 2;
    top: 6.35em;
    left: 0.9em;
    right: 0.9em;
    margin: 0;
    padding: 0.35em 0;
    border: 1px solid #e3e6ec;
    border-radius: 0.9em;
    background: #fff;
    box-shadow: 0 0.5em 1.4em rgba(16, 24, 40, 0.10);
    list-style: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hm-suggest li {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.55em 0.9em;
    overflow: hidden;
    color: #3c4250;
    font-size: 0.86em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Lupa gris delante de cada sugerencia */
.hm-suggest li::before {
    content: '';
    flex-shrink: 0;
    width: 0.85em;
    height: 0.85em;
    border: 0.14em solid #9aa1ad;
    border-radius: 50%;
    box-sizing: border-box;
}

.hm-suggest li:first-child { color: #1f2329; font-weight: 600; }

.hm-demo:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .hm-suggest {
    opacity: 0;
    transform: translateY(-0.3em);
    pointer-events: none;
}

/* ── Ventajas: barra de cristal con 3 columnas iguales (móvil y escritorio) ── */
.hm-hero .hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 18px;
    padding: 10px 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
}

.hm-hero .hero-benefits li {
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    background: none;
    text-align: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hm-hero .hero-benefits li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.hm-hero .hero-benefits li strong { display: block; }
.hm-hero .hero-benefits li > span { margin-left: 0; }

/* ── Móvil ── */
@media (max-width: 640px) {
    .hero.hm-hero { padding-bottom: 64px; }

    .hm-hero .h1-kicker { margin-bottom: 12px; font-size: 9.5px; }
    .hm-hero h1 { font-size: clamp(40px, 11.6vw, 52px); }
    .hm-hero .lead { margin-top: 12px; font-size: 15.5px; line-height: 1.5; }

    .hm-hero .hero-benefits svg { width: 18px; height: 18px; }
    .hm-hero .hero-ctas { margin-top: 16px; }

    /* Demo compacta: móviles algo más pequeños y menos aire alrededor,
       así los dos teléfonos y los 3 pasos caben en una pantalla. */
    .hm-demo {
        --phone-w: 172px;
        max-width: 372px;
        height: calc(var(--phone-w) * 2.13 + 118px);
        margin: 34px auto 4px;
    }
    .hm-phone { top: 36px; }
    .hm-phone--client { left: 3%; }
    .hm-phone--owner { --tilt: 3deg; top: 62px; right: 3%; transform: rotate(var(--tilt)); }
    .hm-phone--owner .hm-cap { transform: translateX(-50%) rotate(calc(var(--tilt) * -1)); }
    .hm-cap { top: -36px; padding: 4px 11px 4px 5px; font-size: 11px; }
    .hm-dstep { padding: 7px; font-size: 10.5px; }

    .hm-hero .proof-audit { margin-top: 14px; }
}

/* ── Tablet / escritorio ── */
@media (min-width: 641px) {
    .hm-hero .hero-benefits {
        max-width: 600px;
        margin-top: 24px;
        padding: 12px 6px;
    }
    /* Icono a la izquierda; dato y detalle apilados a su derecha */
    .hm-hero .hero-benefits li {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-content: center;
        column-gap: 9px;
        row-gap: 1px;
        padding: 2px 14px;
        font-size: 12.5px;
        text-align: left;
    }
    .hm-hero .hero-benefits svg { grid-row: span 2; align-self: center; }
    .hm-hero .hero-benefits li strong { font-size: 14px; }
}

@media (min-width: 1024px) {
    /* Bloque de texto centrado en vertical frente a la demo */
    .hm-hero .hero-copy { align-self: end; }
    .hm-demo { align-self: center; }

    /* Auditoría como pie del bloque: línea fina encima, alineada con el texto */
    .hm-hero .proof-audit {
        max-width: 600px;
        margin-top: 26px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 0;
    }

    /* Móvil del dueño menos inclinado y a la misma altura de lectura */
    .hm-phone--owner { --tilt: 3deg; top: 70px; transform: rotate(var(--tilt)); }
    .hm-phone--owner .hm-cap { transform: translateX(-50%) rotate(calc(var(--tilt) * -1)); }
}

/* ── Métricas ── */
/* main.css las pone a sangre en móvil (margin-inline negativo) pero el home
   las redondea: quedaban cortadas por los lados. Aquí van como tarjeta. */
@media (max-width: 640px) {
    .hm-metrics-wrap .metrics {
        margin-inline: 0;
        border-radius: 22px;
    }

    .hm-metrics-wrap .metric {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px 14px 18px 16px;
    }
    .hm-metrics-wrap .metric-copy { display: block; }
    .hm-metrics-wrap .metric > * { will-change: auto; }

    .hm-metrics-wrap .metric-icon {
        display: grid;
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.12);
        color: #cfe0ff;
    }

    .hm-metrics-wrap .metric-icon svg { width: 20px; height: 20px; }

    .hm-metrics-wrap .metric strong { margin-bottom: 6px; font-size: 30px; }
    .hm-metrics-wrap .metric.place strong { font-size: 24px; line-height: 1.25; }
    .hm-metrics-wrap .metric-copy { font-size: 12px; line-height: 1.42; color: rgba(255, 255, 255, 0.8); }
}

/* Burbuja global de WhatsApp oculta en móvil mientras se ve la demo (home-hero.js) */
@media (max-width: 640px) {
    .wa-pulse { transition: opacity 0.25s ease, transform 0.2s ease !important; }
    .hm-demo-visible .wa-pulse { opacity: 0; pointer-events: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Hero premium (16 nov 2026)
   La foto de Marbella pasa a ser protagonista: el velo solo oscurece
   donde hay texto (izquierda en escritorio, arriba en móvil) y deja
   el mar, La Concha y el pueblo limpios detrás de la demo. Para no
   perder legibilidad, cada pieza lleva su propio cristal oscuro.
   ═══════════════════════════════════════════════════════════════ */

/* Velo base (móvil): navy arriba bajo el texto, claro en la zona de los
   móviles y otra vez profundo abajo para anclar auditoría y trust strip. */
.hm-hero-bg::after {
    background-image:
        linear-gradient(180deg,
            rgba(6, 18, 44, 0.90) 0%,
            rgba(6, 18, 44, 0.80) 30%,
            rgba(6, 18, 44, 0.42) 40%,
            rgba(6, 18, 44, 0.06) 50%,
            rgba(6, 18, 44, 0.04) 74%,
            rgba(6, 18, 44, 0.55) 88%,
            rgba(6, 18, 44, 0.80) 100%);
}

/* Sin el halo azul: teñía la foto. Profundidad con viñeta suave. */
.hero.hm-hero::after {
    background: radial-gradient(120% 90% at 60% 45%, transparent 62%, rgba(4, 12, 30, 0.35) 100%);
}

/* Texto: sombra algo más marcada para compensar el velo más ligero */
.hm-hero .hero-copy { text-shadow: 0 2px 22px rgba(4, 14, 36, 0.55); }
.hm-hero .lead { color: rgba(255, 255, 255, 0.92); }

/* Ventajas y auditoría: cristal oscuro, legibles sobre cualquier zona */
.hm-hero .hero-benefits {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(6, 18, 44, 0.42);
    box-shadow: 0 18px 40px rgba(4, 12, 30, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.hm-hero .hero-benefits li { color: rgba(255, 255, 255, 0.82); }

.hm-hero .proof-audit {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(6, 18, 44, 0.55);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

/* Pasos 1-2-3 inactivos: cristal oscuro con texto blanco (antes gris
   sobre blanco translúcido, se perdía contra la vegetación). */
.hm-dstep {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(6, 18, 44, 0.52);
    box-shadow: 0 12px 28px rgba(4, 12, 30, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.hm-dstep span {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* Etiquetas "Tu cliente" / "Tu móvil": sombra para despegarlas de la foto */
.hm-cap { box-shadow: 0 8px 22px rgba(4, 12, 30, 0.30); }

/* Móviles: sombra de contacto más profunda sobre una foto ahora clara */
.hm-phone { filter: drop-shadow(0 30px 40px rgba(4, 12, 30, 0.38)); }

@media (min-width: 1024px) {
    /* Encuadre: La Concha y la costa en la mitad derecha */
    .hm-hero-bg img { object-position: 62% 40%; }

    /* Velo solo bajo el texto + franja superior para el header
       + suelo para el trust strip. Desde el 58% la foto va limpia. */
    .hm-hero-bg::after {
        background-image:
            linear-gradient(90deg,
                rgba(6, 18, 44, 0.86) 0%,
                rgba(6, 18, 44, 0.70) 24%,
                rgba(6, 18, 44, 0.34) 42%,
                rgba(6, 18, 44, 0.08) 56%,
                rgba(6, 18, 44, 0) 66%),
            linear-gradient(180deg,
                rgba(6, 18, 44, 0.55) 0%,
                rgba(6, 18, 44, 0) 16%,
                rgba(6, 18, 44, 0) 72%,
                rgba(6, 18, 44, 0.62) 100%);
    }

    .hero.hm-hero::after {
        background: radial-gradient(90% 80% at 72% 42%, transparent 55%, rgba(4, 12, 30, 0.30) 100%);
    }

    /* La auditoría vuelve a ir sin caja en escritorio (pie del texto) */
    .hm-hero .proof-audit {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Móvil premium (v2, 16 nov 2026): la foto ocupa todo el hero, con
   La Concha detrás del titular y la costa detrás de los móviles. Velo
   neutro (tinta, no azul marino) y graduado suave: elegante y luminoso. */
@media (max-width: 1023px) {
    .hero.hm-hero { background: #10151d; }
    .hm-hero-bg img { object-position: 68% 0; }
    .hm-hero-bg::after {
        background-image:
            linear-gradient(180deg,
                rgba(10, 13, 20, 0.62) 0%,
                rgba(10, 13, 20, 0.50) 22%,
                rgba(10, 13, 20, 0.40) 36%,
                rgba(10, 13, 20, 0.10) 46%,
                rgba(10, 13, 20, 0) 62%,
                rgba(10, 13, 20, 0.28) 78%,
                rgba(10, 13, 20, 0.70) 100%);
    }
    .hero.hm-hero::after { background: none; }

    .hm-hero .hero-copy { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 26px rgba(0, 0, 0, 0.45); }

    /* Cristales neutros en vez de azules */
    .hm-hero .hero-benefits,
    .hm-hero .proof-audit,
    .hm-dstep {
        border-color: rgba(255, 255, 255, 0.20);
        background: rgba(14, 18, 26, 0.38);
        backdrop-filter: blur(18px) saturate(1.4);
        -webkit-backdrop-filter: blur(18px) saturate(1.4);
    }
    .hm-hero .proof-audit { background: rgba(14, 18, 26, 0.48); }
    .hm-hero .btn-soft { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.38); }
    .hm-hero .proof-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 255, 255, 0.25); }
    .hm-online { border-color: #fff; }
}

/* ═══════════════════════════════════════════════════════════════
   Color "hora dorada" (16 nov 2026)
   Paleta sacada de la propia foto: sol cálido arriba a la derecha,
   turquesa del mar abajo a la izquierda, azul de marca en el claim.
   Todo por capas sutiles: graduado soft-light sobre la foto, halo de
   luz y acentos finos en titular, kicker, checks y cristales.
   ═══════════════════════════════════════════════════════════════ */

/* Graduado de color sobre la foto (bajo el velo) */
.hm-hero-bg::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        radial-gradient(55% 55% at 88% 6%, rgba(255, 176, 96, 0.70), transparent 72%),
        radial-gradient(60% 55% at 6% 96%, rgba(0, 178, 196, 0.50), transparent 72%),
        radial-gradient(50% 40% at 70% 70%, rgba(255, 120, 150, 0.22), transparent 70%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.hm-hero-bg img { filter: saturate(1.22) contrast(1.06) brightness(1.03); }

/* Halo de sol (encima del velo, muy suave) */
.hero.hm-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(38% 34% at 92% 0%, rgba(255, 196, 128, 0.26), transparent 70%),
        radial-gradient(40% 30% at 0% 100%, rgba(32, 196, 210, 0.14), transparent 70%);
    pointer-events: none;
}

/* Claim: del azul de marca al cielo y un final arena cálido */
.hm-hero .h1-grad {
    background:
        linear-gradient(115deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 58%) no-repeat,
        linear-gradient(100deg, #5b97ff 0%, #79c4ff 48%, #b9e3ff 72%, #ffd6a6 100%);
    background-size: 240% 100%, 100% 100%;
    background-position: -140% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Checks: azul de marca → turquesa del mar */
.hm-hero .hero-benefits svg {
    background: linear-gradient(135deg, #0757f8, #19b6d2);
    box-shadow: 0 5px 14px rgba(25, 150, 210, 0.38);
}

/* Cristales con un borde de luz: cálido arriba, frío abajo */
.hm-hero .hero-benefits,
.hm-dstep {
    border-color: transparent;
    background-image:
        linear-gradient(rgba(14, 18, 26, 0.40), rgba(14, 18, 26, 0.40)),
        linear-gradient(135deg, rgba(255, 214, 166, 0.55), rgba(255, 255, 255, 0.12) 45%, rgba(121, 196, 255, 0.45));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* Paso activo: azul de marca con reflejo turquesa */
.hm-demo[data-phase="1"] .hm-dstep[data-for="1"],
.hm-demo[data-phase="2"] .hm-dstep[data-for="2"],
.hm-demo[data-phase="3"] .hm-dstep[data-for="3"] {
    background-image:
        linear-gradient(135deg, #0757f8, #2f86ff 60%, #19b6d2),
        linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
    box-shadow: 0 12px 28px rgba(7, 87, 248, 0.40);
}

/* Botón principal con un matiz más luminoso */
.hm-hero .hero-ctas .btn-primary {
    background: linear-gradient(135deg, #0757f8 0%, #2a7bff 70%, #3a95ff 100%);
    box-shadow: 0 14px 30px rgba(7, 87, 248, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (min-width: 1024px) {
    /* En escritorio el velo navy de la izquierda recibe un toque de mar */
    .hm-hero-bg::before {
        background:
            radial-gradient(50% 60% at 92% 4%, rgba(255, 176, 96, 0.75), transparent 72%),
            radial-gradient(55% 60% at 4% 92%, rgba(0, 178, 196, 0.55), transparent 72%),
            radial-gradient(40% 40% at 78% 72%, rgba(255, 120, 150, 0.22), transparent 70%);
    }
}

/* Kicker del hero: punto verde "disponible" (mismo verde que el avatar) */
.hm-hero .h1-kicker::before {
    background: #2ee06a;
    box-shadow: 0 0 0 4px rgba(46, 224, 106, 0.20), 0 0 10px rgba(46, 224, 106, 0.55);
}

/* Nombre del autor enlazado a su perfil de Google (reseñas vía API) */
.hm-review-who strong a { color: inherit; text-decoration: none; }
.hm-review-who strong a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
