/* ===== GABITOAPPS SHARP & COMPACT STYLE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background-color: #020204;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px 20px 0;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(93, 3, 151, 0.15) 0%, transparent 50%);
}

/* ===== SELECTOR DE IDIOMA ===== */
.lang-nav { position: absolute; top: 20px; right: 20px; font-size: 0.8rem; z-index: 10; }
.lang-nav a { color: #babbc6; text-decoration: none; transition: 0.3s; }
.lang-nav a.active { color: #ffffff; font-weight: 700; }
.lang-nav a:hover { color: #9d4edd; }

/* ===== TÍTULO NÍTIDO ===== */
header { text-align: center; margin-bottom: 30px; padding-top: 20px; width: 100%; }
.main-title { 
    font-size: 4.5rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: -4px; 
    line-height: 1;
    filter: none; 
}
.main-title .violet { color: #9d4edd; }
.main-title .orange { color: #ff7b00; }
.subtitle { font-size: 0.8rem; color: #a4a5b4; letter-spacing: 4px; margin-top: 10px; }

/* ===== TARJETAS Y EFECTO BUBBLE ===== */
main { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; max-width: 1300px; padding-bottom: 40px; }
.app-card {
    background: rgba(18, 18, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 25px 20px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}
.app-card:hover { transform: translateY(-10px); border-color: var(--glow-color); box-shadow: 0 15px 35px rgba(0,0,0,0.8); }

.app-image { width: 130px; height: 130px; border-radius: 30px; object-fit: cover; z-index: 2; position: relative; border: 2px solid rgba(255,255,255,0.05); }
.card-icon-container { position: relative; width: 130px; height: 130px; margin: 0 auto; cursor: pointer; }
.bubble-trigger::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 130px; height: 130px;
    background: radial-gradient(circle, var(--glow-color), transparent 70%);
    border-radius: 50%; transform: translate(-50%, -50%) scale(0);
    opacity: 0; transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1;
}
.app-card:hover .bubble-trigger::after { opacity: 0.4; transform: translate(-50%, -50%) scale(1.6); }

/* Colores de Apps */
.card-musictag { --glow-color: #00A3FF; } 
.card-fastphrases { --glow-color: #FF00FF; } 
.card-chartsapp { --glow-color: #00FFFF; } 

/* ===== TEXTOS Y RESALTADOS ===== */
h3 { font-size: 1.6rem; margin-top: 15px; color: #fff; }
p { color: #d0d1dd; font-size: 0.85rem; line-height: 1.5; margin: 15px 0 25px; text-align: center; }
.orange { color: #ff7b00; font-weight: 700; }
.cyan { color: #00FFFF; font-weight: 700; }
.magenta { color: #FF00FF; font-weight: 700; }

/* ===== BOTONES ===== */
.btn {
    margin-top: auto; display: block; padding: 15px 5px; border-radius: 12px;
    text-decoration: none; color: white; font-weight: 700; text-transform: uppercase;
    font-size: 0.7rem; transition: 0.3s; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
}
.btn-musictag:hover { background: #00A3FF; color: #000; box-shadow: 0 0 25px #00A3FF; }
.btn-fastphrases:hover { background: #FF00FF; color: #000; box-shadow: 0 0 25px #FF00FF; }
.btn-chartsapp { border: 1px dashed #00FFFF; color: #00FFFF; opacity: 0.7; }
.btn-chartsapp:hover { background: #00FFFF; color: #000; opacity: 1; }

/* ===== MODAL GALERÍA HORIZONTAL (BLINDADO) ===== */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.92); z-index: 1000; backdrop-filter: blur(10px);
    opacity: 0; transition: opacity 0.5s ease;
}
.active-modal { display: flex; justify-content: center; align-items: center; opacity: 1; }

.modal-content {
    max-width: 95vw;
    max-height: 85vh;
    background: #0b0b0e;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(157, 78, 221, 0.4);
    display: flex;
    flex-direction: row; 
    gap: 30px;
    padding: 30px;
    overflow-x: auto;
    align-items: center;
}

/* Scrollbar Personalizado */
.modal-content::-webkit-scrollbar { height: 8px; }
.modal-content::-webkit-scrollbar-track { background: #0b0b0e; }
.modal-content::-webkit-scrollbar-thumb { background: #9d4edd; border-radius: 10px; }

.modal-image-item {
    display: block;
    max-height: 80vh; 
    max-width: none; 
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: contain;
}

.close-modal {
    position: absolute; top: 15px; right: 30px; color: #fff; font-size: 3rem;
    cursor: pointer; transition: 0.3s; z-index: 1010;
}
.close-modal:hover { color: #ff007f; }

footer { padding: 40px 0; opacity: 0.7; font-size: 0.7rem; text-align: center; }

/* ===== RESPONSIVE DESIGN (SNIPER MODE) ===== */
@media (max-width: 768px) {
    .main-title { 
        font-size: 2.8rem; 
        letter-spacing: -2px; 
    }
    .subtitle { 
        font-size: 0.7rem; 
        letter-spacing: 2px; 
    }
    body { 
        padding: 15px 15px 0; 
    }
}