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

body {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    background: #000;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
    
}


.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background picture,
.video-background img,
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   CONTENEDOR PRINCIPAL FIJO: 600px
============================================ */
.main-container {
    width: 600px;
    max-width: 90vw;           /* para que no se salga en móvil muy pequeño */
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 32px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================
   LOGO: ocupa el ancho completo del contenedor
============================================ */
.logo-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 24px;
    background: #000000;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   GRID RESPONSIVE DE BOTONES
   - Usa auto-fill con columnas de mínimo 100px
   - Los botones son cuadrados con aspect-ratio 1/1
   - Se ajustan automáticamente al ancho de 600px
============================================ */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 8px;
}

.link-card {
    aspect-ratio: 1 / 1;
    background: var(--card-bg-normal, #2a2a2a);
    border: var(--card-border-normal, 1px solid rgba(128, 128, 128, 0.3));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.link-card i {
    font-size: 2rem;
    transition: all 0.25s ease-in-out;
    color: var(--icon-color-normal, #a0a0a0);
}

.link-card:hover {
    background: var(--card-bg-hover, #111111);
    border: var(--card-border-hover, 1px solid rgba(128, 128, 128, 0.6));
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.link-card:hover i {
    color: var(--icon-color-hover, #ffffff);
}

.footer-note {
    font-size: 0.7rem;
    color: #ccc;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 40px;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE: si la pantalla es muy pequeña,
   el contenedor se adapta pero siempre respeta el ancho
============================================ */
@media (max-width: 640px) {
    .main-container {
        width: 94vw;
        padding: 20px;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 16px;
    }
    
    .link-card i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 12px;
    }
    
    .link-card i {
        font-size: 1.3rem;
    }
}