/* Reset global */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to right, #e0f7fa, #fce4ec); /* Mezcla de los backgrounds usados */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}

/* Contenedor general (usado en distintas páginas) */
.container,
.calculator {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

/* Estilo específico para la calculadora si se usa */
.calculator {
  max-width: 400px;
}

/* Títulos */
h1 {
  text-align: center;
  color: #00796B;
  margin-bottom: 20px;
}

/* Etiquetas */
label {
  display: block;
  margin-top: 15px;
  color: #333;
}

/* Inputs y selects */
input,
select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

input[readonly] {
  background-color: #f0f0f0;
}

/* Botones */
button,
.link-button {
  background-color: #00796B;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
.link-button:hover {
  background-color: #004d40;
}

/* Botones de calculadora */
.buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.buttons button {
  padding: 15px;
  font-size: 18px;
  border-radius: 10px;
  background-color: #009688;
}

.buttons button:hover {
  background-color: #00796B;
}

.wide {
  grid-column: span 2;
}

/* Resultado de cálculo */
.resultado {
  margin-top: 20px;
  font-size: 16px;
  color: #444;
  background: #f1f8e9;
  padding: 15px;
  border-radius: 8px;
}

/* Contenedor de enlaces */
.link-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90%;
  max-width: 400px;
}

.link-button {
  text-decoration: none;
  text-align: center;
  border-radius: 12px;
  font-size: 18px;
  padding: 15px;
}

/* Footer */
footer {
  margin-top: 40px;
  color: #666;
  font-size: 14px;
}

/* Transiciones específicas */
#resistanceField {
  transition: all 0.3s ease;
}
