:root {
  --ink: #182018;
  --muted: #706a60;
  --paper: #fbf6ec;
  --surface: #ffffff;
  --line: #e6dccb;
  --green: #0f5738;
  --green-2: #28744f;
  --rose: #c86d78;
  --gold: #b9872e;
  --shadow: 0 18px 45px rgba(46, 38, 25, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(200, 109, 120, 0.10), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(15, 87, 56, 0.10), transparent 28%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(18px, 4vw, 58px);
  background: rgba(251, 246, 236, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--green); font-weight: 900; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); color: #5e584f; font-weight: 900; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-link span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
}
.menu-button { display: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 13px; font-weight: 900; }

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  min-height: 560px;
  padding: clamp(28px, 5vw, 68px) clamp(18px, 4vw, 58px) 24px;
}
.hero-panel {
  display: grid;
  align-content: center;
  min-height: 460px;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 236, 0.86)),
    linear-gradient(90deg, rgba(15, 87, 56, 0.08), transparent);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: 0.98; letter-spacing: 0; }
h1 { max-width: 820px; margin-bottom: 20px; font-size: clamp(3.1rem, 6vw, 6.4rem); }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 4.2rem); }
h3 { margin-bottom: 8px; }
.hero-panel p, .page-intro p, .split-section > div > p, .empty-cart p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.75;
}
.hero-actions, .cart-actions, .checkout-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}
.button { padding: 12px 18px; }
.button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); }
.button.danger { background: #9d523f; border-color: #9d523f; color: #fff; }
.button:hover { transform: translateY(-1px); }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.trust-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
}

.spotlight-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.spotlight-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}
.spotlight-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}
.spotlight-info h2 { font-family: Inter, sans-serif; font-size: 1.12rem; line-height: 1.2; margin-bottom: 6px; }
.spotlight-info p { margin: 0; color: var(--muted); line-height: 1.45; }
.spotlight-info strong { color: var(--green); white-space: nowrap; }

.quick-shop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(18px, 4vw, 58px) 18px;
}
.quick-shop a {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(46, 38, 25, 0.08);
}
.quick-shop img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 500ms ease;
}
.quick-shop a:hover img { transform: scale(1.06); }
.quick-shop span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  font-weight: 900;
  font-size: 0.86rem;
}

.collection-strip {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--green);
  color: #fff;
  padding: 12px 0;
}
.strip-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: stripMove 24s linear infinite;
  font-weight: 900;
  text-transform: uppercase;
}
.strip-track span { white-space: nowrap; }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-strip div {
  display: grid;
  gap: 8px;
  min-height: 116px;
  align-content: center;
  padding: 22px clamp(18px, 4vw, 42px);
  background: #fff;
}
.feature-strip span, .product-card p, .detail-copy p, .site-footer p, .summary-row { color: var(--muted); line-height: 1.55; }

.section, .page-section, .split-section { padding: clamp(46px, 7vw, 92px) clamp(18px, 4vw, 58px); }
.section-heading, .catalog-controls { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.text-link { color: var(--green); font-weight: 900; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(46, 38, 25, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(46, 38, 25, 0.14); }
.product-card img { width: 100%; height: 230px; object-fit: cover; background: #f3eee4; transition: transform 420ms ease; }
.product-card:hover img { transform: scale(1.045); }
.product-card-body { display: grid; gap: 10px; padding: 16px; }
.product-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { color: var(--green); font-weight: 900; }
.badge { display: inline-flex; width: fit-content; min-height: 25px; align-items: center; padding: 4px 10px; border-radius: 999px; background: #edf5ec; color: var(--green); font-size: 0.78rem; font-weight: 900; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

.mini-gallery { display: grid; grid-template-columns: 1.1fr 0.8fr 1fr; gap: 12px; padding: 0 clamp(18px, 4vw, 58px) 16px; }
.mini-gallery img { width: 100%; height: 210px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(46, 38, 25, 0.08); }
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr); gap: clamp(28px, 5vw, 70px); background: #fff; border-block: 1px solid var(--line); }
.steps { display: grid; gap: 12px; }
.steps article { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.steps span { grid-row: span 2; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--rose); color: #fff; font-weight: 900; }
.steps p { margin: 0; color: var(--muted); }

.page-intro { display: grid; gap: 12px; padding: clamp(38px, 6vw, 76px) clamp(18px, 4vw, 58px) 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-button { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); padding: 9px 13px; cursor: pointer; font-weight: 900; }
.filter-button.is-active { color: #fff; background: var(--green); border-color: var(--green); }
.detail-layout { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 70px); align-items: start; }
.detail-image { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.detail-image img { width: 100%; height: min(66vh, 560px); object-fit: cover; }
.detail-copy { display: grid; gap: 18px; }
.detail-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.detail-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 22px; align-items: start; }
.cart-list, .order-summary, .checkout-form, .empty-cart { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.cart-item { display: grid; grid-template-columns: 86px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 86px; height: 100px; object-fit: cover; border-radius: 8px; }
.icon-button { width: 38px; height: 38px; background: #fff; color: var(--ink); }
.quantity-control { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-row.total { color: var(--ink); border-bottom: 0; font-size: 1.18rem; font-weight: 900; }
.checkout-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 900; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 11px 12px; }
.field textarea { min-height: 110px; resize: vertical; }
.notice { padding: 14px; border: 1px solid #d8c79c; border-radius: 8px; background: #fff8df; color: #654d16; line-height: 1.55; }
.payment-panel { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, rgba(15, 87, 56, 0.08), transparent), #fff; }
.payment-panel h2 { margin-bottom: 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.payment-panel p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.paypal-box:empty::before { content: "Pendiente de configurar Stripe"; display: block; padding: 14px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-weight: 900; }

.site-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; padding: 34px clamp(18px, 4vw, 58px); border-top: 1px solid var(--line); background: #fff; }
.site-footer p { margin: 8px 0 0; }
[hidden] { display: none !important; }

@keyframes stripMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .menu-button { display: inline-flex; }
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 10px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .shop-hero, .split-section, .detail-layout, .cart-layout, .checkout-layout, .site-footer { grid-template-columns: 1fr; }
  .shop-hero { min-height: auto; }
  .hero-panel { min-height: auto; }
  .quick-shop, .feature-strip, .mini-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.5rem, 15vw, 4rem); }
  .quick-shop, .product-grid, .feature-strip, .mini-gallery { grid-template-columns: 1fr; }
  .hero-actions, .cart-actions, .checkout-actions { flex-direction: column; }
  .button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 74px 1fr; }
  .cart-item img { width: 74px; height: 92px; }
  .cart-item > .icon-button { grid-column: 2; width: 100%; }
}
