/* nos-historia — crema #FBF8F4: «Quiénes somos», misión/visión y la línea «De MKT Actual a Marko 360».
   En escritorio la línea se ve completa; en tablet y celular es un carrusel con snap y flechas. */

.nos-hi { padding: clamp(72px, 8vw, 128px) 0 clamp(64px, 7vw, 112px); background: #FBF8F4; color: #121011; }
.nos-hi__in { max-width: 1320px; margin: 0 auto; padding: 0 var(--m); }

.nos-hi__intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.nos-hi__ceja { margin-bottom: 16px; color: #C8410F; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nos-hi h2 { max-width: 15ch; font-size: clamp(34px, 4.2vw, 62px); color: #121011; text-wrap: balance; }
.nos-hi__lead { max-width: 54ch; margin-top: 22px; color: #4A4547; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; }
.nos-hi__antes { display: flex; align-items: center; gap: 14px; max-width: 54ch; margin-top: 28px; padding: 14px 18px 14px 14px; border-radius: 18px; background: #F4F1EC; box-shadow: inset 0 0 0 1px #E9E1D7; color: #4A4547; font-size: 15px; line-height: 1.5; }
.nos-hi__antes b { color: #121011; }
.nos-hi__sello { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #121011; color: var(--lima); font-size: 14px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 0 0 4px #FBF8F4, 0 0 0 5px #E9E1D7; }

.nos-hi__mv { display: grid; gap: 16px; }
.nos-hi__card { position: relative; padding: clamp(24px, 2.6vw, 34px); border-radius: 26px; transition: transform .4s var(--ease), box-shadow .4s; }
.nos-hi__card h3 { margin-top: 18px; font-size: clamp(22px, 2vw, 28px); }
.nos-hi__card p { margin-top: 10px; font-size: 16.5px; line-height: 1.6; }
.nos-hi__card--mision { background: #121011; color: #fff; }
.nos-hi__card--mision p { color: rgba(255, 255, 255, .74); }
.nos-hi__card--mision .nos-hi__ico { background: #FF5B23; color: #121011; }
.nos-hi__card--vision { background: #fff; box-shadow: inset 0 0 0 1px #E9E1D7; }
.nos-hi__card--vision p { color: #4A4547; }
.nos-hi__card--vision .nos-hi__ico { background: var(--lima); color: #121011; }
.nos-hi .nos-hi__card:hover { transform: translateY(-4px); }
.nos-hi .nos-hi__card--vision:hover { box-shadow: inset 0 0 0 1px #FF5B23, 0 22px 40px -28px rgba(18, 16, 17, .35); }
.nos-hi__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; }

/* ── Línea de tiempo ── */
.nos-hi__linea { margin-top: clamp(56px, 7vw, 104px); }
.nos-hi__linea-cab { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.nos-hi__linea-t { font-size: clamp(22px, 2.2vw, 30px); text-transform: none !important; }
.nos-hi__flechas { display: none; gap: 8px; }
.nos-hi__flechas button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #121011; color: #fff; cursor: pointer; transition: background-color .25s, color .25s, opacity .25s; }
.nos-hi__flechas button:hover { background: #FF5B23; color: #121011; }
.nos-hi__flechas button:disabled { opacity: .3; cursor: default; background: #121011; color: #fff; }

.nos-hi__hitos { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 30px 0 0; list-style: none; }
/* Riel: gris de fondo y naranja que se llena al entrar */
.nos-hi__hitos::before, .nos-hi__hitos::after { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; border-radius: 2px; background: #E2D9CE; }
.nos-hi__hitos::after { background: linear-gradient(90deg, #FF5B23, #FF5B23 80%, #121011); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.nos-hi__linea.is-visto .nos-hi__hitos::after { transform: scaleX(1); }

.nos-hi__hito { position: relative; min-width: 0; padding: 22px 20px 24px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px #E9E1D7; opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .6s var(--ease), transform .7s var(--ease), box-shadow .3s; transition-delay: calc(var(--k) * 140ms + 200ms); }
.nos-hi__linea.is-visto .nos-hi__hito { opacity: 1; transform: none; }
.nos-hi__hito:hover { box-shadow: inset 0 0 0 1px #FF5B23; }
.nos-hi__punto { position: absolute; left: 20px; top: -30px; width: 16px; height: 16px; border-radius: 50%; background: #FBF8F4; box-shadow: inset 0 0 0 3px #FF5B23; }
.nos-hi__cuando { color: #C8410F; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nos-hi__hito h4 { margin: 8px 0 0; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.nos-hi__hito p:last-child { margin-top: 8px; color: #4A4547; font-size: 15px; line-height: 1.55; }
.nos-hi__hito.is-hoy { background: #121011; color: #fff; box-shadow: none; }
.nos-hi__hito.is-hoy .nos-hi__cuando { color: var(--lima); }
.nos-hi__hito.is-hoy p:last-child { color: rgba(255, 255, 255, .74); }
.nos-hi__hito.is-hoy .nos-hi__punto { background: var(--lima); box-shadow: 0 0 0 4px rgba(210, 251, 140, .35), 0 0 14px rgba(210, 251, 140, .9); }
.nos-hi__hitos:focus-visible { outline: 3px solid #FF5B23; outline-offset: 6px; border-radius: 22px; }

/* ── Laptop chica / tablet: carrusel con snap ── */
@media (max-width: 1100px) {
	.nos-hi__flechas { display: flex; }
	.nos-hi__hitos { display: flex; gap: 14px; margin-left: calc(var(--m) * -1); margin-right: calc(var(--m) * -1); padding: 30px var(--m) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--m); scrollbar-width: none; overscroll-behavior-x: contain; }
	.nos-hi__hitos::-webkit-scrollbar { display: none; }
	.nos-hi__hitos::before, .nos-hi__hitos::after { left: var(--m); right: auto; width: calc(5 * 280px + 4 * 14px - 16px); }
	.nos-hi__hito { flex: 0 0 280px; scroll-snap-align: start; }
}

@media (max-width: 860px) {
	.nos-hi__intro { grid-template-columns: minmax(0, 1fr); }
	.nos-hi__mv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Celular: misión y visión lado a lado en carrusel corto; hitos de 78% ── */
@media (max-width: 600px) {
	.nos-hi { padding: 56px 0 52px; }
	.nos-hi h2 { font-size: clamp(30px, 8.6vw, 40px); }
	.nos-hi__lead { margin-top: 16px; font-size: 16px; }
	.nos-hi__antes { margin-top: 20px; font-size: 14px; padding: 12px 14px 12px 12px; }
	.nos-hi__sello { width: 44px; height: 44px; font-size: 12.5px; }
	.nos-hi__mv { display: flex; gap: 12px; margin: 0 calc(var(--m) * -1); padding: 0 var(--m) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--m); scrollbar-width: none; }
	.nos-hi__mv::-webkit-scrollbar { display: none; }
	.nos-hi__card { flex: 0 0 84%; scroll-snap-align: start; padding: 22px; border-radius: 22px; }
	.nos-hi__card h3 { margin-top: 14px; }
	.nos-hi__card p { font-size: 15px; }
	.nos-hi__linea { margin-top: 48px; }
	.nos-hi__linea-t { font-size: 21px; }
	.nos-hi__hitos::before, .nos-hi__hitos::after { width: calc(5 * 78vw + 4 * 12px - 16px); }
	.nos-hi__hitos { gap: 12px; }
	.nos-hi__hito { flex-basis: 78vw; padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.nos-hi__hito, .nos-hi__hitos::after { transition: none; }
	.nos-hi__hito { opacity: 1; transform: none; }
	.nos-hi__hitos::after { transform: scaleX(1); }
}
.nos-hi h2 .chispa { color: #C8410F; } /* AA sobre crema */
