/* ============================================================
   GLOBAL.CSS - Variables, fondos, animaciones y tipografía base
   Real Sensi FF V3.0
   ============================================================ */

:root {
    --primary: #ff3c3c;
    --premium: #ffcc00;
    --success-green: #009929;
    --card-bg: rgba(0, 0, 0, 0.55);
    --border: rgba(255, 255, 255, 0.08);
    --whatsapp: #25d366;
    
    --grad-gris-3d: linear-gradient(180deg, #d1d1d1 0%, #8a8a8a 50%, #5e5e5e 100%);
    --grad-amarillo-3d: linear-gradient(180deg, #ffe57e 0%, #e6ac00 50%, #997100 100%);
    --grad-rojo-3d: linear-gradient(180deg, #ff6b6b 0%, #ff3c3c 50%, #b30000 100%);
}

* {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #fff;
    position: relative;
    background-color: #0a0f1a;
}

/* ========== CAPAS PARA FONDO DINÁMICO ========== */
.fondo-capa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #0a0f1a;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: opacity 1.5s ease-in-out;
    z-index: -2;
}

#fondoCapa1 {
    opacity: 1;
    z-index: -2;
}

#fondoCapa2 {
    opacity: 0;
    z-index: -1;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* ========== ANIMACIONES GENERALES ========== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--premium);
    border-radius: 10px;
}

/* ========== TIPOGRAFÍA BASE ========== */
h2, h3 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    margin-bottom: 20px;
}

input, select {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border-radius: 12px;
    border: 1px solid #444;
    background: rgba(20, 20, 20, 0.7);
    color: white;
    text-align: center;
    font-weight: bold;
}

.marca-label {
    font-size: 12px;
    color: var(--premium);
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
}

.advertencia-texto {
    display: none;
    color: var(--primary);
    font-size: 11px;
    text-align: center;
    font-weight: bold;
    margin: 5px 0;
}

.view-section {
    display: none;
    width: 100%;
}

.loader {
    display: none;
    color: var(--primary);
    font-size: 12px;
    margin: 15px 0;
    font-family: monospace;
}

/* ============================================
   BANNER DE DESCARGA APK - CONTENEDOR JUSTO A LA IMAGEN
   ============================================ */

.banner-descarga-apk {
    margin: 6px auto 4px auto;
    max-width: 550px;
    width: 100%;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    height: auto;
}

.imagen-container {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 2px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.9), 0 0 6px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    line-height: 0;
}

.imagen-container:hover {
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.95), 0 0 5px rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.imagen-container:active {
    transform: scale(0.98);
}

.banner-descarga-icono {
    width: auto;
    height: 42px;
    max-width: 100%;
    object-fit: contain;
    cursor: pointer;
    display: block;
    padding: 0;
    margin: 0;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .banner-descarga-icono {
        height: 45px;
    }
    .imagen-container {
        padding: 3px;
        border-radius: 10px;
    }
}

/* ============================================
   TIENDA - ESTILOS PROFESIONALES
   ============================================ */

.tienda-saldo {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 14px;
}

.tienda-saldo-valor {
    font-weight: 700;
    color: var(--premium, #ffd700);
    font-size: 16px;
}

.tienda-seccion-titulo {
    font-size: 13px;
    font-weight: 700;
    color: var(--premium, #ffd700);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tienda-producto {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.tienda-producto:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 215, 0, 0.15);
}

.tienda-producto-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #fff;
}

.tienda-producto-icono {
    font-size: 18px;
}

.tienda-producto-nombre {
    font-weight: 500;
}

.tienda-producto-precio {
    font-weight: 600;
    color: var(--success-green, #22c55e);
    font-size: 14px;
    margin-right: 12px;
}

.tienda-btn-comprar {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 6px 16px;
    color: var(--premium, #ffd700);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tienda-btn-comprar:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.tienda-btn-vip {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.tienda-recarga-metodo {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tienda-recarga-icono {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
}

.tienda-recarga-nombre {
    font-weight: 500;
    font-size: 14px;
    color: #fff;
}

.tienda-recarga-info {
    color: #888;
    font-size: 11px;
}

.tienda-btn-recargar {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 6px 16px;
    color: #22c55e;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tienda-btn-recargar:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

.tienda-btn-paypal {
    background: rgba(0, 119, 255, 0.1);
    border-color: rgba(0, 119, 255, 0.2);
    color: #0077ff;
}

.tienda-btn-paypal:hover {
    background: rgba(0, 119, 255, 0.2);
    border-color: rgba(0, 119, 255, 0.4);
}

/* ============================================
   CÓDIGO PROMOCIONAL - COMPACTO Y PROFESIONAL
   ============================================ */

.tienda-promo-container {
    background: rgba(235, 160, 0, 0.03);
    border: 1px solid rgba(235, 160, 0, 0.1);
    border-radius: 8px;
    padding: 5px 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.tienda-promo-container:hover {
    border-color: rgba(255, 215, 0, 0.15);
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.05);
}

.tienda-promo-input {
    flex: 1;
    min-width: 100px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease;
    height: 38px;
}

.tienda-promo-input:focus {
    border-color: rgba(255, 215, 0, 0.4);
}

.tienda-promo-btn {
    background: linear-gradient(115deg, #ffd700, #f5a623);
    color: #111;
    font-weight: 700;
    font-size: 10px;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 38px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.15);
}

.tienda-promo-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

.tienda-promo-btn:active {
    transform: scale(0.98);
}

.tienda-promo-mensaje {
    margin-top: 4px;
    font-size: 12px;
    min-height: 18px;
    font-weight: 500;
}

/* ============================================
   MODAL TIENDA - CONTENEDOR PRINCIPAL
   ============================================ */

.modal-tienda {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10006;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 10px;
    box-sizing: border-box;
}

.modal-tienda-contenido {
    background: #111;
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

@media (max-width: 480px) {
    .modal-tienda-contenido {
        max-width: 95%;
        padding: 16px;
    }
}
/* ============================================================
   OCULTAR BANNER DE DESCARGA APK (TEMPORAL)
   ============================================================ */
#bannerDescargaAPK {
    display: none !important;
}