/* ==========================================
   FIESTAS — Música > Fiestas + modal de precompra
   Mismo lenguaje visual que el resto del sitio (bordes negros, sombra dura,
   Barlow 900, rosa #fc38b6 / violeta #772ce8).
   ========================================== */

/* ── Sub-pestañas de Música ── */
.musica-subtabs {
    display: flex; gap: 8px; margin: 0 0 22px; flex-wrap: wrap;
}
.musica-subtab {
    font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: .9rem; letter-spacing: .5px;
    background: #fff; color: #000; border: 3px solid #000; border-radius: 8px; padding: 9px 18px; cursor: pointer;
    box-shadow: 3px 3px 0 #000; transition: transform .1s, box-shadow .1s, background .15s;
}
.musica-subtab:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.musica-subtab.active { background: #ff4444; color: #fff; }
.musica-subtab-badge {
    display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px;
    background: #fc38b6; color: #fff; font-size: .75rem; line-height: 20px; text-align: center; border: 2px solid #000;
}
.musica-panel { display: none; }
.musica-panel.active { display: block; }

/* ── Lista de fiestas ── */
.fiestas-vacio { text-align: center; color: #555; padding: 40px 10px; font-size: 1rem; }
.fiestas-subtitulo { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; margin: 30px 0 12px; color: #555; letter-spacing: .5px; text-transform: uppercase; }
.fiestas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.fiesta-card {
    background: #fff; border: 3px solid #000; border-radius: 10px; overflow: hidden; cursor: pointer;
    box-shadow: 5px 5px 0 #000; display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s;
}
.fiesta-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #fc38b6; }
.fiesta-card-pasada { filter: grayscale(.85); opacity: .8; }
.fiesta-card-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #fc38b6, #772ce8); border-bottom: 3px solid #000; }
.fiesta-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fiesta-card-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.fiesta-card-fecha {
    position: absolute; top: 10px; left: 10px; background: #fff; border: 3px solid #000; border-radius: 8px; padding: 4px 10px;
    text-align: center; line-height: 1; box-shadow: 2px 2px 0 #000;
}
.fiesta-card-fecha b { display: block; font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: 1.5rem; }
.fiesta-card-fecha span { font-size: .7rem; font-weight: 800; color: #772ce8; letter-spacing: 1px; }
.fiesta-card-cuerpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fiesta-card-cuerpo h3 { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: 1.25rem; margin: 2px 0 0; line-height: 1.15; }
.fiesta-card-meta { font-size: .85rem; color: #555; margin: 0; }
.fiesta-card-precio { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: 1.15rem; margin: 4px 0 0; color: #772ce8; }
.fiesta-card-precio small { font-family: 'Inter', sans-serif; font-weight: 500; color: #777; font-size: .75rem; }
.fiesta-card-ver { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: .8rem; letter-spacing: .5px; color: #fc38b6; }

.fiesta-chip { align-self: flex-start; font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: .7rem; letter-spacing: .8px;
    padding: 3px 10px; border-radius: 20px; border: 2px solid #000; }
.fiesta-chip-on { background: #b6ffb0; }
.fiesta-chip-hot { background: #ffe14d; }
.fiesta-chip-off { background: #e5e5e5; color: #555; }

/* ── Modal ── */
.fiesta-modal.modal-content {
    max-width: 680px; width: 100%; padding: 0 !important; background: #fff; color: #000;
    border: 3px solid #000 !important; border-radius: 10px; margin: 0 auto;
    /* style.css pone max-height:90vh + overflow:auto en .modal-content: lo anulamos para que
       scrollee el overlay completo (si no, el modal queda recortado y no se puede bajar) */
    max-height: none !important; overflow: visible !important;
}
.fm-topbar { border-radius: 7px 7px 0 0; }
.fm-hero { border-radius: 0; }
.fm-topbar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 10px 14px; background: #fff; border-bottom: 3px solid #000; }
.fm-share { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: .8rem; letter-spacing: .5px; background: #772ce8; color: #fff;
    border: 2px solid #000; border-radius: 6px; padding: 7px 14px; cursor: pointer; }
.fm-share:hover { background: #a970ff; }
.fm-close { font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 6px; color: #000; }
.fm-close:hover { color: #fc38b6; }
.fm-hero { display: block; width: 100%; max-height: 360px; object-fit: cover; border-bottom: 3px solid #000; }
.fm-hero-ph { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: linear-gradient(135deg, #fc38b6, #772ce8); }
.fm-body { padding: 20px 22px 28px; }
.fm-titulo { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: 2rem; line-height: 1.05; margin: 10px 0 14px; text-transform: uppercase; }
.fm-datos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.fm-datos li { display: flex; gap: 12px; align-items: flex-start; }
.fm-datos li > span { font-size: 1.3rem; width: 28px; text-align: center; }
.fm-datos b { display: block; font-size: 1rem; }
.fm-datos small { display: block; color: #666; font-size: .85rem; }
.fm-desc { background: #faf5ff; border-left: 4px solid #a970ff; padding: 12px 14px; border-radius: 0 6px 6px 0; line-height: 1.55; margin-bottom: 18px; font-size: .95rem; }
.fm-flujo { border-top: 3px dashed #d8c7ff; padding-top: 20px; }
.fm-cargando { text-align: center; color: #777; padding: 20px 0; }
.fm-h2 { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: 1.35rem; margin: 6px 0 10px; text-transform: uppercase; }
.fm-nota { color: #666; font-size: .85rem; line-height: 1.45; margin: 8px 0; }
.fm-nota-ok { color: #1a7a1a; }
.fm-hint { color: #777; font-size: .78rem; margin: 6px 0 12px; }

.fm-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900;
    font-size: 1rem; letter-spacing: .5px; text-transform: uppercase; border: 3px solid #000; border-radius: 8px; padding: 14px 18px; cursor: pointer;
    box-shadow: 4px 4px 0 #000; transition: transform .1s, box-shadow .1s; color: #000; background: #fff; margin: 12px 0 0; }
.fm-btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.fm-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.fm-btn:disabled { opacity: .55; cursor: wait; }
.fm-btn-main { background: #fc38b6; color: #fff; }
.fm-btn-sec { background: #fff; }
.fm-btn-twitch { background: #9147ff; color: #fff; }
.fm-acciones { display: flex; gap: 12px; }
.fm-acciones .fm-btn { flex: 1; }
.fm-acciones-sec { justify-content: space-between; margin-top: 18px; }
.fm-link { background: none; border: none; color: #772ce8; font-weight: 700; font-size: .85rem; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.fm-link-peligro { color: #c0392b; }

.fm-aviso { border: 2px solid #000; border-radius: 8px; padding: 12px 14px; background: #f5f5f5; font-size: .9rem; line-height: 1.45; margin: 10px 0; }
.fm-aviso-err { background: #ffe3e3; border-color: #c0392b; color: #7a1c12; }
.fm-aviso-warn { background: #fff4cc; border-color: #b78a00; color: #5c4600; }

.fm-cuenta { font-size: .8rem; color: #555; background: #f3ecff; border-radius: 6px; padding: 7px 12px; margin-bottom: 14px; }
.fm-cuenta small { color: #888; }
.fm-cuenta .fm-link { float: right; }

/* login */
.fm-sep { display: flex; align-items: center; gap: 12px; color: #888; margin: 16px 0 6px; font-size: .8rem; }
.fm-sep::before, .fm-sep::after { content: ''; flex: 1; border-top: 2px solid #ddd; }
.fm-google-btn { display: flex; justify-content: center; min-height: 44px; margin: 10px 0; }

/* pasos */
.fm-pasos { list-style: none; display: flex; gap: 6px; margin: 0 0 18px; padding: 0; }
.fm-pasos li { flex: 1; display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 800; color: #aaa; text-transform: uppercase; letter-spacing: .4px; }
.fm-pasos li i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ccc; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; flex: none; }
.fm-pasos li.actual { color: #000; } .fm-pasos li.actual i { background: #fc38b6; border-color: #000; color: #fff; }
.fm-pasos li.hecho { color: #1a7a1a; } .fm-pasos li.hecho i { background: #b6ffb0; border-color: #1a7a1a; color: #1a7a1a; }

/* cantidad */
.fm-qtys { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.fm-qty { width: 64px; height: 64px; font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: 1.6rem; background: #fff; border: 3px solid #000;
    border-radius: 10px; cursor: pointer; box-shadow: 3px 3px 0 #000; }
.fm-qty.sel { background: #fc38b6; color: #fff; }
.fm-qty:disabled { opacity: .3; cursor: not-allowed; }
.fm-total { display: flex; justify-content: space-between; align-items: center; background: #efe3ff; border: 3px solid #000; border-radius: 10px; padding: 14px 18px; }
.fm-total small { display: block; color: #666; font-size: .8rem; }
.fm-total b { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: 2rem; color: #772ce8; line-height: 1; }
.fm-total span { font-weight: 800; letter-spacing: 1px; font-size: .8rem; color: #772ce8; }

/* datos */
.fm-entrada { border: 3px solid #000; border-radius: 10px; padding: 8px 16px 6px; margin: 0 0 18px; background: #fff; min-width: 0; }
.fm-entrada legend { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; background: #772ce8; color: #fff; padding: 4px 12px; border-radius: 6px; border: 2px solid #000; font-size: .85rem; letter-spacing: .5px; }
.fm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 8px; }
.fm-entrada label { display: block; font-size: .78rem; font-weight: 700; color: #333; min-width: 0; }
.fm-entrada label em { font-weight: 500; color: #888; font-style: normal; }
.fm-entrada input:not([type=radio]) { display: block; width: 100%; margin-top: 4px; padding: 10px 11px; font: inherit; font-size: 16px; font-weight: 500; border: 2px solid #000; border-radius: 6px; background: #fafafa; color: #000; }
.fm-entrada input:focus { outline: none; border-color: #fc38b6; background: #fff; box-shadow: 0 0 0 3px rgba(252, 56, 182, .2); }
.fm-llaveros-tit { font-weight: 800; font-size: .85rem; margin: 6px 0 8px; }
.fm-llaveros-tit em { font-weight: 500; color: #888; font-style: normal; }
.fm-llaveros { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.fm-llavero { cursor: pointer; display: block; }
.fm-llavero input { position: absolute; opacity: 0; pointer-events: none; }
.fm-llavero-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 10px; border: 3px solid #ddd; border-radius: 10px; background: #fff; text-align: center; transition: border-color .12s, background .12s, transform .1s; height: 100%; }
.fm-llavero-card img, .fm-llavero-ph { width: 84px; height: 84px; object-fit: contain; border-radius: 8px; background: #fff; }
.fm-llavero-ph { display: flex; align-items: center; justify-content: center; font-size: 2rem; font-style: normal; background: #f3ecff; }
.fm-llavero-card b { font-size: .78rem; line-height: 1.15; }
.fm-llavero:hover .fm-llavero-card { border-color: #a970ff; }
.fm-llavero input:checked + .fm-llavero-card { border-color: #000; background: #ffe3f5; box-shadow: 3px 3px 0 #fc38b6; transform: translate(-1px, -1px); }
.fm-llavero input:focus-visible + .fm-llavero-card { outline: 3px solid #772ce8; outline-offset: 2px; }

/* pago */
.fm-pago { border: 3px solid #000; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 4px 4px 0 #000; }
.fm-pago-monto { background: #efe3ff; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; border-bottom: 3px solid #000; }
.fm-pago-monto small { color: #666; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.fm-pago-monto b { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: 2.3rem; color: #772ce8; line-height: 1.05; }
.fm-pago-monto span { color: #666; font-size: .85rem; }
.fm-pago-datos { margin: 0; padding: 6px 18px 10px; }
.fm-pago-datos div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; flex-wrap: wrap; }
.fm-pago-datos div:last-child { border-bottom: none; }
.fm-pago-datos dt { font-size: .78rem; font-weight: 700; color: #777; text-transform: uppercase; letter-spacing: .5px; }
.fm-pago-datos dd { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-pago-datos code { font-family: Consolas, 'Courier New', monospace; font-size: 1.25rem; font-weight: 900; background: #fff4cc; padding: 2px 10px; border-radius: 6px; border: 2px solid #000; }
.fm-copiar { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: .68rem; letter-spacing: .5px; background: #fff; border: 2px solid #000; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.fm-copiar:hover { background: #ffe14d; }
.fm-pago-monto .fm-copiar { margin-top: 8px; }

/* estados */
.fm-estado { text-align: center; padding: 18px 10px; border: 3px solid #000; border-radius: 10px; margin-bottom: 16px; }
.fm-estado h2 { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: 1.5rem; margin: 8px 0 6px; }
.fm-estado p { margin: 0 0 6px; font-size: 1rem; }
.fm-estado small { color: #666; }
.fm-estado-rev { background: #fff9db; }
.fm-estado-ok { background: #e6ffe3; }
.fm-spin { width: 38px; height: 38px; margin: 0 auto; border: 4px solid #ead98a; border-top-color: #000; border-radius: 50%; animation: fm-giro .9s linear infinite; }
@keyframes fm-giro { to { transform: rotate(360deg); } }
.fm-check { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: #1fbf3a; color: #fff; border: 3px solid #000; font-size: 1.8rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.fm-box { border: 3px solid #000; border-radius: 10px; padding: 12px 16px; background: #fff; }
.fm-box-tit { font-family: 'Barlow', 'Arial Black', sans-serif; font-weight: 900; font-size: .8rem; letter-spacing: .5px; color: #772ce8; margin-bottom: 6px; }
.fm-resumen { list-style: none; margin: 0; padding: 0; }
.fm-resumen li { padding: 7px 0; border-bottom: 1px solid #eee; }
.fm-resumen li:last-child { border-bottom: none; }
.fm-resumen small { display: block; color: #777; }

/* tickets */
.fm-tickets { display: grid; gap: 14px; margin-bottom: 8px; }
.fm-ticket { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    border: 3px solid #000; border-radius: 10px; padding: 14px 16px; background: linear-gradient(135deg, #fff 60%, #efe3ff); box-shadow: 4px 4px 0 #772ce8; }
.fm-ticket.usado { opacity: .6; }
.fm-ticket-info small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: 1px; color: #772ce8; }
.fm-ticket-info b { font-size: 1.1rem; }
.fm-ticket-llav { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: #555; margin-top: 4px; }
.fm-ticket-llav img { width: 28px; height: 28px; object-fit: contain; }
.fm-ticket-code { font-family: Consolas, 'Courier New', monospace; font-weight: 900; font-size: 1.7rem; letter-spacing: 3px; background: #fff4cc; border: 3px dashed #000; border-radius: 8px; padding: 8px 14px; cursor: pointer; color: #000; }
.fm-ticket-ok { position: absolute; top: -12px; right: 12px; background: #1fbf3a; color: #fff; border: 2px solid #000; border-radius: 20px; padding: 2px 12px; font-size: .72rem; font-weight: 900; }

@media (max-width: 560px) {
    .fm-body { padding: 16px 14px 24px; }
    .fm-titulo { font-size: 1.6rem; }
    .fm-grid2 { grid-template-columns: 1fr; }
    .fm-ticket-code { font-size: 1.4rem; width: 100%; text-align: center; }
    .fm-pasos li { font-size: .65rem; gap: 4px; }
    .fm-acciones { flex-direction: column-reverse; }
    .fm-qty { width: 56px; height: 56px; }
}
