.home-page {
    color: #00122d;
    background: #f6f8fd;
    font-family: var(--vc-font);
    /* El pie separa su contenido del blanco de la pagina; aqui el fondo de color
       ya hace ese trabajo, asi que absorbemos ese hueco en vez de dejarlo en blanco. */
    margin-bottom: calc(var(--vc-footer-gap) * -1);
    padding-bottom: var(--vc-footer-gap);
}
.home-page span { display: inline; }
.home-page a { color: inherit; }
.home-page a:focus-visible,
.home-page button:focus-visible,
.home-banners:focus-visible { outline: 3px solid #007ab2; outline-offset: 4px; }
.home-page section { scroll-margin-top: 100px; }
.home-page > section:first-child { padding-top: 22px; }
.home-promotions { padding-bottom: 24px; }
.home-banner-frame { position: relative; }
.home-banner-controls[hidden] { display: none; }
.home-banner-control { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -26px; border: 1px solid #d6e1ee; background: #fff; border-radius: 50%; color: #00122d; font-size: 20px; box-shadow: 0 3px 12px rgba(0, 18, 45, .22); transition: background .18s ease, opacity .18s ease; }
.home-banner-control--prev { left: 10px; }
.home-banner-control--next { right: 10px; }
.home-banner-control:disabled { opacity: 0; pointer-events: none; }
.home-banner-control:focus-visible { outline-color: #00122d; }
.home-banner-control:not(:disabled):hover { background: #abceff; }
.home-banners { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0; }
.home-banners::-webkit-scrollbar { display: none; }
.home-banner { position: relative; flex: 0 0 72%; min-width: 0; display: flex; align-items: center; justify-content: center; height: 260px; border-radius: 16px; overflow: hidden; background: #0b2036; scroll-snap-align: start; }
/* Relleno ambiental: la propia imagen, ampliada y desenfocada, ocupa el hueco
   que deja el cartel al no recortarse. Se adapta a los colores de cada pieza. */
.home-banner__ambient { position: absolute; inset: -8%; background-position: center; background-size: cover; filter: blur(34px) saturate(150%); transform: scale(1.08); }
.home-banner__veil { position: absolute; inset: 0; background: rgba(6, 26, 48, .42); }
.home-banner__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.home-banners--single .home-banner { flex-basis: 100%; height: 300px; }
.home-banners--single .home-banner--hero { height: auto; min-height: 300px; }
/* Banner fijo con texto: cartel a un lado, mensaje al otro. El texto va en HTML,
   nunca incrustado en la imagen, y sobre el velo para que se lea siempre. */
.home-banner--hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 0; padding: 0 34px 0 0; text-align: left; }
.home-banner--hero .home-banner__veil { background: linear-gradient(95deg, rgba(6, 26, 48, .34) 0%, rgba(6, 26, 48, .62) 42%, rgba(6, 26, 48, .84) 100%); }
.home-banner--hero .home-banner__img { grid-area: 1 / 1; height: 100%; padding: 18px 0 18px 18px; object-position: center; }
.home-banner__caption { grid-area: 1 / 2; position: relative; display: grid; justify-items: start; gap: 10px; padding-left: 30px; color: #fff; }
.home-page .home-banner__title { font-family: var(--vc-display); font-size: clamp(27px, 2.9vw, 41px); font-weight: 400; line-height: 1.05; letter-spacing: .7px; text-wrap: balance; }
.home-page .home-banner__text { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 42ch; }
.home-page .home-banner__cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 11px 20px; border-radius: 999px; background: #fff; color: #00122d; font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 10px rgba(0, 12, 28, .3); transition: transform .16s ease, box-shadow .16s ease; }
.home-page .home-banner__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 12, 28, .4); }
.home-banner-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.home-banner-dots[hidden] { display: none; }
.home-banner-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #b7c8dd; cursor: pointer; transition: background .18s ease, width .18s ease; }
.home-banner-dot[aria-current="true"] { width: 26px; border-radius: 999px; background: #00122d; }
.home-films { padding-top: 5px; padding-bottom: 38px; }
.vc-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-tabs { display: inline-flex; gap: 4px; max-width: 100%; margin-bottom: 22px; padding: 4px; border: 1px solid #dbe4f1; border-radius: 999px; background: #eaf0f9; }
.home-page .home-tab { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 20px; border-radius: 999px; color: #43597a; font-size: 14px; font-weight: 600; letter-spacing: -.1px; white-space: nowrap; text-decoration: none; transition: background .18s ease, color .18s ease; }
.home-page .home-tab:hover { color: #00122d; }
.home-page .home-tab[aria-selected="true"] { background: #00122d; color: #fff; box-shadow: 0 2px 8px rgba(0, 18, 45, .18); }
/* El punto solo vive en la pestaña de venta: es la señal de "se puede comprar ya". */
.home-page .home-tab__multi { display: block; line-height: 1.25; text-align: center; white-space: nowrap; }
.home-page .home-tab__multi span { display: block; }
.home-tab__dot { display: block; flex: 0 0 8px; height: 8px; border-radius: 50%; background: #7f96b5; transition: background .18s ease; }
.home-tab[aria-selected="true"] .home-tab__dot { background: #35d07f; box-shadow: 0 0 0 3px rgba(53, 208, 127, .25); }
.home-panel[hidden] { display: none; }
.home-panel + .home-panel { margin-top: 34px; }
.home-panel__title { margin: 0 0 20px; font-family: var(--vc-display); font-size: clamp(28px, 2.8vw, 40px); font-weight: 400; line-height: 1.05; letter-spacing: .6px; }
.home-panel--upcoming { padding: 28px 26px 6px; border: 1px solid #d9e4f0; border-radius: 18px; background: #edf3fb; }
.home-section-link { display: inline-flex; gap: 10px; align-items: center; color: #43597a; font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.home-page .home-section-link__arrow { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #ccdae9; border-radius: 50%; background: #fff; font-size: 13px; line-height: 1; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.home-section-link:hover { color: #00122d; }
.home-section-link:hover .home-section-link__arrow { border-color: #007ab2; background: #eaf4ff; transform: translateY(2px); }
.home-empty .home-section-link:hover .home-section-link__arrow { transform: translateY(-2px); }
.home-movie-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 18px; padding: 0; margin: 0; }
.home-movie { display: flex; flex-direction: column; min-width: 0; }
/* Con subgrid, cartel y datos quedan alineados en toda la fila aunque los
   titulos ocupen una o dos lineas. */
@supports (grid-template-rows: subgrid) {
    .home-movie-grid { grid-auto-rows: auto; }
    .home-movie { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
}
.home-movie-head { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 4px; text-align: center; }
.home-poster { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3; border-radius: 10px; background: transparent; }
.home-poster > img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.home-poster:hover > img { transform: scale(1.025); }
.home-poster .home-poster-placeholder { background: #dfebf8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; padding: 20px; color: #42618a; text-align: center; font-size: 13px; }
.home-poster-placeholder ion-icon { font-size: 38px; }
.home-poster .home-preventa,
.home-poster .home-format { position: absolute; display: inline-flex; align-items: center; top: 10px; border-radius: 999px; font-size: 12px; line-height: 1; font-weight: 700; padding: 8px 11px; }
/* El ámbar es el color de preestreno en toda la web (ver cartelera y ficha).
   Distingue sin robar sitio: el preestreno no ocupa más ni sube de posición,
   solo es lo único ámbar entre siete carteles. */
.home-poster .home-preventa { left: 10px; max-width: calc(100% - 20px); background: #fff0da; color: #875007; box-shadow: 0 2px 8px rgb(0 18 45 / 28%); }
/* La separación va en margen y en un espacio duro del texto, no en `gap`:
   así no depende de qué regla gane la cascada sobre el display del flex. */
.home-poster .home-preventa ion-icon { flex-shrink: 0; margin-right: 5px; font-size: 14px; }
.home-page .home-preventa__texto { display: inline; min-width: 0; }
/* La fecha es la razón de ser de la pastilla: va en negrita y no se parte. */
.home-poster .home-preventa time { font-weight: 800; white-space: nowrap; }

/* En Próximos estrenos, aviso de que esa ya se puede comprar. */
.home-poster .home-yaventa { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; padding: 9px 10px; border-radius: 999px; background: #00122d; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; box-shadow: 0 2px 8px rgb(0 18 45 / 34%); }
.home-poster .home-yaventa ion-icon { flex-shrink: 0; margin-right: 6px; font-size: 15px; }
.home-page .home-yaventa__texto { display: inline; }
/* Anillo azul marino: la tarjeta entera dice que esa ya se puede comprar. */
.home-movie--venta .home-poster { box-shadow: 0 0 0 2px #00122d; }
/* La regla genérica de .home-upcoming-link vive más abajo: igualamos peso
   para que el botón de compra no salga en blanco. */
.home-page .home-upcoming-link.home-upcoming-link--venta { justify-content: center; gap: 8px; background: #00122d; color: #fff; border-color: #00122d; }
.home-page .home-upcoming-link.home-upcoming-link--venta:hover { background: #123b66; border-color: #123b66; }
.home-upcoming-link--venta ion-icon { flex-shrink: 0; font-size: 16px; }
/* Con fecha, la pastilla ocupa casi todo el ancho: el 3D se va abajo
   para no chocar, que además es donde menos estorba. */
.home-movie--preestreno .home-poster .home-format { top: auto; bottom: 10px; }
.home-movie--preestreno .home-poster { box-shadow: 0 0 0 2px #e0a33c; }
.home-poster .home-format { right: 10px; background: #00122d; color: #fff; }
.home-movie-copy { padding-top: 11px; padding-bottom: 12px; flex-grow: 1; }
.home-movie-copy > * + * { margin-top: 6px; }
.home-release { display: block; color: #366190; font-size: 12px; line-height: 1.6; font-weight: 600; letter-spacing: .1px; margin-bottom: 4px; text-align: center; }
.home-movie h3 { font-family: var(--vc-font); font-size: 14px; line-height: 1.35; letter-spacing: .3px; font-weight: 700; margin: 0; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; }
.home-movie h3 a:hover { color: #006998; }
.home-metadata { display: flex; align-items: center; justify-content: space-around; gap: 5px 8px; flex-wrap: wrap; font-size: 12px; line-height: 1.5; color: #526078; text-align: center; }
.home-metadata > span { white-space: nowrap; }
.home-metadata > .home-genre { white-space: normal; }
.home-metadata .home-age { display: inline-flex; align-items: center; padding: 1px 5px; border: 1px solid #b8c7da; border-radius: 4px; font-size: 12px; font-weight: 500; color: #304d70; }
.home-metadata .home-genre { min-width: 0; overflow-wrap: anywhere; }
.home-movie-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.home-page .home-showtimes,
.home-page .home-details,
.home-page .home-upcoming-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; padding: 9px 10px; border-radius: 7px; font-size: 12px; line-height: 1.3; font-weight: 600; text-transform: none; letter-spacing: 0; }
.home-page .home-showtimes { background: #00122d; color: #fff; }
.home-page .home-showtimes:hover { background: #123b66; }
.home-page .home-details,
.home-page .home-upcoming-link { border: 1px solid #b9c9db; background: #fff; color: #00122d; }
.home-page .home-details:hover,
.home-page .home-upcoming-link:hover { border-color: #007ab2; background: #edf6ff; }
.home-showtimes ion-icon,
.home-details ion-icon { flex-shrink: 0; font-size: 15px; }
.home-page .home-upcoming-link { justify-content: space-between; width: 100%; padding-inline: 12px; }
.home-empty { grid-column: 1 / -1; }
.home-empty h3 { font-size: 18px; margin-bottom: 8px; }
.home-empty p { line-height: 1.7; }
.home-empty .home-section-link { margin-top: 16px; }

@media (max-width: 1199px) {
    .home-movie-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 25px 15px; }
}
@media (max-width: 959px) {
    .home-movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-banner { height: 215px; flex-basis: 84%; }
    .home-banners--single .home-banner { height: 250px; }
    .home-banners--single .home-banner--hero { height: auto; min-height: 250px; }
    .home-banner--hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-right: 22px; }
    .home-banner__caption { padding-left: 20px; gap: 8px; }
}
@media (max-width: 639px) {
    .home-promotions { padding-bottom: 17px; }
    .home-banner { flex-basis: 93%; height: 150px; border-radius: 12px; }
    .home-banners { gap: 10px; }
    .home-banners--single .home-banner { height: 175px; }
    .home-banners--single .home-banner--hero { height: auto; min-height: 0; }
    .home-banner--hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; height: auto; min-height: 0; padding: 0 0 20px; text-align: center; }
    .home-banner--hero .home-banner__caption { grid-area: 2 / 1; }
    .home-banner--hero .home-banner__veil { background: linear-gradient(180deg, rgba(6, 26, 48, .3) 0%, rgba(6, 26, 48, .55) 45%, rgba(6, 26, 48, .86) 100%); }
    .home-banner--hero .home-banner__img { grid-area: 1 / 1; height: 158px; padding: 14px 14px 6px; }
    .home-banner__caption { justify-items: center; padding: 0 18px; gap: 8px; }
    .home-page .home-banner__title { font-size: 25px; letter-spacing: .5px; }
    .home-page .home-banner__text { font-size: 13px; }
    .home-banner-dots { margin-top: 10px; }
    .home-banner-control { width: 38px; height: 38px; margin-top: -23px; font-size: 17px; }
    .home-section-link { font-size: 12px; }
    .home-films { padding-bottom: 28px; }
    .home-tabs { display: flex; margin-bottom: 16px; }
    .home-panel__title { display: none; }
    .home-panel + .home-panel { margin-top: 0; }
    .home-panel--upcoming { padding: 0; border: 0; border-radius: 0; background: none; }
    .home-page .home-tab { flex: 1 1 auto; min-width: 0; padding: 9px 12px; font-size: 13px; }
    .home-page .home-tab span { display: block; }
    .home-movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
    .home-movie h3 { font-size: 14px; }
    .home-poster .home-preventa,
    .home-poster .home-format { top: 8px; padding: 6px 9px; font-size: 11px; }
    .home-poster .home-preventa { left: 8px; }
    .home-poster .home-yaventa { left: 8px; right: 8px; bottom: 8px; padding: 7px 8px; font-size: 11px; }
    .home-poster .home-yaventa ion-icon { margin-right: 5px; font-size: 13px; }
    .home-poster .home-format { right: 8px; }
    .home-movie--preestreno .home-poster .home-format { top: auto; bottom: 8px; }
    .home-poster .home-preventa ion-icon { font-size: 12px; }
    /* En movil la tarjeta se queda en lo imprescindible: estreno, titulo y
       botones. La duracion, el formato, la edad y los generos estan en la ficha. */
    .home-movie-head { padding-bottom: 3px; }
    .home-movie-copy { display: none; }
    .home-movie-actions,
    .home-page .home-upcoming-link { margin-top: 11px; }
    .home-release { margin-bottom: 2px; font-size: 12px; }
    .home-page .home-showtimes,
    .home-page .home-details,
    .home-page .home-upcoming-link { min-height: 44px; padding: 9px 8px; font-size: 12px; }
    .home-showtimes ion-icon,
    .home-details ion-icon { font-size: 14px; }
    .home-movie-actions { gap: 5px; }
}
@media (max-width: 359px) {
    .home-showtimes ion-icon,
    .home-details ion-icon { display: none; }
    .home-page .home-showtimes,
    .home-page .home-details { padding-inline: 7px; font-size: 12px; }
}
@media (min-width: 640px) { .home-tabs { display: none; } }
@supports (grid-template-rows: subgrid) {
    @media (max-width: 639px) { .home-movie { grid-row: span 3; } }
}
@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after { transition: none !important; scroll-behavior: auto !important; }
}
