/* =========================================
   CONFIGURACIÓN GENERAL - MODO BAR COMPACTO 
   ========================================= */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 8px 8px calc(92px + env(safe-area-inset-bottom)); /* Compacto para móviles */
    line-height: 1.3;
}

.container { 
    max-width: 600px; 
    margin: auto; 
}

/* ENCABEZADO */
header { 
    text-align: center; 
    padding: 5px 0; 
}

/* BUSCADOR OPTIMIZADO */
.search-box input {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border-radius: 10px;
    border: 2px solid #333;
    background-color: #fff;
    color: #000;
    box-sizing: border-box;
    margin-bottom: 12px;
    outline: none;
}

.search-box input:focus {
    border-color: #e62e2d;
}

/* FILTROS (CUBÍCULOS) */
.filters {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-btn {
    background: #222;
    color: white;
    border: 1px solid #444;
    padding: 10px 16px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 13px;
    cursor: pointer;
}

.filter-btn.active { 
    background: #ffcc00; 
    color: #000; 
    font-weight: bold; 
    border-color: #ffcc00;
}

.filter-btn.manual-request {
    border-color: #e62e2d;
    color: #ffcc00;
}

/* LISTA DE CANCIONES COMPACTA */
.song-item {
    background: #111;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #222;
    content-visibility: auto;
    contain-intrinsic-size: 74px;
}

.song-info b { 
    display: block; 
    font-size: 16px; 
    color: #ffcc00; 
    margin-bottom: 2px;
}

.song-info {
    min-width: 0;
    padding-right: 12px;
}

.song-info span { 
    display: block;
    font-size: 14px; 
    color: #eee; 
    overflow-wrap: anywhere;
}

.song-info small {
    display: inline-block;
    margin-top: 6px;
    color: #00ffcc;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* BOTÓN PEDIR - ROJO LOGO */
.btn-pedir {
    background: #c5161d;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 3px #8f1015;
    text-transform: uppercase;
}

.btn-pedir:active {
    box-shadow: 0 1px #8f1015;
    transform: translateY(2px);
}

/* =========================================
   SISTEMA DE MODAL (FICHA Y TICKET)
   ========================================= */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.95); /* Oscuro para resaltar ficha */
}

.modal-content { 
    text-align: center; 
    padding: 30px 15px; 
    max-width: 500px;
    margin: 5% auto;
}

.close {
    color: #fff;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* ELEMENTOS DE LA FICHA DE PEDIDO */
.ficha-nombre { 
    font-size: 42px; 
    color: #ffcc00; 
    font-weight: 900; 
    margin-bottom: 10px;
    text-transform: uppercase;
    word-wrap: break-word;
    line-height: 1;
}

.ficha-cancion { 
    font-size: 24px; 
    color: white; 
    margin-bottom: 14px; 
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

.tipo-pedido-aviso {
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid #ffcc00;
    border-radius: 10px;
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.08);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
}

.manual-warning {
    margin: 0 0 15px;
    padding: 12px;
    border: 1px solid #ff7a00;
    border-radius: 10px;
    color: #ffb000;
    background: rgba(230, 46, 45, 0.14);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
}

.btn-enviar-final { 
    background: #25d366; /* Verde WhatsApp / Confirmación */
    color: white; 
    padding: 18px; 
    width: 100%; 
    font-size: 20px; 
    font-weight: bold;
    border-radius: 12px; 
    border: none; 
    cursor: pointer;
    text-transform: uppercase;
}

.btn-enviar-final:disabled,
.btn-enviar-final.is-loading {
    cursor: not-allowed;
    opacity: 0.72;
    box-shadow: none;
}

/* =========================================
   DISEÑO DEL TICKET VIP (OFFLINE/RESPALDO)
   ========================================= */
.ticket-container { 
    background: #111; 
    border: 2px solid #00ffcc; 
    border-radius: 15px; 
    padding: 25px; 
    color: white; 
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.2); 
}

.ticket-header { 
    font-size: 12px; 
    letter-spacing: 3px; 
    color: #00ffcc; 
    margin-bottom: 20px; 
}

.ticket-nombre-gigante { 
    font-size: 48px; 
    font-weight: 900; 
    margin: 10px 0; 
    color: #fff; 
    line-height: 1; 
}

.ticket-cancion { 
    font-size: 24px; 
    color: #ffcc00; 
    margin-top: 15px; 
    font-weight: bold; 
}

.ticket-titulo { 
    font-size: 18px; 
    opacity: 0.8; 
}

.ticket-tipo {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 12px;
    border: 1px solid #ffcc00;
    border-radius: 8px;
    color: #ffcc00;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.ticket-label { 
    font-size: 11px; 
    color: #888; 
    text-transform: uppercase;
}

.ticket-footer { 
    font-size: 12px; 
    margin-top: 25px; 
    color: #666; 
}

.btn-volver { 
    margin-top: 25px; 
    background: #333; 
    color: #fff; 
    border: none; 
    padding: 12px; 
    width: 100%; 
    border-radius: 8px; 
    font-weight: bold;
}

/* =========================================
   SECCIÓN DE VENTAS / CONTRATACIÓN
   ========================================= */
.ventas-box {
    display: none;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 2px solid #e62e2d;
    border-radius: 15px;
    text-align: center;
}

.ventas-box.is-visible {
    display: block;
}

.btn-contratar {
    background: #ffcc00;
    color: #000;
    border: none;
    padding: 15px;
    width: 100%;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    text-transform: uppercase;
}

/* =========================================
   BARRA FLOTANTE INFERIOR
   ========================================= */
.floating-social-bar {
    position: fixed;
    z-index: 900;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(92vw, 360px);
    min-height: 58px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    padding: 7px 10px;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.58);
}

.floating-action {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 48px;
    min-width: 0;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #f5f5f5;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font: inherit;
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
    touch-action: manipulation;
}

.floating-action:active {
    background: rgba(255, 255, 255, 0.08);
}

.floating-action:focus-visible {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}

.floating-action svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floating-action span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-store svg {
    color: #ffcc00;
}

.action-tiktok svg {
    color: #00ffcc;
}

.action-youtube svg {
    color: #ff3434;
}

.action-instagram svg {
    color: #ff5fb8;
}

.action-top svg {
    color: #ffffff;
}

/* Estilos para el formulario especial */
#modalData input, #modalData select {
    box-sizing: border-box;
    font-family: inherit;
}

#specialCat {
    border: 1px solid #444;
    font-weight: bold;
}
