:root {
  --ivory: #f8f5ef;
  --white: #fff;
  --ink: #171514;
  --muted: #756968;
  --gold: #c9a45d;
  --wine: #9d3538;
  --line: #e7e0d7;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 28px 16px;
  color: var(--ink);
  background: var(--ivory);
  font-family: Arial, Helvetica, sans-serif;
}
.page {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 42px);
  background: var(--white);
  box-shadow: 0 12px 45px rgb(46 31 20 / 8%);
}
.brand-banner {
  min-height: clamp(150px, 27vw, 250px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 5vw, 48px);
  padding: 24px;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 25%, #fff 0, #f5f4f2 48%, #e8e5e2 100%);
  border: 1px solid #f0eeeb;
}
.brand-logo {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.brand-copy { text-align: center; }
.brand-name {
  margin: 0;
  font: 700 clamp(25px, 5.5vw, 52px)/1 Georgia, 'Times New Roman', serif;
  letter-spacing: .015em;
}
.brand-byline { margin: 10px 0 0; font-size: clamp(12px, 2vw, 19px); font-weight: 700; letter-spacing: .08em; }
.intro {
  margin: 26px 0 18px;
  padding: 15px 8px 13px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro h1 { margin: 0 0 7px; color: #71565a; font-size: clamp(12px, 2vw, 16px); font-weight: 600; letter-spacing: .035em; }
.intro p { margin: 0; color: var(--muted); font-size: clamp(10px, 1.55vw, 13px); }
.intro span, .contact span { padding: 0 4px; color: var(--gold); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.product-card { min-width: 0; }
.product-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #eee8df, #faf8f5 55%, #e5ddd2);
}
.product-link { position: absolute; inset: 0; display: block; }
.product-link:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.product-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.premium-tag {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.product-info { padding: 5px 2px 0; }
.product-info h2 { margin: 0; color: #514443; font-size: clamp(12px, 1.7vw, 15px); font-weight: 500; }
.price { margin: 2px 0 0; color: #7d4548; font-size: clamp(12px, 1.7vw, 15px); font-weight: 700; }
.price span { font-size: .78em; letter-spacing: .04em; }
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: clamp(20px, 4vw, 35px) 16px 24px;
  color: #f8f5ef;
  background: #141312;
  background-image: linear-gradient(rgb(20 19 18 / 58%), rgb(20 19 18 / 72%)), url("../img/BG_Footer.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}
.order-button {
  width: min(100%, 460px);
  padding: 16px 20px;
  border-radius: 999px;
  color: #fffaf0;
  background: var(--gold);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}
.order-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.instagram { margin-top: 2px; color: #fff8ea; font: 700 clamp(24px, 4vw, 36px) Georgia, 'Times New Roman', serif; text-decoration: none; }
.contact p { margin: 0; color: #c7c0b8; font-size: clamp(10px, 1.5vw, 13px); }

@media (max-width: 520px) {
  body { padding: 0; }
  .page { padding: 16px 12px 12px; box-shadow: none; }
  .brand-banner { min-height: 138px; padding: 18px 10px; gap: 15px; }
  .brand-logo {
    width: clamp(64px, 18vw, 88px);
    height: clamp(64px, 18vw, 88px);
    flex-basis: clamp(64px, 18vw, 88px);
  }
  .brand-name { font-size: clamp(22px, 7vw, 32px); }
  .brand-byline { margin-top: 7px; font-size: 11px; }
  .product-grid { gap: 12px 8px; }
  .premium-tag { top: 5px; left: 5px; padding: 4px 6px; font-size: 8px; }
  .intro { margin-top: 18px; }
  .contact { margin-top: 16px; }
}

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




/* Página individual del producto */
.detail-page { width: min(100%, 900px); margin: 0 auto; padding: clamp(16px, 4vw, 42px); background: var(--white); box-shadow: 0 12px 45px rgb(46 31 20 / 8%); }
.back-link { display: inline-block; margin: 0 0 18px; color: #71565a; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: clamp(22px, 4vw, 42px); align-items: center; }
.detail-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, #eee8df, #faf8f5 55%, #e5ddd2); }
.detail-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-info h1 { margin: 0 0 12px; color: #514443; font: 700 clamp(26px, 4vw, 40px)/1.15 Georgia, 'Times New Roman', serif; }
.detail-description { color: var(--muted); font-size: 16px; line-height: 1.7; }
.detail-price { margin: 20px 0 10px; color: #7d4548; font-size: 25px; font-weight: 700; }
.detail-badge { display: inline-block; padding: 7px 11px; color: var(--white); background: var(--wine); font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.detail-badge.standard { color: #695b4b; background: #eee8df; }
.detail-error { padding: 40px 10px; text-align: center; }
@media (max-width: 620px) { .detail-page { padding: 16px 12px; box-shadow: none; } .detail-layout { grid-template-columns: 1fr; gap: 20px; } .detail-photo { aspect-ratio: 4 / 3; } .detail-info h1 { font-size: 30px; } }


@media (max-width: 520px) {
  .detail-photo::after {
    top: 7px;
    right: 7px;
    width: 34px;
    height: 34px;
  }
}

/* Logo pequeño solo en la foto grande de detalle */
.detail-photo::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff url("../img/logo02.jpg") center / cover no-repeat;
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
  pointer-events: none;
}

@media (max-width: 520px) {
  .detail-photo::after {
    top: 7px;
    right: 7px;
    width: 34px;
    height: 34px;
  }
}

