/* ==========================================================================
   01. VARIABLES GLOBALES Y RESET BÁSICO
   ========================================================================== */
:root {
    /* Colores Principales y Estados */
    --loom-primary: #4fccc1;
    --loom-primary-hover: #2ebaa5;
    --loom-active-bg: #E6FBF8;
    
    /* Tipografía y Neutros */
    --loom-dark: #1a1a1a;
    --loom-text-dark: #171717;
    --loom-text-muted: #718096;
    --loom-border: #E2E8F0;
    --loom-tabs-bg: #F4F7F9;
}


/* ==========================================================================
   02. SECCIÓN PRINCIPAL (HERO) - PAGINA DISTRIBUTIVA
   ========================================================================== */
.ecommerce-passes-section { 
    padding: 80px 0 60px; 
    background-color: #000; /* Fallback si no hay imagen */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    font-family: 'Poppins', sans-serif; 
}

.ecommerce-hero-texts {
    margin-bottom: 16px;
}

.ecommerce-passes-section__title { 
    color: #ffffff; 
    font-size: 50px; 
    font-weight: 500; 
    margin: 0 0 8px 0; 
    text-transform: uppercase; 
}

.ecommerce-passes-section__subtitle {
    color: #ffffff;
    font-size: 28px;
    font-weight: 400;
    margin: 0;
}


/* ==========================================================================
   03. ESTRUCTURA Y LAYOUT BASE (MOBILE FIRST)
   ========================================================================== */
.ecommerce-passes-section__inner { 
    width: 100%; 
    max-width: 1280px; 
    margin: 0 auto; 
}

/* En móvil y tablet las columnas se apilan verticalmente por defecto */
.ecommerce-layout-grid { 
    display: block; 
}


/* ==========================================================================
   04. TARJETA DE COMPRA Y COMPONENTES
   ========================================================================== */
.ecommerce-pass-card { 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 32px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
}

/* --- Pestañas Superiores (Tabs) --- */
.ecommerce-passes-tabs-wrapper { margin-bottom: 24px; }
.ecommerce-passes-tabs { display: flex; align-items: center; background: var(--loom-tabs-bg); border-radius: 50px; padding: 4px; }
.ecommerce-passes-tabs__button { flex: 1; border: 0; border-radius: 50px; padding: 12px; background: transparent; color: var(--loom-text-muted); font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-transform: inherit; }
.ecommerce-passes-tabs__button.is-active { background: var(--loom-primary); color: #171717; box-shadow: 0 2px 10px rgba(57, 217, 193, 0.3); }
.ecommerce-passes-tabs__button:hover { color: #171717; }

/* --- Cabecera y Precios --- */
.ecommerce-pass-card__header { border-bottom: 1px solid var(--loom-border); margin-bottom: 24px; padding-bottom: 16px; }
.ecommerce-pass-card__price { font-size: 24px; font-weight: 500; color: var(--loom-text-dark); }

/* --- Cuerpo y Columnas Internas --- */
.ecommerce-pass-card__body { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: flex-start; }
.ecommerce-view-standard { margin-bottom: 24px; }
.ecommerce-pass-card__title { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: var(--loom-text-dark); }
.ecommerce-pass-card__description, .ecommerce-pass-card__conditions { font-size: 14px; line-height: 1.5; color: var(--loom-text-muted); margin-bottom: 12px; }
.ecommerce-pass-card__description p, .ecommerce-pass-card__conditions p { margin: 0 0 8px; }

/* --- Selector de Asientos ("Tu puesto") --- */
.ecommerce-seat-label { font-size: 16px; font-weight: 600; color: var(--loom-text-dark); margin-bottom: 16px; display: block; }
.ecommerce-seat-options { display: flex; gap: 10px; }
.ecommerce-seat-option { flex: 1; border: 1px solid var(--loom-border); border-radius: 8px; background: #ffffff; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s ease; }
.ecommerce-seat-option.is-active { border-color: var(--loom-primary); background: var(--loom-active-bg); border-width: 2px; }
.ecommerce-seat-option__label { font-size: 12px; font-weight: 600; color: var(--loom-text-dark); }

/* Iconos e imágenes personalizadas */
img.ecommerce-seat-option__icon { width: 36px; height: 36px; object-fit: contain; vertical-align: middle; }
img.ecommerce-action-icon { width: 22px; height: 22px; object-fit: contain; margin-right: 6px; vertical-align: middle; }

/* --- Enlaces de acción (Mapas / Galería) --- */
.ecommerce-pass-card__spaces-link { display: inline-flex; align-items: center; color: #1e293b; font-size: 14px; font-weight: 500; transition: color 0.2s ease; }
.ecommerce-pass-card__gallery-link { display: flex; align-items: center; color: #1e293b; font-size: 14px; font-weight: 500; transition: color 0.2s ease; text-decoration: none; margin: 20px auto 0; width: max-content; }
.ecommerce-pass-card__spaces-link:hover, .ecommerce-pass-card__gallery-link:hover { text-decoration: underline; color: #000000; }

/* --- Footer / Botón de Compra y Legal --- */
.ecommerce-pass-card__footer { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ecommerce-pass-card__cta { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px; border-radius: 50px; background: var(--loom-primary); color: #171717; font-size: 18px; font-weight: 500; text-decoration: none; transition: background 0.3s ease; }
.ecommerce-pass-card__cta:hover { background: var(--loom-primary-hover); }
.ecommerce-pass-card__legal { font-size: 12px; color: var(--loom-text-muted); text-align: center; line-height: 1.4; }
.ecommerce-pass-card__legal p { margin: 0; }

/* Estados de Carga y Errores (Checkout AJAX) */
.ecommerce-pass-card__cta.is-loading { opacity: 0.8; cursor: wait; pointer-events: none; }
.ecommerce-pass-card__cta.is-success { background-color: #10b981; }
.ecommerce-pass-card__cta.is-success:hover { background-color: #059669; }
.ecommerce-pass-card__error-msg { color: #ef4444; font-size: 12px; font-weight: 600; text-align: center; margin: -8px 0 8px 0; }
.ecommerce-spinner { display: inline-block; width: 16px; height: 16px; margin-left: 10px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #ffffff; animation: ecommerce-spin 0.8s ease-in-out infinite; vertical-align: middle; }


/* ==========================================================================
   05. FORMULARIO "POR HORAS" (ELEMENTOS Y SELECTS)
   ========================================================================== */
.ecommerce-hourly-title { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: var(--loom-text-dark); }
.ecommerce-hourly-radios { display: flex; gap: 24px; margin-bottom: 16px; }

/* Radios personalizados */
.ecommerce-radio { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--loom-text-dark); cursor: pointer; }
.ecommerce-radio input { display: none; }
.ecommerce-radio__mark { width: 18px; height: 18px; border: 1px solid var(--loom-border); border-radius: 50%; position: relative; display: inline-block; transition: all 0.2s; }
.ecommerce-radio input:checked + .ecommerce-radio__mark { border-color: var(--loom-primary); }
.ecommerce-radio input:checked + .ecommerce-radio__mark::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; background: var(--loom-primary); border-radius: 50%; }

/* Estructura de Selects */
.ecommerce-hourly-field { margin-bottom: 12px; }
.ecommerce-hourly-datetime { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.ecommerce-select { width: 100%; appearance: none; background: #fff url('data:image/svg+xml;utf8,<svg fill="%23718096" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center; background-size: 20px; border: 1px solid var(--loom-border); border-radius: 8px; padding: 8px 12px; font-size: 14px; color: var(--loom-text-dark); font-family: inherit; cursor: pointer; text-transform: none; font-weight: 400; }
.ecommerce-select:disabled { background-color: #f9fafb; color: #a0aec0; cursor: not-allowed; }
.ecommerce-select:focus { outline: none; border-color: var(--loom-primary); }

/* Selectores con Iconografía Custom */
.ecommerce-select-spaces { padding-left: 36px !important; background-image: url('https://pre.loom.es/wp-content/themes/loom-theme/assets/images/map-pin.png'); background-repeat: no-repeat; background-position: 12px center; background-size: 18px 18px; }
.ecommerce-input-time { padding-left: 36px !important; background-image: url('https://pre.loom.es/wp-content/themes/loom-theme/assets/images/clock.png'); background-repeat: no-repeat; background-position: 12px center; background-size: 18px 18px; }
.ecommerce-select--date { background-image: none; padding-right: 12px; }
.ecommerce-select--date::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
.ecommerce-select--date::-webkit-calendar-picker-indicator:hover { opacity: 1; }


/* ==========================================================================
   06. MODALES BASE Y COMPORTAMIENTO
   ========================================================================== */
.ecommerce-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.ecommerce-modal.is-open { display: block; }
.ecommerce-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.ecommerce-modal__dialog { position: relative; z-index: 1; width: calc(100% - 40px); max-width: 600px; margin: 40px auto; background: #ffffff; border-radius: 22px; }

/* --- Modal Galería y Carrusel --- */
.ecommerce-modal__dialog--gallery { padding: 0; overflow: hidden; background: #ffffff; }
.ecommerce-modal__header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: #ffffff; }
.ecommerce-modal__header .ecommerce-modal__title { margin: 0; font-size: 16px; font-weight: 600; color: var(--loom-text-dark); }
.ecommerce-modal__header .ecommerce-modal__close { background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--loom-text-dark); padding: 0; }

.ecommerce-modal__body-black { background: #000000; position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: 60vh; }
.ecommerce-carousel { width: 100%; height: 100%; overflow: hidden; position: relative; }
.ecommerce-carousel__track { display: flex; width: 100%; height: 100%; transition: transform 0.4s ease-in-out; }
.ecommerce-carousel__slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ecommerce-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }

.ecommerce-carousel__dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.ecommerce-carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); border: none; padding: 0; cursor: pointer; transition: background 0.3s ease; }
.ecommerce-carousel__dot.is-active { background: #ffffff; }

.ecommerce-carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.4); color: #ffffff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: background 0.3s ease; padding: 10px; }
.ecommerce-carousel__arrow:hover { background: rgba(0, 0, 0, 0.8); }
.ecommerce-carousel__arrow--prev { left: 16px; }
.ecommerce-carousel__arrow--next { right: 16px; }



/* --- Modal Mapa y Pestañas de Ciudades --- */
.ecommerce-modal__dialog--map { padding: 0; overflow: hidden; background: #ffffff; }
.ecommerce-modal__header-map { display: flex; justify-content: center; align-items: center; position: relative; background: #ffffff; height: 60px; border-bottom: 1px solid #eef2f5; }

.ecommerce-map-tabs { display: flex; gap: 32px; height: 100%; }
.ecommerce-map-tab-btn { background: none; border: none; padding: 0; font-size: 15px; font-weight: 500; color: #718096; cursor: pointer; position: relative; display: flex; align-items: center; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.3s ease; }
.ecommerce-map-tab-btn:hover { color: var(--loom-text-dark); background: transparent; }
.ecommerce-map-tab-btn.is-active { color: var(--loom-text-dark); font-weight: 700; }
.ecommerce-map-tab-btn.is-active::after { content: ''; position: absolute; top: 15px; left: 0; width: 100%; height: 2px; background-color: var(--loom-text-dark); }

.ecommerce-modal__header-map .ecommerce-modal__close { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 26px; color: var(--loom-text-dark); cursor: pointer; padding: 0; line-height: 1; }
.ecommerce-spaces-modal__map-container { width: 100%; aspect-ratio: 16 / 11; max-height: 60vh; background: #e5e3df; }
.ecommerce-spaces-modal__map { width: 100%; height: 100%; }

/* Personalización InfoWindow de Google Maps */
.gm-style .gm-style-iw-c { padding: 0 !important; border-radius: 12px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; max-width: 280px !important; }
.ecommerce-map-iw { font-family: 'Montserrat', sans-serif; color: var(--loom-text-dark); text-align: center; width: 260px; }
.ecommerce-map-iw__header { width: 100%; height: 120px; overflow: hidden; border-radius: 12px 12px 0 0; }
.ecommerce-map-iw__img { width: 100%; height: 100%; object-fit: cover; }
.ecommerce-map-iw__img--placeholder { background-color: #f4f7f9; }
.ecommerce-map-iw__body { padding: 20px; background: #ffffff; border-radius: 0 0 12px 12px; }
.ecommerce-map-iw__title { margin: 0 0 8px 0; font-size: 14px; font-weight: 700; text-transform: uppercase; line-height: 1.3; }
.ecommerce-map-iw__city { margin: 0 0 16px 0; font-size: 14px; color: #718096; }
.ecommerce-map-iw__btn { display: inline-block; background-color: var(--loom-primary); color: #ffffff; font-size: 13px; font-weight: 700; text-decoration: none; padding: 10px 24px; border-radius: 50px; transition: background 0.3s ease; }
.ecommerce-map-iw__btn:hover { background-color: var(--loom-primary-hover); color: #ffffff; }


/* ==========================================================================
   07. ESTILOS PROXY Y CALENDARIO PERSONALIZADO
   ========================================================================== */
.ecommerce-custom-picker { position: relative; width: 100%; }
.ecommerce-custom-trigger { text-align: left; display: flex; align-items: center; justify-content: space-between; background-image: none !important; }
.ecommerce-custom-trigger:disabled { background-color: #f9fafb; color: #a0aec0; cursor: not-allowed; }
.ecommerce-custom-trigger:hover { background: #fff; border: 1px solid var(--loom-border); color: var(--loom-text-dark); }

/* Caja flotante del calendario */
.ecommerce-calendar-popup { position: absolute; top: calc(100% + 6px); left: 0; z-index: 100; width: 260px; background: #ffffff; border: 1px solid var(--loom-border); border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); padding: 14px; font-family: 'Poppins', sans-serif; }
.ecommerce-calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ecommerce-calendar-title { font-size: 14px; font-weight: 700; color: var(--loom-text-dark); text-transform: capitalize; }
.ecommerce-calendar-nav { background: #f4f7f9; border: 1px solid var(--loom-border); border-radius: 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: var(--loom-text-dark); transition: all 0.2s; }
.ecommerce-calendar-nav:hover:not(:disabled) { background: var(--loom-primary); border-color: var(--loom-primary); }
.ecommerce-calendar-nav:disabled { opacity: 0.3; cursor: not-allowed; }

/* Cuadrícula de 5 Columnas (Lunes a Viernes) */
.ecommerce-calendar-weekdays, .ecommerce-calendar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; }
.ecommerce-calendar-weekdays { margin-bottom: 8px; }
.ecommerce-calendar-weekdays span { font-size: 11px; font-weight: 600; color: var(--loom-text-muted); }

/* Celdas de días */
.ecommerce-calendar-day { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--loom-text-dark); background: transparent; border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s; padding: 0px; }
.ecommerce-calendar-day:hover:not(:disabled) { background: var(--loom-active-bg); color: #000; font-weight: 700; }
.ecommerce-calendar-day.is-selected { background: var(--loom-primary); color: #fff; font-weight: 700; }
.ecommerce-calendar-day:disabled { color: #cbd5e1; cursor: not-allowed; background: transparent; }
.ecommerce-calendar-empty { pointer-events: none; }


/* ==========================================================================
   08. ECOMMERCE IFRAME & LOADER (NEXUDUS)
   ========================================================================== */
.bloque-ecommerce-iframe { padding-top: 20px; }
#nexudus-single-wrapper { position: relative; width: 100%; min-height: 320px; background-color: #fcfcfc; overflow: hidden; transition: min-height 0.3s ease; }
#nexudus-single-wrapper.is-ready { min-height: 0; border-color: transparent; background-color: transparent; }

#nexudus-single-wrapper .nexudus-loader-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: #ffffff; z-index: 20; opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0.4s ease; }
#nexudus-single-wrapper.is-ready .nexudus-loader-overlay { opacity: 0; visibility: hidden; pointer-events: none; }

#nexudus-single-wrapper .nexudus-widget-iframe { opacity: 0; transition: opacity 0.5s ease; }
#nexudus-single-wrapper.is-ready .nexudus-widget-iframe { opacity: 1; }

.nexudus-spinner { width: 46px; height: 46px; border: 4px solid #e2f8f5; border-top: 4px solid #39d9c1; border-radius: 50%; animation: nexudusSpin 0.8s linear infinite; margin-bottom: 14px; }
.nexudus-loader-text { font-size: 15px; color: #4a4a4a; font-weight: 500; margin: 0; }


/* ==========================================================================
   09. ECOMMERCE ADVANTAGES CAROUSEL
   ========================================================================== */
.ecommerce-advantages { padding: 4rem 0rem; max-width: 1280px; margin: 0 auto; }
.ecommerce-advantages__header { text-align: center; margin-bottom: 3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ecommerce-advantages__title { font-size: 2.5rem; font-weight: 500; margin: 0; text-transform: uppercase; }
.ecommerce-advantages__subtitle { font-size: 1.8rem; font-weight: 400; margin: 0; text-transform: uppercase; }

/* --- Carrusel y Tarjetas --- */
.ecommerce-advantages__carousel { width: 100%; }
.ecommerce-advantages__carousel .flickity-viewport { overflow: hidden !important; }
.ecommerce-advantages__cell { width: 100%; margin-right: 20px; display: flex; flex-direction: column; height: auto; min-height: 420px; background: #fff; border-radius: 8px; border: 1px solid #4A4A4A; box-shadow: none; overflow: hidden; }

/* --- Interior de la Tarjeta --- */
.ecommerce-advantages__card-content { padding: 2rem 1.5rem; flex-grow: 1; }
.ecommerce-advantages__card-title { font-size: 1.1rem; margin-bottom: 1rem; text-transform: uppercase; font-weight: 500; color: #4A4A4A; }
.ecommerce-advantages__card-desc { font-size: 1rem; line-height: 1.6; color: #4A4A4A; margin: 0; }
.ecommerce-advantages__card-figure { margin: 0; margin-top: auto; width: 100%; border-top: 1px solid #e0e0e0; }
.ecommerce-advantages__card-img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* Flickity Dots */
.ecommerce-advantages__carousel .flickity-page-dots { bottom: -30px; }
.ecommerce-advantages__carousel .flickity-page-dots .dot { background: #ccc; opacity: 1; }
.ecommerce-advantages__carousel .flickity-page-dots .dot.is-selected { background: #000; }
/* Ocultar los dots ÚNICAMENTE cuando JS detecta que todo cabe en una sola página */
.ecommerce-advantages__carousel.is-single-slide .flickity-page-dots {
    display: none !important;
}


/* ==========================================================================
   10. ECOMMERCE CTA BLOCK & BOTONES
   ========================================================================== */
.ecommerce-cta-block { padding: 2.5rem 3rem; width: 1280px; margin: 0 auto; }
.ecommerce-cta-block__container { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: center; /* Default center */ }

/* Modificadores BEM en reemplazo del PHP embebido */
.ecommerce-cta-block__container--left { justify-content: flex-start; }
.ecommerce-cta-block__container--right { justify-content: flex-end; }
.ecommerce-cta-block__container--center { justify-content: center; }

/* --- Estilos Base del Botón --- */
.ecommerce-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.85rem 2rem; font-size: 18px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; border-radius: 100px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; box-sizing: border-box; }
.ecommerce-btn--solid { background-color: var(--loom-primary); color: var(--loom-dark); border: 2px solid var(--loom-primary); }
.ecommerce-btn--solid:hover { background-color: transparent; color: var(--loom-primary); }
.ecommerce-btn--outline { background-color: transparent; color: var(--loom-dark); border: 2px solid var(--loom-primary); }
.ecommerce-btn--outline:hover { background-color: var(--loom-primary); color: var(--loom-dark); }
.ecommerce-btn__icon { font-size: 1.1em; transition: transform 0.3s ease; }
.ecommerce-btn:hover .ecommerce-btn__icon { transform: translate(2px, -2px); }


/* ==========================================================================
   11. KEYFRAMES & ANIMACIONES
   ========================================================================== */
@keyframes ecommerce-spin { to { transform: rotate(360deg); } }
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes nexudusSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ==========================================================================
   12. RESPONSIVE DESKTOP (ESCALADO HACIA ARRIBA: min-width)
   ========================================================================== */
@media (min-width: 768px) {
    .ecommerce-advantages__cell { width: calc(50% - 10px); } 
}

@media (min-width: 992px) {
    /* Layout Distributiva en Escritorio */
    .ecommerce-layout-grid {
        display: grid;
        grid-template-columns: minmax(auto, 700px) 1fr;
        gap: 40px;
        align-items: start;
    }

    /* Modales pasan de flotantes a columna lateral en escritorio */
    .ecommerce-modal { position: static; display: none; z-index: 1; }
    .ecommerce-modal.is-open { display: block; animation: slideInRight 0.4s ease-out; }
    .ecommerce-modal__overlay { display: none; }
    .ecommerce-modal__dialog { width: 100%; max-width: 100%; margin: 0; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
}

@media (min-width: 1024px) {
    .ecommerce-advantages__cell { width: calc(25% - 15px); } 
}


/* ==========================================================================
   13. RESPONSIVE MOBILE/TABLET (ADAPTACIÓN HACIA ABAJO: max-width)
   ========================================================================== */
@media (max-width: 991px) {
    /* --- 1. Cabecera / Hero Distributiva --- */
    .ecommerce-passes-section { padding: 95px 16px 30px !important; background-image: none !important; background-color: #F4F7F9 !important; }
    .ecommerce-passes-section__title { color: var(--loom-text-dark) !important; font-size: 24px; line-height: 1.2; margin-bottom: 4px; }
    .ecommerce-passes-section__subtitle { color: var(--loom-text-dark) !important; font-size: 18px; font-weight: 500; }

    /* --- 2. Tarjetas y Pestañas --- */
    .ecommerce-pass-card { padding: 24px 16px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
    .ecommerce-passes-tabs-wrapper { margin-bottom: 20px; }
    .ecommerce-passes-tabs { padding: 3px; border-radius: 40px; }
    .ecommerce-passes-tabs__button { padding: 8px 2px; font-size: 12px; font-weight: 600; letter-spacing: -0.3px; border-radius: 40px; }
    .ecommerce-pass-card__header { margin-bottom: 20px; padding-bottom: 16px; }
    .ecommerce-pass-card__price { font-size: 20px; }
    .ecommerce-pass-card__body { display: flex; flex-direction: column; gap: 24px; }
    .ecommerce-pass-card__content, .ecommerce-pass-card__seats { width: 100%; }
    .ecommerce-pass-card__seats { border-top: 1px solid var(--loom-border); padding-top: 20px; }
    .ecommerce-pass-card__title { font-size: 16px; margin-bottom: 12px; }
    .ecommerce-pass-card__description, .ecommerce-pass-card__conditions { font-size: 13px; }
    .ecommerce-carousel__arrow { display: none; }


    /* --- 3. Formulario "Por horas" en Móvil --- */
    .ecommerce-hourly-radios { flex-wrap: wrap; gap: 20px; margin-bottom: 14px; }
    .ecommerce-hourly-field { margin-bottom: 12px; }
    .ecommerce-hourly-datetime { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 16px; }
    .ecommerce-select { padding: 8px 6px; font-size: 12px; border-radius: 8px; background-size: 14px; background-position: right 6px center; }
    .ecommerce-input-time { padding-left: 26px !important; padding-right: 18px !important; background-position: 6px center, right 6px center !important; background-size: 14px 14px, 14px 14px !important; }
    .ecommerce-select--date { padding-left: 8px; padding-right: 6px; }
    .ecommerce-select-spaces { font-size: 13px; padding: 10px 10px 10px 34px !important; background-position: 10px center; background-size: 16px 16px; }

    /* --- 4. Asientos y Footers --- */
    .ecommerce-seat-label { font-size: 15px; margin-bottom: 12px; }
    .ecommerce-seat-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .ecommerce-seat-option { padding: 14px 6px; }
    .ecommerce-seat-option:only-child { grid-column: 1 / -1; }  /* Si solo existe una opción, ocupa el 100% de la fila */
    .ecommerce-pass-card__gallery-link { margin: 16px auto 0; font-size: 13px; }
    .ecommerce-pass-card__footer { margin-top: 24px; gap: 12px; }
    .ecommerce-pass-card__cta { padding: 12px; font-size: 18px; }
    .ecommerce-pass-card__legal { font-size: 11px; line-height: 1.4; }
    .ecommerce-modal__dialog { width: calc(100% - 32px); margin: 20px auto; max-height: 85vh; overflow-y: auto; }

    /* --- 5. Advantages Carousel & CTA --- */
    .ecommerce-cta-block { width: auto; padding: 2rem 1rem; }
    .ecommerce-advantages { padding: 4rem 1.875rem;}
    .ecommerce-advantages__title { font-size: 2rem; }
    .ecommerce-advantages__subtitle { font-size: 1.5rem; }
    .ecommerce-btn { padding: 0.7rem 1.2rem; font-size:16px; gap: 0.3rem; }
    .ecommerce-advantages__subtitle { display: none; }

}

@media (max-width: 480px) {
    .ecommerce-cta-block__container { flex-direction: column; width: 100%; }
}