/* Tipografía */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff0f6;
  color: #4a0033;
  margin: 0;
  padding: 1rem;
  line-height: 1.6;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  color: #c72c41;
  text-shadow: 1px 1px 3px #f9c5d1;
}

h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #a61e38;
}

form {
  max-width: 420px;
  margin: 0 auto 2rem;
  background: #ffe6f0;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(199, 44, 65, 0.3);
  transition: box-shadow 0.3s ease;
}

form:hover,
form:focus-within {
  box-shadow: 0 12px 20px rgba(199, 44, 65, 0.6);
}

form div {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

label {
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #870029;
}

input[type="text"],
input[type="number"] {
  padding: 0.6rem 0.9rem;
  border: 2px solid #f5a1b8;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fff0f6;
  color: #5c003a;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: #c72c41;
  outline: none;
  box-shadow: 0 0 8px #f78ca0;
}

button {
  background-color: #c72c41;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(199, 44, 65, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover,
button:focus {
  background-color: #a61e38;
  box-shadow: 0 6px 14px rgba(166, 30, 56, 0.8);
  outline: none;
}

#formMessage {
  margin-top: 0.7rem;
  min-height: 1.5em;
  font-weight: 600;
  text-align: center;
  color: #b0003a;
}

#planResult {
  max-width: 420px;
  margin: 1rem auto;
  background: #ffd6e8;
  border: 2px solid #c72c41;
  color: #7a0026;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(199, 44, 65, 0.3);
}

#goalsList {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto 3rem;
}

#goalsList li {
  background: #ffe6f0;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(199, 44, 65, 0.25);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  color: #5c003a;
  font-weight: 600;
  font-size: 1rem;
}

.goal-info {
  display: flex;
  flex-direction: column;
}

.goal-name {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.goal-progress {
  font-weight: 500;
  font-size: 0.95rem;
  color: #870029;
}

button.delete-btn {
  background: #a61e38;
  border: none;
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 8px rgba(166, 30, 56, 0.6);
}

button.delete-btn:hover,
button.delete-btn:focus {
  background: #7a0026;
  outline: none;
  box-shadow: 0 5px 14px rgba(122, 0, 38, 0.9);
}

/* Accesibilidad: foco visible */
input:focus-visible,
button:focus-visible {
  outline: 3px solid #ffbfd4;
  outline-offset: 2px;
}

