/* =============================================================
   FM Tickets Manager — Front-end Styles
   ============================================================= */

/* ---- Badge sobre el nombre del ticket ---- */
.fm-ticket-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff4d4d 0%, #ff8a00 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    line-height: 1.4;
    padding: 5px 14px;
    border-radius: 999px;
    margin: 0 0 10px;
    box-shadow: 0 3px 10px rgba(255, 77, 77, .35);
    white-space: nowrap;
}

/* ---- Selector de traslado bloqueado (gris) ---- */
.transfer-qty.fm-transfer-disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
    background: #f0f0f0 !important;
    pointer-events: none;
}

/* ---- Mensaje "Elegí tus entradas primero" ----
   Editá estos valores para cambiar tipografía, color o tamaño. */
.fm-transfer-locked-msg {
    display: none;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #f29191;
    margin-top: 4px;
    font-style: italic;
    letter-spacing: .3px;
}

/* ---- Ocultar título "Archive" en las páginas de evento (/eventos/xxx) ----
   IMPORTANTE: /eventos/fondo-music/ es un evento individual (single de
   fmtm_evento, no un archivo de taxonomía) — el body lleva la clase
   "single-fmtm_evento", no "tax-fmtm_evento". Por eso la regla anterior
   (acotada solo a tax-fmtm_evento) nunca se aplicó acá. Se cubren ambos
   casos por si en algún momento también se usa una vista de archivo.
   Selectores ampliados: Astra, Elementor Pro (widget Archive Title y
   Theme Builder), y el título genérico de WordPress. Si después de
   purgar caché sigue visible, inspeccionar el elemento y agregar la
   clase exacta. La forma "oficial" es desactivar el título desde
   Elementor (Apariencia del tema → plantilla Single/Archive) o el
   toggle "Page Title" de Astra en el Customizer — esto es un respaldo
   por si ese toggle no alcanza. */
body.single-fmtm_evento .page-header,
body.single-fmtm_evento .page-title,
body.single-fmtm_evento .page-header__title,
body.single-fmtm_evento .ast-archive-title,
body.single-fmtm_evento .entry-header,
body.single-fmtm_evento .entry-header .entry-title,
body.single-fmtm_evento h1.entry-title,
body.single-fmtm_evento .elementor-widget-theme-archive-title,
body.single-fmtm_evento .elementor-widget-archive-title .elementor-heading-title,
body.single-fmtm_evento .elementor-widget-theme-post-title,
body.single-fmtm_evento .woocommerce-products-header__title,
/* Confirmado por inspector (30/06/2026): el tema es Qode, el título sale
   de #qodef-page-outer > .qodef-page-title > h1.qodef-m-title.entry-title.
   Se agrega el selector exacto, con alta especificidad, por si el tema
   pisa la regla genérica de arriba. */
body.single-fmtm_evento .qodef-page-title,
body.single-fmtm_evento #qodef-page-outer .qodef-page-title .qodef-m-inner .qodef-m-content h1.qodef-m-title.entry-title,
body.tax-fmtm_evento .qodef-page-title,
body.tax-fmtm_evento #qodef-page-outer .qodef-page-title .qodef-m-inner .qodef-m-content h1.qodef-m-title.entry-title,
body.tax-fmtm_evento .page-header,
body.tax-fmtm_evento .page-title,
body.tax-fmtm_evento .page-header__title,
body.tax-fmtm_evento .ast-archive-title,
body.tax-fmtm_evento .entry-header,
body.tax-fmtm_evento .entry-header .entry-title,
body.tax-fmtm_evento h1.entry-title,
body.tax-fmtm_evento .elementor-widget-theme-archive-title,
body.tax-fmtm_evento .elementor-widget-archive-title .elementor-heading-title,
body.tax-fmtm_evento .woocommerce-products-header__title {
    display: none !important;
}

/* ---- Imagen del paquete turístico (800x600, puntas redondeadas) ----
   aspect-ratio mantiene la proporción 800x600 (4:3) si la pantalla es
   más chica que 800px de ancho; object-fit:cover recorta la imagen para
   llenar ese tamaño sin deformarla. */
img.fm-ticket-paquete-img,
.fm-ticket-paquete-img {
    width: 800px !important;
    max-width: 100% !important;
    aspect-ratio: 800 / 600 !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    display: block !important;
}

/* ---- Forzar [ticket_notice] (Disclaimer/Aviso) siempre al final de la
   columna del ticket, sin reordenar nada a mano en Elementor.
   Las columnas/containers de Elementor son flexbox (flex-direction:column),
   así que un "order" alto manda este widget al final, ya que sus
   hermanos quedan con order:0 por default.
   Para usarlo: en el widget de [ticket_notice] → Avanzado → CSS Classes
   → agregar "fmtm-aviso-bottom". */
.fmtm-aviso-bottom {
    order: 999 !important;
    margin-top: auto !important;
}

/* =============================================================
   Eventos — listado público (/eventos/) y header del Archive
   ============================================================= */

/* ---- Lista de tarjetas en /eventos/: una abajo de la otra ---- */
.fmtm-lista-eventos {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 24px 0;
    max-width: 1040px;
}

/* Cada tarjeta: imagen | datos+descripción | mapa+botón (3 columnas) */
.fmtm-evento-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}

/* Imagen a la izquierda (ideal 1080x608). Se estira para ocupar siempre
   el 100% de la altura de la tarjeta (sin huecos). */
.fmtm-evento-card-media {
    flex: 0 0 280px;
    width: 280px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

.fmtm-evento-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fmtm-evento-card-body {
    flex: 1 1 0;
    min-width: 0;
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tercera columna: mapa + botón "Ver entradas" */
.fmtm-evento-card-aside {
    flex: 0 0 300px;
    width: 300px;
    min-width: 0;
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #eee;
}

.fmtm-evento-card-aside .fmtm-evento-card-boton {
    align-self: flex-start;
}

/* En pantallas chicas, la tarjeta vuelve a apilarse (media arriba) */
@media (max-width: 900px) {
    .fmtm-evento-card {
        flex-direction: column;
    }
    .fmtm-evento-card-media {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 1080 / 608;
    }
    .fmtm-evento-card-aside {
        flex: 0 0 auto;
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
    }
}

.fmtm-evento-card-nombre {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.25;
}

.fmtm-evento-card-fecha {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    opacity: .8;
}

.fmtm-evento-card-lugar {
    margin: 0 0 10px;
    font-size: 13px;
    opacity: .7;
}

.fmtm-evento-card-descripcion {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    opacity: .75;
}

/* Mapa de Google Maps, responsive */
.fmtm-evento-card-mapa {
    position: relative;
    width: 100%;
    padding-top: 100%;
    margin: 4px 0 14px;
    border-radius: 8px;
    overflow: hidden;
}

.fmtm-evento-card-mapa iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fmtm-evento-card-boton {
    display: inline-block;
    margin-top: 4px;
    padding: 10px 22px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
}

.fmtm-evento-card-boton:hover {
    opacity: .85;
}

/* ---- Evento ya finalizado ---- */
.fmtm-evento-card-finalizado-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 10px 22px;
    background: #e2e2e2;
    color: #777;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    border-radius: 999px;
}

.fmtm-evento-card-finalizado .fmtm-evento-card-media img {
    filter: grayscale(45%);
    opacity: .75;
}

/* ---- Header compacto del Archive (solo nombre, fecha y hora) ---- */
.fmtm-evento-actual-info {
    text-align: center;
    margin: 0 0 28px;
}

.fmtm-evento-actual-nombre {
    margin: 0 0 6px;
    font-size: 32px;
}

.fmtm-evento-actual-fecha {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    opacity: .75;
}
