/* nos-hero — hero de /nosotros/. Fondo propio «topográfico» (curvas de nivel en tinta con una curva índice naranja),
   distinto a aurora, señal, mira, malla, papel y burbujas de las otras páginas. Movimiento solo con transform/opacity/stroke. */

/* La cabecera es transparente aquí: el padding de 76px de m360.css sobra; el contenido baja lo que ocupa la cabecera. */
body:not(.home) main.nos-pag { padding-top: 0; }

.nos-h { position: relative; isolation: isolate; overflow: hidden; background: #121011; color: #fff; }
.nos-h__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 72px); align-items: center; max-width: 1320px; min-height: min(100svh, 880px); margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--m) clamp(56px, 6vw, 96px); }
body:has(.mh--home) .nos-h__in { padding-top: calc(112px + clamp(28px, 4vw, 64px)); }

/* ── Fondo topográfico ── */
.nos-h__fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(90% 70% at 72% 52%, #201A17 0%, #121011 70%); }
.nos-h__fondo > i { position: absolute; display: block; }
.nos-h__relieve { position: absolute; inset: -4%; width: 108%; height: 108%; fill: none; stroke: rgba(251, 248, 244, .085); stroke-width: 1.1; vector-effect: non-scaling-stroke; animation: nosh-deriva 38s ease-in-out infinite alternate; }
.nos-h__relieve path { vector-effect: non-scaling-stroke; }
.nos-h__relieve .is-indice { stroke: rgba(255, 91, 35, .26); stroke-width: 1.4; }
/* Curva que se va trazando, como quien marca la ruta en el mapa */
.nos-h__traza { stroke: #FF5B23; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .14 .86; filter: drop-shadow(0 0 6px rgba(255, 91, 35, .8)); animation: nosh-ruta 14s linear infinite; }
@keyframes nosh-ruta { to { stroke-dashoffset: -1; } }
@keyframes nosh-deriva { to { transform: translate3d(-1.5%, 1%, 0) scale(1.03); } }
.nos-h__luz { left: 74%; top: 52%; width: min(760px, 70vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 91, 35, .3), rgba(255, 91, 35, .08) 55%, rgba(18, 16, 17, 0)); transform: translate(-50%, -50%); }
.nos-h__velo { inset: 0; background: linear-gradient(180deg, rgba(18, 16, 17, .85) 0, rgba(18, 16, 17, 0) 230px), linear-gradient(0deg, rgba(18, 16, 17, .7) 0, rgba(18, 16, 17, 0) 150px); }
.nos-h::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #FF5B23 30%, #D2FB8C 70%, transparent); }

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

.nos-h__ceja { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(251, 248, 244, .05); box-shadow: inset 0 0 0 1px rgba(251, 248, 244, .12); color: rgba(255, 255, 255, .84); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nos-h__ceja::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 4px rgba(210, 251, 140, .16); }

.nos-h h1 { max-width: 13ch; font-family: 'Marko Display', var(--f) !important; font-weight: 800 !important; font-size: clamp(42px, 5.4vw, 84px); line-height: 1.01 !important; letter-spacing: .004em !important; word-spacing: -.06em; text-transform: lowercase; color: #fff; text-wrap: balance; }
.nos-h h1 .chispa { color: #FF5B23; }
.nos-h__lead { max-width: 46ch; margin-top: 22px; color: rgba(255, 255, 255, .74); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }

.nos-h__acc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nos-h__cta { min-height: 56px; box-shadow: 0 14px 34px -14px rgba(255, 91, 35, .8); }
.nos-h__sec { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--lima); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.nos-h__sec:hover { background: var(--lima); color: #121011; transform: translateY(-3px); }
.nos-h a:focus-visible, .nos-h button:focus-visible { outline: 2px solid var(--lima); outline-offset: 4px; }

.nos-h__cifras { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 14px clamp(22px, 3.4vw, 48px); margin: 44px 0 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
.nos-h__cifras div { min-width: 0; }
.nos-h__cifras dt { font-family: 'Marko Display', var(--f); font-weight: 800; font-size: clamp(32px, 3vw, 46px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.nos-h__cifras div:first-child dt { color: var(--lima); }
.nos-h__cifras dd { margin: 8px 0 0; color: rgba(255, 255, 255, .62); font-size: 14px; line-height: 1.35; }

/* ── Marko ── */
.nos-h__marko { position: relative; display: grid; justify-items: center; margin: 0; min-width: 0; animation: nosh-sube 1s var(--ease) .25s both; }
.nos-h__escena { position: relative; display: grid; place-items: center; width: min(100%, 460px); aspect-ratio: 1 / 1.08; }
.nos-h__halo { position: absolute; left: 50%; top: 52%; width: 86%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(210, 251, 140, .2), rgba(255, 91, 35, .14) 60%, rgba(18, 16, 17, 0)); transform: translate(-50%, -50%); }
/* Anillo 360: la mitad de atrás pasa detrás de Marko y la de enfrente por delante (dos capas con el mismo dibujo). */
.nos-h__anillo { position: absolute; left: -4%; right: -4%; top: 63%; width: 108%; overflow: visible; fill: none; transform: rotate(-8deg); pointer-events: none; }
.nos-h__anillo .a { stroke: rgba(210, 251, 140, .35); stroke-width: 1.5; }
.nos-h__anillo .b { stroke: #D2FB8C; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .18 .82; filter: drop-shadow(0 0 8px rgba(210, 251, 140, .9)); animation: nosh-ruta 6s linear infinite; }

.nos-h__toca { position: relative; z-index: 1; display: block; width: 78%; padding: 0; border: 0; border-radius: 40%; background: none; cursor: pointer; transform-origin: 50% 90%; animation: nosh-flota 6s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.nos-h__toca img { width: 100%; height: auto; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .55)); transition: transform .5s var(--ease); }
.nos-h__toca:hover img { transform: rotate(-3deg) scale(1.03); }
.nos-h__toca.is-saluda img { animation: nosh-saluda .7s var(--ease); }
@keyframes nosh-flota { 50% { transform: translate3d(0, -10px, 0); } }
@keyframes nosh-saluda { 30% { transform: rotate(-7deg) scale(1.05); } 65% { transform: rotate(4deg) scale(1.03); } }

.nos-h__globo { position: absolute; left: -2%; top: 6%; z-index: 2; max-width: 230px; margin: 0; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: #FBF8F4; color: #121011; font-size: 15px; font-weight: 600; line-height: 1.35; box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .8); transition: opacity .3s, transform .3s var(--ease); }
.nos-h__globo.is-cambia { opacity: 0; transform: translate3d(0, 8px, 0) scale(.96); }

.nos-h__ficha { display: grid; justify-items: center; gap: 2px; margin-top: 6px; text-align: center; }
.nos-h__ficha-k { color: var(--lima); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nos-h__ficha b { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.01em; }
.nos-h__ficha small { color: rgba(255, 255, 255, .6); font-size: 13.5px; }

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

/* ── Tablet ── */
@media (max-width: 960px) {
	.nos-h__in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 20px; }
	.nos-h h1 { max-width: 15ch; }
	.nos-h__luz { left: 50%; top: 78%; }
	.nos-h__escena { width: min(100%, 380px); }
}

/* ── Celular: Marko y su ficha en una sola franja junto al globo, sin bloque alto ── */
@media (max-width: 600px) {
	body:has(.mh--home) .nos-h__in { padding-top: calc(96px + 24px); }
	.nos-h__in { padding-bottom: 40px; gap: 8px; }
	.nos-h__ceja { margin-bottom: 16px; font-size: 12px; }
	.nos-h h1 { font-size: clamp(36px, 10.6vw, 50px); }
	.nos-h__lead { margin-top: 16px; font-size: 16px; }
	.nos-h__acc { margin-top: 24px; }
	.nos-h__cta, .nos-h__sec { flex: 1 1 100%; }
	.nos-h__cifras { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; padding-top: 20px; }
	.nos-h__cifras dt { font-size: 30px; }
	.nos-h__cifras dd { font-size: 12.5px; }
	.nos-h__marko { grid-template-columns: 44% minmax(0, 1fr); align-items: center; justify-items: start; gap: 10px; margin-top: 12px; }
	.nos-h__escena { grid-column: 1; grid-row: 1 / span 2; width: 100%; }
	.nos-h__globo { position: static; grid-column: 2; grid-row: 1; align-self: end; max-width: none; font-size: 14px; padding: 12px 14px; border-radius: 18px 18px 18px 6px; }
	.nos-h__ficha { grid-column: 2; grid-row: 2; align-self: start; justify-items: start; text-align: left; margin: 0; }
	.nos-h__ficha b { font-size: 18px; }
	.nos-h__ficha small { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.nos-h *, .nos-h *::before, .nos-h *::after { animation: none !important; transition: none !important; }
}
