/* --- Variables de Color y Estilo --- */
:root {
    --bg-color: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --accent-color: #00d4ff; /* Un azul neón, por ejemplo */
    --font-family: 'Poppins', sans-serif;
}

/* --- Estilos Globales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    /* Fondo animado sutil */
    background-image: 
        radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 0.15) 0px, transparent 50%),
        radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 0.15) 0px, transparent 50%),
        radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 0.15) 0px, transparent 50%),
        radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#search-bar {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#search-bar:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.monthly-banner {
    max-width: 520px;
    margin: 1rem auto 0;
    padding: 0.9rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 204, 102, 0.45);
    background:
        linear-gradient(135deg, rgba(255, 196, 92, 0.2), rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.04);
    color: #fff4d6;
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 0 1px rgba(255, 196, 92, 0.16),
        0 0 18px rgba(255, 196, 92, 0.2),
        0 0 34px rgba(0, 212, 255, 0.14),
        0 12px 30px rgba(255, 196, 92, 0.12);
    position: relative;
    isolation: isolate;
    animation: bannerPulse 1.6s ease-in-out infinite;
}

.monthly-banner::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(90deg, #00d4ff, #ffd166, #66f0ff, #ff9f1c, #00d4ff);
    background-size: 220% 100%;
    opacity: 0.85;
    filter: blur(10px);
    z-index: -1;
    animation: bannerGlow 2.2s linear infinite;
}

.monthly-banner p {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 0 12px rgba(255, 209, 102, 0.22);
}

@keyframes bannerPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 1px rgba(255, 196, 92, 0.16),
            0 0 18px rgba(255, 196, 92, 0.2),
            0 0 34px rgba(0, 212, 255, 0.14),
            0 12px 30px rgba(255, 196, 92, 0.12);
    }
    50% {
        transform: scale(1.015);
        box-shadow:
            0 0 0 1px rgba(255, 196, 92, 0.24),
            0 0 26px rgba(255, 196, 92, 0.34),
            0 0 48px rgba(0, 212, 255, 0.24),
            0 14px 34px rgba(255, 196, 92, 0.18);
    }
}

@keyframes bannerGlow {
    0% {
        background-position: 0% 50%;
        opacity: 0.55;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.95;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.55;
    }
}

.install-area {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.install-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.install-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.install-btn:active {
    transform: translateY(0);
}

.install-hint {
    max-width: 420px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

/* --- Grid de Aplicaciones --- */
#apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

/* --- Tarjeta de Aplicación (El Botón) --- */
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border-radius: 20px;
    background: var(--card-bg); /* Fondo semitransparente */
    backdrop-filter: blur(10px); /* El efecto Glassmorphism */
    border: 1px solid var(--card-border);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.app-card:hover::before {
    transform: translateX(100%);
}

.app-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.app-card:active {
    transform: translateY(-5px) scale(0.98);
}

.app-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.app-card:hover img {
    transform: rotate(10deg) scale(1.1);
}

.app-card h3 {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.badge-new {
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #06252e;
    background: linear-gradient(135deg, #00d4ff, #66f0ff);
    box-shadow: 0 6px 14px rgba(0, 212, 255, 0.25);
}

/* --- Responsividad --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .monthly-banner {
        padding: 0.85rem 1rem;
    }

    .monthly-banner p {
        font-size: 0.92rem;
    }

    #apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
}

