/* Coronel Truman · apartados con scroll (portada e interiores)
   Manda el mensaje. Cada apartado entra sobre el anterior con un corte recto ligeramente inclinado, alternando el sentido.
   Los tonos los pone cada página: --t-claro, --t-medio, --t-oscuro y --t-fuerte (el color de su personaje). */
:root { --t-claro: #f0f0ee; --t-medio: #dededa; --t-oscuro: #1c1c1c; --t-fuerte: #e7e7e4; }
html:has(body.largo) { overflow-x: clip; }
body.largo .logo { position: absolute; }

.hb { --curva: clamp(2.2rem, 4vw, 4.5rem); position: relative; z-index: 10; min-height: 100svh; margin-top: calc(var(--curva) * -1);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(20vh + var(--curva)) calc(var(--nav-dcha) + var(--punto-t) + 4rem) 22vh clamp(1.5rem, 7vw, 8rem);
  clip-path: polygon(0 var(--curva), 100% 0, 100% 100%, 0 100%); }
.hb:nth-of-type(odd) { clip-path: polygon(0 0, 100% var(--curva), 100% 100%, 0 100%); }
.hb.primero { margin-top: 0; clip-path: none; padding-top: calc(8vh + var(--logo) * 1.11 + 8vh); }
/* La primera pantalla deja asomar abajo el borde del siguiente apartado: indica que hay más */
.hb.primero.con-foto { min-height: 92svh; padding-bottom: 12vh; isolation: isolate; overflow-x: clip; }

/* El mensaje, protagonista */
.hb :is(h1, h2) { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-style: italic; letter-spacing: -0.02em; line-height: 0.9; font-size: clamp(3rem, min(6.6vw, 12.5vh), 9rem); }
.hb :is(h1, h2) .l { padding: 0.08em 0.08em 0.18em; margin: -0.08em -0.08em -0.18em; }
.hb h3 { font-family: "Oswald", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; font-size: clamp(0.78rem, 0.85vw, 0.95rem); margin-bottom: clamp(1.2rem, 3vh, 2rem); opacity: 0.75; }
/* El detalle, bajo el titular y a la izquierda; líneas compensadas */
.detalle { margin-top: clamp(2.2rem, 5vh, 3.6rem); max-width: 60ch; }
.hb p { font-size: clamp(1.02rem, 1.2vw, 1.3rem); line-height: 1.55; text-wrap: balance; }
.hb p + p { margin-top: 1em; }
.hb .enlace { margin-top: clamp(1.6rem, 3.6vh, 2.4rem); margin-right: 2rem; font-size: clamp(0.82rem, 0.9vw, 1rem); }
.hb .enlace.grande { font-size: clamp(1rem, 1.4vw, 1.5rem); }

/* Tonos */
.hb-claro { background: var(--t-claro); }
.hb-medio { background: var(--t-medio); }
.hb-oscuro { background: var(--t-oscuro); color: #f3f1ee; }
.hb-verde, .hb-fuerte { background: var(--t-fuerte); }

/* Listas tipográficas cortas */
.cinco { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; margin-top: 1.6rem; }
.cinco li { font-family: "Oswald", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: clamp(0.78rem, 0.85vw, 0.95rem); }
.cinco li::before { content: "+"; margin-right: 0.35em; opacity: 0.6; }

/* Cierre: centrado */
.cierre-i { align-items: center; text-align: center; min-height: 80svh; }
.cierre-i p { margin-top: clamp(1.6rem, 4vh, 2.6rem); }

/* Apartado con foto del personaje a la derecha */
.hb.con-foto :is(h1, h2) { font-size: clamp(2.6rem, min(4.3vw, 9vh), 6.2rem); }
.hb.con-foto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 5rem); }

.largo .pie { position: relative; z-index: 10; background: var(--t-fuerte); padding-top: 0; }

/* Capacidades: una red, no departamentos sueltos */
.red { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(1.5rem, 3vw, 3.5rem); margin-top: clamp(2.5rem, 7vh, 5rem); position: relative; }
.red::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: rgba(26, 26, 26, 0.25); }
.red li { position: relative; padding-top: 2.2rem; }
.red li::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--gris); border: 1.5px solid var(--oscuro); transition: background 0.25s; }
.red li:hover::before, .red li:focus-within::before { background: var(--oscuro); }
.red a { display: flex; flex-direction: column; height: 100%; }
.red .nombre { font-family: "Oswald", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(1rem, 1.3vw, 1.35rem); }
.red .linea-c { margin-top: 0.8rem; font-size: clamp(0.92rem, 1vw, 1.05rem); line-height: 1.55; flex: 1; text-wrap: pretty; }
.red .ir { margin-top: 1.4rem; font-family: "Oswald", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; align-self: flex-start; padding-bottom: 0.35em; background: linear-gradient(currentColor, currentColor) center bottom / 0% 1.5px no-repeat; transition: background-size 0.25s var(--ease); }
.red a:hover .ir, .red a:focus-visible .ir { background-size: 100% 1.5px; }
.red .ir .flecha { display: inline-block; margin-left: 0.4em; transition: transform 0.25s var(--ease); }
.red a:hover .ir .flecha { transform: translateX(5px); }

.hb.con-foto .detalle { max-width: 44ch; }

/* Entrada con la composición de la portada: personaje muy grande detrás, titular grande en bloque abajo a la izquierda */
.hb.como-portada { display: block; min-height: 100svh; padding-top: 0; padding-bottom: 0; }
.hb.como-portada .lamina-i { position: absolute; z-index: -1; margin: 0; width: var(--lw, 100vw); left: var(--lx, 10vw); top: var(--ly, 4vh); }
.hb.como-portada .texto { position: absolute; left: clamp(1.5rem, 7vw, 8rem); top: 33%; width: min(62vw, 112vh); }
.hb.como-portada h1 { font-size: clamp(3rem, min(6.4vw, 12vh), 8.5rem); line-height: 0.92; }
.hb.como-portada h1 .l > span { white-space: nowrap; }
.hb.como-portada .detalle { max-width: 54ch; margin-top: clamp(1.4rem, 3vh, 2.2rem); }
/* Lenguaje editorial menos rígido: los titulares salen un poco a la izquierda del texto */
.hb :is(h1, h2) { margin-left: -0.32em; }
.cierre-i :is(h1, h2) { margin-left: 0; }
.hb.preguntas h2 { font-size: clamp(3rem, min(6vw, 11.5vh), 8.4rem); }

/* Variante espejo: personaje a la izquierda, texto a la derecha */
.hb.como-portada.a-la-derecha .texto { left: auto; right: calc(var(--nav-dcha) + var(--punto-t) + 3rem); top: 36%; width: min(42vw, 76vh); }
.hb.como-portada.a-la-derecha h1 { font-size: clamp(2.8rem, min(4.6vw, 9vh), 6.6rem); }

/* Variedad: los apartados de texto alternan tres composiciones para que no sea todo igual.
   Se reparten solos por posición; quedan fuera las entradas con personaje, galerías, listas, logos y formularios. */
.hb:not(.primero):not(.cierre-i):not(.con-foto):not(.galeria):not(.capacidades-v):not(.valor):not(#trayectoria):nth-of-type(3n+2) .detalle { margin-left: auto; margin-right: 6vw; }
.hb:not(.primero):not(.cierre-i):not(.con-foto):not(.galeria):not(.capacidades-v):not(.valor):not(#trayectoria):nth-of-type(3n+1) { align-items: flex-end; text-align: right; }
.hb:not(.primero):not(.cierre-i):not(.con-foto):not(.galeria):not(.capacidades-v):not(.valor):not(#trayectoria):nth-of-type(3n+1) :is(h1, h2) { margin-left: 0; margin-right: -0.32em; }
.hb:not(.primero):not(.cierre-i):not(.con-foto):not(.galeria):not(.capacidades-v):not(.valor):not(#trayectoria):nth-of-type(3n+1) .cinco { justify-content: flex-end; }

/* Apartado con un móvil flotando que reproduce la demo de mywolly */
.hb.con-movil { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(2rem, 5vw, 6rem); }
.hb.con-movil h2 { font-size: clamp(2.8rem, min(4.8vw, 9.5vh), 7rem); }
.hb.con-movil .detalle { margin-left: 0 !important; margin-right: 0 !important; max-width: 80ch; }
.movil-flota { margin: 0 calc(-1 * var(--punto-t) - 1rem) 0 0; animation: flotar-m 7s ease-in-out infinite; }
.movil { position: relative; height: min(86vh, 900px); aspect-ratio: 1016 / 2200; border-radius: clamp(30px, 3vw, 46px); background: #111; padding: clamp(7px, 0.65vw, 10px);
  box-shadow: 0 0 0 1.5px #2a2a2a inset, 0 50px 80px -40px rgba(60, 30, 20, 0.45), 0 20px 40px -20px rgba(60, 30, 20, 0.25); transform: rotate(-1deg); }
.movil::before { content: ""; position: absolute; z-index: 2; top: calc(clamp(7px, 0.65vw, 10px) + 8px); left: 50%; width: 30%; height: 3.2%; margin-left: -15%; border-radius: 20px; background: #111; }
.movil video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: clamp(23px, 2.4vw, 37px); background: #fff; }
@keyframes flotar-m { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -2.2vh, 0) rotate(0.4deg); } }
@media (prefers-reduced-motion: reduce) { .movil-flota { animation: none; } }
