body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f7f7f8;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.simulador-aviso {
  width: 96vw;
  max-width: 420px;
  margin: 12px auto 10px auto;
  padding: 12px 4vw 8px 4vw;
  background: #fffbe7;
  border-radius: 12px;
  border: 1px solid #ffe082;
  color: #7c6f28;
  font-size: 1em;
  box-shadow: 0 1px 4px #0001;
  text-align: center;
}
.botones {
  display: flex;
  gap: 10px; /* Espacio entre los botones */
  margin-top: 10px;
}

.botones button {
  flex: 1 1 0;
  width: auto; /* Sobrescribe el width: 100% del selector global */
}

.container {
  background: #fff;
  width: 96vw;
  max-width: 400px;
  margin: 0 auto 24px auto;
  padding: 24px 5vw 24px 5vw;
  border-radius: 16px;
  box-shadow: 0 4px 24px #0002;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

h2 {
  text-align: center;
  color: #23272f;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-size: 1.15em;
}

label {
  font-size: 1em;
  color: #555;
  margin-bottom: 3px;
  font-weight: 500;
}

input[type="number"], input[type="text"] {
  width: 100%;
  padding: 12px 12px;
  margin-bottom: 2px;
  border: 1.2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1.08em;
  background: #fafbfc;
  color: #23272f;
  transition: border 0.2s;
  outline: none;
  box-sizing: border-box;
}

input[type="number"]:focus, input[type="text"]:focus {
  border: 1.2px solid #bdbdbd;
  background: #fff;
}

.botones {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.botones button {
  flex: 1 1 0;
}
#borrar {
  background: #e0e0e0;
  color: #23272f;
  font-weight: 500;
  transition: background 0.18s;
}
#borrar:hover {
  background: #bdbdbd;
}

button[type="submit"] {
  background: #23272f;
  color: #fff;
  font-weight: 500;
  transition: background 0.18s;
}
button[type="submit"]:hover {
  background: #444952;
}

.result {
  margin-top: 14px;
  background: #f4f4f6;
  padding: 14px 10px 8px 10px;
  border-radius: 8px;
  color: #23272f;
  font-size: 1.08em;
  box-shadow: 0 1px 4px #0001;
  line-height: 1.7;
  word-break: break-word;
}

.result strong {
  color: #23272f;
  font-weight: 600;
}

.total {
  color: #e53935;
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 8px;
}

@media (min-width: 600px) {
  body {
    justify-content: flex-start;
  }
  .simulador-aviso {
    margin: 40px auto 18px auto;
    padding: 18px 24px 12px 24px;
    font-size: 1.01em;
  }
  .container {
    padding: 32px 28px 28px 28px;
    gap: 18px;
  }
  h2 {
    font-size: 1.35em;
  }
}
