/* gu-hero — hero de /guia/. Fondo propio «renglones de noche» (renglones de cuaderno + lámpara naranja), distinto al resto.
   La guía es un libro 3D (CSS puro): flota, abre la tapa y hojea dos páginas en bucle. Todo es transform/opacity;
   .is-pausado congela el bucle fuera de pantalla y con prefers-reduced-motion queda quieto, entreabierto. */

/* La cabecera de esta página es transparente: el hero arranca bajo ella (m360.css da 76/64px a main en interiores) */
body:not(.home) main.gu-pag { padding-top: 0; }

.guh { --w: clamp(140px, 38vw, 200px); --g: 14px; position: relative; isolation: isolate; overflow: hidden; background: #121011; color: #fff; }
.guh__in { display: grid; gap: 36px; max-width: 1320px; margin: 0 auto; padding: calc(64px + 36px) var(--m) 56px; }

/* ── Fondo ── */
.guh__fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.guh__fondo > i { position: absolute; display: block; }
.guh__renglones { inset: 0; background: repeating-linear-gradient(180deg, transparent 0 37px, rgba(255, 255, 255, .06) 37px 38px); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 72%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 70% 60% at 50% 72%, #000 20%, transparent 78%); }
.guh__renglones::before { content: ""; position: absolute; top: 0; bottom: 0; left: 12%; width: 1px; background: rgba(255, 91, 35, .28); }
.guh__lampara { left: 50%; top: 58%; width: 150vw; height: 150vw; max-width: 1100px; max-height: 1100px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 91, 35, .34), rgba(255, 91, 35, .1) 45%, rgba(255, 91, 35, 0) 100%); }
.guh__velo { inset: 0; background: linear-gradient(180deg, rgba(18, 16, 17, .95) 0, rgba(18, 16, 17, 0) 150px), linear-gradient(0deg, #121011 0, rgba(18, 16, 17, 0) 120px); }
.guh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #FF5B23 30%, #D2FB8C 70%, transparent); }

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

.guh__ceja { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .86); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.guh__ceja::before { content: "PDF"; padding: 3px 7px; border-radius: 999px; background: #D2FB8C; color: #121011; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; }

.guh h1 { max-width: 15ch; font-family: 'Marko Display', var(--f) !important; font-weight: 800 !important; font-size: clamp(36px, 9.6vw, 78px); line-height: 1.02 !important; letter-spacing: .004em !important; word-spacing: -.06em; text-transform: lowercase; color: #fff; text-wrap: balance; }
.guh h1 .chispa { color: #FF5B23; }
.guh__lead { max-width: 46ch; margin-top: 18px; color: rgba(255, 255, 255, .76); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }

.guh__accion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.guh__accion .boton { min-height: 56px; }
.guh__micro { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .66); font-size: 14px; }
.guh__micro::before { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D2FB8C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6 10l6 6 6-6M4 21h16'/%3E%3C/svg%3E") 50% / contain no-repeat; }

.guh__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.guh__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .84); font-size: 13px; font-weight: 500; }
.guh__chips li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #D2FB8C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121011' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") 50% / 10px no-repeat; }

/* ── Libro 3D ── */
.guh__escena { position: relative; z-index: 0; display: grid; place-items: center; min-height: calc(var(--w) * 1.62); perspective: 1500px; }
.guh__giro { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.guh__libro { position: relative; width: var(--w); aspect-ratio: 210 / 297; transform-style: preserve-3d; transform: translateX(50%) rotateX(10deg) rotateY(-20deg) rotateZ(2deg); animation: guh-flota 7s ease-in-out infinite; container-type: inline-size; }
@keyframes guh-flota { 50% { transform: translateX(50%) translateY(-12px) rotateX(12deg) rotateY(-14deg) rotateZ(1deg); } }
.guh__libro > * { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }

.guh__atras { border-radius: 3px 10px 10px 3px; background: #201A17; transform: translateZ(calc(var(--g) / -2)); box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .7); }
.guh__canto { left: auto !important; right: calc(var(--g) / -2) !important; width: var(--g); top: 3px !important; bottom: 3px !important; background: repeating-linear-gradient(90deg, #FBF8F4 0 1px, #DCD3C8 1px 2px); transform: rotateY(90deg); }

/* Hojas: papel crema con renglones; cada una gira sobre el lomo (borde izquierdo). */
.guh__hoja { inset: 3px 4px 3px 0 !important; transform-origin: 0 50%; }
.guh__hoja--base { transform: translateZ(calc(var(--g) / -2 + 2px)); }
.guh__hoja--2 { transform: translateZ(calc(var(--g) / 2 - 4px)); animation: guh-hoja2 10s var(--ease) 2.2s infinite; }
.guh__hoja--1 { transform: translateZ(calc(var(--g) / 2 - 2px)); animation: guh-hoja1 10s var(--ease) 2.2s infinite; }
.guh__cara { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 5cqw; padding: 10cqw 9cqw; border-radius: 2px 6px 6px 2px; background: #FBF8F4 repeating-linear-gradient(180deg, transparent 0 9cqw, rgba(18, 16, 17, .06) 9cqw calc(9cqw + 1px)); color: #121011; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, .25); }
.guh__cara b { font-size: 4.6cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #C8410F; }
.guh__cara strong { font-size: 8.5cqw; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.guh__cara span { display: block; height: 2.6cqw; border-radius: 2px; background: rgba(18, 16, 17, .12); }
.guh__cara span.c { width: 62%; }
.guh__cara em { align-self: flex-start; margin-top: auto; padding: 3cqw 5cqw; border-radius: 3cqw; background: #D2FB8C; font-size: 4.6cqw; font-style: normal; font-weight: 700; }
.guh__cara--dorso { transform: rotateY(180deg); box-shadow: inset -6px 0 10px -6px rgba(0, 0, 0, .25); }

/* Tapa: la portada del PDF. */
.guh__tapa { transform-origin: 0 50%; transform: translateZ(calc(var(--g) / 2)); animation: guh-tapa 10s var(--ease) 2.2s infinite; }
.guh__portada, .guh__dorso { position: absolute; inset: 0; overflow: hidden; border-radius: 3px 10px 10px 3px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.guh__portada { display: flex; flex-direction: column; padding: 9cqw 9cqw 0; background: #121011 repeating-linear-gradient(180deg, transparent 0 7cqw, rgba(255, 255, 255, .05) 7cqw calc(7cqw + 1px)); box-shadow: inset 4px 0 0 rgba(255, 255, 255, .06), inset 10px 0 14px -10px rgba(0, 0, 0, .8); }
.guh__portada::before { content: ""; position: absolute; right: -30%; top: 42%; width: 110%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 91, 35, .55), rgba(255, 91, 35, 0)); }
.guh__portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .12) 0, rgba(255, 255, 255, 0) 38%); pointer-events: none; }
.guh__portada > * { position: relative; z-index: 1; }
.guh__marca { display: flex; align-items: center; justify-content: space-between; }
.guh__marca img { width: 26cqw; height: auto; }
.guh__marca span { padding: 1.6cqw 3.4cqw; border-radius: 99px; background: #D2FB8C; color: #121011; font-size: 3.6cqw; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guh__titulo { margin-top: 11cqw; max-width: 9ch; font-family: 'Marko Display', var(--f); font-size: 12.4cqw; font-weight: 800; line-height: 1.02; letter-spacing: .004em; word-spacing: -.06em; text-transform: lowercase; color: #fff; }
.guh__titulo em { font-style: normal; color: #FF5B23; }
.guh__siete { position: absolute !important; left: 9cqw; bottom: 9cqw; display: flex; align-items: center; gap: 2.4cqw; color: rgba(255, 255, 255, .8); font-size: 4cqw; line-height: 1.2; max-width: 30cqw; }
.guh__siete b { font-family: 'Marko Display', var(--f); font-size: 16cqw; line-height: .8; color: #D2FB8C; }
.guh__marko { position: absolute !important; right: -3cqw; bottom: -2cqw; width: 50cqw; height: auto; }
.guh__dorso { background: #201A17; transform: rotateY(180deg); }

/* Ciclo de 10 s: abre la tapa, pasa dos hojas, se queda leyendo y cierra todo. */
@keyframes guh-tapa {
	0%, 10% { transform: translateZ(calc(var(--g) / 2)) rotateY(0deg); }
	22%, 76% { transform: translateZ(calc(var(--g) / 2)) rotateY(-162deg); }
	90%, 100% { transform: translateZ(calc(var(--g) / 2)) rotateY(0deg); }
}
@keyframes guh-hoja1 {
	0%, 26% { transform: translateZ(calc(var(--g) / 2 - 2px)) rotateY(0deg); }
	38%, 74% { transform: translateZ(calc(var(--g) / 2 - 2px)) rotateY(-158deg); }
	86%, 100% { transform: translateZ(calc(var(--g) / 2 - 2px)) rotateY(0deg); }
}
@keyframes guh-hoja2 {
	0%, 40% { transform: translateZ(calc(var(--g) / 2 - 4px)) rotateY(0deg); }
	52%, 72% { transform: translateZ(calc(var(--g) / 2 - 4px)) rotateY(-154deg); }
	84%, 100% { transform: translateZ(calc(var(--g) / 2 - 4px)) rotateY(0deg); }
}

.guh__sombra { position: absolute; left: 50%; bottom: 2%; width: calc(var(--w) * 1.25); height: 26px; transform: translateX(-30%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); animation: guh-sombra 7s ease-in-out infinite; }
@keyframes guh-sombra { 50% { transform: translateX(-30%) scale(.86); opacity: .7; } }

.guh__sello { position: absolute; z-index: 2; left: max(2%, calc(50% - var(--w) * .62)); bottom: 8%; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #D2FB8C; color: #121011; font-size: 11px; font-weight: 600; line-height: 1.1; text-align: center; transform: rotate(-10deg); box-shadow: 0 12px 26px -12px rgba(210, 251, 140, .6); }
.guh__sello b { display: block; font-size: 19px; font-weight: 900; letter-spacing: .02em; }

/* Fuera de pantalla: todo quieto (guh.js pone .is-pausado). */
.guh.is-pausado .guh__libro, .guh.is-pausado .guh__libro > *, .guh.is-pausado .guh__sombra { animation-play-state: paused; }

/* ── Tablet ── */
@media (min-width: 640px) {
	.guh { --w: clamp(190px, 28vw, 250px); }
	.guh__in { padding-top: calc(76px + 48px); }
}

/* ── Escritorio: texto a la izquierda, libro a la derecha ── */
@media (min-width: 960px) {
	.guh { --w: clamp(220px, 19vw, 290px); --g: 16px; }
	.guh__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 4vw, 64px); min-height: min(100svh, 880px); padding: calc(112px + clamp(16px, 2vw, 40px)) var(--m) clamp(56px, 6vw, 96px); }
	.guh__lampara { left: 74%; top: 56%; width: 80vw; height: 80vw; }
	.guh__renglones { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 56%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 72% 56%, #000 15%, transparent 75%); }
	.guh__renglones::before { left: 52%; }
	.guh__escena { min-height: calc(var(--w) * 1.8); }
	.guh__sello { width: 86px; height: 86px; font-size: 12px; }
	.guh__sello b { font-size: 22px; }
}

/* ── Móvil: compacto; el libro entra pequeño entre texto y chips ── */
@media (max-width: 959px) {
	.guh__txt { display: contents; }
	.guh__ceja, .guh h1, .guh__lead { order: 0; }
	.guh__escena { order: 1; margin: -6px 0 -10px; }
	.guh__accion { order: 2; margin-top: 0; }
	.guh__chips { order: 3; margin-top: 0; }
	.guh__in { gap: 0; }
	.guh__in > .guh__escena { margin-block: 18px 6px; }
	.guh__ceja { justify-self: start; }
	.guh__lead { margin-bottom: 4px; }
	.guh__accion { margin-top: 10px; }
	.guh__chips { margin-top: 18px; }
}
@media (max-width: 420px) {
	.guh__accion .boton { width: 100%; }
	.guh__chips li { font-size: 12.5px; }
	.guh__sello { width: 62px; height: 62px; font-size: 10px; right: 2%; }
	.guh__sello b { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.guh__txt > *, .guh__libro, .guh__libro > *, .guh__sombra { animation: none !important; }
	.guh__tapa { transform: translateZ(calc(var(--g) / 2)) rotateY(-28deg); }
}
