/* gu-pasos — los 7 pasos sobre crema #FBF8F4 (el hero es tinta y la descarga es tinta cálida).
   Cada paso es una «página» de la guía: cabecera tinta con número naranja, texto, lista y «Hazlo hoy» en lima.
   Móvil: carrusel con snap. Escritorio (con JS): índice + página que avanza sola (6 s, pausa con cursor/foco). */

.gup { padding: clamp(56px, 8vw, 120px) 0; background: #FBF8F4; color: #121011; overflow: hidden; }
.gup__in { max-width: 1320px; margin: 0 auto; padding: 0 var(--m); }
.gup__cab { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.gup__ceja { margin: 0 0 12px; color: #C8410F; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gup__cab h2 { font-size: clamp(32px, 4.6vw, 60px); }
.gup__cab > p:last-child { margin-top: 14px; color: #4A4547; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; }

/* ── Página (tarjeta) ── */
.gup__pista { display: grid; gap: 14px; }
.gup__pag { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px #E6DED3, 0 28px 50px -36px rgba(18, 16, 17, .45); }
.gup__pag-cab { position: relative; padding: 22px 22px 20px; background: #121011 repeating-linear-gradient(180deg, transparent 0 27px, rgba(255, 255, 255, .05) 27px 28px); color: #fff; overflow: hidden; }
.gup__num { position: absolute; right: 14px; top: -10px; font-family: 'Marko Display', var(--f); font-size: 96px; font-weight: 800; line-height: 1; color: #FF5B23; }
.gup__pag-cab p { color: #D2FB8C; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gup__pag-cab h3 { max-width: 13ch; margin-top: 8px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05 !important; color: #fff; text-transform: lowercase; }
.gup__pag-cab small { display: block; max-width: 32ch; margin-top: 8px; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.4; }
.gup__pag-cuerpo { display: grid; gap: 14px; padding: 20px 22px 6px; flex: 1; }
.gup__txt { color: #3A3436; font-size: 15px; line-height: 1.55; }
.gup__lista { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.gup__lista li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px dashed #E6DED3; font-size: 14px; line-height: 1.35; color: #121011; }
.gup__lista li:last-child { border-bottom: 0; }
.gup__lista li::before { content: ""; position: absolute; left: 0; top: 8px; width: 17px; height: 17px; border-radius: 5px; box-shadow: inset 0 0 0 1.6px #121011; }
.gup__hoy { padding: 12px 14px; border-radius: 14px; background: #D2FB8C; color: #121011; font-size: 14px; font-weight: 500; line-height: 1.4; }
.gup__hoy b { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gup__pie { display: flex; justify-content: space-between; margin: 10px 22px 0; padding: 10px 0 14px; border-top: 1px solid #EFE9E1; color: #7A7375; font-size: 12px; }

.gup__cta { margin-top: clamp(24px, 3vw, 40px); }

/* ── Móvil y tablet: carrusel con snap ── */
@media (max-width: 959px) {
	.gup__pista { grid-auto-flow: column; grid-auto-columns: min(84%, 420px); gap: 12px; margin: 0 calc(var(--m) * -1); padding: 4px var(--m) 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); scrollbar-width: none; }
	.gup__pista::-webkit-scrollbar { display: none; }
	.gup__pag { scroll-snap-align: start; }
	.gup__puntos:not([hidden]) { display: flex; justify-content: center; gap: 0; margin-top: 2px; }
	.gup__puntos button { position: relative; width: 32px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
	.gup__puntos button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 99px; background: #D9D0C5; transform: translate(-50%, -50%); transition: width .35s var(--ease), background-color .35s; }
	.gup__puntos button[aria-current="true"]::before { width: 24px; background: #121011; }
	.gup__puntos button:focus-visible { outline: 2px solid #C8410F; outline-offset: -6px; border-radius: 12px; }
	.gup__cta .boton { width: 100%; }
	.gup__tab { display: none; }
}
@media (max-width: 420px) {
	.gup__pag-cab { padding: 18px 18px 16px; }
	.gup__pag-cuerpo { padding: 16px 18px 4px; gap: 12px; }
	.gup__pie { margin: 8px 18px 0; }
	.gup__txt { font-size: 14.5px; }
	.gup__num { font-size: 80px; }
}

/* ── Escritorio ── */
@media (min-width: 960px) {
	.gup__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
	.gup__pista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gup__cta { text-align: left; }
	.gup__puntos { display: none; }

	/* Con JS: índice + una sola página */
	.gup.is-js .gup__pista { display: grid; grid-template-columns: 1fr; position: sticky; top: 104px; }
	.gup.is-js .gup__pag { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0) rotate(-1deg); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
	.gup.is-js .gup__pag.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
	.gup__pag-cab { padding: 30px 32px 26px; }
	.gup__num { font-size: 132px; right: 22px; top: -18px; }
	.gup__pag-cuerpo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 26px; padding: 26px 32px 8px; }
	.gup__txt { grid-column: 1 / -1; font-size: 16px; }
	.gup__hoy { align-self: start; }
	.gup__pie { margin: 14px 32px 0; }

	.gup__indice:not([hidden]) { display: grid; gap: 6px; }
	.gup__tab { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 18px 12px 14px; overflow: hidden; border: 0; border-radius: 16px; background: transparent; color: #121011; font: inherit; text-align: left; cursor: pointer; transition: background-color .3s, color .3s, box-shadow .3s; }
	.gup__tab b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #F4F1EC; box-shadow: inset 0 0 0 1px #E6DED3; color: #C8410F; font-size: 14px; font-weight: 800; transition: background-color .3s, color .3s, box-shadow .3s; }
	.gup__tab strong { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.2; }
	.gup__tab small { display: block; margin-top: 2px; color: #6C6567; font-size: 13.5px; line-height: 1.35; transition: color .3s; }
	.gup__tab:hover { background: #fff; box-shadow: 0 0 0 1px #E6DED3; }
	.gup__tab:focus-visible { outline: 2px solid #C8410F; outline-offset: 2px; }
	.gup__tab[aria-selected="true"], .gup__tab[aria-selected="true"]:hover { background: #121011; color: #fff; box-shadow: none; }
	.gup__tab[aria-selected="true"] b { background: #FF5B23; box-shadow: none; color: #fff; }
	.gup__tab[aria-selected="true"] small { color: rgba(255, 255, 255, .7); }
	.gup__barra { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #D2FB8C; transform: scaleX(0); transform-origin: 0 50%; }
	.gup__tab[aria-selected="true"] .gup__barra { animation: gup-barra var(--gup-t, 6s) linear forwards; }
	.gup.is-quieto .gup__tab[aria-selected="true"] .gup__barra { animation-play-state: paused; }
	@keyframes gup-barra { to { transform: scaleX(1); } }
}

@media (prefers-reduced-motion: reduce) {
	.gup.is-js .gup__pag, .gup.is-js .gup__pag.is-on { transition: none; transform: none; }
	.gup__barra { display: none; }
}
