* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #45ac16 0%, #7abc27 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 40px;
}

h1 {
  text-align: center;
  color: #2d7a1f;
  margin-bottom: 30px;
  font-size: 2.5em;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 0.95em;
}

input, select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s;
}

select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2345ac16' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

input:focus, select:focus {
  outline: none;
  border-color: #45ac16;
}

.radio-group {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  background: white;
  margin-bottom: 0;
}

.radio-option input[type="radio"]:checked + label {
  background: linear-gradient(135deg, #45ac16 0%, #7abc27 100%);
  color: white;
  border-color: #45ac16;
  transform: scale(1.02);
}

.radio-option label:hover {
  border-color: #45ac16;
}

button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #45ac16 0%, #7abc27 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 20px;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

.results {
  margin-top: 40px;
  display: none;
}

.results.show {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card {
  background: linear-gradient(135deg, #45ac16 0%, #7abc27 100%);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  color: white;
}

.result-card h2 {
  margin-bottom: 15px;
  font-size: 1.5em;
  text-shadow: 0 1px 4px rgb(0 0 0 / 20%);
}

.result-item {
  background: rgba(255,255,255,0.2);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-item:last-child {
  margin-bottom: 0;
}

.result-label {
  font-weight: 600;
  text-shadow: 0 1px 4px rgb(0 0 0 / 20%);
}

.result-value {
  font-size: 1.2em;
  font-weight: 700;
  text-shadow: 0 1px 4px rgb(0 0 0 / 20%);
}

.macros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.macro-card {
  background: rgba(255,255,255,0.2);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.macro-card h3 {
  margin-bottom: 10px;
  font-size: 1.1em;
  text-shadow: 0 1px 4px rgb(0 0 0 / 20%);
}

.macro-value {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 1px 4px rgb(0 0 0 / 20%);
}

.macro-calorias {
  font-size: 0.9em;
  opacity: 1;
  text-shadow: 0 1px 4px rgb(0 0 0 / 20%);
}

.hidden {
  display: none;
}

.help-text {
  color: #666;
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}

.section-title {
  margin: 35px 0 25px 0;
  padding-top: 25px;
  border-top: 2px solid #e0e0e0;
}

.section-title h2 {
  color: #2d7a1f;
  font-size: 1.5em;
  margin-bottom: 8px;
}

.section-description {
  color: #666;
  font-size: 0.95em;
  margin: 0;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: opacity 0.3s;
}

footer a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 20px;
  }

  h1 {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  body {
    padding: 5px;
  }

  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.75em;
  }

  footer {
    margin-top: 0;
  }
}
