/* ===== Pantalla de inicio — mobile only ===== */
:root {
  --brand-red: #D6392B;
  --brand-red-dark: #B82E22;
}

* { box-sizing: border-box; }

body.home-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--white);
  color: var(--ink);
  padding-bottom: 88px; /* espacio pa nav inferior fija */
}

/* ---- franja superior ---- */
.home-header {
  background: var(--brand-red);
  padding: 18px 18px 22px;
  color: #fff;
  border-radius: 0 0 26px 26px;
}
.home-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: var(--brand-red);
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}
.brand-logo:active { transform: scale(0.92); }

.home-greeting {
  font-size: 16px;
  font-weight: 700;
}

.bell-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.bell-btn:active { transform: scale(0.9); }

/* ---- tabs comida ---- */
.meal-tabs {
  display: flex;
  gap: 22px;
  padding: 18px 20px 0;
  border-bottom: 1px solid var(--line);
}
.meal-tab {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  padding: 0 0 12px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.meal-tab.is-active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

/* ---- tarjeta de plato ---- */
.dish-card {
  margin: 18px 18px 0;
}
.dish-image {
  position: relative;
  height: 200px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
  overflow: hidden;
}
.dish-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.dish-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.dish-fav:active { transform: scale(0.9); }
.dish-fav.is-fav { color: var(--brand-red); }

.dish-body { padding: 14px 2px 0; }
.dish-name {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}
.dish-meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.dish-meta span { display: flex; align-items: center; gap: 4px; }
.dish-cta {
  width: 100%;
  border: none;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}
.dish-cta:hover { background: var(--brand-red-dark); }
.dish-cta:active { transform: scale(0.98); }

/* ---- anuncio intersticial ---- */
.ad-slot {
  position: relative;
  margin: 18px 18px 0;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.ad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.25);
  padding: 3px 7px;
  border-radius: 6px;
}
.ad-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ad-text { flex: 1; }
.ad-title { font-size: 13.5px; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.ad-btn {
  border: none;
  background: #fff;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

/* ---- recetas para ti ---- */
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px 12px;
}
.section-row h2 {
  font-size: 16px;
  margin: 0;
}
.section-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-red);
  background: none;
  border: none;
  cursor: pointer;
}

.dish-catalog {
  display: flex;
  gap: 12px;
  padding: 0 18px;
  overflow-x: auto;
}
.dish-catalog::-webkit-scrollbar { display: none; }
.catalog-item { flex: 0 0 108px; }
.catalog-thumb {
  width: 108px;
  height: 108px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 11px;
}
.catalog-name {
  font-size: 12.5px;
  font-weight: 600;
  margin: 8px 0 0;
  text-align: center;
}

/* ---- nav inferior fija ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  z-index: 500;
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 2px 0;
}
.nav-btn .nav-icon {
  font-size: 17px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.nav-btn.is-active { color: var(--brand-red); }
.nav-btn.is-active .nav-icon {
  background: var(--brand-red);
  color: #fff;
  transform: translateY(-10px) scale(1.15);
  box-shadow: 0 6px 14px rgba(214, 57, 43, 0.35);
}
.nav-btn:active .nav-icon { transform: scale(0.9); }
.nav-btn.is-active:active .nav-icon { transform: translateY(-10px) scale(1.05); }
