/* Carrusel Flexbox. El arte se separa del contenido. */
.portada { display: flex; flex-direction: column; background: #0d120f; }
.portada-ventana { position: relative; overflow: hidden; opacity: 1; transition: opacity .55s ease; }
.portada-ventana.cambiando { opacity: 0; transition-duration: .22s; }
.portada-pista { display: flex; align-items: stretch; transform: translateX(var(--desplazamiento,0%)); touch-action: pan-y; }
.banner { --zoom-inicio: 1.28; --recorrido-x: 3%; --recorrido-y: 1%; --foco: 65% 55%; --banner-rgb: 240 203 97; --acento: rgb(var(--banner-rgb)); position: relative; isolation: isolate; display: flex; flex: 0 0 100%; min-width: 0; min-height: clamp(620px,calc(100svh - 150px - var(--alto-contacto)),860px); overflow: hidden; }
/* Acentos tomados de las imágenes: tablero clásico, magia, fuego, mar y plumas. */
.banner-poleana-cuadrado { --banner-rgb: 240 203 97; }
.banner-poleana-pentagonal { --banner-rgb: 114 191 245; --recorrido-x: -3%; --recorrido-y: 2%; --foco: 55% 55%; }
.banner-surtur { --banner-rgb: 255 157 94; --recorrido-x: -3%; --foco: 75% 50%; }
.banner-poseidon { --banner-rgb: 107 212 217; --foco: 45% 50%; }
.banner-biblioteca { --banner-rgb: 139 216 161; --zoom-inicio: 1.08; --recorrido-x: -1%; --recorrido-y: 0%; --foco: 85% 0%; }
.banner-arte { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.banner-arte img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: translate3d(0,0,0) scale(1); transform-origin: var(--foco); }
/* Recorrido de cámara hacia el sujeto: alejamiento y paneo, siempre cubriendo el marco. */
.banner:not([aria-hidden="true"]) .banner-arte img { animation: recorrer-banner 9s cubic-bezier(.2,.45,.45,1) both; will-change: transform; }
@keyframes recorrer-banner {
    from { transform: translate3d(var(--recorrido-x),var(--recorrido-y),0) scale(var(--zoom-inicio)); }
    to { transform: translate3d(0,0,0) scale(1); }
}
.banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#0b120fec 0%,#0b120fc7 27%,#0b120f65 48%,transparent 76%),linear-gradient(0deg,#0d120f 0%,transparent 30%,#0b120f16); }
.banner-contenido { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 30px; padding: 55px var(--margen); }
.banner-texto { display: flex; flex-direction: column; align-items: flex-start; width: 58%; max-width: 750px; }
.banner h1, .banner h2 { font-size: clamp(70px,7.2vw,112px); line-height: .99; letter-spacing: -.045em; text-shadow: 0 3px 35px #00000022; }
.banner h1 em, .banner h2 em { color: var(--acento); }
.banner .etiqueta { color: var(--acento); margin-bottom: 25px; }
.banner-descripcion { max-width: 420px; color: #d0d4c9; font-size: 15px; line-height: 1.85; margin-top: 28px; }
.banner-precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; color: var(--texto); font: 500 22px/1.4 var(--sans); font-variant-numeric: tabular-nums; margin-top: 28px; }
.banner-precio span { font: 13px/1.5 var(--sans); color: var(--suave); }
.banner .acciones { margin-top: 26px; gap: 23px; }
.banner .boton-principal { --boton-fondo: var(--acento); }

.banner-poseidon .banner-arte img { object-position: 58% center; }
.banner-biblioteca .banner-arte img { object-position: 85% top; }
.banner-tablero .banner-texto { width: 45%; max-width: 580px; }
.portada-controles { display: flex; justify-content: center; align-items: center; padding: 4px var(--margen) 12px; min-height: 60px; border-bottom: 1px solid var(--linea); }
.portada-indices { display: flex; align-items: center; justify-content: center; gap: 2px; }
.portada-indices button { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 50%; }
.portada-indicador { width: 8px; height: 8px; border-radius: 999px; background: #8d9787; transition: width .25s ease, background-color .25s ease; }
.portada-indices button[aria-current] .portada-indicador { width: 32px; background: #efd3a0; }
.portada-indices button:hover .portada-indicador { background: #efd3a0; }
.portada-indices button:focus-visible { outline: 2px solid #efd3a0; outline-offset: 0; }
@media (min-width: 1800px) {
    .banner { min-height: 850px; }
    .banner-arte img { object-position: center 42%; }
}
@media (max-width: 1100px) {
    .banner h1, .banner h2 { font-size: 82px; }
    .banner-texto { width: 66%; }
}
@media (max-width: 900px) {
    .banner { min-height: 650px; }
    .banner-contenido { padding-block: 45px; }
    .banner h1, .banner h2 { font-size: 76px; }
    .banner-texto { width: 80%; }
    .banner-tablero h1, .banner-tablero h2 { font-size: clamp(54px,8vw,72px); }
}
/* La escena coral conserva a todos los personajes en tabletas verticales. */
@media (min-width: 601px) and (max-width: 900px) and (min-height: 501px) {
    .banner-biblioteca { --alto-arte: 50vw; --zoom-inicio: 1.04; --recorrido-x: 0%; }
    .banner-biblioteca .banner-arte { inset: 0 0 auto; height: var(--alto-arte); }
    .banner-biblioteca .banner-arte img { object-position: right top; }
    .banner-biblioteca::before { background: linear-gradient(0deg,#0d120f 0%,#0d120f calc(100% - var(--alto-arte)),transparent calc(100% - var(--alto-arte) + 100px)); }
    .banner-biblioteca .banner-contenido { align-items: flex-start; padding-block: calc(var(--alto-arte) - 24px) 30px; }
    .banner-biblioteca .banner-texto { width: 100%; }
    .banner-biblioteca h2 { font-size: clamp(42px,6vw,54px); }
    .banner-biblioteca .etiqueta { margin-bottom: 14px; }
    .banner-biblioteca .banner-descripcion { margin-top: 16px; max-width: 520px; line-height: 1.65; }
    .banner-biblioteca .acciones { margin-top: 20px; }
}
@media (max-width: 600px) {
    .banner { --zoom-inicio: 1.22; --alto-arte: clamp(200px, 64vw, 340px); min-height: 0; }
    .banner-arte { inset: 0 0 auto; height: calc(var(--alto-arte) + 150px); }
    .banner-arte img { object-position: 78% top; }
    .banner-poseidon .banner-arte img { object-position: 35% top; }
    .banner-biblioteca { --zoom-inicio: 1.06; --recorrido-x: 0%; }
    .banner-biblioteca .banner-arte { height: auto; aspect-ratio: 3 / 2; }
    .banner-biblioteca .banner-arte img { object-position: right top; }
    .banner-biblioteca .banner-arte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#0d120f,transparent 35%); }
    .banner::before { background: linear-gradient(0deg,#0d120f 0%,#0d120f calc(100% - var(--alto-arte) - 140px),#0d120fc9 calc(100% - var(--alto-arte)),transparent calc(100% - var(--alto-arte) + 100px)); }
    .banner-contenido { align-items: flex-start; padding: calc(var(--alto-arte) + 16px) var(--margen) 24px; }
    .banner-texto, .banner-tablero .banner-texto { width: 100%; max-width: none; }
    .banner-tablero .banner-arte { height: auto; aspect-ratio: 3 / 2; }
    .banner-tablero .banner-arte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#0d120f,transparent 45%); }
    .banner h1, .banner h2, .banner-tablero h1, .banner-tablero h2 { font-size: clamp(42px,11.5vw,64px); }
    .banner .etiqueta { font-size: 10px; letter-spacing: .12em; margin-bottom: 14px; }
    .banner .linea { width: 22px; margin-right: 10px; }
    .banner-descripcion { font-size: 15px; line-height: 1.65; max-width: 380px; margin-top: 16px; }
    .banner .acciones { margin-top: 20px; gap: 12px 20px; }
    .banner .boton { padding-inline: 22px; }
    .banner-precio { font-size: 20px; margin-top: 20px; }
}
@media (max-height: 500px) and (min-width: 601px) {
    .banner { min-height: 0; }
    .banner-contenido { padding-block: 30px; }
    .banner-texto, .banner-tablero .banner-texto { width: 55%; }
    .banner h1, .banner h2, .banner-tablero h1, .banner-tablero h2 { font-size: clamp(40px, 5.5vw, 58px); }
    .banner .etiqueta { margin-bottom: 12px; }
    .banner-descripcion { font-size: 14px; line-height: 1.6; margin-top: 16px; }
    .banner .acciones { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .portada-ventana, .portada-indicador { transition: none; }
    .banner:not([aria-hidden="true"]) .banner-arte img { animation: none; will-change: auto; }
}
