/* --- Reseteo básico y configuración global --- */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; 
}

/* --- Fondo Degradado Animado --- */
body {
    background: linear-gradient(45deg, #0d1a44, #030614, #0d1a44);
    background-size: 400% 400%; 
    color: #ffffff; 
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Contenedor Principal --- */
.container {
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Reducimos el espacio para ajustar el nuevo texto */
}

/* --- Estilo de tu Imagen --- */
.main-animation {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* --- ¡NUEVO! Estilo para las frases dinámicas --- */
.rotating-text {
    font-size: 1.5rem;
    font-weight: 600;
    /* Un violeta claro que resalta sobre el fondo oscuro */
    color: #c4b5fd; 
    
    /* Efecto de desvanecimiento (fade) de medio segundo */
    transition: opacity 0.5s ease-in-out;
    
    /* Empezará invisible (el JS lo hará visible) */
    opacity: 0; 
    
    /* Reservamos espacio para evitar "saltos" de layout */
    /* La frase más larga puede ocupar 2 líneas */
    min-height: 3em; 
    
    margin: 0.5rem 0; /* Espacio vertical */
    
    @media (max-width: 600px) {
        font-size: 1.2rem;
    }
}

/* --- Estilos de Texto (Títulos) --- */
.title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: #f0f0f0;
    white-space: nowrap; 
    order: 2; /* Cambiamos el orden visual */
    
    @media (max-width: 600px) {
        font-size: 1.25rem;
    }
}

.subtitle {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    order: 1; /* Cambiamos el orden visual */
    
    @media (max-width: 600px) {
        font-size: 2.5rem;
    }
}