/* ═══════════════════════════════════════════════════════════════
   Redes Sociales — hero "De un post a un cliente" + proceso (31 oct 2026)
   Solo se carga en la plantilla de Redes Sociales.
   Mismo lenguaje que el hero del inicio (.hm-hero): foto real de fondo
   con velo azul marino a la izquierda, texto blanco y demo animada.
   La demo (.rsh-demo) la conduce redes-hero.js vía data-step (0–5) y
   data-phase (1 publicar · 2 reacciones · 3 mensajes). El móvil escala
   con --phone-w: todo lo de dentro va en em (pantalla = --phone-w / 20).
   Base = móvil; se amplía con min-width.
   ═══════════════════════════════════════════════════════════════ */
.hero.rsh-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "demo";
    align-items: center;
    column-gap: clamp(32px, 4vw, 72px);
    min-height: 0;
    padding: calc(var(--header-h) + 18px) 18px 56px;
    overflow-x: clip;
    background: #0b1f45;
}

.hero.rsh-hero::before { content: none; }

.hero.rsh-hero::after {
    height: 100%;
    background: radial-gradient(60% 34% at 50% 78%, rgba(7, 87, 248, 0.22), transparent 70%);
}

/* Fondo en su propia capa recortada (zoom lento sin salirse del hero) */
.rsh-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.rsh-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 58% 40%;
    animation: rsh-kenburns 32s ease-in-out infinite alternate;
    transform-origin: 60% 45%;
    will-change: transform;
}

/* Velo: en móvil, sólido arriba (texto) y se abre en la zona del móvil */
.rsh-bg::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(9, 26, 60, 0.88) 0%, rgba(9, 26, 60, 0.80) 44%, rgba(9, 26, 60, 0.34) 66%, rgba(9, 26, 60, 0.42) 86%, rgba(9, 26, 60, 0.78) 100%);
}

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

/* ── Copy (blanco sobre el velo) ── */
.rsh-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);
}

.rsh-hero .eyebrow {
    min-height: 0;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid 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);
}

.rsh-hero h1 {
    color: #fff;
    font-size: clamp(34px, 9.6vw, 62px);
    line-height: 1.02;
}

.rsh-hero .h1-grad {
    animation: none; /* el brillo heredado (h1Shine) no se ve con un solo degradado */
    background: linear-gradient(100deg, #5b97ff 5%, #8dbaff 55%, #c3dbff 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

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

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

.rsh-hero .hero-benefits {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.rsh-hero .hero-benefits li {
    gap: 9px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
}

.rsh-hero .hero-ctas {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 20px;
}

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

.rsh-hero .btn-soft {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

/* Plataformas: chip de cristal */
.rsh-hero .hero-nets {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 6px 14px 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12.5px;
    font-weight: 550;
    line-height: 1.3;
    text-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rsh-hero .hero-nets strong { color: #fff; }
.rsh-hero .hero-nets-icons { display: inline-flex; flex-shrink: 0; }

.rsh-hero .hero-nets-icons .rs-net-icon {
    width: 26px;
    height: 26px;
    border: 2px solid #0f2552;
    box-shadow: none;
}

.rsh-hero .hero-nets-icons .rs-net-icon svg { width: 12px; height: 12px; }
.rsh-hero .hero-nets-icons .rs-net-icon + .rs-net-icon { margin-left: -8px; }

/* ═══ Demo ═══ */
.rsh-demo {
    --phone-w: 214px;
    grid-area: demo;
    position: relative;
    width: 100%;
    max-width: 430px;
    height: calc(var(--phone-w) * 2.13 + 70px);
    margin: 30px auto 0;
}

/* ── Móvil realista ── */
.rsh-phone {
    position: absolute;
    top: 0;
    left: 50%;
    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,
        0 34px 70px rgba(2, 8, 24, 0.55),
        0 12px 24px rgba(2, 8, 24, 0.35);
    transform: translateX(-50%) rotate(-2deg);
}

/* Reflejo sobre el cristal */
.rsh-phone::after {
    content: '';
    position: absolute;
    inset: calc(var(--phone-w) * 0.032);
    z-index: 5;
    border-radius: calc(var(--phone-w) * 0.135);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 30%);
    pointer-events: none;
}

.rsh-btn {
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: #3b4357;
}

.rsh-btn--v1 { left: -4px; top: 22%; height: 7%; }
.rsh-btn--v2 { left: -4px; top: 31%; height: 7%; }
.rsh-btn--pw { right: -4px; top: 27%; height: 11%; }

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

/* Isla dinámica */
.rsh-screen::before {
    content: '';
    position: absolute;
    z-index: 6;
    top: 0.55em;
    left: 50%;
    width: 5.6em;
    height: 1.6em;
    border-radius: 1em;
    background: #000;
    transform: translateX(-50%);
}

/* Reel a pantalla completa */
.rsh-reel { position: absolute; inset: 0; }

.rsh-reel img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: filter 0.5s ease, transform 0.5s ease;
}

/* Sombras para leer la interfaz encima de la foto */
.rsh-reel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.72) 100%);
}

.rsh-status {
    position: absolute;
    z-index: 4;
    top: 0.7em;
    left: 1.6em;
    right: 1.3em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82em;
    font-weight: 700;
}

.rsh-status svg { width: 3.4em; height: 0.8em; fill: currentColor; }

.rsh-reel-top {
    position: absolute;
    z-index: 3;
    top: 3em;
    left: 1.1em;
    right: 1.1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.15em;
}

.rsh-reel-top strong { font-weight: 800; letter-spacing: -0.01em; }
.rsh-reel-top svg { width: 1.3em; height: 1.3em; }

/* Columna de acciones (derecha) */
.rsh-actions {
    position: absolute;
    z-index: 3;
    right: 0.7em;
    bottom: 5.2em;
    display: grid;
    gap: 1.05em;
    justify-items: center;
}

.rsh-act {
    display: grid;
    justify-items: center;
    gap: 0.2em;
    font-size: 0.78em;
    font-weight: 700;
}

.rsh-act svg {
    width: 2.1em;
    height: 2.1em;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
    transition: fill 0.25s ease, stroke 0.25s ease, transform 0.25s ease;
}

.rsh-act b { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Pie: usuario, texto y reproducciones */
.rsh-caption {
    position: absolute;
    z-index: 3;
    left: 0.95em;
    right: 4.2em;
    bottom: 1.9em;
    display: grid;
    gap: 0.45em;
}

.rsh-user { display: flex; align-items: center; gap: 0.5em; font-size: 0.86em; }

.rsh-avatar {
    flex-shrink: 0;
    width: 2em;
    height: 2em;
    border: 0.12em solid #fff;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #f4e6cf 0 32%, transparent 33%),
        linear-gradient(135deg, #e0614f, #f2a65a);
}

.rsh-user strong { font-weight: 750; }

.rsh-user em {
    padding: 0.15em 0.6em;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 0.45em;
    font-size: 0.9em;
    font-style: normal;
    font-weight: 650;
}

.rsh-caption-txt { font-size: 0.8em; line-height: 1.3; opacity: 0.94; }

.rsh-views {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.78em;
    font-weight: 700;
    opacity: 0.9;
}

.rsh-views svg { width: 1em; height: 1em; }
.rsh-views b { font-variant-numeric: tabular-nums; }

/* Barra de reproducción del reel */
.rsh-progress {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 1.2em;
    height: 0.16em;
    background: rgba(255, 255, 255, 0.25);
}

.rsh-progress::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 62%;
    background: #fff;
}

.rsh-homebar {
    position: absolute;
    z-index: 4;
    bottom: 0.45em;
    left: 50%;
    width: 7.5em;
    height: 0.3em;
    border-radius: 1em;
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
}

/* ── Paso 0–1: publicando → publicado ── */
.rsh-toast {
    position: absolute;
    z-index: 4;
    top: 45%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.65em 1.1em 0.65em 0.75em;
    border-radius: 2em;
    background: rgba(16, 20, 30, 0.72);
    font-size: 0.95em;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rsh-toast-ring,
.rsh-toast-ok {
    display: grid;
    place-items: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
}

.rsh-toast-ring {
    border: 0.2em solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: rsh-spin 0.8s linear infinite;
}

.rsh-toast-ok { display: none; background: #22c55e; }
.rsh-toast-ok svg { width: 0.95em; height: 0.95em; }
.rsh-toast-txt--ok { display: none; }

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

.rsh-demo[data-step="0"] .rsh-toast,
.rsh-demo[data-step="1"] .rsh-toast { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.rsh-demo[data-step="1"] .rsh-toast-ring,
.rsh-demo[data-step="1"] .rsh-toast-txt--wait { display: none; }
.rsh-demo[data-step="1"] .rsh-toast-ok { display: grid; }
.rsh-demo[data-step="1"] .rsh-toast-txt--ok { display: inline; }

/* Mientras publica, el reel aún se ve "en borrador" */
.rsh-demo[data-step="0"] .rsh-reel img { filter: brightness(0.6) saturate(0.7); transform: scale(1.04); }

/* El reel avanza mientras se reproduce */
.rsh-demo.is-playing .rsh-progress::after { animation: rsh-play 8.9s linear infinite; }

@keyframes rsh-play {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ── Paso 2–3: doble toque y corazones ── */
.rsh-bigheart {
    position: absolute;
    z-index: 4;
    top: 40%;
    left: 50%;
    width: 5.5em;
    height: 5.5em;
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.rsh-bigheart svg { width: 100%; height: 100%; }

.rsh-demo[data-step="2"] .rsh-bigheart { animation: rsh-pop 0.9s cubic-bezier(.2, 1.4, .4, 1) both; }

@keyframes rsh-pop {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    30%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    55%  { opacity: 1; transform: translate(-50%, -50%) scale(0.95); }
    100% { opacity: 0; transform: translate(-50%, -62%) scale(1); }
}

/* Corazón de la columna: se llena en rojo */
.rsh-demo[data-step="2"] .rsh-act--like svg,
.rsh-demo[data-step="3"] .rsh-act--like svg,
.rsh-demo[data-step="4"] .rsh-act--like svg,
.rsh-demo[data-step="5"] .rsh-act--like svg { fill: #ff3040; stroke: #ff3040; }

.rsh-demo[data-step="2"] .rsh-act--like svg { animation: rsh-beat 0.5s ease 0.15s; }

@keyframes rsh-beat {
    50% { transform: scale(1.3); }
}

/* Corazones que suben desde la columna de acciones */
.rsh-hearts {
    position: absolute;
    z-index: 3;
    right: 1em;
    bottom: 12em;
    width: 3em;
    height: 14em;
    pointer-events: none;
}

.rsh-hearts i {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1.3em;
    height: 1.3em;
    opacity: 0;
    background: #ff3040;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.3 3 4.5 6.7 4.5c2.1 0 3.6 1.1 4.3 2.6h2c.7-1.5 2.2-2.6 4.3-2.6 3.7 0 5.8 3.8 4.3 7.2C19.5 16.4 12 21 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.3 3 4.5 6.7 4.5c2.1 0 3.6 1.1 4.3 2.6h2c.7-1.5 2.2-2.6 4.3-2.6 3.7 0 5.8 3.8 4.3 7.2C19.5 16.4 12 21 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rsh-hearts i:nth-child(3n+2) { background: #fff; }
.rsh-hearts i:nth-child(4n)   { background: #ff8a3d; }

.rsh-demo[data-step="2"] .rsh-hearts i,
.rsh-demo[data-step="3"] .rsh-hearts i { animation: rsh-float 1.6s ease-out infinite; }

.rsh-hearts i:nth-child(1) { --dx: -1.6em; animation-delay: 0s !important; }
.rsh-hearts i:nth-child(2) { --dx: 0.9em;  animation-delay: 0.2s !important; }
.rsh-hearts i:nth-child(3) { --dx: -0.6em; animation-delay: 0.4s !important; }
.rsh-hearts i:nth-child(4) { --dx: 1.5em;  animation-delay: 0.6s !important; }
.rsh-hearts i:nth-child(5) { --dx: -2em;   animation-delay: 0.8s !important; }
.rsh-hearts i:nth-child(6) { --dx: 0.4em;  animation-delay: 1s !important; }
.rsh-hearts i:nth-child(7) { --dx: -1em;   animation-delay: 1.2s !important; }
.rsh-hearts i:nth-child(8) { --dx: 1.2em;  animation-delay: 1.4s !important; }

@keyframes rsh-float {
    0%   { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
    15%  { opacity: 1; transform: translate(calc(-50% + var(--dx) * 0.3), -2em) scale(1); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -13em) scale(0.8) rotate(12deg); }
}

/* ── Paso 4–5: mensajes que llegan (banners tipo iOS) ── */
.rsh-notifs {
    position: absolute;
    z-index: 5;
    top: 2.7em;
    left: 0.6em;
    right: 0.6em;
    display: grid;
    gap: 0.45em;
}

.rsh-notif {
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    padding: 0.7em 0.75em;
    border-radius: 1.2em;
    background: rgba(245, 247, 252, 0.94);
    box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.3);
    color: #0d1426;
    opacity: 0;
    transform: translateY(-140%) scale(0.96);
    transition: opacity 0.35s ease, transform 0.5s cubic-bezier(.2, 1.3, .4, 1);
}

.rsh-notif-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.2em;
    height: 2.2em;
    border-radius: 0.6em;
    background: linear-gradient(135deg, #4f5bd5, #962fbf 30%, #d62976 55%, #fa7e1e 80%, #feda75);
}

.rsh-notif-ico svg { width: 1.3em; height: 1.3em; }

.rsh-notif-body { display: grid; min-width: 0; font-size: 0.82em; line-height: 1.3; }
.rsh-notif-body small { display: flex; justify-content: space-between; color: #5f6472; font-size: 0.88em; }
.rsh-notif-body small i { font-style: normal; }
.rsh-notif-body strong { font-weight: 750; }
.rsh-notif-body span {
    display: -webkit-box;
    overflow: hidden;
    color: #2a3142;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rsh-demo[data-step="4"] .rsh-notif--1,
.rsh-demo[data-step="5"] .rsh-notif--1,
.rsh-demo[data-step="5"] .rsh-notif--2 { opacity: 1; transform: none; }

/* ── Chips de cristal alrededor del móvil ── */
.rsh-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px 9px 9px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(2, 8, 24, 0.35);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2, 1.3, .4, 1);
}

.rsh-chip > span:last-child { display: grid; }

.rsh-chip strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.rsh-chip-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #4d8dff);
    color: #fff;
}

.rsh-chip-ico svg { width: 17px; height: 17px; }

.rsh-chip--follow .rsh-chip-ico { background: linear-gradient(135deg, #16a34a, #4ade80); }

.rsh-chip--views  { top: 26%; left: 0; }
.rsh-chip--follow { top: 52%; right: 0; }

.rsh-demo[data-step="2"] .rsh-chip--views,
.rsh-demo[data-step="3"] .rsh-chip--views,
.rsh-demo[data-step="4"] .rsh-chip--views,
.rsh-demo[data-step="5"] .rsh-chip--views,
.rsh-demo[data-step="3"] .rsh-chip--follow,
.rsh-demo[data-step="4"] .rsh-chip--follow,
.rsh-demo[data-step="5"] .rsh-chip--follow { opacity: 1; transform: none; }

/* ── Pasos bajo el móvil ── */
.rsh-steps {
    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;
}

.rsh-steps li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(8, 22, 48, 0.5);
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.rsh-steps li span {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.rsh-demo[data-phase="1"] .rsh-steps li[data-for="1"],
.rsh-demo[data-phase="2"] .rsh-steps li[data-for="2"],
.rsh-demo[data-phase="3"] .rsh-steps li[data-for="3"] {
    border-color: rgba(127, 176, 255, 0.6);
    background: rgba(7, 87, 248, 0.34);
    color: #fff;
    transform: translateY(-2px);
}

.rsh-demo[data-phase="1"] .rsh-steps li[data-for="1"] span,
.rsh-demo[data-phase="2"] .rsh-steps li[data-for="2"] span,
.rsh-demo[data-phase="3"] .rsh-steps li[data-for="3"] span {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(7, 87, 248, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    .rsh-bg img,
    .rsh-toast-ring { animation: none; }
}

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

    .rsh-hero .eyebrow { padding: 8px 15px; font-size: 12px; }
    .rsh-hero .lead { font-size: clamp(17px, 1.35vw, 20px); }

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

    .rsh-hero .hero-benefits li {
        padding: 7px 14px 7px 8px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.07);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

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

    .rsh-demo { --phone-w: 236px; max-width: 540px; height: calc(var(--phone-w) * 2.13 + 80px); }
    .rsh-steps li { font-size: 12.5px; padding: 10px 11px; }
    .rsh-chip { font-size: 12px; padding: 11px 15px 11px 11px; }
    .rsh-chip strong { font-size: 18px; }
    .rsh-chip--views  { left: 2%; }
    .rsh-chip--follow { right: 2%; }
}

/* ── Escritorio: copy | demo ── */
@media (min-width: 1024px) {
    .hero.rsh-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        grid-template-areas: "copy demo";
        min-height: 820px;
        padding: calc(var(--header-h) + 40px) max(40px, calc((100% - var(--max-content)) / 2)) 64px;
    }

    .rsh-bg img { object-position: center 42%; }

    .rsh-bg::after {
        background-image:
            linear-gradient(90deg, rgba(9, 26, 60, 0.93) 0%, rgba(9, 26, 60, 0.82) 34%, rgba(9, 26, 60, 0.40) 56%, rgba(9, 26, 60, 0.12) 78%, rgba(9, 26, 60, 0.18) 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.6) 100%);
    }

    .hero.rsh-hero::after { background: radial-gradient(36% 50% at 76% 52%, rgba(7, 87, 248, 0.2), transparent 70%); }

    .rsh-hero h1 { font-size: clamp(44px, 4.3vw, 62px); }

    .rsh-demo {
        --phone-w: 264px;
        max-width: 560px;
        margin: 0 0 0 auto;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PROCESO — "De la estrategia a la ejecución" (.rsp)
   Cada cosa incluida vive dentro de la etapa en la que ocurre. Al entrar
   en pantalla (.is-visible, animations.js) el raíl se rellena, los nodos
   se encienden en orden y los ✓ aparecen; después un pulso recorre el
   raíl en bucle. Base = móvil (raíl vertical); ≥960px raíl horizontal.
   ═══════════════════════════════════════════════════════════════ */
.rsp .section-header {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.rsp .section-header p { margin-inline: auto; }

.rsp-track {
    --rail: 21px;          /* centro del nodo (móvil: eje X del raíl) */
    --dur: 1.5s;           /* lo que tarda el raíl en rellenarse */
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* Raíl de fondo + relleno + pulso */
.rsp-track::before,
.rsp-track::after {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: calc(var(--rail) - 1px);
    width: 2px;
    border-radius: 2px;
}

.rsp-track::before { background: rgba(255, 255, 255, 0.12); }

.rsp-track::after {
    background:
        linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.95) 50%, transparent 60%) 0 -150% / 100% 40% no-repeat,
        linear-gradient(180deg, #4d8dff, #0757f8);
    box-shadow: 0 0 12px rgba(77, 141, 255, 0.6);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--dur) cubic-bezier(.45, 0, .25, 1) 0.2s;
}

.rsp-track.is-visible::after {
    transform: scaleY(1);
    animation: rsp-glint 3.2s ease-in-out calc(var(--dur) + 0.4s) infinite;
}

.rsp-stage {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

/* Nodo numerado: apagado → encendido en su turno */
.rsp-node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: #0c1d42;
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    font-weight: 850;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(.2, 1.4, .4, 1);
}

.rsp-track.is-visible .rsp-node {
    border-color: transparent;
    background: linear-gradient(135deg, #0757f8, #4d8dff);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(7, 87, 248, 0.18), 0 10px 24px rgba(7, 87, 248, 0.45);
    transform: scale(1.06);
}

/* Tarjeta de cada etapa */
.rsp-card {
    height: 100%;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.5s ease, transform 0.3s ease;
}

.rsp-track.is-visible .rsp-card { border-color: rgba(127, 176, 255, 0.24); }

@media (hover: hover) {
    .rsp-card:hover { transform: translateY(-3px); border-color: rgba(127, 176, 255, 0.45); }
}

.rsp-when {
    align-self: flex-start;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(7, 87, 248, 0.22);
    color: #9cc4ff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rsp-card h3 {
    margin: 10px 0 0;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rsp-card > p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13.5px;
    line-height: 1.55;
}

/* Lo incluido en la etapa */
.rsp-items {
    display: grid;
    gap: 9px;
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}

.rsp-items li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13.5px;
    line-height: 1.4;
}

.rsp-items strong { color: #fff; font-weight: 700; }

.rsp-check {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(.2, 1.6, .4, 1);
}

.rsp-check svg { width: 11px; height: 11px; }

.rsp-track.is-visible .rsp-check { transform: scale(1); }

/* Orden de encendido: cada etapa cuando el raíl llega a ella */
.rsp-stage:nth-child(1) .rsp-node  { transition-delay: 0.2s; }
.rsp-stage:nth-child(2) .rsp-node  { transition-delay: 0.65s; }
.rsp-stage:nth-child(3) .rsp-node  { transition-delay: 1.1s; }
.rsp-stage:nth-child(4) .rsp-node  { transition-delay: 1.55s; }
.rsp-stage:nth-child(1) .rsp-check { transition-delay: 0.45s; }
.rsp-stage:nth-child(2) .rsp-check { transition-delay: 0.9s; }
.rsp-stage:nth-child(3) .rsp-check { transition-delay: 1.35s; }
.rsp-stage:nth-child(4) .rsp-check { transition-delay: 1.8s; }
.rsp-stage:nth-child(1) .rsp-items li:nth-child(2) .rsp-check { transition-delay: 0.55s; }
.rsp-stage:nth-child(1) .rsp-items li:nth-child(3) .rsp-check { transition-delay: 0.65s; }
.rsp-stage:nth-child(1) .rsp-items li:nth-child(4) .rsp-check { transition-delay: 0.75s; }
.rsp-stage:nth-child(2) .rsp-items li:nth-child(2) .rsp-check { transition-delay: 1s; }
.rsp-stage:nth-child(2) .rsp-items li:nth-child(3) .rsp-check { transition-delay: 1.1s; }

/* Mini visuales al pie de las etapas con un solo punto */
.rsp-card { display: flex; flex-direction: column; }

.rsp-viz {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
}

/* Barras de métricas que crecen al encenderse la etapa */
.rsp-viz--bars { align-items: flex-end; height: 74px; }

.rsp-viz--bars i {
    flex: 1;
    height: var(--h);
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #4d8dff, rgba(7, 87, 248, 0.35));
    transform: scaleY(0.12);
    transform-origin: bottom;
    transition: transform 0.7s cubic-bezier(.2, 1.2, .4, 1);
}

.rsp-viz--bars i:nth-child(1) { --h: 30%; transition-delay: 1.3s; }
.rsp-viz--bars i:nth-child(2) { --h: 42%; transition-delay: 1.38s; }
.rsp-viz--bars i:nth-child(3) { --h: 38%; transition-delay: 1.46s; }
.rsp-viz--bars i:nth-child(4) { --h: 58%; transition-delay: 1.54s; }
.rsp-viz--bars i:nth-child(5) { --h: 72%; transition-delay: 1.62s; }
.rsp-viz--bars i:nth-child(6) { --h: 92%; transition-delay: 1.7s; background: linear-gradient(180deg, #8dbaff, #0757f8); }

.rsp-track.is-visible .rsp-viz--bars i { transform: scaleY(1); }

/* Trimestres: se van completando y el actual late */
.rsp-viz--quarters i {
    flex: 1;
    padding: 7px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.rsp-track.is-visible .rsp-viz--quarters i:nth-child(-n+2) {
    border-color: transparent;
    background: rgba(7, 87, 248, 0.32);
    color: #fff;
}

.rsp-track.is-visible .rsp-viz--quarters i:nth-child(1) { transition-delay: 1.75s; }
.rsp-track.is-visible .rsp-viz--quarters i:nth-child(2) { transition-delay: 1.95s; }

.rsp-track.is-visible .rsp-viz--quarters i:nth-child(3) {
    border-color: rgba(127, 176, 255, 0.6);
    color: #fff;
    animation: rsp-beat-q 2.2s ease-in-out 2.4s infinite;
}

@keyframes rsp-beat-q {
    0%, 100% { box-shadow: 0 0 0 0 rgba(77, 141, 255, 0); }
    50%      { box-shadow: 0 0 0 5px rgba(77, 141, 255, 0.22); }
}

/* Destello que recorre el raíl relleno en bucle */
@keyframes rsp-glint {
    from { background-position: 0 -150%; }
    to   { background-position: 0 250%; }
}

@keyframes rsp-glint-x {
    from { background-position: -150% 0; }
    to   { background-position: 250% 0; }
}

/* Pie: garantía + CTA */
.rsp-foot {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    max-width: 1180px;
    margin: 26px auto 0;
    padding: 16px;
    border: 1px solid rgba(127, 176, 255, 0.22);
    border-radius: 18px;
    background: linear-gradient(100deg, rgba(7, 87, 248, 0.22), rgba(7, 87, 248, 0.06));
}

.rsp-foot p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}

.rsp-foot-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(7, 87, 248, 0.3);
    color: #9cc4ff;
}

.rsp-foot-ico svg { width: 20px; height: 20px; }

.rsp-foot .btn { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
    .rsp-track::after { transform: none; transition: none; }
    .rsp-node,
    .rsp-check { transition: none; }
    .rsp-check { transform: none; }
    .rsp-viz--bars i { transform: none; transition: none; }
    .rsp-track.is-visible .rsp-viz--quarters i:nth-child(3) { animation: none; }
    .rsp-track.is-visible::after { animation: none; }
}

/* ── Tablet: 2 × 2 sin raíl ── */
@media (min-width: 700px) and (max-width: 959px) {
    .rsp-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .rsp-track::before,
    .rsp-track::after { display: none; }
}

@media (min-width: 700px) {
    .rsp-foot {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 24px;
        padding: 16px 16px 16px 20px;
    }
    .rsp-foot .btn { width: auto; }
}

/* ── Escritorio: raíl horizontal, nodos arriba, tarjetas debajo ── */
@media (min-width: 960px) {
    .rsp .section-header { margin-bottom: 44px; }

    .rsp-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    /* Raíl de centro del 1er nodo al centro del último */
    .rsp-track::before,
    .rsp-track::after {
        top: 21px;
        bottom: auto;
        left: 12.5%;
        right: 12.5%;
        width: auto;
        height: 2px;
    }

    .rsp-track::after {
        background:
            linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.95) 50%, transparent 60%) -150% 0 / 40% 100% no-repeat,
            linear-gradient(90deg, #0757f8, #4d8dff);
        transform: scaleX(0);
        transform-origin: left;
    }

    .rsp-track.is-visible::after { transform: scaleX(1); animation-name: rsp-glint-x; }

    .rsp-stage {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        justify-items: center;
        gap: 18px;
    }

    .rsp-card { width: 100%; padding: 22px 20px 20px; }
}

/* Barra de progreso del reel: ancho completo escalado desde la izquierda. */
.rsh-progress::after { width: 100%; transform: scaleX(0); transform-origin: left center; }

/* Rendimiento móvil: sin Ken Burns en pantallas pequeñas. */
@media (max-width: 640px) {
    .rsh-hero-bg img { animation: none; will-change: auto; }
}
