/*
 * Estilos para la versión dinámica con fondo de estrellas.
 * Paleta cian‑violeta y soporte para logos combinados.
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&display=swap');

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Fondo de estrellas */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: #000;
}

/* Cabecera con logos */
.header-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px; /* logos más juntos */
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.header-logos .isologo {
  width: 40px;
  height: 40px;
}

.header-logos .logo {
  height: 40px;
}

/* Contenido centrado */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 20px;
}

/* Portal central con efecto pulsante */
.portal {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid #0ff;
  box-shadow: 0 0 25px 5px rgba(0, 255, 255, 0.8),
    0 0 50px 15px rgba(102, 204, 255, 0.8),
    0 0 80px 25px rgba(153, 102, 255, 0.6);
  background: radial-gradient(circle, rgba(102, 204, 255, 0.25) 0%, transparent 60%);
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}

/* Isologo en el centro del portal */
.portal-iso {
  position: absolute;
  width: 140px;  /* tamaño final */
  height: 140px;
  z-index: 5;
  filter: drop-shadow(0 0 15px #0ff);
  animation: iso-glow 4s ease-in-out infinite;
}

/* Animaciones */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px 5px rgba(0, 255, 255, 0.8),
      0 0 50px 15px rgba(102, 204, 255, 0.8),
      0 0 80px 25px rgba(153, 102, 255, 0.6);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 35px 10px rgba(0, 255, 255, 0.9),
      0 0 70px 25px rgba(102, 204, 255, 0.9),
      0 0 100px 35px rgba(153, 102, 255, 0.7);
  }
}

@keyframes iso-glow {
  0%, 100% {
    filter: drop-shadow(0 0 15px #0ff);
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 30px #6cf);
    transform: scale(1.2);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Textos */
h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #0ff;
  animation: blink 4s ease-in-out infinite;
}

p {
  font-size: 1rem;
  color: #99ccff;
  line-height: 1.4;
  max-width: 90vw;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #99ccff;
  font-size: 0.9rem;
  z-index: 5;
  text-align: center;
  opacity: 0.8;
}
.footer a {
  color: #99ccff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #0ff;
  text-shadow: 0 0 6px #0ff;
}


/* Botón de traducción */
.translate-btn {
  margin-left: 12px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.5);
  border: 1px solid #0ff;
  color: #0ff;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  border-radius: 5px;
  text-shadow: 0 0 6px #0ff;
  transition: all 0.3s ease;
}

.translate-btn:hover {
  background: rgba(0,255,255,0.1);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 600px) {
  .header-logos .isologo { width: 32px; height: 32px; }
  .header-logos .logo { height: 32px; }
  .portal { width: 160px; height: 160px; }
  .portal-iso { width: 100px; height: 100px; }
  h1 { font-size: 2rem; }
  p { font-size: 0.9rem; }
}
