/* Navbar colapsado por defecto - solo iconos */
.navbar {
  position: fixed;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #636c7d81;
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 9px 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  width: 60px;
  /* Ancho colapsado - solo iconos */
  overflow: hidden;
}

/* Navbar expandido al hacer hover */
.navbar:hover {
  width: 220px;
  /* Ancho expandido */
  padding: 20px 20px;
}

/* Logo - oculto por defecto */
.logo {
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 15px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

/* Logo visible al hacer hover */
.navbar:hover .logo {
  opacity: 1;
  transform: translateX(0);
}

.logo a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.logo a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.logo a i {
  font-size: 1rem;
}

/* Menu principal - solo iconos por defecto */
.menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu li a {
  color: white;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
  width: 100%;
  white-space: nowrap;
}

/* Iconos siempre visibles 
.menu li a i {
    font-size: 1.1rem;
    min-width: 20px;
    flex-shrink: 0;
}

/* Texto oculto por defecto */
.menu li a span {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  width: 0;
}

/* Texto visible al hacer hover en el navbar */
.navbar:hover .menu li a span {
  opacity: 1;
  transform: translateX(0);
  width: auto;
}

/* Efectos de hover en los enlaces */
.menu li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.menu li a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu li a:hover::before {
  left: 100%;
}

.menu li a.activo {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-weight: bold;
}

/* Indicador visual cuando está colapsado */
.navbar::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.navbar:hover::after {
  opacity: 0;
}

/* RESPONSIVE - Mobile mantiene el comportamiento original */
@media (max-width: 768px) {

  /* Desactivar el hover en móvil */
  .navbar:hover {
    width: 100% !important;
    padding: 80px 20px 20px !important;
  }

  .navbar {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    transform: none;
    width: 100% !important;
    border-radius: 0 0 20px 20px;
    padding: 80px 20px 20px;
    min-width: auto;
    transition: top 0.3s ease;
    overflow: visible;
  }

  .navbar.active {
    top: 0;
  }

  /* En mobile, logo y texto siempre visibles */
  .logo {
    opacity: 1 !important;
    transform: translateX(0) !important;
    position: fixed;
    top: 20px;
    left: 20px;
    right: 70px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    background: rgba(75, 108, 180, 0.274);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    z-index: 999;
  }

  /* Forzar visibilidad del texto en móvil */
  .navbar:hover .logo {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }

  .menu li a span {
    opacity: 1 !important;
    transform: translateX(0) !important;
    width: auto !important;
  }

  .navbar:hover .menu li a span {
    opacity: 1 !important;
    transform: translateX(0) !important;
    width: auto !important;
  }

  .navbar::after {
    display: none;
  }

  /* Botón hamburguesa */
  .hamburger {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .logo a {
    font-size: 1.3rem;
    justify-content: flex-start;
    padding: 0;
  }

  .menu ul {
    flex-direction: column;
    gap: 12px;
  }

  .menu li a {
    padding: 15px 20px;
    font-size: 1.1rem;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .menu li a:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
  }

  .menu li a i {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo {
    right: 60px;
    padding: 10px;
  }

  .logo a {
    font-size: 0.8rem;
    gap: 5px;
  }

  .navbar {
    padding: 70px 15px 15px;
  }

  .menu li a {
    padding: 12px 15px;
    font-size: 1rem;
  }
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Muy importante: queda detrás de todo */
  background-color: #0d0d25;
  /* Puedes cambiar el fondo aquí si quieres */

}

#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0d0d25;
  overflow: hidden;
}

.welcome {
  position: absolute;
  z-index: 10;
  text-align: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#enter-button {
  padding: 15px 30px;
  font-size: 1.2em;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #b2c4ff, #dcd6f7, #b3e5fc);
  color: #000;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

#enter-button:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #dcd6f7, #b2c4ff, #b3e5fc);
}

/* Título principal */
.main-title {
  position: relative;
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 2.8em;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(90deg, #b2c4ff, #dcd6f7, #b3e5fc);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeSlideDown 1.5s ease forwards;
  opacity: 0;
}

#back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #b3e5fc, #dcd6f7);
  color: #000;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

#back-button:hover {
  transform: scale(1.05);
}


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

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #0d0d25 0%, #061038 50%, #02000c 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Partículas flotantes de fondo */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(99, 108, 125, 0.8) 0%, rgba(99, 108, 125, 0.2) 70%, transparent 100%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 20%;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 30%;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  left: 40%;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  width: 4px;
  height: 4px;
  left: 50%;
  animation-delay: 4s;
}

.particle:nth-child(6) {
  width: 7px;
  height: 7px;
  left: 60%;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  width: 3px;
  height: 3px;
  left: 70%;
  animation-delay: 1.5s;
}

.particle:nth-child(8) {
  width: 5px;
  height: 5px;
  left: 80%;
  animation-delay: 2.5s;
}

.particle:nth-child(9) {
  width: 4px;
  height: 4px;
  left: 90%;
  animation-delay: 3.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  50% {
    transform: translateY(0vh) scale(1);
  }
}

.container {
  position: relative;
  z-index: 2;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box {
  background: linear-gradient(145deg, rgba(238, 238, 236, 0.1) 0%, rgba(99, 108, 125, 0.2) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(238, 238, 236, 0.2);
  border-radius: 25px;
  padding: 40px;
  max-width: 800px;
  width: 100%;
  box-shadow:
    0 20px 40px rgba(6, 16, 56, 0.3),
    inset 0 1px 0 rgba(238, 238, 236, 0.2);
  position: relative;
  overflow: hidden;
  animation: slideIn 1s ease-out;
}

.box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(53, 93, 155, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#title {
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(135deg, #eeeeec 0%, #636c7d 50%, #355d9b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px rgba(53, 93, 155, 0.5));
  }

  to {
    filter: drop-shadow(0 0 20px rgba(53, 93, 155, 0.8));
  }
}

h2 {
  font-size: 1.8rem;
  color: #eeeeec;
  text-align: center;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.symbol-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.symbol {
  background: linear-gradient(145deg, #355d9b, #061038);
  color: #eeeeec;
  font-size: 3rem;
  font-weight: bold;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 20px rgba(6, 16, 56, 0.4),
    inset 0 2px 4px rgba(238, 238, 236, 0.2);
  position: relative;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.symbol:hover {
  transform: scale(1.1) rotate(5deg);
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 10px 20px rgba(6, 16, 56, 0.4), inset 0 2px 4px rgba(238, 238, 236, 0.2);
  }

  50% {
    box-shadow: 0 15px 30px rgba(53, 93, 155, 0.6), inset 0 2px 4px rgba(238, 238, 236, 0.3);
  }
}

.content {
  color: #eeeeec;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin: 30px 0;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.highlight {
  background: linear-gradient(90deg, rgba(53, 93, 155, 0.3), rgba(99, 108, 125, 0.3));
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  color: #eeeeec;
}

.atomic-number {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #636c7d, #355d9b);
  color: #eeeeec;
  padding: 10px 15px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(6, 16, 56, 0.3);
  animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efectos de cristal en los bordes */
.glass-effect {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(238, 238, 236, 0.3), transparent);
  border-radius: 1px;
}

.glass-effect-2 {
  position: absolute;
  top: 10px;
  left: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(238, 238, 236, 0.2), transparent);
  border-radius: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .box {
    margin: 10px;
    padding: 20px;
  }

  #title {
    font-size: 2.5rem;
  }

  .symbol {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .content {
    font-size: 1rem;
  }
}






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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 50px 20px;
  text-align: center;
  color: #333;
}

.footer {
  background: linear-gradient(135deg, #0d0d25 0%, #061038 50%, #02000c 100%);
  color: white;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,20"/></svg>') no-repeat;
  background-size: cover;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #355d9b, #636c7d);
  border-radius: 2px;
}

.footer-section p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover::before {
  opacity: 1;
  left: -15px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(53, 93, 155, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 108, 125, 0.2);
}

.social-icon:hover {
  background: rgba(53, 93, 155, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(6, 16, 56, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 40px;
  height: 40px;
  bottom: 30%;
  left: 70%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 15px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .social-icons {
    justify-content: center;
  }
}

.intro-gif {
  width: 400px;
  height: auto;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px #fff;
  }

  50% {
    text-shadow: 0 0 20px #b3e5fc
  }

  100% {
    text-shadow: 0 0 5px #fff;
  }
}

h1 {
  animation: glow 2s infinite alternate;
  color: white;
}

.container {
  background: #0d0d25;
}