/* ================================
   CALCULADORA DE CALORÍAS FUNCIONAL 💪
   ================================ */

/* 🔹 Contenedor general */
.cc-calculator-wrap {
  width: 100%;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.cc-calculator-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* 🔹 Estructura del formulario */
.cc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}

.cc-form label {
  font-weight: 600;
  color: #222;
  margin-bottom: 0.3rem;
  display: block;
}

.cc-form input,
.cc-form select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.8px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background-color: #fff;
}

.cc-form input:focus,
.cc-form select:focus {
  border-color: #4c8bf5;
  box-shadow: 0 0 0 4px rgba(76, 139, 245, 0.15);
  outline: none;
}

/* Botón ocupa toda la fila */
.cc-form button {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  width: 100%;
  background: linear-gradient(135deg, #4c8bf5, #2a68db);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cc-form button:hover {
  background: linear-gradient(135deg, #568fff, #1c5fd3);
  transform: scale(1.03);
}

/* 🔹 Resultados */
#resultado {
  margin-top: 2rem;
  text-align: center;
  background: #f9fafc;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.6s ease forwards;
}

#resultado h3 {
  color: #2a68db;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

#resultado h4 {
  font-size: 1.1rem;
  color: #444;
  margin: 1rem 0 0.5rem;
}

/* 🔹 Barras de macros */
.macro-bar {
  margin: 0.6rem 0;
  text-align: left;
}

.macro-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.bar-container {
  width: 100%;
  height: 18px;
  border-radius: 10px;
  background: #e8edf3;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 1s ease;
}

/* Colores personalizados */
.bar-protein {
  background: linear-gradient(90deg, #ff6384, #ff4560);
}
.bar-fat {
  background: linear-gradient(90deg, #ffcd56, #ffa600);
}
.bar-carb {
  background: linear-gradient(90deg, #36a2eb, #1e90ff);
}

/* 💫 Animación de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 Responsive */
@media (max-width: 600px) {
  .cc-form {
    grid-template-columns: 1fr;
  }
}


