/* =====================================================================
   PRECIOS DE CINE — HOJA DE ESTILOS PRINCIPAL
   Orden: base > cabecera > hero > secciones > tarjetas > filtros > ficha
          > promociones > pie > diseño responsive > accesibilidad.
   Mantiene los componentes originales botones.css, checkboxes.css y search.css.
   ===================================================================== */
@import url("botones.css");
@import url("checkboxes.css");
@import url("search.css");

/* 01. Colores y reglas generales -------------------------------------- */
:root {
    --background: #0F0E0B;
    --text: #FEFEFE;
    --muted: #aaa;
    --panel: #171615;
    --border: #555;
    --blu-ray: #0095d5;
    --steelbook: #a7adb7;
    --collector-br: #e53935;
    --collector-4k: #b99755;
    --special-br: #9266c6;
    --special-4k: #31a8ac;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--background);
    color: var(--text);
    font-family: 'Montserrat', Helvetica, sans-serif;
    overflow-x: hidden;
}
a { color: inherit; }
button, input, select { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
#app { min-height: 65vh; }
.content { min-width: 0; }
.loading, .error-message, .empty-block { padding: 24px; color: #d3d3d3; }
.empty-block {
    border: 1px solid #454545;
    border-radius: 10px;
    background: var(--panel);
}
.error-message { color: #f0b5b5; }

/* 02. Cabecera y navegación — tamaños originales --------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 70px;
    padding: 0 40px;
    background: var(--background);
    border-bottom: 1px solid #333;
    box-shadow: 0 4px 14px #0005;
    font-size: 14px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 32px;  /* tamaño original de PRECIOS DE CINE */
    font-weight: 700;
    white-space: nowrap;
}
.logo-img { max-height: 48px; max-width: 46px; object-fit: contain; }
.header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    text-transform: uppercase;
}
.header nav a {
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
    color: var(--text);
    font-weight: 600; /* algo menos que negrita completa */
    text-decoration: none;
}
.header nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: width 400ms cubic-bezier(.25,.8,.25,1);
}
.header nav a:hover::after, .header nav a.active::after,
.header nav a:focus-visible::after { width: 100%; }

/* 03. Hero y formularios de búsqueda --------------------------------- */
.hero {
    height: 240px;  /* tamaño original */
    position: relative;
    background-image: url('imagenes/header_background.png');
    background-position: top;
    background-size: cover;
    border-bottom: 1px solid #333;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 35px 20px 5px;
    text-align: center;
}
.hero h1 {
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero p {
    max-width: 700px;
    margin: 0 auto 25px;
    color: #d1d1d1;
    font-size: 16px;
}
/* El componente .animated-search conserva sus bordes y efectos originales. */
.search-form { min-width: 0; }
.search-form input { flex: 1; min-width: 0; }
.header-search {
    flex: 0 1 270px;
    min-width: 140px;
    height: 40px;
    margin: 0;
}
.hero .search-box {
    width: 100%;
    max-width: 700px;   /* anchura del search.css original */
    height: 49px;      /* sin aumentar de tamaño por el botón */
    min-height: 49px;
    flex: 0 0 49px;
    align-self: center;
    padding: 7px 15px;
    margin: auto auto 25px;
}
.search-form .search-icon {
    width: 25px;
    height: 28px;
    min-width: 25px;
    min-height: 28px;
    padding: 0;
    flex: 0 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: #ddd;
    font-size: 15px;
    box-shadow: none;
    transition: color .2s ease;
}
.search-form .search-icon:hover,
.search-form .search-icon:focus-visible {
    color: #fff;
    background: transparent;
    transform: none;
    box-shadow: none;
    font-size: 15px;
}

/* Quitar el  buscador del header en Inicio*/
body.is-home .header-search {
    visibility: hidden;
    pointer-events: none;
}

/* 04. Contenedores y títulos de secciones ---------------------------- */
.home-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 25px;
    margin-bottom: 40px;
}

.home-feature-row > .home-section {
    min-width: 0;
    margin-bottom: 0;
}

.home-feature-row > .promo-panel {
    position: static;
    width: 100%;
    margin: 0;
    float: none;
}

.container { display: grid; gap: 25px; padding: 20px; }
.container-home {
    display: block;
    position: relative;
    padding: 20px 35px 30px 35px;
}
.container-catalogo {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
}
.home-section {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
    margin-bottom: 40px;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    font-size: 20px;
}
.section-title h2 {
    font-size: 26px; 
    font-weight: 700;
    line-height: 1.2;
}
/* Se usan botones auténticos para heredar botones.css sin rediseños. */
.section-see-all { padding: 10px 20px; white-space: nowrap; }

/* Añadimos espacio entre la flecha y el texto del botón */
.section-see-all,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.empty-discounts { min-height: 14px; }

/* 05. Carruseles de Inicio ------------------------------------------- */
.carousel-shell { 
    position: relative;
    min-width: 0;
    overflow: visible; }
.movies-row {
    display: flex;
    align-items: stretch;
    gap: 15px;
    padding: 16px 6px 28px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: none;
    scroll-behavior: auto;
    overscroll-behavior-inline: contain;
}
.movies-row::-webkit-scrollbar { display: none; }
.movies-row.carousel-animating {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}
.scroll-arrow {
    position: absolute;
    z-index: 20;
    top: 170px; /* centro visual de las portadas, no de toda la tarjeta */
    transform: translateY(-50%);
    width: 42px;
    height: 65px;
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #626262;
    border-radius: 12px; /* rectangular, no redondo */
    background: #171615f2;
    color: #fff;
    font-size: 17px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, color .2s, background .2s, box-shadow .2s;
}
.scroll-arrow-left { left: 3px; }
.scroll-arrow-right { right: 3px; }
.carousel-shell:hover .scroll-arrow:not([hidden]),
.carousel-shell:focus-within .scroll-arrow:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}
.scroll-arrow:hover {
    transform: translateY(-50%);
    background: #fff;
    color: #060709;
    box-shadow: #0004 0 8px 15px;
    font-size: 17px;
}
.scroll-arrow[hidden] { display: none !important; }

/* 06. Tarjetas de películas y efecto 3D FIJO ------------------------- */
.movie-card {
    --lift-rotate-y: -10deg; /* Horizontal, como un libro */
    --lift-rotate-z: 0deg;
    --lift-x: 0px;
    --lift-y: 0px; /* Arriba */
    --lift-z: 10px;/* Hacia la pantalla */
    --lift-scale: 1.018;
    --lift-duration: .34s;

    position: relative;
    display: flex;
    flex: 0 0 220px;
    flex-direction: column;
    width: 220px;
    min-width: 0;
    border: 1px solid #262626;
    border-radius: 14px;
    background: #0e0e0e;
    scroll-snap-align: start;
    overflow: visible;
}
.cover-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.cover-box {
    pointer-events: none;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #1A1918;
    transform-origin: 8% 50%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform: perspective(900px) rotateY(0deg) rotateZ(0deg) translate3d(0,0,0) scale(1);
    transition:
        transform var(--lift-duration) cubic-bezier(.22,.61,.36,1),
        box-shadow var(--lift-duration) ease;
}
/* Inclinación estable: se levanta la parte derecha, sin script de ratón. */
@media (hover: hover) {
    .movie-card:hover .cover-box,
    .movie-card:focus-within .cover-box {
        transform:
            perspective(900px)
            rotateY(var(--lift-rotate-y))
            rotateZ(var(--lift-rotate-z))
            translate3d(
                var(--lift-x),
                var(--lift-y),
                var(--lift-z)
            )
            scale(var(--lift-scale));

        box-shadow: 14px 16px 26px rgba(0, 0, 0, .68);
    }
}
.cover-box::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 3px solid transparent;
    border-radius: inherit;
    pointer-events: none;
}
.cover-box.bluray::after { border-color: var(--blu-ray); }
.cover-box.blurayec::after { border-color: var(--collector-br); }
.cover-box.blurayes::after { border-color: var(--special-br); }
.cover-box.fourk::after { border-color: #50565e; }
.cover-box.fourkec::after { border-color: var(--collector-4k); }
.cover-box.fourkes::after { border-color: var(--special-4k); }

/* Añade un reflejo en el borde derecho */
.cover-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent 65%,
        rgba(255,255,255,.17)
    );
    transition: opacity .38s ease;
}
@media (hover: hover) {
    .movie-card:hover .cover-box::before,
    .movie-card:focus-within .cover-box::before {
        opacity: 1;
    }
}


/* Los Steelbooks no llevan el borde de la caja estándar. */
.cover-box.bluraysteel::after, .cover-box.fourksteel::after { display: none; }
.cover-box.sinformato::after { border-color: #686868; }
.format-band {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 30px;
    padding: 0 5px;
    color: #FEFEFE;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, #0095d5, #006b9f);
    box-shadow: 0 2px 8px #0004;
}
.format-band.bluray { background: linear-gradient(90deg, #0095d5, #006b9f); }
.format-band.blurayec { background: linear-gradient(90deg, #e53935, #9f151b); }
.format-band.blurayes { background: linear-gradient(90deg, #9266c6, #563980); }
.format-band.fourk { background: linear-gradient(90deg, #50565e, #252b33); }
.format-band.fourkec { background: linear-gradient(90deg, #b99755, #695028); }
.format-band.fourkes { background: linear-gradient(90deg, #31a8ac, #155b62); }
/* Grafito casi negro, un ligero brillo metálico, sin borde exterior. */
.format-band.bluraysteel, .format-band.fourksteel {
    background: linear-gradient(110deg, #25282e, #07090b 60%, #383c43);
    color: #f5f5f5;
}
.format-band.sinformato { background: linear-gradient(90deg, #555, #282828); }
.poster-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #1b1b1d;
    border-radius: 0 0 14px 14px;
}
.poster-area img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* siempre el póster completo */
}
.poster-area.sin-imagen::before, .edition-photo.sin-imagen::before {
    content: 'Portada no disponible';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 15px;
    color: #aaa;
    font-size: 13px;
    text-align: center;
}
.price-discount-percentage {
    position: absolute;
    z-index: 5;
    bottom: 0;
    left: 0;
    padding: 6px 10px;
    border-radius: 0 8px 0 0;
    background: #d53b2c;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}
.movie-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 12px; /* como el diseño original */
}
.movie-info h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-height: 2.5em;
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    text-overflow: ellipsis;
}
.movie-info h3 a { text-decoration: none; }
.movie-info h3 a:hover { text-decoration: underline; }
.movie-info .movie-subtitle {
    max-width: 100%;
    margin: 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 25px;
    margin: 5px 0 0;
    overflow: hidden;
}
.tags span {
    padding: 4px 8px;
    background: #1E1D1B;
    border-radius: 999px;
    color: #d4d4d4;
    font-size: 12px;
    font-weight: 600;
}
.price-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 39px;
    margin-top: 5px;
    text-align: left;
}
.price-row strong, .current-price { font-size: 28px; font-weight: 800; }
.price-row del { color: #9ca3af; font-size: 16px; }
.price-unavailable { color: #aaa; font-size: 15px; font-weight: 500; }
.recommended-label { color: #aac3d0; font-size: 11px; }
.release-card-date { font-size: 13px; font-weight: 700; color: #e1e1e1; line-height: 1.4; }
.release-card-date i { margin-right: 4px; }


/* 07. Panel de promociones — flotante, no ocupa una columna perpetua -- */
.normal-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
}
.normal-panel h2 { border-bottom: 1px solid var(--border); padding-bottom: 10px; }


.promo-panel h2 { font-size: 24px; }
.promo-card-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #555;
}
.promo-card-container img {
    width: 100%;
    max-width: 130px;
    flex: 0 0 130px;
    border-radius: 8px;
    object-fit: contain;
}
.promo-card-text { display: flex; flex-direction: column; align-items: flex-start; }
.promo-card-text h3 { margin-bottom: 0; font-size: 28px; }
.promo-card-text p { margin-bottom: 7px; color: #aaa; font-size: 14px; }
.promo-card-text h4 { margin-bottom: 10px; font-size: 14px; font-weight: 400; }
.promo-card-text button { width: 100%; padding: 9px; }

/* 08. Catálogo: sidebar, checkboxes, scrollbars y sliders ------------ */
.filter-panel {
    width: 100%;
    position: relative;
    padding-bottom: 14px; /* sin franja vacía abajo */
    overflow: visible;
}
.filter-panel h2 { font-size: 21px; }
.filter-panel h3 { margin-bottom: 7px; font-size: 16px; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; }
.filter-group { margin-top: 14px; padding-bottom: 12px; border-bottom: 1px solid #555; }
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: 175px;
    padding-right: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: auto;
    scrollbar-color: #FEFEFE #282725;
}
.filter-options.is-collapsed { display: none; }
.filter-expand .filter-options { max-height: 200px; }
.filter-options::-webkit-scrollbar { width: 12px; }
.filter-options::-webkit-scrollbar-track { background: #282725; border-radius: 12px; }
.filter-options::-webkit-scrollbar-thumb {
    background: #FEFEFE;
    border: 2px solid #282725;
    border-radius: 12px;
}
.filter-options::-webkit-scrollbar-thumb:hover { background: #c9c9c9; }
.ios-checkbox.filter-option {
    --checkbox-color: #0095d5;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 22px;
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 400;
    white-space: normal !important;
}
.ios-checkbox.filter-option input {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    left: 2px;
    top: 2px;
}
.ios-checkbox.filter-option .checkbox-wrapper {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}
.filter-toggle {
    flex: 0 0 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 31px;
    min-height: 0;
    padding: 0;
    margin: 0;
    font-size: 14px;
    border-radius: 11px;
}
.filter-toggle:hover { font-size: 14px; }

.filter-toggle i { margin: 0;}
.filter-actions {
    position: sticky;
    bottom: 10px;
    z-index: 100;
    padding: 20px 0 0px;
    background: var(--panel);
}

.filter-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.filter-group-heading h3 {
    margin: 0;
}

.filter-actions .btn-update {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px;

}
.filter-clear {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 10px 12px;
}
.range-row { display: flex; gap: 8px; }
.range-row label { flex: 1; min-width: 0; font-size: 12px; }
.range-row input {
    width: 100%;
    min-width: 0;
    padding: 7px;
    margin-top: 5px;
    color: #fff;
    background: #252423;
    border: 1px solid #555;
    border-radius: 8px;
}
.slider-labels { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.dual-slider { position: relative; height: 34px; margin: 9px 5px 5px; --from: 0%; --to: 100%; }
.slider-track {
    position: absolute;
    top: 13px;
    left: 0;
    right: 0;
    height: 6px;
    background: #313131;
    border-radius: 8px;
    pointer-events: none;
}
.slider-track::before {
    content: '';
    position: absolute;
    left: var(--from);
    right: calc(100% - var(--to));
    height: 6px;
    border-radius: 8px;
    background: #0095d5;
}
.dual-slider input[type='range'] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 34px;
    margin: 0;
    padding: 0;
    appearance: none;
    background: transparent;
    pointer-events: none;
}
.dual-slider input[type='range']::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #0095d5;
    pointer-events: auto;
}
.dual-slider input[type='range']::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #0095d5;
    pointer-events: auto;
}
.dual-slider input[id$='-min-slider'] { z-index: 3; }
.dual-slider input[id$='-max-slider'] { z-index: 4; }
.filter-mobile-close, .show-filters, .filter-scrim { display: none; }
.catalogue-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
.sort-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sort-controls label { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.sort-controls select {
    max-width: 250px;
    padding: 10px;
    background: var(--panel);
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
}
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 20px 14px;
}
.catalogue-grid .movie-card { width: 100%; max-width: 270px; }
.page-heading { margin-bottom: 18px; }
.page-heading h1 { margin-bottom: 8px; font-size: 28px; }
.page-heading p { color: #aaa; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 30px 0; }
.pagination button { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 10px; }
.pagination button.selected { background: #0095d5; border-color: #0095d5; }
.pagination button:disabled { opacity: .35; }

/* 09. Ficha de edición y comercios ----------------------------------- */
.edition-page {
    --edition-accent: #82b6d2;
    max-width: 1250px;
    margin: auto;
    padding: 30px 30px 70px;
}
.edition-page.blurayec { --edition-accent: #e53935; }
.edition-page.blurayes { --edition-accent: #9266c6; }
.edition-page.fourk { --edition-accent: #9399a1; }
.edition-page.fourkec { --edition-accent: #b99755; }
.edition-page.fourkes { --edition-accent: #31a8ac; }
.edition-page.bluraysteel, .edition-page.fourksteel { --edition-accent: #aeb5bf; }
.edition-page.sinformato { --edition-accent: #c0c0c0; }
.back-link { margin: 0 0 25px; padding: 10px 20px; }
.edition-layout {
    display: grid;
    grid-template-columns: minmax(240px, 350px) minmax(0, 1fr);
    gap: 38px;
    align-items: start;
    margin-top: 15px;
}
.edition-photo {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: #fff;
    border: 8px solid #fff; /* marco blanco de Mubis */
    border-radius: 12px;
    box-shadow: 0 10px 28px #0007;
}
.edition-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.edition-label {
    margin: 2px 0 6px;
    color: var(--edition-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}
.edition-main h1 { margin-bottom: 5px; font-size: clamp(24px, 3vw, 39px);}
.edition-main h2{ margin-bottom: 10px; color: #c0c0c0; font-size: 20px; font-weight: 600;}
.edition-creator { margin-bottom: 8px; color: #aaa; line-height: 1.4; display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;}
.film-year {
    font-size: 22px;
    font-weight: 500;
    color: #dadada;
    margin-left: 0px;
}
.edition-separator {
    color: #888;
    font-size: 18px;
}
.original-title {
    color: #c0c0c0;
    font-size: 16px;
    font-weight: 500;
}
.person-link {
    color: #bdbdbd;
    text-decoration: none;
    border-bottom: 1px solid #bdbdbd;
    transition: color .2s, border-color .2s;
}
.person-link:hover { color: #fff; border-color: #fff; }
.person-list { line-height: 1.8; }
.store-list { display: flex; flex-wrap: wrap; align-items: stretch; gap: 15px; margin-bottom: 22px; }
.store-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 185px;
    min-height: 165px;
    padding: 11px;
    background: #1e1d1b;
    border: 1px solid #555;
    border-radius: 13px;
    margin-top: 22px;
}
.store-choice {
    color: inherit;
    text-decoration: none;
}

.store-choice[href] {
    cursor: pointer;
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.store-choice[href]:hover {
    transform: translateY(-2px);
    border-color: #FEFEFE;
}

.store-choice .store-button {
    pointer-events: none;
}

.store-choice.store-disabled {
    cursor: default;
}

.store-choice.cheapest {
    width: 204px;
    padding: 13px 11px;
    background: #172b1d;
    border: 2px solid #4fa96b;
    box-shadow: 0 0 0 2px #4fa96b22;
}
.store-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 82px;
    padding: 10px;
    border: 1px solid #b1b1b1;
    border-radius: 10px;
    text-decoration: none;
    transition: filter .2s;
}
.store-button:hover { filter: brightness(.9); }
.store-button.amazon { background: #fff; }
.store-button.fnac { background: #EBB300; }
.store-button.todoconsolas {background: #0055da}
.store-button.todoconsolas img {max-width: 146px;}
.store-button.store-disabled { opacity: .78; cursor: default; }
.store-button.store-disabled:hover { filter: none; }
.shop-logo { width: auto; max-width: 116px; max-height: 42px; object-fit: contain; }
.store-price { margin-top: 13px; text-align: center; font-size: 20px; font-weight: 800; }
.cheapest .store-price { font-size: 23px; }
.store-price.store-price-unavailable {
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}
.cheapest-note { margin-top: 9px; color: #8ae39c; font-size: 12px; font-weight: 700; text-align: center; }
.edition-release { margin: 10px 0; color: #bababa; font-size: 14px; }
.edition-description { margin-top: 8px; line-height: 1.7; }
.edition-description p{ margin-bottom: 14px}
.edition-description h3{line-height: 1.2}
.edition-details { margin-top: 44px; padding-top: 22px; border-top: 1px solid #444; }
.edition-details h2 { margin-bottom: 18px; color: var(--edition-accent); }
.edition-details dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.detail-item { padding: 12px 0; border-bottom: 1px solid #363636; min-width: 0; }
.detail-item dt { margin-bottom: 6px; color: var(--edition-accent); font-size: 13px; }
.detail-item dd { line-height: 1.55; overflow-wrap: anywhere; }
.related-panel { margin-top: 45px; width: 100%; }
.related-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.related-heading h2 { font-size: 24px; }
.related-heading h2 span { color: #aaa; font-weight: 400; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 12px; }
.related-grid .movie-card { width: 100%; max-width: 220px; }
.related-more { padding: 10px 20px; }


/* Botón de reportar */
.edition-page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
}

.back-link {
    margin: 0;
    padding: 10px 20px;
}

.report-error {
    padding: 8px 12px;
    background: #941f25;
    border-color: #bb363c;
    color: #fff;
    font-size: 14px;
    border-radius: 10px;
}

.report-error:hover {
    background: #c52d36;
    color: #fff;
    font-size: 14px;
}

.report-error i {
    margin-right: 7px;
}


/* Cuatro tarjetas en la misma fila: Amazon, Fnac, TodoConsolas, alerta. */
.edition-main .store-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.edition-main .store-list > .store-choice,
.edition-main .store-list > .store-choice.cheapest {
    width: 100%;
    min-width: 0;
}
@media (max-width: 1200px) {
    .edition-main .store-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Nueva tarjeta de alertas, siempre después de las tiendas */
.alert-choice {
    justify-content: flex-start;
    gap: 7px;
}
.alert-store-button {
    background: #26211c;
    color: #e8c47e;
    font-size: 32px;
}
.alert-action {
    width: 100%;
    min-height: 36px;
    padding: 8px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
}
.alert-action:hover { font-size: 14px; }
.alert-card-caption {
    color: #aaa;
    font-size: 11px;
    text-align: center;
}
.price-alert-form {
    display: grid;
    gap: 12px;
    padding: 20px;
    margin: -5px 0 24px;
    border: 1px solid #625746;
    border-radius: 12px;
    background: #1b1916;
}
.price-alert-form[hidden] { display: none; }
.price-alert-form h3 { font-size: 18px; }
.price-alert-form > p { color: #bbb; font-size: 13px; }
.price-alert-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.price-alert-fields label { display: grid; gap: 7px; color: #ddd; font-size: 13px; }
/* Campos de precio y correo */
.price-alert-fields input {
    min-width: 0;
    width: 100%;
    padding: 11px;
    border: 1px solid #62605f;
    border-radius: 9px;
    background: #252423;
    color: #fff;
    font: inherit;
}

/* Casilla de consentimiento */
.price-alert-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #ccc;
}

.price-alert-consent input {
    flex: 0 0 auto;
    margin-top: 2px;
}

/* Campo antispam: invisible para los usuarios */
.price-alert-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Botón de envío */
.price-alert-submit {
    justify-self: start;
    padding: 11px 15px;
    font-size: 14px;
}

/* Botón independiente de las tarjetas de tienda. */
.price-alert-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    align-self: center;
    justify-self: stretch;
    width: 90%;
    min-height: 50px;
    padding: 14px 12px;
    border: 1px solid #c9a35a;
    border-radius: 13px;
    background: #231e17;
    color: #f0d7a2;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color .25s ease, background .25s ease,
                border-color .25s ease, box-shadow .25s ease,
                transform .25s ease;
}
.price-alert-trigger:hover,
.price-alert-trigger:focus-visible {
    background: #fefefe;
    color: #171615;
    border-color: #fefefe;
    box-shadow: 0 8px 18px #0006;
    transform: translateY(-2px);
    font-size: 14px;
    font-weight: 700;
}
.price-alert-trigger:active { transform: translateY(0); }
.price-alert-trigger i { font-size: 17px; }
.price-alert-submit:hover { font-size: 14px; }
.price-alert-status { min-height: 1.4em; font-size: 13px; }
.price-alert-status.success { color: #9ee2ab; }
.price-alert-status.error { color: #ffc1c1; }
@media (max-width: 540px) {
    .price-alert-fields { grid-template-columns: minmax(0, 1fr); }
    .price-alert-submit { width: 100%; }
}

/* 10. Pie de página ---------------------------------------------------- */
.affiliate-disclosure {
    grid-column: 3;
    justify-self: end;
    width: 100%;
    max-width:600px;
    padding: 0;
    margin: 0;
    text-align: right;
    color: #bdbdbd;
    font-size: 11px;
    line-height: 1.4;
}

.affiliate-disclosure p {
    margin-bottom: 4px;
}

.site-footer {
    margin-top: 15px;
    padding: 12px 35px;
    border-top: 1px solid #343331;
    background: #171615;
    color: #ccc;
    
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: none;
    gap: 20px;
    margin: 0;
}


.footer-inner::after {
    display: none;
}
.footer-brand { color: #fff; font-weight: 700; font-size: 18px; }
.footer-note { max-width: 630px; margin-top: 9px; color: #aaa; font-size: 12px; line-height: 1.65;}
.footer-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-bottom {
    grid-column: 1;
    justify-self: start;
    text-align: left;
    color: #c0c0c0;
    font-size: 12px;
    line-height: 1.6;
}

.footer-contact {
    display: inline;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #c0c0c0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
    grid-column: 2;
    justify-self: center;
    margin: 0;
}

.footer-contact:hover {
    color: #FEFEFE;
    background: transparent;
    box-shadow: none;
    transform: none;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
}

/* CONTACTO */

.contact-page {
    max-width: 830px;
    margin: auto;
    padding: 45px 24px 80px;
}

.contact-heading h1 {
    font-size: clamp(25px, 4vw, 34px);
    margin-bottom: 10px;
}

.contact-heading p {
    color: #bdbdbd;
    line-height: 1.65;
    margin-bottom: 25px;
}

.contact-panel {
    padding: 30px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.contact-fields-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

#contact-form input,
#contact-form textarea,
#contact-form select {
    display: block;
    width: 100%;
    padding: 13px;
    border: 1px solid #62605f;
    border-radius: 12px;
    background: #22211f;
    color: #FEFEFE;
    font: inherit;
    font-weight: 400;
}

#contact-form textarea {
    resize: vertical;
    min-height: 155px;
    line-height: 1.5;
}

#contact-form input[readonly] {
    color: #ccc;
    background: #302f2c;
}

#contact-form input:focus-visible,
#contact-form select:focus-visible,
#contact-form textarea:focus-visible {
    outline: 2px solid #FEFEFE;
    outline-offset: 2px;
}

.contact-hint {
    color: #b2b2b2;
    font-size: 12px;
    line-height: 1.65;
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#contact-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
}

#contact-send i {
    margin-right: 0;
}

#contact-send:disabled {
    opacity: .75;
    cursor: default;
}

.contact-status {
    min-height: 1.4em;
    font-size: 14px;
}

.contact-status.success {
    color: #9ee2ab;
}

.contact-status.error {
    color: #ffc1c1;
}

@media (max-width: 540px) {
    .contact-page {
        padding: 27px 13px 50px;
    }

    .contact-panel {
        padding: 20px 15px;
    }

    .contact-fields-two {
        grid-template-columns: 1fr;
    }
}




/* 11. Adaptación tablet y móvil --------------------------------------- */
@media (max-width: 1100px) {
    .header { padding: 10px 18px; gap: 12px; }
    .header nav { gap: 20px; }
    
}
@media (max-width: 900px) {
    .home-feature-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-feature-row > .promo-panel {
        width: 100%;
        max-width: 700px;
    }
}

@media (max-width: 800px) {
    .container-catalogo { grid-template-columns: 1fr; }
    .filter-panel {
        display: none;
        position: fixed;
        z-index: 1300;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(90vw, 345px);
        max-height: 100dvh;
        overflow-y: auto;
        padding-bottom: 85px;
        border-radius: 0;
    }
    .filter-panel.filter-open { display: block; }
    .filter-heading { position: sticky; z-index: 5; top: 0; padding: 8px 0; background: var(--panel); }
    .filter-actions { position: fixed; bottom: 0; left: 0; z-index: 1350; width: min(90vw, 345px); padding: 10px 20px; }
    .filter-scrim.visible { position: fixed; inset: 0; z-index: 1200; display: block; background: #000a; }
    body.drawer-open { overflow: hidden; }
    .filter-mobile-close, .show-filters { display: inline-flex; align-items: center; justify-content: center; }
    .filter-mobile-close { min-height: 0; padding: 6px 12px; }
    .show-filters { min-height: 0; padding: 10px 15px; }
    .header { flex-wrap: wrap; height: auto; justify-content: space-between; }
    .header nav { order: 2; }
    .header-search { order: 3; flex: 1 1 100%; max-width: none; }
    .edition-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
    .edition-details dl { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .header { padding: 10px 12px; column-gap: 10px; row-gap: 8px; }
    .logo { font-size: clamp(16px, 5vw, 25px); gap: 7px; }
    .logo-img { max-width: 32px; max-height: 35px; }
    .header nav { gap: 14px; }
    .header nav a { font-size: 12px; }
    .header-search { height: 38px; }
    .hero { height: auto; min-height: 270px; }
    .hero-content { padding: 26px 15px 12px; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 13px; }
    .hero .search-box { margin-top: 15px; margin-bottom: 15px; }
    .container-home, .container-catalogo { padding: 15px 12px; }
    .section-title h2 { font-size: 20px; }
    .section-see-all { padding: 8px 12px; font-size: 13px; }
    .section-see-all:hover { font-size: 13px; }
    .movie-card { flex-basis: 160px; width: 160px; }
    .movie-info { padding: 9px; }
    .movie-info h3 { font-size: 15px; }
    .movie-info .movie-subtitle { font-size: 12px; }
    .tags { gap: 4px; }
    .tags span { font-size: 10px; padding: 3px 6px; }
    .price-row strong, .current-price { font-size: 22px; }
    .release-card-date { font-size: 11px; }
    .scroll-arrow { top: 130px; width: 33px; height: 54px; border-radius: 10px; }
    .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
    .catalogue-grid .movie-card { width: 100%; }
    .page-heading h1 { font-size: 22px; }
    .catalogue-toolbar { flex-wrap: wrap; }
    .sort-controls label { flex-direction: column; align-items: flex-start; font-size: 12px; }
    .sort-controls select { max-width: 160px; padding: 9px 6px; }
    .edition-page { padding: 16px 13px 45px; }
    .edition-layout { grid-template-columns: 1fr; }
    .edition-photo { width: 100%; max-width: 340px; margin: 0 auto; }
    .store-list { gap: 10px; margin: 18px 0 22px;}
    .store-choice, .store-choice.cheapest { width: calc(50% - 5px); min-width: 0; }
    .store-price { font-size: 15px; }
    .cheapest .store-price { font-size: 17px; }
    .store-price.store-price-unavailable { font-size: 12px; }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related-heading { flex-wrap: wrap; }
    .related-heading h2 { font-size: 20px; }
    .promo-card-container img { max-width: 85px; flex-basis: 85px; }
    .footer-inner { flex-direction: column; }
    .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    }
    .footer-inner::after {
        display: none;
    }
    .footer-bottom {
        grid-column: 1;
        justify-self: start;
    }
    .footer-contact {
        grid-column: 1;
        justify-self: center;
    }
    .site-footer {
        padding: 12px;
    }
}

@media (hover: none) {
    .scroll-arrow:not([hidden]) { opacity: .85; pointer-events: auto; }
}
