/* ============================================================
   MG's Bakery — Desserts & More
   Mockup HTML · Paleta clara inspirada en el JotForm original
   ============================================================ */

:root {
  --bg:          #faf7f2;
  --surface:     #ffffff;
  --surface-2:   #fdf3ee;
  --ink:         #3a2e2a;
  --ink-soft:    #7a6a63;
  --brand:       #d97757;   /* terracota cálido */
  --brand-soft:  #f6e3d9;
  --accent:      #a8c3a0;   /* verde pistacho suave */
  --gold:        #c9a24b;
  --line:        #eee3da;
  --danger:      #c05353;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 10px 30px rgba(90, 60, 45, .10);
  --shadow-soft: 0 4px 14px rgba(90, 60, 45, .07);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Textura de fondo suave tipo mármol */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 15% -5%, rgba(217,119,87,.06), transparent 60%),
    radial-gradient(1000px 500px at 90% 10%, rgba(168,195,160,.08), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(201,162,75,.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.wrap {
  width: min(1180px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.brand-tag {
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.main-nav { display: flex; gap: 1.4rem; align-items: center; }
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s;
}
.main-nav a:hover { color: var(--brand); }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand);
  color: #fff;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, background .2s;
}
.cart-btn:hover { transform: translateY(-2px); background: #c96547; }
.cart-count {
  background: #fff;
  color: var(--brand);
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
}
.cart-count.pulse { animation: pulse .35s ease; }
@keyframes pulse { 50% { transform: scale(1.35); } }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  margin: 1.4rem auto 0;
  width: min(1180px, 92%);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1;
}
.hero img { width: 100%; height: clamp(300px, 46vw, 460px); object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(58,46,42,.72) 0%, rgba(58,46,42,.35) 45%, transparent 75%);
  display: flex;
  align-items: center;
}
.hero-content { padding: clamp(1.5rem, 5vw, 4rem); color: #fff; max-width: 560px; }
.hero-kicker {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: .8rem;
}
.hero p { font-size: clamp(.95rem, 1.6vw, 1.08rem); opacity: .92; margin-bottom: 1.4rem; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(217,119,87,.4); }

/* ---------------- Features ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2.4rem auto;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
}
.feature-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.25rem;
}
.feature h3 { font-size: .98rem; margin-bottom: .15rem; }
.feature p { font-size: .83rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------------- Catálogo ---------------- */
.section-head { text-align: center; margin: 3rem 0 1.6rem; }
.section-head .kicker {
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-top: .3rem;
}
.section-head p { color: var(--ink-soft); max-width: 560px; margin: .5rem auto 0; font-size: .95rem; }

/* Filtros por categoría */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}
.filter-chip {
  padding: .55rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 500;
  transition: all .2s;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

/* Grid de productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* Marco de imagen uniforme: NUNCA rompe la visualización */
.product-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f3ece4, #efe6dc);
  overflow: hidden;
}
.product-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.badge-keto {
  position: absolute;
  top: .8rem; left: .8rem;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.product-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.product-cat {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.25;
}
.product-name a {
  color: var(--ink);
  text-decoration: none;
}
.product-name a:hover { color: var(--brand); }
.product-desc {
  font-size: .84rem;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.variant-select {
  width: 100%;
  padding: .62rem .8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: .88rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a6a63' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  transition: border-color .2s;
}
.variant-select:focus { outline: none; border-color: var(--brand); }

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
}
.product-price {
  display: none;
}
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--ink);
  color: #fff;
  padding: .62rem 1.15rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.add-btn:hover { background: var(--brand); transform: scale(1.04); }
.add-btn:active { transform: scale(.97); }

/* ---------------- Carrito (drawer) ---------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,46,42,.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 90;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(430px, 100%);
  background: var(--bg);
  z-index: 100;
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.22,.9,.3,1);
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 50px rgba(58,46,42,.18);
}
.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.drawer-head h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.drawer-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 1.15rem;
  transition: background .2s;
}
.drawer-close:hover { background: var(--brand-soft); color: var(--brand); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 1rem;
}
.cart-empty .emoji { font-size: 3rem; display: block; margin-bottom: .8rem; }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: .85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem;
  align-items: center;
}
.cart-item img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #efe6dc;
}
.ci-name { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.ci-variant { font-size: .78rem; color: var(--ink-soft); }
.ci-note-input {
  margin-top: .4rem;
  width: 100%;
  font-size: .78rem;
  padding: .4rem .55rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.ci-note-input:focus { outline: none; border-color: var(--brand); }
.ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.ci-price { font-weight: 700; color: var(--brand); font-size: .95rem; }

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}
.qty-ctrl button {
  width: 28px; height: 28px;
  font-size: 1rem;
  color: var(--ink-soft);
  display: grid; place-items: center;
  transition: color .15s;
}
.qty-ctrl button:hover { color: var(--brand); }
.qty-ctrl .qty { min-width: 26px; text-align: center; font-weight: 600; font-size: .88rem; }

.ci-remove {
  font-size: .72rem;
  color: var(--danger);
  opacity: .8;
  transition: opacity .2s;
}
.ci-remove:hover { opacity: 1; text-decoration: underline; }

.drawer-foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.1rem 1.4rem 1.4rem;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .9rem;
}
.cart-total-row .label { color: var(--ink-soft); font-size: .95rem; }
.cart-total-row .amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
}
.checkout-btn {
  width: 100%;
  background: var(--brand);
  color: #fff;
  padding: 1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
  box-shadow: 0 8px 20px rgba(217,119,87,.35);
}
.checkout-btn:hover:not(:disabled) { background: #c96547; transform: translateY(-2px); }
.checkout-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.footnote-mini { font-size: .72rem; color: var(--ink-soft); text-align: center; margin-top: .6rem; }

/* ---------------- Checkout (modal cotizador) ---------------- */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(58,46,42,.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.checkout-modal.open { opacity: 1; pointer-events: auto; }
.checkout-card {
  width: min(680px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(.98);
  transition: transform .3s;
}
.checkout-modal.open .checkout-card { transform: translateY(0) scale(1); }

.checkout-head {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.checkout-head h3 { font-family: var(--font-display); font-size: 1.4rem; }

.checkout-body { padding: 1.4rem 1.6rem 1.8rem; }

.order-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}
.order-summary h4 {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.os-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .88rem;
  padding: .28rem 0;
  border-bottom: 1px dashed var(--line);
}
.os-line:last-of-type { border-bottom: none; }
.os-line .q { color: var(--ink-soft); }
.os-total {
  display: flex;
  justify-content: space-between;
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 2px solid var(--line);
  font-weight: 700;
  font-size: 1.05rem;
}
.os-total .amount { color: var(--brand); font-family: var(--font-display); font-size: 1.3rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field label .req { color: var(--danger); }
.form-field .hint { font-size: .72rem; color: var(--ink-soft); font-weight: 400; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: .72rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(217,119,87,.14);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field.error input,
.form-field.error select,
.form-field.error textarea { border-color: var(--danger); }

.radio-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .86rem;
  color: var(--ink-soft);
  transition: all .2s;
}
.radio-pill input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.gift-section {
  background: var(--surface-2);
  border: 1px dashed var(--brand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}
.gift-section .radio-row { margin-bottom: .6rem; }

.checkout-notice {
  font-size: .8rem;
  color: var(--ink-soft);
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: .8rem 1rem;
  border-radius: 8px;
  margin: 1.2rem 0;
  line-height: 1.55;
}

.submit-quote-btn {
  width: 100%;
  background: linear-gradient(120deg, var(--brand), #e08a6a);
  color: #fff;
  padding: 1.05rem;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(217,119,87,.4);
  transition: transform .15s, filter .2s;
}
.submit-quote-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }

/* Éxito */
.success-view { text-align: center; padding: 3rem 2rem; }
.success-view .check {
  width: 84px; height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  font-size: 2.4rem;
  color: #fff;
  animation: pop .45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.success-view h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: .5rem; }
.success-view p { color: var(--ink-soft); font-size: .92rem; max-width: 400px; margin: 0 auto 1.4rem; }
.success-view .ref {
  display: inline-block;
  background: var(--surface);
  border: 1.5px dashed var(--brand);
  color: var(--brand);
  font-weight: 700;
  padding: .5rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

/* ---------------- Info / Cómo funciona ---------------- */
.how-it-works {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.6rem, 4vw, 3rem);
  margin: 0 auto 3.5rem;
  box-shadow: var(--shadow-soft);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.step { text-align: center; padding: 0 .5rem; }
.step-num {
  width: 52px; height: 52px;
  margin: 0 auto .8rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: grid; place-items: center;
}
.step h4 { font-size: .98rem; margin-bottom: .3rem; }
.step p { font-size: .83rem; color: var(--ink-soft); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: #d8ccc5;
  margin-top: 2rem;
}
.site-footer .wrap {
  padding: 2.6rem 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer .brand-name { color: #fff; }
.site-footer h5 {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .8rem;
}
.site-footer p, .site-footer a { font-size: .88rem; color: #d8ccc5; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  padding: 1.1rem 0;
  font-size: .78rem;
  color: #a99a92;
}

/* ---------------- WhatsApp flotante ---------------- */
.wa-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #4fae5d;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(79,174,93,.45);
  z-index: 60;
  transition: transform .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ============================================================
   Seguimiento de pedido (pedido.html)
   ============================================================ */

.track-hero {
  text-align: center;
  margin: 3.2rem 0 1.2rem;
}
.track-hero .kicker {
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.track-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-top: .3rem;
}
.track-hero p { color: var(--ink-soft); max-width: 480px; margin: .5rem auto 0; font-size: .95rem; }

.track-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 560px;
  margin: 0 auto 1.2rem;
  text-align: center;
}
.track-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

/* Input tipo OTP: cajas segmentadas 2-4-4, fluidas */
.otp-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.2rem, 1.2vw, .45rem);
  margin-bottom: 1.3rem;
  width: 100%;
}
.otp-box {
  flex: 1 1 0;
  min-width: 0;
  max-width: 44px;
  width: 100%;
  height: 56px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-align: center;
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  font-weight: 700;
  font-family: "SFMono-Regular", Consolas, monospace;
  color: var(--ink);
  text-transform: uppercase;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  caret-color: var(--brand);
  padding: 0;
}
.otp-box:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(217,119,87,.16);
  transform: translateY(-2px);
}
.otp-box.filled { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.otp-sep {
  flex: 0 0 auto;
  font-size: 1.5rem;
  color: var(--line);
  font-weight: 700;
  user-select: none;
}
.otp-wrap.error .otp-box { border-color: var(--danger); animation: shake .4s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.track-btn {
  background: var(--brand);
  color: #fff;
  padding: .85rem 2.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  box-shadow: 0 8px 20px rgba(217,119,87,.35);
  transition: background .2s, transform .15s;
}
.track-btn:hover { background: #c96547; transform: translateY(-2px); }
.track-error {
  display: none;
  color: var(--danger);
  font-size: .85rem;
  margin-top: .9rem;
}
.track-error.show { display: block; }
.track-demo-hint {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.track-demo-hint code {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 6px;
  padding: .15rem .5rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s;
}
.track-demo-hint code:hover { filter: brightness(.95); }

/* Resultado del pedido */
.track-result {
  max-width: 640px;
  margin: 0 auto 4rem;
  display: none;
}
.track-result.show { display: block; animation: fadeUp .45s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.status-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.status-banner .ref-big {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.status-banner .ref-sub { font-size: .78rem; color: var(--ink-soft); }
.status-pill {
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status-pill.s0 { background: #f0e9e3; color: #8a7a70; }
.status-pill.s1 { background: var(--brand-soft); color: var(--brand); }
.status-pill.s2 { background: #fdf0d8; color: var(--gold); }
.status-pill.s3 { background: #e4efe0; color: #5c8a52; }
.status-pill.s4 { background: var(--accent); color: #fff; }

/* Timeline */
.timeline {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem;
  margin-bottom: 1.4rem;
}
.timeline h4, .track-details h4 {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.tl-steps { display: flex; }
.tl-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.tl-step::before {
  content: "";
  position: absolute;
  top: 19px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--line);
  z-index: 0;
}
.tl-step:first-child::before { display: none; }
.tl-step.done::before { background: var(--accent); }
.tl-dot {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: 0 auto .55rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--line);
  transition: all .3s;
}
.tl-step.done .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tl-step.current .tl-dot {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 5px rgba(217,119,87,.15);
}
.tl-name { font-size: .76rem; font-weight: 600; color: var(--ink-soft); }
.tl-step.done .tl-name, .tl-step.current .tl-name { color: var(--ink); }
.tl-date { font-size: .66rem; color: var(--ink-soft); margin-top: .1rem; }

/* Detalle resumido */
.track-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem;
}
.td-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .88rem;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--line);
}
.td-row .k { color: var(--ink-soft); }
.td-row .v { font-weight: 600; text-align: right; }
.td-items { margin-top: .6rem; }
.td-items .td-row:last-child { border-bottom: none; }
.td-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
  font-weight: 700;
}
.td-total .amount {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--brand);
}
.track-help {
  text-align: center;
  margin-top: 1.4rem;
  font-size: .85rem;
  color: var(--ink-soft);
}
.track-help a { color: var(--brand); font-weight: 600; text-decoration: none; }
.track-help a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .otp-box { height: 46px; border-radius: 9px; }
  .tl-name { font-size: .62rem; }
  .tl-dot { width: 32px; height: 32px; font-size: .85rem; }
  .tl-step::before { top: 15px; }
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: var(--shadow);
  z-index: 130;
  transition: transform .35s cubic-bezier(.22,.9,.3,1);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.product-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: .4rem 0 .8rem;
}
.product-detail .variant-select {
  width: 100%;
  max-width: 360px;
  padding: .7rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: .92rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a6a63' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}
.product-detail .variant-select:focus { outline: none; border-color: var(--brand); }

/* ---------------- Responsive ---------------- */
@media (max-width: 760px) {
  .main-nav a:not(.cart-btn) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr auto; }
  .cart-item img { width: 60px; height: 60px; }

  /* Hero: más alto y texto más compacto para que nada se corte */
  .hero img { height: 460px; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(58,46,42,.30) 0%, rgba(58,46,42,.78) 55%, rgba(58,46,42,.85) 100%);
    align-items: flex-end;
  }
  .hero-content { padding: 1.4rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: .9rem; margin-bottom: 1.1rem; }
  .hero-cta { padding: .7rem 1.3rem; font-size: .9rem; }
}
