/* Fixed navigation crosses photographs, paper and plain sections. Give its
   text a surface with a known contrast in every theme. */
html {
    --accent-text: #8a3048;
    --action-bg: #842c43;
    --action-text: #fff;
}
html[data-theme="dark"] {
    --accent-text: #ffacb8;
    --action-bg: #f6a8b4;
    --action-text: #241519;
}
html[data-season="halloween"] { --accent-text: #ff9ca9; --action-bg: #922536; --action-text: #fff8ee; }
html[data-season="christmas"] { --accent-text: #f0cb89; --action-bg: #f1d49d; --action-text: #273322; }

html[data-theme] .header,
html[data-theme] .mobile-section-nav {
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
    backdrop-filter: none;
}
html[data-theme] .header { border: 0; border-bottom: 1px solid var(--line); }
html[data-theme] .header::after { display: none; }
html[data-theme="dark"] .logo-center img { filter: brightness(0) invert(1); }
html[data-season] .header .halloween-wordmark { color: var(--text); font-size: .75rem; letter-spacing: .09em; text-shadow: none; }
html[data-season] .header .day-indicator { color: var(--text); background: var(--surface); text-shadow: none; }
.nav-dots { padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.nav-dot { position: relative; padding: 0; }
.nav-dot::before { content: ''; position: absolute; inset: -8px; }
:where(a, button, summary, input, select):focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.section { scroll-padding-block-start: 5.5rem; }
#perfil, #nosotros { color: var(--text); }
.section-subtitle { color: var(--text-muted); opacity: 1; line-height: 1.5; }
.nosotros-narrative p strong, .welcome-title, .welcome-cta { color: var(--accent-text); }
.welcome-cta { border-color: currentColor; }
.welcome-cta:hover { color: var(--action-text); background: var(--action-bg); }
.nosotros-welcome { min-height: auto; }
.bento-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento-grid .item-standard { grid-column: span 3; }
.bento-item { min-width: 0; text-align: left; }
.bento-overlay {
    position: relative;
    margin-top: auto;
    padding: 1rem 1.25rem;
    background: rgb(12 13 14 / 92%);
    color: #fff;
}
.bento-title { line-height: 1.12; overflow-wrap: anywhere; }
.bento-desc { opacity: 1; line-height: 1.35; }
.bento-badge { font-size: .875rem; background: #84303e; color: white; }
.bento-tita { color: #27180e; background: linear-gradient(135deg, #ff762c, #ffad70); }
.bento-tita .bento-badge { background: #382015; color: white; }
.bento-tita .bento-title, .bento-tita .bento-desc { text-shadow: none; }

.revista-label { color: white; opacity: 1; background: rgb(12 13 14 / 92%); padding: .55rem; font-size: 1rem; }
.revista-stock-note { margin-top: .35rem; color: var(--text-muted); font: .875rem/1.5 'Inter', sans-serif; text-align: center; }
.revista-price-past { text-decoration: line-through; color: var(--text-muted); }
.movie-meta, .movie-director { font-size: .9375rem; line-height: 1.4; }
.upcoming-film { min-width: 0; overflow-wrap: anywhere; }
.movie-card:not(.movie-card--christmas):not(.movie-card--past) .movie-add-btn:enabled {
    background: var(--action-bg); color: var(--action-text);
}
.movie-card:not(.movie-card--christmas):hover .movie-director { color: var(--accent-text); }

#movieModal .modal, #pastMovieModal .modal { color: var(--text); background: var(--surface-raised); }
.modal-share button, .funcion-day-date, .total-price, .total-price s { color: var(--text-muted); }
.modal-share button, .funcion-day-date, .funcion-bundle-part { font-size: .875rem; line-height: 1.4; }
.modal-share button:hover, .total-price .discount-note { color: var(--accent-text); }
.total-price { font-size: 1rem; line-height: 1.5; }
html:not([data-theme="dark"]) .funcion-time:not(.selected) { background: #c2ddc3; color: #152819; }
html[data-theme] .modal-reserve-btn { background: var(--action-bg); color: var(--action-text); }
html[data-theme] #memberFreeTicketBtn { color: var(--accent-text); }
.site-footer {
    width: min(100%, 52rem);
    margin-top: 3rem;
    padding: 1.25rem .5rem;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
    font: .875rem/1.6 'Inter', sans-serif;
}
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; }
.site-footer a { color: var(--text); text-underline-offset: .2em; }
.site-footer p, #seoMovieLinks:not(:empty) { margin-top: .75rem; }

@media (min-width: 901px) and (max-width: 1160px) {
    .bento-grid .item-standard { grid-column: span 6; }
}
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
    .bento-grid .bento-item { height: auto; min-height: 15rem; }
    .bento-grid .item-large { min-height: 19rem; }
    #nosotros .nosotros-narrative { display: block; }
}
@media (max-width: 768px) {
    html[data-theme] .mobile-section-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.7rem), 1fr));
        border-top: 1px solid var(--line);
        padding: .2rem .25rem max(.2rem, env(safe-area-inset-bottom));
    }
    html[data-theme] .mobile-section-nav a {
        display: grid; place-content: center; min-height: 44px; min-width: 0;
        padding: .35rem .2rem; color: var(--text-muted); opacity: 1;
        font-size: .95rem; letter-spacing: .025em; text-shadow: none;
    }
    html[data-theme] .mobile-section-nav a.active {
        color: var(--text); text-decoration: underline; text-underline-offset: .3em;
    }
    #nosotros .bento-grid { padding-block: 0; flex: 0 0 auto; }
    .section { scroll-padding-bottom: 5rem; }
}
@media (max-width: 420px) {
    .movie-card--double .upcoming-films { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 769px) {
    /* Tall sections must be freely scrollable all the way to their last tile. */
    .sections-wrapper { scroll-snap-type: none; }
    .movies-timeline {
        align-items: center;
        align-items: safe center;
        padding-block: clamp(80px, 12vh, 112px);
    }
}

/* Keep the ABA balance inside the carnet, away from the main header. */
#headerBalanceDisplay { display: none !important; }
