/* rs-hero — hero de /redes-sociales/. Fondo propio «malla social» (distinto a /web/ aurora+rejilla y /marketing/ ondas+partículas):
   manchas de color que respiran, anillos de historias flotando y reacciones que suben. Escena: feed + reel + comentarios + seguidores.
   Solo transform/opacity; .is-pausado congela todo fuera de pantalla. */

.rsh { --tel: clamp(236px, 19vw, 284px); position: relative; isolation: isolate; overflow: hidden; background: #140c18; color: #fff; }
/* Cabecera transparente: el hero arranca bajo ella (m360.css da 76px a main en interiores) */
body:not(.home) main.rs-pag { padding-top: 0; }
.rsh__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1320px; min-height: min(100svh, 880px); margin: 0 auto; padding: calc(112px + clamp(16px, 3vw, 44px)) var(--m) clamp(56px, 6vw, 96px); }

/* ── Fondo: malla de color ── */
.rsh__fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.rsh__fondo > i { position: absolute; display: block; }
.rsh__malla { border-radius: 50%; filter: blur(70px); opacity: .75; will-change: transform; }
.rsh__malla--a { left: -12%; top: -18%; width: 58vw; max-width: 820px; aspect-ratio: 1; background: radial-gradient(closest-side, #FF3D6E, rgba(255, 61, 110, 0)); animation: rsh-deriva 16s ease-in-out infinite alternate; }
.rsh__malla--b { right: -14%; top: 4%; width: 52vw; max-width: 760px; aspect-ratio: 1; background: radial-gradient(closest-side, #FF5B23, rgba(255, 91, 35, 0)); animation: rsh-deriva 19s ease-in-out -6s infinite alternate-reverse; }
.rsh__malla--c { left: 28%; bottom: -34%; width: 50vw; max-width: 720px; aspect-ratio: 1; background: radial-gradient(closest-side, #7B4DFF, rgba(123, 77, 255, 0)); opacity: .6; animation: rsh-deriva 22s ease-in-out -3s infinite alternate; }
.rsh__malla--d { right: 8%; bottom: -10%; width: 26vw; max-width: 380px; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(210, 251, 140, .8), rgba(210, 251, 140, 0)); opacity: .35; animation: rsh-deriva 14s ease-in-out -8s infinite alternate-reverse; }
@keyframes rsh-deriva { to { transform: translate3d(8%, 10%, 0) scale(1.18); } }
.rsh__velo { inset: 0; background: linear-gradient(180deg, rgba(14, 8, 16, .9) 0, rgba(14, 8, 16, .35) 140px, transparent 280px), linear-gradient(90deg, rgba(14, 8, 16, .82) 0, rgba(14, 8, 16, .4) 44%, transparent 70%), linear-gradient(0deg, rgba(14, 8, 16, .7), transparent 160px); }
.rsh__grano { inset: 0; opacity: .12; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Anillos de historias: aro degradado con un «avatar» vacío, flotan despacio */
.rsh__anillos i { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, #FF5B23, #FF3D6E, #D2FB8C, #FF5B23); opacity: .5; animation: rsh-flota 9s ease-in-out var(--d) infinite alternate; }
.rsh__anillos b { display: block; width: 100%; height: 100%; border: 3px solid #140c18; border-radius: 50%; background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .28) 0 18%, transparent 19%), radial-gradient(ellipse 34% 26% at 50% 86%, rgba(255, 255, 255, .22) 0 98%, transparent 100%), #2a1c2c; }
@keyframes rsh-flota { to { transform: translate3d(0, -26px, 0) rotate(8deg); } }

/* Reacciones que suben desde abajo */
.rsh__reac i { position: absolute; left: var(--x); bottom: -40px; font-size: 22px; font-style: normal; line-height: 1; opacity: 0; animation: rsh-sube var(--t) linear var(--d) infinite; will-change: transform, opacity; }
@keyframes rsh-sube { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.7); } 10% { opacity: .55; } 50% { transform: translate3d(18px, -45vh, 0) scale(1); } 85% { opacity: .35; } 100% { opacity: 0; transform: translate3d(-10px, -90vh, 0) scale(1.1); } }

.rsh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #FF3D6E 25%, #FF5B23 55%, #D2FB8C 80%, transparent); box-shadow: 0 0 18px rgba(255, 61, 110, .55); }

/* ── Texto ── */
.rsh__txt { position: relative; z-index: 2; min-width: 0; }
.rsh__txt > * { animation: rsh-entra .9s var(--ease) both; }
.rsh__txt > :nth-child(2) { animation-delay: .08s; }
.rsh__txt > :nth-child(3) { animation-delay: .16s; }
.rsh__txt > :nth-child(4) { animation-delay: .24s; }
.rsh__txt > :nth-child(5) { animation-delay: .32s; }
@keyframes rsh-entra { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

.rsh__ceja { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .86); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.rsh__vivo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(90deg, #FF3D6E, #FF5B23); color: #fff; font-size: 11px; letter-spacing: .08em; }
.rsh__vivo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: rsh-latido 1.6s ease-in-out infinite; }
@keyframes rsh-latido { 50% { opacity: .3; } }

.rsh h1 { max-width: 13ch; font-family: 'Marko Display', var(--f) !important; font-weight: 800 !important; font-size: clamp(42px, 5.3vw, 84px); line-height: 1 !important; letter-spacing: .004em !important; word-spacing: -.06em; text-transform: lowercase; color: #fff; text-wrap: balance; }
.rsh h1 .chispa { background: linear-gradient(135deg, #FF3D6E 10%, #FF5B23 50%, #D2FB8C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rsh__lead { max-width: 46ch; margin-top: 22px; color: rgba(255, 255, 255, .74); font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6; }
.rsh__lead b { color: #fff; font-weight: 600; }

.rsh__redes { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.rsh__redes li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .86); font-size: 13px; font-weight: 500; }
.rsh__redes li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 200deg, #FF5B23, #FF3D6E, #D2FB8C, #FF5B23); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
.rsh__redes li.rsh__mas { padding-left: 13px; color: rgba(255, 255, 255, .6); background: none; }
.rsh__redes li.rsh__mas::before { display: none; }

.rsh__acc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rsh__cta { min-height: 56px; box-shadow: 0 14px 34px -14px rgba(255, 91, 35, .85); }
.rsh__sec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 24px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s, box-shadow .3s, transform .3s var(--ease); }
.rsh__sec:hover { background: rgba(210, 251, 140, .14); box-shadow: inset 0 0 0 1.5px var(--lima); transform: translateY(-3px); }
.rsh__sec svg { transition: transform .3s var(--ease); }
.rsh__sec:hover svg { transform: translateY(3px); }
.rsh a:focus-visible { outline: 2px solid var(--lima); outline-offset: 4px; }

/* ── Escena ── */
.rsh__escena { position: relative; height: clamp(540px, 44vw, 640px); min-width: 0; }

/* Tarjeta de perfil (atrás) */
.rsh__feed { position: absolute; left: 0; top: 7%; z-index: 1; width: clamp(230px, 19vw, 270px); padding: 14px; border-radius: 22px; background: rgba(251, 248, 244, .97); color: #121011; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); transform: rotate(-6deg); animation: rsh-carta 1.1s var(--ease) .35s both; }
@keyframes rsh-carta { from { opacity: 0; transform: translate3d(-30px, 20px, 0) rotate(-12deg); } }
.rsh__fcab { display: flex; align-items: center; gap: 10px; }
.rsh__fava { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #FF5B23; color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 0 0 2px #FBF8F4, 0 0 0 4px #FF3D6E; }
.rsh__fdat { display: grid; line-height: 1.2; }
.rsh__fdat b { font-size: 14px; }
.rsh__fdat small { color: #6C6A6C; font-size: 11.5px; }
.rsh__fnum { display: flex; gap: 18px; margin: 12px 0 10px; }
.rsh__fnum span { display: grid; line-height: 1.15; }
.rsh__fnum b { font-size: 15px; font-variant-numeric: tabular-nums; }
.rsh__fnum small { color: #6C6A6C; font-size: 11px; }
.rsh__fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 10px; overflow: hidden; }
.rsh__t { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #EFEEEC; opacity: 0; transform: scale(.6); animation: rsh-pop .55s cubic-bezier(.2, 1.4, .4, 1) calc(.9s + var(--k) * .22s) both; }
.rsh__t img { width: 100%; height: 100%; object-fit: cover; }
.rsh__t b { padding: 4px; font-size: 10.5px; font-weight: 800; line-height: 1.1; text-align: center; text-transform: lowercase; }
.rsh__t--txt { background: #FF5B23; color: #fff; }
.rsh__t--lima { background: var(--lima); color: #121011; }
@keyframes rsh-pop { to { opacity: 1; transform: none; } }

/* Celular (al frente) */
.rsh__tel { position: absolute; left: 58%; top: 50%; z-index: 2; width: var(--tel); aspect-ratio: 9 / 18.6; padding: 9px; border-radius: calc(var(--tel) * .16); background: linear-gradient(160deg, #3a3637, #121011 40%, #2a2627); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 90px -30px #000; transform: translate(-50%, -50%) rotate(3deg); animation: rsh-tel 1.1s var(--ease) .2s both; }
@keyframes rsh-tel { from { opacity: 0; transform: translate(-50%, -42%) rotate(8deg) scale(.94); } }
.rsh__pantalla { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--tel) * .13); background: #1c1a1b; color: #fff; }
.rsh__pantalla::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 24%; background: linear-gradient(rgba(0, 0, 0, .5), transparent); }
.rsh__pantalla::after { content: ""; position: absolute; inset: auto 0 0; z-index: 1; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.rsh__reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity .8s ease, transform 6s linear; }
.rsh__reel.is-on { opacity: 1; transform: scale(1); }
.rsh__barras { position: absolute; left: 10px; right: 10px; top: 12px; z-index: 2; display: flex; gap: 4px; }
.rsh__barras i { flex: 1; height: 2.5px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .3); }
.rsh__barras b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.rsh__barras i.is-hecha b { transform: scaleX(1); }
.rsh__barras i.is-on b { animation: rsh-barra var(--rsh-dur, 5s) linear both; }
@keyframes rsh-barra { to { transform: scaleX(1); } }
.rsh__perfil { position: absolute; left: 12px; top: 24px; z-index: 2; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; font-size: 12px; line-height: 1.2; }
.rsh__perfil em { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(from 200deg, #FF5B23, #FF3D6E, #D2FB8C, #FF5B23); box-shadow: 0 0 0 2px #121011 inset; }
.rsh__perfil small { color: rgba(255, 255, 255, .72); font-size: 10.5px; }
.rsh__acciones { position: absolute; right: 10px; bottom: 22%; z-index: 2; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.rsh__acciones > span { display: flex; flex-direction: column; align-items: center; gap: 2px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.rsh__like svg { color: #FF3D6E; }
.rsh__acciones small { font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rsh__like.is-late svg { animation: rsh-late .5s var(--ease); }
@keyframes rsh-late { 40% { transform: scale(1.4); } }
.rsh__cap { position: absolute; left: 12px; right: 52px; bottom: 16px; z-index: 2; font-size: 11.5px; line-height: 1.35; color: rgba(255, 255, 255, .9); }
.rsh__cap b { color: #fff; }
/* Corazones que suben del botón de me gusta */
.rsh__corazones { position: absolute; right: 14px; bottom: 30%; z-index: 2; width: 24px; height: 0; }
.rsh__corazones i { position: absolute; left: 4px; bottom: 0; width: 14px; height: 14px; opacity: 0; background: #FF3D6E; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%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 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center / contain no-repeat; animation: rsh-corazon 3s ease-out infinite; }
.rsh__corazones i:nth-child(2) { animation-delay: .5s; background: #FF5B23; }
.rsh__corazones i:nth-child(3) { animation-delay: 1s; background: #fff; }
.rsh__corazones i:nth-child(4) { animation-delay: 1.5s; }
.rsh__corazones i:nth-child(5) { animation-delay: 2s; background: var(--lima); }
.rsh__corazones i:nth-child(6) { animation-delay: 2.5s; background: #FF5B23; }
@keyframes rsh-corazon { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate3d(-22px, -140px, 0) scale(1.15) rotate(-14deg); } }

/* Comentarios / mensajes */
.rsh__chat { position: absolute; right: -2%; top: 10%; z-index: 3; display: grid; justify-items: end; gap: 10px; width: 250px; }
.rsh__msg { display: grid; gap: 2px; max-width: 240px; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: rgba(251, 248, 244, .97); color: #121011; box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .75); font-size: 13.5px; line-height: 1.3; animation: rsh-burbuja .6s cubic-bezier(.2, 1.3, .4, 1) calc(1.2s + var(--k) * .5s) both; }
.rsh__msg b { color: #6C6A6C; font-size: 11px; font-weight: 600; }
.rsh__msg--r { justify-self: start; border-radius: 18px 18px 18px 6px; background: linear-gradient(135deg, #FF5B23, #FF3D6E); color: #fff; }
.rsh__msg--r b { color: rgba(255, 255, 255, .8); }
.rsh__msg.is-sale { animation: rsh-sale .35s ease-in both; }
@keyframes rsh-burbuja { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.86); } }
@keyframes rsh-sale { to { opacity: 0; transform: translate3d(0, -12px, 0) scale(.94); } }

/* Seguidores */
.rsh__seg { position: absolute; left: 6%; bottom: 6%; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; background: rgba(28, 20, 30, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -24px #000; animation: rsh-entra .9s var(--ease) 1.6s both; }
.rsh__seg > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--lima); color: #121011; }
.rsh__seg > span { display: grid; line-height: 1.1; }
.rsh__seg b { color: var(--lima); font-family: 'Marko Display', var(--f); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rsh__seg b.is-sube { animation: rsh-late .5s var(--ease); }
.rsh__seg small { color: rgba(255, 255, 255, .7); font-size: 12px; }

.rsh.is-pausado *, .rsh.is-pausado *::before, .rsh.is-pausado *::after { animation-play-state: paused !important; }

/* ── Laptop ── */
@media (max-width: 1180px) {
	.rsh__chat { right: 0; width: 220px; }
	.rsh__msg { font-size: 12.5px; }
}

/* ── Tablet: una columna, escena centrada ── */
@media (max-width: 960px) {
	.rsh { --tel: 244px; }
	.rsh__in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 20px; padding-top: calc(112px + 28px); }
	.rsh h1 { max-width: 15ch; }
	.rsh__escena { width: min(100%, 600px); height: 560px; margin: 0 auto; }
	.rsh__velo { background: linear-gradient(180deg, rgba(14, 8, 16, .9) 0, rgba(14, 8, 16, .5) 160px, transparent 340px), linear-gradient(0deg, rgba(14, 8, 16, .7), transparent 160px); }
}

/* ── Celular: escena compacta y compuesta (feed atrás a la izquierda, celular a la derecha, burbujas encima) ── */
@media (max-width: 600px) {
	.rsh { --tel: min(50vw, 214px); }
	.rsh__in { gap: 4px; padding-top: calc(96px + 20px); padding-bottom: 40px; }
	.rsh__ceja { margin-bottom: 16px; font-size: 12px; letter-spacing: .06em; }
	.rsh h1 { font-size: clamp(38px, 11vw, 54px); }
	.rsh__lead { margin-top: 14px; font-size: 15.5px; }
	.rsh__redes { gap: 6px; margin-top: 18px; }
	.rsh__redes li { padding: 5px 11px 5px 5px; font-size: 12px; }
	.rsh__redes li::before { width: 15px; height: 15px; }
	.rsh__acc { margin-top: 24px; }
	.rsh__cta, .rsh__sec { flex: 1 1 100%; }
	.rsh__escena { height: calc(var(--tel) * 18.6 / 9 + 40px); margin-top: 12px; }
	.rsh__tel { left: 64%; top: 50%; padding: 7px; }
	.rsh__feed { top: 4%; width: min(46vw, 190px); padding: 10px; border-radius: 16px; }
	.rsh__fava { width: 30px; height: 30px; font-size: 13px; }
	.rsh__fdat b { font-size: 12px; }
	.rsh__fdat small, .rsh__fnum small { font-size: 9.5px; }
	.rsh__fnum { gap: 12px; margin: 8px 0 7px; }
	.rsh__fnum b { font-size: 12.5px; }
	.rsh__t b { font-size: 8px; }
	.rsh__chat { left: 0; right: auto; top: auto; bottom: 22%; justify-items: start; width: min(58vw, 230px); gap: 7px; }
	.rsh__msg { padding: 8px 11px; font-size: 12px; }
	.rsh__msg--r { justify-self: end; }
	.rsh__seg { left: auto; right: 0; bottom: 0; gap: 9px; padding: 9px 13px 9px 9px; border-radius: 16px; background: rgba(28, 20, 30, .94); }
	.rsh__seg > i { width: 32px; height: 32px; border-radius: 10px; }
	.rsh__seg b { font-size: 22px; }
	.rsh__seg small { font-size: 11px; }
	.rsh__reac i:nth-child(n+7), .rsh__anillos i:nth-child(n+5) { display: none; }
	.rsh__malla { filter: blur(50px); }
}

@media (max-width: 370px) {
	.rsh__chat { width: 62vw; }
	.rsh__msg b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rsh *, .rsh *::before, .rsh *::after { animation: none !important; transition: none !important; }
	.rsh__t { opacity: 1; transform: none; }
	.rsh__barras i.is-on b { transform: scaleX(1); }
	.rsh__reac, .rsh__corazones { display: none; }
}
