/* rm-hero — portada a sangre de /registro-de-marca/ sobre la bóveda abierta (Flow). Capas: foto con zoom lento +
   parallax por scroll (animation-timeline, solo si el navegador lo soporta), haz naranja que respira, chispas lima que
   suben, velo tinta (nunca a blanco). Títulos que salen de una máscara línea por línea. Prueba interactiva «TU MARCA®».
   También trae la utilidad .rm-rev (aparición ligada al scroll) que usan las demás secciones de la página. */

body:not(.home) main.rm-pag { padding-top: 0; }
body:has(.rm-pag) .pf-cta { display: none; } /* el pie trae su invitación a WhatsApp: aquí sobra */

@property --rm-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.rmh { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 100svh; overflow: hidden; background: #121011; color: #fff; }
.rmh__in { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto; padding: 120px var(--m) 72px; }

/* ── Fondo ── */
.rmh__fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rmh__fondo picture, .rmh__fondo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rmh__fondo img { object-fit: cover; object-position: 70% 50%; transform-origin: 66% 50%; animation: rmh-zoom 2.4s var(--ease) both, rmh-respira 14s ease-in-out 2.4s infinite alternate; }
@keyframes rmh-zoom { from { transform: scale(1.18); filter: brightness(.2); } }
@keyframes rmh-respira { to { transform: scale(1.06); } }
.rmh__haz { position: absolute; left: 62%; top: 45%; width: 70vmax; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 91, 35, .45), rgba(255, 91, 35, 0)); mix-blend-mode: screen; animation: rmh-haz 4s ease-in-out infinite alternate; }
@keyframes rmh-haz { from { opacity: .55; transform: translate(-50%, -50%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.rmh__velo { position: absolute; inset: 0; background: linear-gradient(0deg, #121011 0, rgba(18, 16, 17, .88) 34%, rgba(18, 16, 17, .25) 70%, rgba(18, 16, 17, .7) 100%); }
.rmh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 3; background: linear-gradient(90deg, transparent, #FF5B23 30%, #D2FB8C 70%, transparent); }

/* Chispas: 10 puntos lima/naranja que suben desde la bóveda a distinto ritmo */
.rmh__chispas { position: absolute; left: 50%; top: 20%; width: 34%; height: 60%; }
.rmh__chispas i { position: absolute; bottom: 0; left: calc(var(--x) * 1%); width: 4px; height: 4px; border-radius: 50%; background: #D2FB8C; box-shadow: 0 0 10px 2px rgba(210, 251, 140, .7); opacity: 0; animation: rmh-chispa var(--d) linear var(--t) infinite; }
.rmh__chispas i:nth-child(odd) { background: #FF5B23; box-shadow: 0 0 12px 2px rgba(255, 91, 35, .8); }
.rmh__chispas i:nth-child(1) { --x: 8; --d: 5s; --t: 0s; }
.rmh__chispas i:nth-child(2) { --x: 22; --d: 6.5s; --t: 1.2s; }
.rmh__chispas i:nth-child(3) { --x: 35; --d: 4.6s; --t: 2.1s; }
.rmh__chispas i:nth-child(4) { --x: 47; --d: 7s; --t: .6s; }
.rmh__chispas i:nth-child(5) { --x: 58; --d: 5.4s; --t: 3s; }
.rmh__chispas i:nth-child(6) { --x: 66; --d: 6s; --t: 1.8s; }
.rmh__chispas i:nth-child(7) { --x: 74; --d: 4.8s; --t: 2.6s; }
.rmh__chispas i:nth-child(8) { --x: 83; --d: 6.8s; --t: .3s; }
.rmh__chispas i:nth-child(9) { --x: 91; --d: 5.2s; --t: 3.6s; }
.rmh__chispas i:nth-child(10) { --x: 15; --d: 7.4s; --t: 4.2s; }
@keyframes rmh-chispa { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate3d(18px, -46vh, 0) scale(1.2); } }

/* ── Texto ── */
.rmh__ceja { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(18, 16, 17, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .03em; animation: rmh-sube .9s var(--ease) .3s both; }
.rmh__ceja b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #D2FB8C; color: #121011; font-size: 16px; font-weight: 800; }
@keyframes rmh-sube { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

.rmh__h1 { margin: 0; font-family: 'Marko Display', var(--f) !important; font-weight: 800 !important; font-size: clamp(38px, 10.4vw, 108px); line-height: .98 !important; letter-spacing: .004em !important; word-spacing: -.06em; text-transform: lowercase; color: #fff; }
.rmh__l { display: block; overflow: hidden; padding-bottom: .06em; }
.rmh__l > span { display: inline-block; animation: rmh-linea 1.1s var(--ease) both; }
.rmh__l:nth-child(1) > span { animation-delay: .35s; }
.rmh__l:nth-child(2) > span { animation-delay: .47s; }
.rmh__l:nth-child(3) > span { animation-delay: .59s; }
@keyframes rmh-linea { from { transform: translate3d(0, 105%, 0) rotate(3deg); } }
/* «protégela hoy.» con relleno naranja-lima que corre por las letras */
.rmh__l--acento > span { background: linear-gradient(100deg, #FF5B23 0 40%, #FFB08F 50%, #FF5B23 60% 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rmh-linea 1.1s var(--ease) .59s both, rmh-brillo 5s linear 2s infinite; }
.rmh__l--acento .chispa { color: #D2FB8C; -webkit-text-fill-color: #D2FB8C; }
@keyframes rmh-brillo { to { background-position: -250% 0; } }

.rmh__lead { max-width: 52ch; margin-top: 20px; color: rgba(255, 255, 255, .84); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; animation: rmh-sube .9s var(--ease) .8s both; }

/* ── Prueba «TU MARCA®» ── */
.rmh__prueba { display: grid; grid-template-areas: "vista" "campo" "cta"; gap: 12px; max-width: 640px; margin-top: 26px; padding: 14px; border-radius: 22px; background: rgba(18, 16, 17, .6); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); position: relative; animation: rmh-sube .9s var(--ease) .95s both; }
/* borde que gira con un degradado cónico naranja → lima (con @property) */
.rmh__prueba::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: conic-gradient(from var(--rm-ang), rgba(255, 255, 255, .12) 0 60%, #FF5B23 75%, #D2FB8C 85%, rgba(255, 255, 255, .12) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: rm-gira 6s linear infinite; pointer-events: none; }
@keyframes rm-gira { to { --rm-ang: 360deg; } }
.rmh__campo { grid-area: campo; display: grid; gap: 6px; }
.rmh__vista { grid-area: vista; }
.rmh__cta { grid-area: cta; }
.rmh__campo-eti { padding-left: 4px; color: rgba(255, 255, 255, .72); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rmh__campo input { width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: 16px; transition: box-shadow .2s, background-color .2s; }
.rmh__campo input::placeholder { color: rgba(255, 255, 255, .45); }
.rmh__campo input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.rmh__campo input:focus { outline: none; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px #D2FB8C; }
.rmh__vista { margin: 0; display: flex; align-items: flex-start; gap: 2px; min-width: 0; padding: 2px 4px 0; font-family: 'Marko Display', var(--f); font-weight: 800; font-size: clamp(30px, 7vw, 54px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.rmh__nombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.rmh__vista.is-vacio .rmh__nombre { color: rgba(255, 255, 255, .3); }
.rmh__r { flex: none; margin-top: -.08em; color: #FF5B23; font-size: .5em; text-shadow: 0 0 18px rgba(255, 91, 35, .8); }
.rmh__r.is-sella { animation: rmh-sella .7s var(--ease); }
@keyframes rmh-sella { 0% { transform: scale(2.6) rotate(-25deg); opacity: 0; } 55% { transform: scale(.85) rotate(4deg); opacity: 1; } 100% { transform: none; } }

/* ── Botón ── */
.rmh__cta { position: relative; gap: 10px; max-width: 100%; min-height: 60px; white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; box-shadow: 0 0 0 0 rgba(255, 91, 35, .6); animation: rmh-llama 2.6s ease-out 2s infinite; }
@keyframes rmh-llama { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 35, .55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255, 91, 35, 0); } }
.rmh__flecha { display: inline-block; transition: transform .3s var(--ease); }
.rmh__cta:hover .rmh__flecha { transform: translateX(5px); }
.rmh__cta:focus-visible { outline: 2px solid #D2FB8C; outline-offset: 3px; }

/* Indicador para bajar */
.rmh__baja { position: absolute; z-index: 3; right: var(--m); bottom: 28px; display: none; width: 44px; height: 64px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.rmh__baja i { position: absolute; left: 50%; top: 12px; width: 4px; height: 10px; margin-left: -2px; border-radius: 4px; background: #D2FB8C; animation: rmh-rueda 1.8s var(--ease) infinite; }
.rmh__baja:hover { box-shadow: inset 0 0 0 1.5px #D2FB8C; }
.rmh__baja:focus-visible { outline: 2px solid #D2FB8C; outline-offset: 3px; }
@keyframes rmh-rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }

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

/* ── Escritorio: texto a la izquierda, la bóveda respira a la derecha ── */
@media (min-width: 960px) {
	.rmh { align-items: center; }
	.rmh__in { padding: 124px var(--m) 48px; }
	.rmh__fondo img { object-position: 50% 50%; }
	.rmh__velo { background: linear-gradient(90deg, #121011 0, rgba(18, 16, 17, .9) 30%, rgba(18, 16, 17, .2) 62%, rgba(18, 16, 17, 0) 100%), linear-gradient(0deg, #121011 0, rgba(18, 16, 17, 0) 30%); }
	.rmh__h1, .rmh__lead { max-width: 820px; }
	.rmh__h1 { max-width: none; font-size: clamp(48px, 5vw, 84px); }
	.rmh__vista { font-size: clamp(32px, 3vw, 46px); }
	.rmh__lead { margin-top: 14px; }
	.rmh__prueba { margin-top: 20px; }
	.rmh__prueba { max-width: 780px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "vista vista" "campo cta"; align-items: end; gap: 10px 12px; padding: 16px; }
	.rmh__cta { min-height: 50px; font-size: 16px; padding-inline: 22px; }
	.rmh__baja { display: block; }
	/* parallax del fondo ligado al scroll */
	@supports (animation-timeline: scroll()) {
		.rmh__fondo picture { animation: rmh-para linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
		@keyframes rmh-para { to { transform: translate3d(0, 18vh, 0); } }
	}
}
/* ── Móvil y tablet: la bóveda va como banda de foto nítida justo bajo la cabecera (en móvil la cabecera va en el flujo, no encima; sin velo oscuro arriba) y el texto
   arranca encima de su borde inferior: nada de hueco vacío arriba. --rmh-f = alto de la foto. ── */
@media (max-width: 959px) {
	.rmh { --rmh-f: clamp(210px, 58vw, 400px); min-height: 0; align-items: start; }
	.rmh__fondo picture { top: 0; bottom: auto; height: var(--rmh-f); }
	/* encuadre más cerrado sobre el ® (la foto 16:9 deja techo oscuro arriba en pantallas angostas) */
	.rmh__fondo picture { overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 45%, transparent 100%); }
	.rmh__fondo img { inset: auto; top: -14%; left: -24%; width: 142%; max-width: none; height: 124%; object-position: 62% 48%; }
	.rmh__velo { display: none; }
	.rmh__haz { top: calc(var(--rmh-f) * .48); left: 62%; width: 90vw; }
	.rmh__chispas { left: 38%; width: 50%; top: 0; height: calc(var(--rmh-f) * .8); }
	.rmh__in { padding-top: calc(var(--rmh-f) * .5); padding-bottom: 40px; }
	.rmh__h1, .rmh__ceja { text-shadow: 0 2px 18px rgba(18, 16, 17, .85); }
	.rmh__l--acento > span { text-shadow: none; filter: drop-shadow(0 2px 14px rgba(18, 16, 17, .85)); }
	.rmh__ceja { margin-bottom: 14px; }
	.rmh__h1 { font-size: clamp(38px, 10.6vw, 72px); }
	.rmh__lead { margin-top: 14px; font-size: 16px; }
	.rmh__prueba { margin-top: 20px; }
}
@media (max-width: 420px) {
	.rmh__cta { width: 100%; padding-inline: 18px; font-size: 16px; }
	.rmh__prueba { padding: 12px; }
}

/* ── Utilidad de toda la página: aparición ligada al scroll ── */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.rm-rev { animation: rm-rev linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
		@keyframes rm-rev { from { opacity: 0; transform: translate3d(0, 50px, 0) scale(.98); filter: blur(6px); } }
	}
}

@media (prefers-reduced-motion: reduce) {
	.rmh *, .rmh *::before { animation: none !important; }
	.rmh__chispas { display: none; }
}

/* Precio y aviso «no somos el IMPI» (cambios para Google Ads, 13-nov-2026). Gris claro sobre la bóveda oscura: AA. */
.rmh__precio { margin: 16px 0 0; color: rgba(255, 255, 255, .9); font-size: 15.5px; line-height: 1.5; animation: rmh-sube .9s var(--ease) .88s both; }
.rmh__precio b { color: #D2FB8C; font-size: 17px; }
.rmh__aviso { max-width: 640px; margin: 12px 0 0; color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.5; animation: rmh-sube .9s var(--ease) 1.05s both; }
