:root {
    --bg-color: #0d1117;
    --primary-color: #58a6ff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #f0f6fc;
    --text-sec: #8b949e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    /* Evitar selección de texto para que parezca app nativa */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Background Animations */
.stars, .twinkling {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    display: block;
    z-index: -1;
}

.stars {
    background: #000 url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPjxyZWN0IHdpZHRoPSI0IiBoZWlnaHQ9IjQiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==') repeat top center;
}

.twinkling {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI0MDBweCI+PGNpcmNsZSBjeD0iNDAwIiBjeT0iMjAwIiByPSIyMDAiIGZpbGw9InVybCgjZ3JhZCkiIG9wYWNpdHk9IjAuMSIvPjxkZWZzPjxyYWRpYWxHcmFkaWVudCBpZD0iZ3JhZCIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNTAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjNThhNmZmIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjMDAwIiBzdG9wLW9wYWNpdHk9IjAiLz48L3JhZGlhbEdyYWRpZW50PjwvZGVmcz48L3N2Zz4=') repeat top center;
    animation: move-twink-back 150s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.logo-circle {
    font-size: 3.5rem;
    width: 90px;
    height: 90px;
    line-height: 90px;
    background: linear-gradient(135deg, rgba(88,166,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h1 span {
    color: var(--primary-color);
}

header p {
    color: var(--text-sec);
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Grid Layout */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 1.2rem;
    padding: 1.8rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
}

.glass-card:nth-child(2) { animation-delay: 0.1s; }
.glass-card:nth-child(3) { animation-delay: 0.2s; }
.glass-card:nth-child(4) { animation-delay: 0.3s; }
.glass-card:nth-child(5) { animation-delay: 0.4s; }
.glass-card:nth-child(6) { animation-delay: 0.5s; }
.glass-card:nth-child(7) { animation-delay: 0.6s; }

/* Micro-animations */
.glass-card:hover, .glass-card:active {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Glowing effects on hover */
.glass-card::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover::before, .glass-card:active::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 1rem;
}

.glass-card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.glass-card p {
    color: var(--text-sec);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Footer & Install Button */
footer {
    text-align: center;
    color: var(--text-sec);
    font-size: 0.9rem;
}

.install-banner {
    background: linear-gradient(135deg, rgba(88,166,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 0 auto 2rem;
    max-width: 400px;
    animation: pulse 2s infinite;
}

.install-banner.hidden {
    display: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Outfit', sans-serif;
}

.btn-primary:active {
    transform: scale(0.95);
}

/* Keyframes */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(88,166,255,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(88,166,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(88,166,255,0); }
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .glass-card {
        flex-direction: row;
        align-items: center;
        padding: 1.2rem;
    }

    .card-icon {
        margin-bottom: 0;
        margin-right: 1.2rem;
        font-size: 2rem;
    }
}
