/* === ESTILOS GENERALES === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f0f0f0, #dfe6e9);
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* === HEADER === */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
}

header .logo {
  position: absolute;
  left: 0;
  width: 80px;
  height: auto;
}

header h1 {
  text-align: center;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: #d63031;
  margin: 0;
}

/* === BOTÓN DE MODO === */
.modo-btn {
  position: absolute;
  right: 0;
  background: #d63031;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modo-btn:hover {
  background: #e84118;
}

/* === TABLA === */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #d63031;
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

td input {
  width: 80px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  outline: none;
}

/* === PORTAL (solo mantiene el estilo JARVIS) === */
.portal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.portal-content {
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid cyan;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 30px cyan;
  animation: pulse 2s infinite alternate;
}
 
.portal-content h2 {
  color: cyan;
  text-shadow: 0 0 10px cyan;
}

.portal-content input {
  margin-top: 15px;
  padding: 10px;
  width: 220px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid cyan;
  background: rgba(0, 255, 255, 0.1);
  color: white;
  outline: none;
}

.portal-content button {
  margin-top: 20px;
  background: cyan;
  border: none;
  padding: 10px 25px;
  color: black;
  border-radius: 10px;
  cursor: pointer;
}

.portal-content p {
  margin-top: 10px;
  color: red;
  font-size: 14px;
}

/* === ANIMACIÓN PORTAL === */
@keyframes pulse {
  from {
    box-shadow: 0 0 10px cyan;
  }
  to {
    box-shadow: 0 0 30px cyan, 0 0 60px rgba(0, 255, 255, 0.3);
  }
}

/* === RESPONSIVIDAD === */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  header .logo {
    position: static;
    margin-bottom: 10px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .modo-btn {
    position: static;
    margin-top: 10px;
  }

  table {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  th, td {
    padding: 10px;
  }

  td input {
    width: 60px;
  }
}
