/* VeMe Bodega Floral — port of the original Muse artifact look.
   Palette + type from the original theme: pale pink bg, pastel-yellow
   accents, plum-brown text, rose accent, Playfair Display headings. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,500&display=swap');

:root {
  --bg: #fdf1f4;
  --surface: #fffafc;
  --surface-alt: #fdf0c0;
  --text: #46222f;
  --dim: #8c5a6c;
  --border: #f0c3d0;
  --accent: #bc3a72;
  --accent-soft: #f7d3e3;
  --amber: #a8740a;
  --amber-soft: #fdf0bd;
  --blush: #b02a4a;
  --green: #2e7d32;
  --shadow: 0 2px 10px rgba(188, 58, 114, 0.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211218;
    --surface: #2d1a22;
    --surface-alt: #3a2a1e;
    --text: #f6dfe8;
    --dim: #c99aa9;
    --border: #5a3345;
    --accent: #f19ec2;
    --accent-soft: #4a2536;
    --amber: #e8b64c;
    --amber-soft: #4a3a17;
    --blush: #f19ec2;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg); min-height: 100vh;
}
h1, h2, h3, .display { font-family: "Playfair Display", Georgia, "Iowan Old Style", serif; }
h1 { font-weight: 900; }
h2 { font-weight: 700; }
a { color: var(--accent); }

/* ---------- sticky top header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1024px; margin: 0 auto; padding: 10px 14px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
}
.brand { font-family: "Playfair Display", Georgia, serif; font-weight: 900; color: var(--accent); font-size: 1.25rem; white-space: nowrap; }
nav#tabs { display: flex; flex-wrap: wrap; gap: 6px; }
nav#tabs button, .pill {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem;
}
nav#tabs button.active, .pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.auth-btn {
  border: none; background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; white-space: nowrap;
}
.auth-chip { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }

/* ---------- layout ---------- */
main { max-width: 1024px; margin: 0 auto; padding: 0 14px 8rem; }
section.tab { display: none; }
section.tab.active { display: block; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; margin: 14px 0; box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 8px; color: var(--text); }
.card h3 { margin: 12px 0 6px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin: 18px 0 2px; }
.lead { color: var(--dim); }
input, select, textarea {
  width: 100%; padding: 9px 10px; margin: 5px 0; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; background: var(--surface); color: var(--text);
}
button.primary {
  background: var(--blush); color: #fff; border: none; padding: 11px 18px;
  border-radius: 999px; cursor: pointer; font-weight: 700;
}
button.ghost {
  background: var(--surface); border: 1px solid var(--accent); color: var(--accent);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600;
}
button:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.muted { color: var(--dim); font-size: .9rem; }
.amber { background: var(--amber-soft); border: 1px solid var(--amber); border-radius: 10px; padding: 10px 12px; margin: 10px 0; color: var(--text); }
.warn { background: var(--amber-soft); border: 1px solid #e6c200; border-radius: 10px; padding: 10px; margin: 10px 0; }
.badge { display: inline-block; background: var(--surface-alt); border-radius: 999px; padding: 2px 9px; font-size: .8rem; font-weight: 700; }
.badge.pink { background: var(--accent-soft); }
.chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; background: var(--surface-alt); border: 1px solid var(--border); }
.chip.green { background: #e6f4ea; color: var(--green); border-color: #b7dfc0; }
.chip.red { background: #fdecea; color: #b3261e; border-color: #f5c6c2; }
.nota { border: 1px dashed var(--accent); padding: 12px; border-radius: 10px; background: var(--surface); }
.nota-box { background: var(--amber-soft); border: 1px solid var(--amber); border-radius: 12px; padding: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
td, th { border-bottom: 1px solid var(--border); padding: 7px 6px; text-align: left; }
footer { text-align: center; color: var(--dim); padding: 18px; font-size: .9rem; }

/* ---------- hero (Menudeo) ---------- */
.hero {
  position: relative; border-radius: 18px; overflow: hidden; margin: 14px 0;
  min-height: 260px;
  background: linear-gradient(180deg, #ffd76e 0%, #ffb347 45%, #e86a92 100%);
  display: flex; align-items: flex-end;
}
.hero-sky { position: absolute; inset: 0; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-sky .sun { position: absolute; top: 18px; right: 26px; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, #fff8c9 0%, #ffe066 60%, #ffd23e 100%); box-shadow: 0 0 40px #ffe066; }
.hero-sky .cloud { position: absolute; background: #fff; opacity: .85; border-radius: 999px; }
.hero-sky .cloud.c1 { top: 26px; left: 12%; width: 90px; height: 26px; }
.hero-sky .cloud.c2 { top: 60px; left: 55%; width: 70px; height: 20px; }
.hero-flowers { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 8px; }
.hero-flowers svg { width: 84px; height: 120px; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
}
.hero-content { position: relative; display: flex; gap: 14px; align-items: flex-end; padding: 18px; width: 100%; }
.hero-logo {
  flex: 0 0 auto; width: 88px; height: 88px; border-radius: 14px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: "Playfair Display", Georgia, serif; font-weight: 900; color: var(--accent);
  font-size: 1.5rem; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.hero-logo small { font-size: .6rem; letter-spacing: .08em; font-family: system-ui, sans-serif; font-weight: 700; }
.hero-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.hero h1 { margin: 0; color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-sub { color: #fff; margin: 4px 0 0; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* ---------- animated garden ---------- */
.garden {
  position: relative; border-radius: 18px; border: 1px solid var(--border); overflow: hidden;
  background: linear-gradient(90deg, #ffd6e7 0%, #fff3b0 100%);
  padding: 18px 10px 0; margin: 14px 0;
}
.garden-row { display: flex; justify-content: space-around; align-items: flex-end; min-height: 110px; }
.g-flower { width: 64px; height: 96px; transform-origin: 50% 100%; }
.g-flower.bloom svg { transform: scale(.25); opacity: .3; transition: transform 1.15s ease, opacity 1.15s ease; transform-origin: 50% 90%; }
.garden.bloomed .g-flower.bloom svg { transform: scale(1); opacity: 1; }
.g-flower.spin svg { animation: veme-spin 9s linear infinite; }
.g-flower.spin-rev svg { animation: veme-spin-rev 14s linear infinite; }
.g-flower.sway { animation: veme-sway 3.4s ease-in-out infinite alternate; }
.grass {
  height: 26px; margin: 0 -10px;
  background: linear-gradient(180deg, #7cc46a, #4e9a44);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
@keyframes veme-spin { to { transform: rotate(360deg); } }
@keyframes veme-spin-rev { to { transform: rotate(-360deg); } }
@keyframes veme-sway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }

/* ---------- gallery ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 820px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-card {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface);
  cursor: pointer; text-align: left; padding: 0; font: inherit; color: var(--text); box-shadow: var(--shadow);
}
.sec-cover { height: 130px; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sec-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sec-cover .soon { font-weight: 700; color: var(--amber); padding: 12px; text-align: center; }
.sec-card h3 { margin: 0; padding: 10px 12px 0; font-size: 1.05rem; }
.sec-card p { margin: 4px 12px 10px; color: var(--dim); font-size: .88rem; }
.sec-card .go { display: block; padding: 0 12px 12px; color: var(--accent); font-weight: 700; font-size: .9rem; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 820px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-card { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--surface); position: relative; }
.photo-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; background: var(--surface-alt); }
.photo-card .no-photo { width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; color: var(--amber); font-weight: 700; text-align: center; padding: 10px; }
.spin-badge {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.spin-badge svg { animation: veme-spin 9s linear infinite; }
.photo-card h4 { margin: 8px 0 2px; font-family: "Playfair Display", Georgia, serif; }

/* ---------- care tips ---------- */
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 820px) { .care-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .care-grid { grid-template-columns: 1fr; } }
.care-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); }
.care-card .ico { font-size: 1.5rem; }
.care-card b { display: block; margin: 4px 0; }

/* ---------- truck banner (Tengo Florería) ---------- */
.truck-banner { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #eaf6ff; margin: 12px 0; }
.truck-scene { position: relative; height: 150px; overflow: hidden; background: linear-gradient(180deg, #bfe3ff 0%, #eaf6ff 70%); }
.truck-scene .sun { position: absolute; top: 12px; right: 20px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, #fff8c9, #ffe066); }
.truck-scene .cloud { position: absolute; background: #fff; opacity: .9; border-radius: 999px; }
.truck-scene .cloud.c1 { top: 20px; left: 10%; width: 80px; height: 22px; }
.truck-scene .cloud.c2 { top: 48px; left: 60%; width: 60px; height: 18px; }
.truck-road { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: #5b4a68; }
.truck-road::before {
  content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 4px;
  background: repeating-linear-gradient(90deg, #fff 0 26px, transparent 26px 52px);
  animation: veme-dash 1.2s linear infinite;
}
@keyframes veme-dash { to { background-position-x: 52px; } }
.truck-drive { position: absolute; bottom: 18px; left: 0; animation: veme-drive 11s linear infinite; }
@keyframes veme-drive { 0% { transform: translateX(-320px); } 100% { transform: translateX(110vw); } }
.truck-drive svg { display: block; }
.wheel-spin { animation: veme-spin 1s linear infinite; transform-origin: center; transform-box: fill-box; }
.motto-strip {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); padding: 12px; border-top: 1px solid var(--border); text-align: center;
}
.motto-strip .mini-logo {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--accent);
  font-family: "Playfair Display", Georgia, serif;
}
.motto-strip .emblem { width: 40px; height: 40px; }
.motto-strip .emblem svg { animation: veme-spin 12s linear infinite; }
.motto-strip p { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.05rem; }

/* ---------- motorcycle banner (Menudeo) ---------- */
.moto-banner { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); margin: 14px 0; background: linear-gradient(90deg, #ffd6e7, #fff3b0); }
.moto-scene { position: relative; height: 130px; overflow: hidden; background: linear-gradient(180deg, #ffe9f3 0%, #fff3b0 65%, #eaf6ff 100%); }
.moto-scene .sun { position: absolute; top: 10px; left: 18px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #fff8c9, #ffe066); }
.moto-scene .cloud { position: absolute; background: #fff; opacity: .9; border-radius: 999px; }
.moto-scene .cloud.c1 { top: 18px; right: 14%; width: 70px; height: 20px; }
.moto-road { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: #3d3a4a; }
.moto-road::before {
  content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 3px;
  background: repeating-linear-gradient(90deg, #fff 0 22px, transparent 22px 44px);
  animation: veme-dash 0.9s linear infinite;
}
.moto-drive { position: absolute; bottom: 12px; left: 0; animation: veme-moto 7.5s linear infinite; }
@keyframes veme-moto { 0% { transform: translateX(-260px); } 100% { transform: translateX(110vw); } }
.moto-drive .bob { animation: veme-bob .45s ease-in-out infinite alternate; }
@keyframes veme-bob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
.moto-caption { padding: 14px; text-align: center; }
.moto-caption h2 { margin: 0 0 4px; font-size: 1.5rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--surface); display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.contact-card .ico { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; font-size: 1.3rem; flex: 0 0 auto; }
.contact-card.fb .ico { background: #1877f2; }
.contact-card.wa .ico { background: #25d366; }
.contact-card b { display: block; }
.contact-card span { color: var(--dim); font-size: .9rem; }

/* ---------- auth modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); }
.modal.open { display: flex; }
.modal-card { background: var(--surface); border-radius: 18px 18px 0 0; width: 100%; max-width: 520px; padding: 20px; max-height: 88vh; overflow: auto; }
@media (min-width: 640px) { .modal { align-items: center; } .modal-card { border-radius: 18px; } }
.seg { display: flex; gap: 6px; margin: 8px 0; }
.seg button { flex: 1; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 9px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.seg button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- tiles / panels ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0; }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); text-align: center; }
.tile b { display: block; font-size: 1.5rem; color: var(--accent); font-family: "Playfair Display", Georgia, serif; }
.order-photo { width: 100%; max-width: 220px; border-radius: 10px; display: block; margin: 6px 0; }
.order-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.order-photos img { width: 96px; height: 128px; object-fit: cover; border-radius: 8px; }
.day-group h3 { margin: 16px 0 4px; }
.countdown { font-weight: 700; color: var(--blush); }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.subtabs .pill { position: relative; }
.count-badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--blush); color: #fff; font-size: .75rem; font-weight: 800; margin-left: 4px; }
.gate { text-align: center; padding: 22px 14px; }
.gate h2 { margin-top: 0; }
.dashed { border: 1px dashed var(--border); border-radius: 12px; padding: 18px; text-align: center; color: var(--dim); }

@media print { .topbar, footer, .no-print, .modal { display: none !important; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .truck-drive, .moto-drive { transform: translateX(38vw); animation: none; }
}
