* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(143, 184, 216, 0.38) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 14%, rgba(121, 164, 202, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 74%, rgba(157, 199, 224, 0.26) 0 2px, transparent 3px),
    radial-gradient(circle at 18px 18px, rgba(122, 95, 72, 0.1) 1px, transparent 1.5px),
    linear-gradient(135deg, #fff4df 0%, #ffe8d9 34%, #d8a1a0 68%, #f8dfd2 100%);
  background-size: 220px 220px, 260px 260px, 300px 300px, 36px 36px, auto;
  color: #33251d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input {
  font: inherit;
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px max(18px, calc((100vw - 980px) / 2));
  border-bottom: 1px solid #ead8c3;
  background: linear-gradient(90deg, rgba(255, 244, 223, 0.9), rgba(246, 210, 202, 0.72));
  box-shadow: 0 12px 30px rgba(114, 70, 63, 0.12);
}

.app-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  color: #4c2d1f;
}

.app-header p {
  margin: 8px 0 0;
  color: #7d6656;
  font-weight: 700;
}

.app-nav a, .batidos-footer button, .batido-buttons button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ead8c3;
  border-radius: 8px;
  background: #fffdf8;
  color: #33251d;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.app-main {
  width: min(980px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0;
}

.batidos-header {
  border: 1px solid #ead8c3;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 244, 223, 0.88));
  box-shadow: 0 14px 32px rgba(114, 70, 63, 0.12);
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
}

.batidos-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.batidos-header input {
  min-height: 46px;
  width: 100%;
  border: 1px solid #ead8c3;
  border-radius: 8px;
  background: #fffaf1;
  color: #33251d;
  padding: 0 12px;
  outline: none;
}

.batidos-header input:focus {
  border-color: #c66d45;
  box-shadow: 0 0 0 3px rgba(198, 109, 69, 0.18);
}

.batidos-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.batido-card {
  border: 1px solid #ead8c3;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 244, 223, 0.88));
  padding: 14px;
  box-shadow: 0 14px 32px rgba(114, 70, 63, 0.12);
  position: relative;
}

.batido-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.batido-meta, .batido-beneficio {
  color: #7d6656;
  font-weight: 700;
}

.batido-beneficio {
  margin: 8px 0 12px;
}

.batido-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-agregar {
  background: #edf5e7 !important;
  color: #4f6f43 !important;
}

.btn-favorito {
  background: #fff0dc !important;
  color: #9b5f35 !important;
}

.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 9999;
  width: max-content;
  max-width: min(420px, calc(100vw - 28px));
  border: 1px solid #557b4d;
  border-radius: 8px;
  background: #557b4d;
  color: white;
  box-shadow: 0 18px 46px rgba(92, 58, 34, 0.22);
  padding: 13px 16px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.batidos-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid #ead8c3;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 244, 223, 0.88));
  box-shadow: 0 14px 32px rgba(114, 70, 63, 0.1);
  padding: 12px;
}

@media (max-width: 640px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .batidos-lista {
    grid-template-columns: 1fr;
  }
}
