html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #0d1b2a; /* Fondo azul muy oscuro y premium */
    user-select: none; /* Evitar que se seleccione el contenido al hacer clics rápidos */
    -webkit-user-select: none;
}

/* Patrón repetido, inclinado y animado */
.bg-pattern {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('Assets/ICO.png');
    background-repeat: repeat;
    background-size: 100px;
    opacity: 0.04;
    transform: rotate(-25deg);
    animation: slidePattern 60s linear infinite;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

@keyframes slidePattern {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; } /* Movimiento en diagonal */
}

/* Gradiente radial para simular un foco de luz / viñeta circular */
.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #0d1b2a 90%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

/* Canvas para Huevo de Pascua (Partículas) */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* Detrás del logo, frente al fondo */
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#particles-canvas.active {
    opacity: 1;
}



/* Contenedor principal */
.content {
    position: relative;
    z-index: 10;
    display: grid;
    place-items: center;
    height: 100%;
    width: 100%;
}

.logo-link {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-link:hover {
    transform: scale(1.05) translateY(-15px); /* Efecto 3D al pasar el ratón */
}

.logo {
    height: 600px;
    max-width: 90vw;
    object-fit: contain;
    -webkit-user-drag: none; /* Evitar arrastrar la imagen por accidente */
    filter: drop-shadow(0 0 30px rgba(40, 119, 189, 0.2));
    animation: pulseGlow 12s ease-in-out infinite;
}

/* Animación tipo latido de luz lento para el logo principal */
@keyframes pulseGlow {
    0%   { filter: drop-shadow(0 0 20px rgba(40, 119, 189, 0.1)); }
    20%  { filter: drop-shadow(0 0 80px rgba(40, 119, 189, 0.8)) drop-shadow(0 0 150px rgba(80, 160, 255, 0.4)); }
    35%  { filter: drop-shadow(0 0 40px rgba(40, 119, 189, 0.3)); }
    50%  { filter: drop-shadow(0 0 120px rgba(40, 119, 189, 1)) drop-shadow(0 0 250px rgba(80, 160, 255, 0.6)); }
    100% { filter: drop-shadow(0 0 20px rgba(40, 119, 189, 0.1)); }
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .logo {
        height: auto;
        max-height: 70vh;
    }
}