.calculator-section {
  text-align: center;
  color: #fff;
  padding: 30px;
  background: rgba(20, 10, 40, 0.6);
  border-radius: 15px;
  max-width: 400px;
  margin: auto;
  box-shadow: 0 0 25px #6a00ff, inset 0 0 15px #220044;
  backdrop-filter: blur(10px);
}

.calc-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #9c7bff;
  text-shadow: 0 0 10px #bb86ff;
  text-transform: uppercase;
}

.calc-display {
  background: #0a0015;
  border: 2px solid #6a00ff;
  border-radius: 10px;
  padding: 15px;
  font-size: 24px;
  text-align: right;
  margin-bottom: 15px;
  box-shadow: inset 0 0 10px #220044;
  font-family: monospace;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.calc-buttons button {
  background: #1e0030;
  border: 2px solid #6a00ff;
  border-radius: 8px;
  padding: 15px;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 10px #2e0050;
}

.calc-buttons button:hover {
  background: #6a00ff;
  box-shadow: 0 0 15px #a86dff;
}

button.operator {
  color: #00e1ff;
}

button.action {
  background: #2e0050;
  color: #ff6363;
}

button.reset {
  grid-column: span 2;
}

button.equal {
  grid-column: span 2;
  background: #ff004c;
  border: 2px solid #ff4f7d;
  box-shadow: 0 0 15px #ff4f7d;
}

button.equal:hover {
  background: #ff1a66;
}

/* Historial */
.history {
  margin-top: 20px;
  text-align: left;
  background: rgba(10, 0, 20, 0.7);
  border: 1px solid #6a00ff;
  border-radius: 10px;
  padding: 10px;
  max-height: 150px;
  overflow-y: auto;
}

.history h3 {
  margin-bottom: 10px;
  color: #bb86ff;
  font-size: 16px;
}

#history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: monospace;
  font-size: 14px;
}

#history-list li {
  margin: 3px 0;
  color: #d6c3ff;
}
/* ===== CALCULADORA ===== */
.calculator-section {
  max-width: 400px;
  margin: 100px auto;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #00f7ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 25px #00f7ff;
}

.calc-title {
  text-align: center;
  font-size: 1.5rem;
  color: #00f7ff;
  margin-bottom: 15px;
  font-family: 'Orbitron', sans-serif;
}

.calc-display {
  background: #111;
  color: #0ff;
  font-size: 1.8rem;
  text-align: right;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: inset 0 0 10px #00f7ff;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.calc-buttons button {
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #00f7ff;
  padding: 15px;
  font-size: 1.2rem;
  font-family: 'Orbitron', sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.calc-buttons button:hover {
  background: #00f7ff;
  color: #000;
  transform: scale(1.05);
}

.calc-buttons .action {
  background: #ff3b3b;
  border-color: #ff3b3b;
}

.calc-buttons .action:hover {
  background: #ff5c5c;
  color: #fff;
}

.calc-buttons .equal {
  grid-column: span 2; /* Hace que el botón "=" ocupe 2 columnas */
  background: #0ff;
  color: #000;
  font-weight: bold;
}

.history {
  margin-top: 20px;
  color: #fff;
  font-family: monospace;
  max-height: 150px;
  overflow-y: auto;
}
