:root {
  --ink: #321714;
  --ink-soft: #66382d;
  --cream: #fff9ed;
  --paper: #fffdf8;
  --green: #b9161d;
  --green-dark: #7d1b18;
  --orange: #f36f21;
  --yellow: #ffd43f;
  --salmon: #ffd8c0;
  --soft-yellow: #ffed9d;
  --line: rgba(73, 28, 21, 0.13);
  --shadow: 0 20px 55px rgba(112, 37, 22, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.test-banner { padding: 8px 18px; background: #321714; color: #fff9ed; font-size: 12px; font-weight: 800; text-align: center; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  margin: 12px 2vw 0;
  padding: 0 22px;
  border: 1px solid rgba(255, 212, 63, 0.55);
  border-radius: 24px;
  background: rgba(255, 249, 237, 0.94);
  box-shadow: 0 12px 38px rgba(112, 37, 22, 0.13);
  backdrop-filter: blur(20px);
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: clamp(145px, 15vw, 205px); height: 58px; object-fit: contain; object-position: left center; }
.store-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
}
.store-tabs a {
  min-height: 40px;
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.store-tabs a:hover { color: var(--green); background: var(--soft-yellow); }
.store-tabs a[aria-current="page"] {
  background: linear-gradient(135deg, var(--green), #e63b22);
  color: white;
  box-shadow: 0 7px 18px rgba(185, 22, 29, .2);
}
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.help-link { color: #5c2a23; font-weight: 700; text-decoration: none; }
.help-link:hover { color: var(--green); }
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 12px 17px;
  background: linear-gradient(135deg, #b9161d, #e63b22);
  color: white;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 9px 22px rgba(201, 43, 37, 0.24);
}
.cart-button b {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  max-width: 1360px;
  margin: auto;
  margin-top: -88px;
  padding: clamp(160px, 14vw, 210px) clamp(20px, 5vw, 72px) clamp(64px, 8vw, 100px);
  overflow: hidden;
  position: relative;
  max-width: none;
  min-height: 760px;
  border-radius: 0 0 48px 48px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.55) 0 8%, transparent 26%),
    radial-gradient(circle at 78% 82%, rgba(185,22,29,.28), transparent 31%),
    linear-gradient(135deg, #ffdf52 0%, #ffad28 48%, #ed5425 100%);
}
.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(122,52,12,.28) 1.4px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: linear-gradient(#000, transparent 78%);
  opacity: .45;
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Fraunces", serif; }
h1 {
  margin-bottom: 22px;
  max-width: 820px;
  font-size: clamp(51px, 7.2vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}
h1 em { color: var(--orange); font-style: normal; }
.hero-copy { position: relative; z-index: 1; }
.hero-text { max-width: 640px; color: #5c3013; font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.service-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.service-pills span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,249,237,.68);
  font-size: 13px;
  font-weight: 700;
}
.hero-card {
  position: relative;
  z-index: 1;
  min-height: 315px;
  padding: 34px;
  border-radius: 34px 10px 34px 10px;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
  background: url("/img/sala-de-ventas-real.jpg") center 44% / cover no-repeat;
  color: white;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(50,23,20,.05) 25%, rgba(50,23,20,.92) 100%);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px 6px 24px 6px;
  pointer-events: none;
}
.hero-card-copy { position: relative; z-index: 1; }
.hero-card p { max-width: 360px; font-family: "Fraunces", serif; font-size: 28px; line-height: 1.15; }
.hero-card strong { color: var(--yellow); }
.hero-card small { margin-top: 4px; color: rgba(255,255,255,.65); }

.shopping-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px clamp(20px, 5vw, 72px) 90px;
  align-items: start;
}
.catalog-column {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,253,248,.88), rgba(255,237,157,.36));
  box-shadow: 0 18px 52px rgba(112,37,22,.08);
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(35px, 4vw, 58px); letter-spacing: -.03em; }
.section-heading > p { max-width: 230px; color: var(--ink-soft); text-align: right; }
.catalog-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 212, 63, .30);
}
.catalog-notice p { margin: 0; font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(112,37,22,.14); }
.product-image { position: relative; height: 230px; overflow: hidden; background: linear-gradient(145deg, #fffdf8, #fff0d0); }
.product-image img { width: 100%; height: 100%; padding: 12px; object-fit: contain; transform: scale(1.58) translateY(-2%); transition: transform .35s ease; mix-blend-mode: multiply; }
.product-card:hover .product-image img { transform: scale(1.68) translateY(-2%); }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(255,249,237,.94); color: #7d1b18; box-shadow: 0 6px 18px rgba(112,37,22,.13); font-size: 11px; font-weight: 800; }
.product-info { padding: 19px; }
.product-info h3 { margin-bottom: 6px; font-family: "Fraunces", serif; font-size: 24px; line-height: 1.06; }
.product-info p { min-height: 40px; margin-bottom: 16px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { font-size: 21px; font-weight: 800; }
.add-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 13px;
  background: linear-gradient(135deg, #b9161d, #d93624);
  color: white;
  cursor: pointer;
  font-weight: 800;
}
.add-button:hover { background: linear-gradient(135deg, #7d1b18, #b9161d); transform: translateY(-1px); }

.cart-panel {
  position: sticky;
  top: 106px;
  max-height: calc(100vh - 126px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.cart-head { display: flex; align-items: start; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 31px; }
.cart-close { display: none; border: 0; background: none; font-size: 32px; color: var(--ink); cursor: pointer; }
.cart-empty { display: grid; place-items: center; min-height: 250px; text-align: center; color: var(--ink-soft); }
.cart-empty span { font-size: 56px; }
.cart-empty strong { margin-top: -10px; color: var(--ink); }
.cart-empty p { margin: -30px 0 0; }
.cart-items { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.cart-line strong { display: block; font-size: 14px; }
.cart-line small { color: var(--ink-soft); }
.quantity-control { display: inline-flex; align-items: center; gap: 10px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; }
.quantity-control button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; font-weight: 800; }
.quantity-control output { min-width: 18px; text-align: center; font-weight: 800; }
.checkout-form { padding-top: 18px; }
fieldset { margin: 0 0 16px; padding: 0; border: 0; }
legend { margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.choice-card { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.choice-card + .choice-card { margin-top: 8px; }
.choice-card:has(input:checked) { border-color: var(--green); background: rgba(255,212,63,.20); }
.choice-card input { margin-top: 3px; accent-color: var(--green); }
.choice-card span { display: grid; }
.choice-card strong { font-size: 14px; }
.choice-card small { margin-top: 2px; color: var(--ink-soft); }
.customer-fields { display: grid; gap: 11px; }
.customer-fields label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.customer-fields input, .customer-fields select, .customer-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  outline: none;
}
.customer-fields input:focus, .customer-fields select:focus, .customer-fields textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(185,22,29,.10); }
.delivery-fields { display: grid; gap: 11px; }
.customer-fields .coverage-check { display: flex; align-items: start; gap: 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.customer-fields .coverage-check input { width: auto; margin-top: 2px; padding: 0; accent-color: var(--green); }
.coverage-source { margin-top: -5px; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.totals { display: grid; gap: 8px; margin: 18px 0; padding-top: 15px; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 13px; }
.totals .grand-total { margin-top: 5px; color: var(--ink); font-size: 20px; font-weight: 800; }
.terms-check { display: flex; align-items: start; gap: 8px; margin-bottom: 14px; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.terms-check input { margin-top: 2px; accent-color: var(--green); }
.form-error { padding: 10px 12px; border-radius: 10px; background: #fff0eb; color: #963e25; font-size: 12px; }
.pay-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 16px;
  background: linear-gradient(135deg, #b9161d, #f36f21);
  color: white;
  cursor: pointer;
  font-weight: 800;
}
.pay-button:hover { background: linear-gradient(135deg, #9f171c, #e85b23); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(185,22,29,.22); }
.pay-button:disabled { cursor: wait; opacity: .65; }
.secure-note { margin: 8px 0 0; color: var(--ink-soft); font-size: 10px; text-align: center; }
.whatsapp-order { display: block; margin-top: 10px; color: var(--green-dark); font-size: 12px; font-weight: 800; text-align: center; }

.purchase-conditions { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px) 100px; }
.purchase-conditions > h2 { font-size: clamp(35px, 4vw, 55px); }
.condition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.condition-grid article { padding: 28px; border-top: 1px solid var(--ink); }
.condition-grid span { color: var(--orange); font-weight: 800; }
.condition-grid h3 { margin: 20px 0 7px; font-family: "Fraunces", serif; font-size: 24px; }
.condition-grid p { color: var(--ink-soft); line-height: 1.55; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 5vw, 72px); border-top: 4px solid var(--yellow); background: #321714; color: rgba(255,255,255,.82); font-size: 13px; }
footer p { margin: 0; }

.cart-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(20,30,24,.45); backdrop-filter: blur(3px); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 99px; background: var(--ink); color: white; opacity: 0; pointer-events: none; transition: .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .shopping-layout { grid-template-columns: 1fr; }
  .cart-panel {
    position: fixed;
    z-index: 50;
    inset: 0 0 0 auto;
    width: min(440px, 100%);
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(105%);
    transition: transform .25s ease;
  }
  .cart-panel.is-open { transform: translateX(0); }
  .cart-close { display: block; }
  body.cart-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; margin: 8px 10px 0; padding: 7px 10px 10px; border-radius: 18px; flex-wrap: wrap; gap: 6px 10px; }
  .brand img { width: 132px; height: 50px; }
  .help-link { display: none; }
  .cart-button { padding: 10px 12px; font-size: 13px; }
  .store-tabs { order: 3; width: 100%; }
  .store-tabs a { flex: 1; min-height: 38px; padding: 10px 8px; text-align: center; }
  .store-hero { grid-template-columns: 1fr; min-height: 0; margin-top: -124px; padding: 194px 20px 50px; border-radius: 0 0 32px 32px; }
  .hero-card { min-height: 280px; }
  .shopping-layout { padding: 44px 14px 62px; }
  .catalog-column { padding: 24px 14px; border-radius: 24px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; text-align: left; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 128px 1fr; }
  .product-image { height: 100%; min-height: 180px; }
  .product-info { padding: 16px; }
  .product-info h3 { font-size: 21px; }
  .product-buy { display: grid; }
  .add-button { width: 100%; }
  .condition-grid { grid-template-columns: 1fr; }
  .purchase-conditions { padding-bottom: 65px; }
  footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
