/* styles2.css (Versión Corregida y Actualizada) */

/* styles2.css */

/* ▼▼▼ PASO 1: AÑADIMOS LA ANIMACIÓN DE FADE-IN ▼▼▼ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#principio {
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    
    /* Aplicamos la nueva animación de aparición */
    opacity: 1; /* El estado final es opacidad completa */
    animation: fadeIn 2s ease-in-out; /* Nombre, duración y suavizado */

    /* La transición de salida sigue aquí para cuando se oculte */
    transition: opacity 1s ease-out;
}

#p5-canvas-container {
    position: absolute;
    top: 0%;
    left: 0;
    width: 0%;
    height:0%;
    z-index: 1; display: none;
}

#titulo-esfera-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 40px;
}

#inicio-botones {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    align-items: center; 
    
    position: fixed;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* ▼▼▼ PASO 2: BAJAMOS LA ALTURA DE LOS BOTONES ▼▼▼ */
     /* Ajustado para bajarlo más (antes era 70px) */
}

#titulo1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    line-height: 1;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 300;
    font-size: 4vw;
    letter-spacing: 0.07em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
    color: white;
    text-transform: uppercase;
    transition: opacity 0.5s ease-out;
    position: absolute;
    top: 7%;
    right: 5%;
     
    background-color: rgba(0, 0, 0, 0);
}

.os-red {
    color: #E53935;
    font-weight: 500;    box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
}

.version-text {
    font-size: 0.35em;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: none;
}

#esfera {
    background-color: white;
    border-radius: 50%;
  /* Mantiene la proporción de aspecto */;
   
      /* Ancho máximo para pantallas grandes */
 
    /* Centrado de los botones internos */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    gap: 1%;
 width: calc(12vh  + 12vw); /* Ancho relativo */
    /* Propiedad clave para la animación */
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease-out;
    animation: pulse-halo 4s infinite ease-in-out;
aspect-ratio: 1 / 1; /* Mantiene la proporción de aspecto */
 
}

/* Clase para ocultar suavemente los elementos */
.oculto {
    opacity: 0 !important;
    pointer-events: none; /* Evita interacciones mientras está oculto */
}


@keyframes pulse-halo {
  0%, 100% {
    box-shadow: 0 0 20px 7px rgba(255, 255, 255, 0.5), 0 0 8px 2px rgba(255, 255, 255, 0.1) inset;
  }
  50% {
    box-shadow: 0 0 35px 22px rgba(255, 255, 255, 0.7), 0 0 12px 4px rgba(255, 255, 255, 0.3) inset;
  }
}

/* Clase que dispara la expansión */
#esfera.expandir {
    transform: scale(50);   aspect-ratio: 1 / 1 !important; 
}
.pro3 { background-color: rgba(0, 0, 0, 0);
     
    border: none;
    margin: 0;
    color: rgb(0, 0, 0);
    font-family: 'Arial', sans-serif;
    font-size: calc(1vh + 1vw);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, letter-spacing 0.3s ease, opacity 0.3s ease-out;
}

.pro3:hover {
    letter-spacing: 7px;
    transform: scale(1);    color: black;
background-color: #41414100;
}

.oculto {
    opacity: 0 !important;
    pointer-events: none;
}


/* Estilos para el botón S (Asistente), movidos aquí desde el otro CSS para unificar */
#asistente-btn {
    transform: translateY(-50%);
    position: fixed;
    top: 50%;
    right: 1%;
    width: 60px;
    height: 60px;
    background-color: #2c2c2c;
    color: white;
    border-radius: 50%;
    border: 1px solid #444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, background-color 0.2s ease;
}

#asistente-btn.visible {
    opacity: 1;
    transform: scale(1);
}

#asistente-btn.visible:hover {
    background-color: #383838;
    transform: scale(1.1);
}