:root {
  --bg: #f7f5f2;
  --ink: #14120f;
  --muted: #6b6459;
  --gold: #a9822f;
  --line: #e4dfd6;
  --sold: #b3392c;
  --ok: #3a6b4a;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.test-banner {
  background: #a9822f;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 8px;
  letter-spacing: 0.5px;
}

.site-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.logo { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.logo span { color: var(--gold); font-weight: 400; margin-left: 6px; font-size: 12px; letter-spacing: 3px; }

.hero {
  padding: 40px 20px 24px;
  text-align: center;
}
.hero h1 { font-size: 26px; margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0; font-size: 15px; }

.featured-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.banner-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
}
.banner-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.banner-tile .banner-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 14px 14px;
  background: linear-gradient(to top, rgba(20,18,15,0.85) 0%, rgba(20,18,15,0.35) 60%, transparent 100%);
  color: #fff;
}
.banner-tile .banner-kicker {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
}
.banner-tile .banner-title { font-size: 15px; font-weight: 700; margin-top: 2px; }
.banner-tile .banner-price { font-size: 13px; margin-top: 2px; opacity: 0.9; }
@media (min-width: 500px) {
  .banner-tile .banner-title { font-size: 18px; }
  .banner-tile .banner-price { font-size: 14px; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.card-body { padding: 10px 12px 14px; }
.card-vendor { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.card-title { font-size: 14px; font-weight: 600; margin: 4px 0; line-height: 1.3; }
.card-price { font-size: 15px; font-weight: 700; }
.card-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
}
.card-badge.in-stock { background: #e8f1ea; color: var(--ok); }
.card-badge.sold-out { background: #f5e8e6; color: var(--sold); }

.product-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) {
  .product-page { grid-template-columns: 1fr 1fr; }
}
.product-gallery { display: grid; gap: 8px; }
.gallery-img { border-radius: 10px; border: 1px solid var(--line); }

.product-info .vendor { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; margin: 0; }
.product-info h1 { margin: 4px 0 8px; font-size: 24px; }
.product-info .price { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.stock-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 13px; margin-bottom: 14px; }
.stock-badge.in-stock { background: #e8f1ea; color: var(--ok); }
.stock-badge.sold-out { background: #f5e8e6; color: var(--sold); }
.description { line-height: 1.6; color: #2c2a26; margin-bottom: 14px; }
.fine-print { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

.buy-btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.buy-btn:disabled { background: #cfc9bd; cursor: not-allowed; }
.buy-btn:not(:disabled):active { transform: scale(0.99); }
.buy-error { color: var(--sold); margin-top: 10px; font-size: 14px; }

.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.thanks-page {
  max-width: 480px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
.thanks-page h1 { font-size: 24px; }
.thanks-page p { color: var(--muted); line-height: 1.6; }

/* Barra de confianza */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: none;
  border-bottom: none;
}
@media (min-width: 700px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  background: var(--bg);
  padding: 14px 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}
.trust-item strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }

/* Por qué una sola unidad */
.why-unique {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}
.why-unique h2 { font-size: 21px; margin: 0 0 10px; }
.why-unique p { color: var(--muted); line-height: 1.6; margin: 0 auto; max-width: 520px; }

/* Quienes somos */
.about-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 20px;
}
.about-section .inner { max-width: 640px; margin: 0 auto; }
.about-section h2 { font-size: 20px; margin: 0 0 10px; }
.about-section p { color: #2c2a26; line-height: 1.65; margin: 0 0 10px; }

/* FAQ */
.faq { max-width: 640px; margin: 0 auto; padding: 40px 20px 20px; }
.faq h2 { font-size: 20px; margin: 0 0 16px; text-align: center; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--gold); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Contacto / WhatsApp */
.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #25d366;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 20;
  font-size: 26px;
}
.contact-line {
  text-align: center;
  padding: 4px 20px 0;
  font-size: 13px;
  color: var(--muted);
}
.contact-line a { color: var(--gold); font-weight: 600; }

/* Sold-out: alternativas */
.alt-products { padding: 22px 20px 8px; }
.alt-products h3 { font-size: 15px; margin: 0 0 12px; text-align: center; color: var(--muted); font-weight: 600; }
.alt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.alt-card { display: block; }
.alt-card img { aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.alt-card .alt-title { font-size: 11px; margin-top: 4px; line-height: 1.25; }
.alt-card .alt-price { font-size: 12px; font-weight: 700; }

/* Barra flotante de compra en mobile */
.sticky-buy {
  display: none;
  position: sticky;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 15;
}
@media (max-width: 759px) {
  .sticky-buy.show { display: block; }
}
