@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans&family=Tiny5&family=Jersey+10&display=swap");

body {
    background: #87CEEB; /* Mantienes el celeste diurno si lo usas */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    transition: background-color 1s ease;
    padding-top: 50px;
}

body.night-mode {
    background: #2E1A21; 
    color: #E2FCEF;
}

.text-center {
    text-align: center;
}

.logo-container {
    position: relative;
    transform: rotateX(60deg) rotateZ(-45deg);
    transform-style: preserve-3d;
    animation: float 3s ease-in-out infinite;
    margin-bottom: 20px; 
    z-index: 10;
    padding-top: 30px;
}

.logo-text {
    font-family: 'Pixelify Sans', cursive;
    font-size: 3rem;
    position: relative;
    color: #fff;
    -webkit-text-stroke: 1px #000;
    animation: colorChange 5s infinite;
}

.subtext {
    font-family: 'Pixelify Sans', cursive;
    font-size: 2rem;
    position: relative;
    color: #fff;
    -webkit-text-stroke: 1px #000;
    margin-top: 20px;
    text-align: center;
}

.night-mode .logo-text {
    animation: neonGlow 5s infinite;
    -webkit-text-stroke: 1px #fff;
}

.toggle-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #000;
    cursor: pointer;
    font-family: 'Pixelify Sans', cursive;
    z-index: 1000;
    animation: buttonFloat 2s ease-in-out infinite;
}

.moon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    display: none;
    z-index: -1;
  filter: drop-shadow(0 0 10px #FFE5B4);
  animation: moonGlow 3s infinite ease-in-out;
}

.night-mode .moon {
    display: block;
}

.rain {
    position: fixed;
    width: 6px;
    height: 20px;
    background: #fff;
    pointer-events: none;
    opacity: 0;
}

.lightning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.cloud {
    position: fixed;
    width: 100px;
    height: 50px;
    opacity: 0.8;
    animation: moveCloud linear infinite;
    left: -100px;
}

.night-mode .cloud {
    opacity: 0.1;
}

@keyframes neonGlow {
    0%, 100% { 
        text-shadow: 0 0 10px #9B287B, 0 0 20px #9B287B, 0 0 30px #9B287B; 
        color: #9B287B;
    }
    33% { 
        text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff; 
        color: #00ffff;
    }
    66% { 
        text-shadow: 0 0 10px #402039, 0 0 20px #402039, 0 0 30px #402039; 
        color: #402039;
    }
}

@keyframes buttonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes rainDrop {
    0% { transform: translateY(-100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes moveCloud {
    from { transform: translateX(-100px); }
    to { transform: translateX(calc(100vw + 100px)); }
}

@keyframes colorChange {
    0% {   color: #ff0000; }
    20% {  color: #ff9900; }
    40% {    color: #ffff00; }
    60% {  color: #33cc33; }
    80% {  color: #3366ff; }
    100% { color: #ff0000; }
}

@keyframes float {
    0%, 100% { transform: rotateX(0deg) rotateZ(0deg) translateY(0); }
    50% {      transform: rotateX(0deg) rotateZ(0deg) translateY(-20px); }
}

@keyframes moonGlow {
    0%, 100% { filter: drop-shadow(0 0 10px #FFE5B4); }
    50% { filter: drop-shadow(0 0 20px #FFE5B4); }
}

.info-box {
    /* Usamos el color claro para el fondo del cuadro */
    background-color: rgba(226, 252, 239, 0.95); /* #E2FCEF con transparencia */
    color: #402039; /* Texto oscuro Midnight Violet */
    padding: 15px 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    /* Usamos una sombra oscura acorde al fondo */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); 
    z-index: 5;
    margin-bottom: 50px;
    text-align: left;
    
    /* Importante para que el contenido fluya */
    position: relative; 
    overflow: hidden; 
}

.info-box h2 {
    font-family: 'Jersey 10', sans-serif;
    font-size: 2em;
    /* Usamos el Midnight Violet para la línea de separación */
    border-bottom: 2px solid #5C164E; /* Deep Purple */
    padding-bottom: 10px;
    margin-top: 0;
}

.info-box img{
    border-radius: 258px 258px 258px 258px;
    -webkit-border-radius: 258px 258px 258px 258px;
    -moz-border-radius: 258px 258px 258px 258px;
    background: #2f004f;
    border: 2px solid #9700ff;
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: auto;
}

.center-css{
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
}

@media (max-width: 600px) {
    
    .logo-container {
        margin-top: 80px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .text-center {
        font-size: 0.9rem;
    }

    .info-box {
        padding: 20px 20px; 
        width: 85%;
        height: 80%;
        margin-top: 5px;
    }

    .info-box h2 {
        /* Ajustamos el tamaño del título de la sección */
        font-size: 1.5em; 
    }
    
    /* --- 3. AJUSTE DEL CUERPO GENERAL --- */

    body {
        /* Quitamos el padding superior que agregamos para escritorio, ya lo manejamos con el logo-container */
        padding-top: 0; 
        /* Permitimos el scroll vertical en caso de que el contenido sea largo */
        overflow-y: auto; 
    }
}