/* PALETA DE COLORES SOFT INDUSTRIAL - GDLSYSCOM SORTEOS */
* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
}

body { 
    background-color: #f8fafc; color: #1e293b; 
}

/* NAVBAR (Azul Acero Profesional Soft) */
header { 
    background-color: #1e3a8a; 
    border-bottom: 4px solid #3b82f6; 
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.navbar { 
    max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
}

.logo-texto-gdl {
    color: #ffffff; font-size: 1.4rem; font-weight: 800; letter-spacing: 0.5px;
}
.logo-texto-gdl span {
    color: #93c5fd; font-weight: 400; font-size: 1.1rem;
}

.selector-sorteo-container {
    display: flex; align-items: center; gap: 10px;
}
.selector-sorteo-container label {
    color: #f1f5f9; font-weight: 600; font-size: 0.95rem;
}
.selector-sorteo-container select {
    padding: 8px 16px; border-radius: 8px; border: 1px solid #3b82f6; 
    font-weight: 700; color: #1e3a8a; background: #ffffff; cursor: pointer; outline: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ENCABEZADO DEL PREMIO (Claro y Sofisticado) */
.sorteo-header-section { 
    text-align: center; padding: 40px 20px; background: #ffffff;
    border-bottom: 1px solid #e2e8f0; margin-bottom: 25px;
}
.sorteo-badge {
    display: inline-block; background: #eff6ff; color: #2563eb; 
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px;
}
#tituloSorteoActivo { 
    font-size: 2.5rem; font-weight: 800; color: #0f172a; max-width: 800px; margin: 0 auto 10px auto; line-height: 1.2;
}
.instruccion-sub {
    color: #64748b; font-size: 1.05rem; margin-bottom: 25px;
}

/* GALERÍA DE IMÁGENES */
.galeria-contenedor {
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 15px auto 0 auto; max-width: 1000px;
}
.galeria-contenedor img {
    width: 280px; height: 210px; object-fit: cover; border-radius: 12px; 
    border: 1px solid #e2e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.06); transition: transform 0.2s ease;
}
.galeria-contenedor img:hover {
    transform: scale(1.02);
}

/* BARRA DE BÚSQUEDA Y CONTROLES */
.search-container { max-width: 1200px; margin: 0 auto 25px auto; display: flex; gap: 15px; padding: 0 20px; }
.search-box { position: relative; flex: 1; }
.search-box input { width: 100%; padding: 14px 15px 14px 45px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 1rem; outline: none; background: #fff; color:#0f172a; transition: border 0.2s; }
.search-box input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 1.1rem; }

.btn-ruleta { background-color: #2563eb; color: white; border: none; padding: 0 25px; border-radius: 10px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.btn-ruleta:hover { background-color: #1d4ed8; }

/* GRILLA DE NÚMEROS (Estilo Limpio) */
.grid-container { max-width: 1200px; margin: 0 auto 80px auto; padding: 0 20px; }
.tickets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); gap: 8px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }

.ticket { background-color: #f1f5f9; border: 1px solid #e2e8f0; color: #334155; padding: 12px 0; text-align: center; font-size: 0.95rem; border-radius: 6px; cursor: pointer; user-select: none; font-weight: 700; transition: all 0.15s; }
.ticket:hover { background-color: #cbd5e1; color: #0f172a; }
.ticket.selected { background-color: #3b82f6 !important; color: #ffffff !important; border-color: #2563eb !important; transform: scale(0.96); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.ticket.hidden { display: none; }

/* BARRA DEL CARRITO DE APARTADOS (FIJA INFERIOR) */
.checkout-cart { position: fixed; bottom: 0; left: 0; width: 100%; background: #0f172a; color: white; padding: 16px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 90; }
.checkout-cart.active { transform: translateY(0); }
.cart-info { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.cart-info i { color: #3b82f6; font-size: 1.3rem; }
.cart-info span { font-weight: 800; background: #2563eb; padding: 2px 10px; border-radius: 12px; font-size: 0.95rem; }
.btn-comprar { background-color: #3b82f6; color: white; border: none; padding: 12px 28px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.btn-comprar:hover { background-color: #2563eb; }

/* CAPA FLOTANTE DEL REGISTRO */
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(15, 23, 42, 0.6); display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 100; backdrop-filter: blur(4px); }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content { background: white; padding: 35px; border-radius: 16px; max-width: 500px; width: 90%; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-top: 6px solid #2563eb; }
.modal-content h2 { color: #0f172a; margin-bottom: 8px; font-size: 1.5rem; }
.modal-content p { color: #64748b; font-size: 0.9rem; margin-bottom: 20px; line-height: 1.4; }

.input-group { display: flex; flex-direction: column; gap: 6px; margin-top: 15px; }
.input-group label { color: #1e293b; font-weight: 700; font-size: 0.9rem; }
.input-group input { padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; outline: none; transition: border 0.2s; }
.input-group input:focus { border-color: #2563eb; }
.boletos-resumen { margin-top: 20px; background: #f8fafc; padding: 12px; border-radius: 8px; font-size: 0.95rem; color: #1e3a8a; border: 1px dashed #cbd5e1; }

.modal-actions { margin-top: 25px; display: flex; justify-content: space-between; gap: 15px; }
.btn-cancelar { background: #f1f5f9; color: #475569; border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer; font-weight: 700; flex: 1; transition: background 0.2s; }
.btn-cancelar:hover { background: #e2e8f0; }
.btn-pagar-despues { background-color: #2563eb; color: white; border: none; padding: 12px 24px; font-size: 1rem; font-weight: 700; border-radius: 8px; cursor: pointer; flex: 2; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s; }
.btn-pagar-despues:hover { background-color: #1d4ed8; }

/* DISEÑO EXCLUSIVO TABLA ADMIN Y COMPONENTES */
.metric-card { box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important; border: 1px solid #e2e8f0 !important; }
.bloque-boleto-admin { background-color: #cbd5e1 !important; color: #1e293b !important; border: 1px solid #cbd5e1 !important; }
.bloque-boleto-admin.pagado { background-color: #10b981 !important; color: white !important; border-color: #059669 !important; }