* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background: #f4f1e8;
  color: #1d2221;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.03) 0, rgba(0, 0, 0, 0.00) 25%),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.03) 0, rgba(0, 0, 0, 0.00) 22%);
  mix-blend-mode: multiply;
  z-index: 0;
}
.container { width: min(1100px, 92%); margin: 0 auto; position: relative; z-index: 1; }
.hero {
  color: #f8f8f8;
  padding: 30px 0;
}
.brand-bg {
  background:
    radial-gradient(circle at 15% 20%, rgba(83, 185, 92, 0.2) 0, transparent 30%),
    radial-gradient(circle at 80% 40%, rgba(224, 50, 58, 0.23) 0, transparent 28%),
    linear-gradient(135deg, #0f3d36, #0c2b27 55%, #102b27);
}
.hero-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.brand-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.22);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
h1, h2, h3 { margin: 0; }
h1, h2 {
  text-transform: uppercase;
  letter-spacing: .7px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Trebuchet MS", sans-serif;
}
h3 {
  letter-spacing: .4px;
}
.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  color: #f4d6d7;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}
.hours-pill {
  margin-top: 8px;
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 10px;
  border-radius: 999px;
}
.btn {
  border: 0;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
}
.primary {
  background: #df3d45;
  color: #fff;
  border: 1px solid #ff8a90;
  box-shadow: 0 8px 20px rgba(203, 48, 56, 0.35);
}
.stamp {
  background: #f97316;
  color: #1f1308;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .8px;
  padding: 10px 14px;
  border: 2px dashed rgba(0, 0, 0, 0.35);
  transform: rotate(-9deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}
.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.chip {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #1d2221;
  border: 1px solid #d8d3c8;
  transition: transform .15s ease;
}
.chip:hover { transform: translateY(-1px); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.social-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.social-link.facebook {
  color: #1877f2;
}
.social-link.instagram {
  color: #c13584;
}
.social-link.tiktok {
  color: #111827;
}
.social-link.maps {
  color: #ea4335;
}
.social-link .social-text {
  color: #1d2221;
}
.toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}
.concept-note {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 5px solid #df3d45;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 0 14px;
}
.concept-note p {
  margin: 0;
  color: #7f1d1d;
}
.top-doc {
  background: linear-gradient(135deg, #fff7ec, #fffdf7);
  border: 1px solid #eadfcb;
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0 16px;
}
.top-doc-header p {
  margin: 4px 0 0;
  color: #4c4f4e;
}
.top-doc-grid {
  margin-top: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.top-doc-item {
  background: #fff;
  border: 1px solid #ece0cc;
  border-radius: 14px;
  overflow: hidden;
}
.top-doc-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.top-doc-body {
  padding: 10px;
}
.top-doc-body small {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.top-doc-body p {
  margin: 6px 0;
  color: #3a3f3d;
}
.search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d9d2c2;
  background: #fff;
}
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 6px;
}
.tab {
  background: #fff;
  border: 1px solid #e8dfcf;
  border-radius: 14px;
  padding: 10px 12px;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #d7ccb6;
}
.tab-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #f8f5ec;
  border: 1px solid #eadfcb;
  font-size: 15px;
  flex: 0 0 auto;
}
.tab-icon-image {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.tab-label {
  font-weight: 700;
  color: #2b322f;
}
.tab.active {
  background: #1a4f45;
  color: #fff;
  border-color: #1a4f45;
  box-shadow: 0 12px 20px rgba(14, 67, 58, 0.25);
}
.tab.active .tab-icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}
.tab.active .tab-label {
  color: #fff;
}
.category { margin: 24px 0; }
.grid {
  margin-top: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: #fffefc;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(14, 29, 26, .12);
  border: 1px solid #e8dfcf;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(14, 29, 26, .16);
}
.card::after {
  content: "Doc recetado";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  background: rgba(26, 79, 69, 0.9);
  color: #ecfdf5;
  padding: 4px 7px;
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}
.card-body { padding: 12px; }
.card-title-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.card p { margin: 8px 0; color: #3a3f3d; min-height: 38px; }
.badge {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  text-transform: capitalize;
}
.badge.disponible { background: #dcfce7; color: #166534; }
.badge.agotado { background: #fee2e2; color: #991b1b; }
.badge.promo { background: #fef9c3; color: #854d0e; }
.footer { padding: 28px 0; }
.footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #c9beac;
  padding-top: 12px;
}
.doc-sign {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 24px;
  color: #0f3d36;
}
.wa-float {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 20;
  background: #22c55e;
  color: #052e16;
  border: 2px solid #86efac;
  border-radius: 999px;
  padding: 12px 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(14, 116, 40, 0.35);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.admin-page {
  width: min(980px, 94%);
  margin: 30px auto;
}
.admin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  padding: 18px;
  margin-bottom: 14px;
}
.admin-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
.admin-step-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.menu-block {
  border: 1px solid #e5e7eb;
}
.menu-block-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.menu-block-title {
  min-width: 0;
}
.menu-index {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.menu-block-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.product-block {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  margin-top: 12px;
}
.product-block-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #64748b;
  margin-bottom: 6px;
}
label { display: block; margin-top: 8px; font-weight: 700; font-size: 14px; }
input, textarea, select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
textarea { min-height: 70px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn.dark { background: #0f172a; color: #fff; }
.btn.danger { background: #fecaca; color: #7f1d1d; }
.muted { color: #64748b; }
@media (max-width: 700px) {
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .brand-left { align-items: flex-start; }
  .stamp { transform: rotate(-4deg); }
  .footer-line { flex-direction: column; align-items: flex-start; gap: 8px; }
  .row, .row-3 { grid-template-columns: 1fr; }
  .admin-step-row, .menu-block-header { grid-template-columns: 1fr; }
  .menu-block-actions { align-items: stretch; }
  .category-tabs {
    gap: 6px;
  }
  .tab {
    font-size: 14px;
    padding: 9px 12px;
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
  }
}
@media (min-width: 701px) {
  .wa-float { display: none; }
}
