/* nos-equipo — tinta cálida #201A17: roles del equipo (Marko en cada papel) y mapa de puntos México + EE. UU.
   Roles: 4 columnas en escritorio, 2 en tablet y carrusel con snap en celular. */

.nos-eq { position: relative; overflow: hidden; padding: clamp(72px, 8vw, 128px) 0; background: #201A17; color: #fff; }
.nos-eq__in { max-width: 1320px; margin: 0 auto; padding: 0 var(--m); }
.nos-eq__ceja { margin-bottom: 14px; color: var(--lima); font-size: 13.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.nos-eq__cab { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px clamp(24px, 5vw, 80px); align-items: end; }
.nos-eq__cab .nos-eq__ceja { grid-column: 1 / -1; margin: 0; }
.nos-eq__cab h2 { max-width: 16ch; font-size: clamp(32px, 4vw, 58px); color: #fff; text-wrap: balance; }
.nos-eq__cab > p:last-child { max-width: 38ch; color: rgba(255, 255, 255, .72); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }

/* ── Roles ── */
.nos-eq__roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.nos-eq__rol { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 24px; background: #2A2320; box-shadow: inset 0 0 0 1px rgba(251, 248, 244, .08); transition: transform .45s var(--ease), box-shadow .45s; }
.nos-eq__rol:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 91, 35, .7), 0 30px 50px -30px #000; }
.nos-eq__foto { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #121011; }
.nos-eq__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transition: transform 1s var(--ease); }
.nos-eq__rol:nth-child(2) .nos-eq__foto img { object-position: 62% 40%; }
.nos-eq__rol:nth-child(4) .nos-eq__foto img { object-position: 68% 50%; }
.nos-eq__rol:hover .nos-eq__foto img { transform: scale(1.06); }
.nos-eq__n { position: absolute; left: 14px; top: 14px; display: grid; place-items: center; min-width: 40px; height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(18, 16, 17, .78); color: var(--lima); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nos-eq__txt { padding: 20px 22px 24px; }
.nos-eq__txt h3 { font-size: 20px; line-height: 1.2; color: #fff; }
.nos-eq__txt p { margin-top: 8px; color: rgba(255, 255, 255, .7); font-size: 15.5px; line-height: 1.55; }

/* ── Mapa ── */
.nos-eq__mapa { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 104px); padding: clamp(24px, 3.4vw, 48px); border-radius: 32px; background: #121011; box-shadow: inset 0 0 0 1px rgba(251, 248, 244, .07); }
.nos-eq__mapa-txt h3 { max-width: 22ch; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.2; color: #fff; text-transform: none !important; }
.nos-eq__leyenda { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .74); font-size: 15px; }
.nos-eq__leyenda li { display: flex; align-items: center; gap: 10px; }
.nos-eq__leyenda i { width: 10px; height: 10px; border-radius: 50%; }
.nos-eq__leyenda .is-mx { background: #FF5B23; }
.nos-eq__leyenda .is-us { background: #7A6C64; }
.nos-eq__leyenda .is-pin { background: var(--lima); box-shadow: 0 0 10px var(--lima); }

.nos-eq__lienzo { position: relative; margin: 0; }
.nos-eq__lienzo svg { display: block; width: 100%; height: auto; overflow: visible; }
.nos-eq__us, .nos-eq__mx { fill: none; stroke-linecap: round; }
.nos-eq__us { stroke: #5A4E48; stroke-width: 3.2; }
.nos-eq__mx { stroke: #FF5B23; stroke-width: 3.6; }
/* Brillo que recorre México: un barrido suave de opacidad */
.nos-eq.is-visto .nos-eq__mx { animation: noseq-late 4s ease-in-out infinite; }
@keyframes noseq-late { 50% { opacity: .72; } }
.nos-eq__arco { fill: none; stroke: var(--lima); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px rgba(210, 251, 140, .9)); }
.nos-eq.is-visto .nos-eq__arco { animation: noseq-arco 2.6s var(--ease) .4s forwards; }
@keyframes noseq-arco { to { stroke-dashoffset: 0; } }
.nos-eq__pin .c { fill: var(--lima); }
.nos-eq__pin .o { fill: none; stroke: var(--lima); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.nos-eq.is-visto .nos-eq__pin .o { animation: noseq-pulso 2.8s ease-out infinite; }
.nos-eq.is-visto .nos-eq__pin .o2 { animation-delay: 1.4s; }
.nos-eq.is-visto .nos-eq__pin.is-us .o { animation-delay: .7s; }
.nos-eq.is-visto .nos-eq__pin.is-us .o2 { animation-delay: 2.1s; }
@keyframes noseq-pulso { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(4.2); } }
.nos-eq__tag { position: absolute; padding: 6px 11px; border-radius: 999px; background: #FBF8F4; color: #121011; font-size: 12.5px; font-weight: 700; white-space: nowrap; transform: translate(calc(-100% - 14px), -50%); box-shadow: 0 10px 24px -12px #000; }
.nos-eq__tag.is-us { transform: translate(14px, -50%); background: var(--lima); }

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

/* ── Tablet ── */
@media (max-width: 1100px) {
	.nos-eq__roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nos-eq__foto { aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
	.nos-eq__cab { grid-template-columns: minmax(0, 1fr); }
	.nos-eq__mapa { grid-template-columns: minmax(0, 1fr); }
}

/* ── Celular: roles en carrusel con snap, mapa compacto ── */
@media (max-width: 600px) {
	.nos-eq { padding: 56px 0; }
	.nos-eq__cab h2 { font-size: clamp(28px, 8.4vw, 38px); }
	.nos-eq__cab > p:last-child { font-size: 16px; }
	.nos-eq__roles { display: flex; gap: 12px; margin: 28px calc(var(--m) * -1) 0; padding: 0 var(--m) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--m); scrollbar-width: none; overscroll-behavior-x: contain; }
	.nos-eq__roles::-webkit-scrollbar { display: none; }
	.nos-eq__rol { flex: 0 0 80%; scroll-snap-align: start; }
	.nos-eq__rol:hover { transform: none; }
	.nos-eq__txt { padding: 16px 18px 20px; }
	.nos-eq__txt h3 { font-size: 18px; }
	.nos-eq__txt p { font-size: 14.5px; }
	.nos-eq__mapa { margin-top: 44px; padding: 22px 18px; border-radius: 24px; gap: 18px; }
	.nos-eq__mapa-txt h3 { font-size: 20px; }
	.nos-eq__leyenda { grid-template-columns: repeat(2, max-content); gap: 8px 16px; margin-top: 16px; font-size: 13.5px; }
	.nos-eq__leyenda li:last-child { grid-column: 1 / -1; }
	.nos-eq__tag { font-size: 11px; padding: 5px 9px; }
}

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