/*
Sagrada Moda Storefront — Desktop-first boutique system
Inspirado en Latinas Fashion como referencia editorial, sin copiar assets.
*/

:root {
  --primary: #A88A3F;
  --sg-gold: #A88A3F;
  --sg-gold-soft: #C7B060;
  --sg-gold-mist: #EFE5C8;
  --sg-ink: #1C1812;
  --sg-ink-soft: #2C241A;
  --sg-text: #313B4F;
  --sg-muted: #6B7280;
  --sg-paper: #FBF8F1;
  --sg-cream: #F7F1E5;
  --sg-warm: #F1E5D0;
  --sg-surface: #FFFFFF;
  --sg-line: rgba(28, 24, 18, 0.12);
  --sg-line-strong: rgba(28, 24, 18, 0.2);
  --sg-success: #089E52;
  --sg-danger: #B43A2E;
  --sg-shadow-soft: 0 16px 44px rgba(28, 24, 18, 0.08);
  --sg-shadow-pop: 0 24px 70px rgba(28, 24, 18, 0.14);
  --sg-radius-card: 18px;
  --sg-radius-soft: 14px;
  --sg-radius-pill: 999px;
  --sg-max: 1440px;
  --sg-content: 1280px;
  --bg: var(--sg-paper);
  --card: var(--sg-surface);
  --text: var(--sg-ink);
  --muted: var(--sg-muted);
  --line: var(--sg-line);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--sg-ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(199, 176, 96, 0.18), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, var(--sg-paper) 38%, #fff 100%);
  font-family: "DM Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(168, 138, 63, 0.35); outline-offset: 3px; }

/* Global shell */
.app {
  width: 100%;
  min-height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
}
.sg-main, .app > section, .app > div:not(.topbar-announce):not(.topbar-nav):not(.product-layout):not(.checkout-layout) { min-width: 0; }

/* Top announce */
.topbar-announce {
  width: 100%;
  background: linear-gradient(90deg, var(--sg-ink) 0%, var(--sg-ink-soft) 48%, var(--sg-gold) 100%);
  color: #fff7df;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.topbar-announce-inner {
  max-width: var(--sg-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-announce-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sg-gold-soft);
  opacity: 0.85;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 251, 243, 0.94);
  border-bottom: 1px solid var(--sg-line);
  backdrop-filter: blur(14px);
}
.head {
  min-height: 128px;
  max-width: var(--sg-max);
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 20px;
}
.brand-link, .brand {
  color: var(--sg-gold);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.brand-link:not(:has(.brand-mark)) {
  margin-right: auto;
  justify-content: flex-start;
}
.brand-mark {
  width: 178px;
  height: 112px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 12px 26px rgba(168, 138, 63, 0.22));
}
.brand-text {
  color: var(--sg-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1;
}
.header-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  position: absolute !important;
  right: clamp(16px, 4vw, 56px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.cart, .header-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(168, 138, 63, 0.2);
  background: rgba(255,255,255,0.75);
  color: var(--sg-gold);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  position: relative;
  box-shadow: 0 8px 20px rgba(28, 24, 18, 0.07);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.cart:hover, .header-icon-btn:hover { transform: translateY(-2px); border-color: var(--sg-gold); background: #fff; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0 5px;
  background: var(--sg-gold);
  color: #fff;
  border: 2px solid #fff;
  font-size: .66rem;
  font-weight: 800;
}
.top,
.head,
.brand-mark {
  transition: min-height .24s ease, padding .24s ease, width .24s ease, height .24s ease, box-shadow .24s ease;
}
.top.sg-compact {
  box-shadow: 0 14px 34px rgba(28, 24, 18, 0.08);
}
.top.sg-compact .head {
  min-height: 78px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.top.sg-compact .brand-mark {
  width: 98px;
  height: 62px;
}

/* Compact brand mark for cart/checkout headers (matches scrolled compact size) */
.checkout-brand-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: auto;
}
.checkout-brand-logo .brand-mark {
  width: 98px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(168, 138, 63, 0.18));
}
@media (max-width: 640px) {
  .checkout-brand-logo .brand-mark { width: 78px; height: 50px; }
  .brand-link-text { display: none; }
}

.topbar-nav {
  display: block;
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid var(--sg-line);
  backdrop-filter: blur(12px);
}
.topbar-nav-inner {
  min-height: 44px;
  max-width: var(--sg-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-nav-inner::-webkit-scrollbar { display: none; }
.topbar-nav-link {
  flex: 0 0 auto;
  color: var(--sg-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 800;
  padding: 14px 0;
  position: relative;
}
.topbar-nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--sg-gold);
  transition: width .22s ease, left .22s ease;
}
.topbar-nav-link:hover, .topbar-nav-link.active { color: var(--sg-gold); }
.topbar-nav-link:hover::after, .topbar-nav-link.active::after { width: 100%; left: 0; }

/* Generic content */
.content, .sg-container {
  width: 100%;
  max-width: var(--sg-content);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 56px);
}
.page-head, .cat-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.cat-title, .page-title, .section-title {
  color: var(--sg-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.cat-link, .sg-link {
  color: var(--sg-gold);
  text-decoration: none;
  font-weight: 800;
}
.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.meta p, .kicker, .eyebrow {
  color: var(--sg-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Buttons */
.cta, .hero-cta, .add, .sg-btn {
  min-height: 46px;
  border: 0;
  border-radius: var(--sg-radius-pill);
  background: var(--sg-gold);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(168, 138, 63, 0.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cta:hover, .hero-cta:hover, .add:hover, .sg-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(168, 138, 63, 0.28); background: #967b38; }
.cta.is-disabled { opacity: .45; pointer-events: none; }
.sg-btn--ghost, .hero-cta--ghost { background: rgba(255,255,255,.8) !important; color: var(--sg-ink) !important; border: 1px solid rgba(168,138,63,.28); box-shadow: none; }

/* Catalog filters */
.catalog-page { max-width: var(--sg-max); }
.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
}
.catalog-sidebar {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 18px;
  padding-right: 14px;
  border-right: 1px solid var(--sg-line);
}
.catalog-filter-block { display: grid; gap: 5px; }
.catalog-filter-title {
  color: #a98d86;
  font-size: clamp(.88rem, 1vw, 1.05rem);
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.catalog-filter-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: #a98d86;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
}
.catalog-filter-link i { color: rgba(169,141,134,.42); font-size: .6rem; transition: transform .2s ease, color .2s ease; }
.catalog-filter-link:hover,
.catalog-filter-link.active { color: var(--sg-gold); }
.catalog-filter-link:hover i,
.catalog-filter-link.active i { color: var(--sg-gold); transform: translateX(3px); }
.catalog-size-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-size-btn {
  min-width: 34px;
  height: 30px;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-pill);
  background: #fff;
  color: var(--sg-muted);
  font-size: .66rem;
  font-weight: 800;
}
.catalog-size-btn:hover,
.catalog-size-btn.active { border-color: var(--sg-gold); color: var(--sg-gold); background: var(--sg-gold-mist); }
.catalog-clear {
  border: 1px solid rgba(168,138,63,.35);
  border-radius: var(--sg-radius-pill);
  background: transparent;
  color: var(--sg-gold);
  min-height: 40px;
  padding: 9px 16px;
  font-weight: 900;
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.catalog-count {
  color: var(--sg-muted);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.catalog-sort-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.catalog-sort {
  min-width: 250px;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: rgba(255,255,255,.72) !important;
  color: var(--sg-ink) !important;
  padding: 12px 42px 12px 16px;
  font-weight: 700;
}
.sizes-row { display: flex; gap: 5px; flex-wrap: wrap; margin: 4px 0 10px; }
.sizes-row span {
  color: var(--sg-muted);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-pill);
  padding: 2px 7px;
  font-size: .68rem;
  font-weight: 900;
}

/* Catalog card — versión liviana, jerarquía clara, botón al fondo */
.catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(28,24,18,.05);
  border-color: rgba(28,24,18,.08);
}
.catalog-card:hover { box-shadow: 0 14px 30px rgba(28,24,18,.08); }
.catalog-card > a {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.catalog-card .info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
}
.catalog-card .name {
  font-family: "DM Sans", sans-serif;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--sg-ink);
  margin: 0;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-card .sizes-row { gap: 4px; margin: 0; }
.catalog-card .sizes-row span {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 8px;
  color: var(--sg-muted);
  border-color: rgba(28,24,18,.10);
  background: #fff;
}
.catalog-card .price {
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--sg-gold);
  margin-top: 2px;
}
.catalog-card .catalog-add {
  margin-top: auto;
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  color: var(--sg-ink);
  border: 1px solid rgba(28,24,18,.18);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.catalog-card:hover .catalog-add,
.catalog-card .catalog-add:focus-visible,
.catalog-card .catalog-add:hover {
  background: var(--sg-ink);
  color: #fff;
  border-color: var(--sg-ink);
}

/* Product grid/cards */
.grid, .catgrid, .sg-product-grid, .sg-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card, .catgrid-item, .sg-product-card, .sg-category-card {
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-card);
  box-shadow: 0 10px 28px rgba(28,24,18,.06);
  text-decoration: none;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.card:hover, .catgrid-item:hover, .sg-product-card:hover, .sg-category-card:hover { transform: translateY(-4px); box-shadow: var(--sg-shadow-soft); border-color: rgba(168,138,63,.32); }
.card > a, .catgrid-item { text-decoration: none; color: inherit; display: block; }
.media, .catgrid-img, .sg-card-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  background-size: cover;
  background-position: center top;
  background-color: var(--sg-cream);
  transition: transform .5s ease;
}
.card:hover .media, .catgrid-item:hover .catgrid-img, .sg-product-card:hover .sg-card-media { transform: scale(1.035); }
.info, .sg-card-info { padding: 14px 14px 16px; background: #fff; }
.name, .sg-card-name {
  color: var(--sg-ink);
  font-size: clamp(.9rem, 1vw, 1.02rem);
  font-weight: 800;
  line-height: 1.25;
  min-height: 2.45em;
  margin-bottom: 10px;
}
.row, .sg-card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price, .line { color: var(--sg-gold); font-weight: 900; font-size: clamp(1rem, 1.2vw, 1.18rem); }
.add { min-height: 38px; padding: 8px 14px; font-size: .82rem; }
.catgrid-name {
  display: block;
  padding: 14px;
  color: var(--sg-ink);
  font-weight: 900;
  text-align: center;
}

/* Home */
.sg-home { overflow: hidden; }
.sg-hero {
  min-height: min(72vh, 760px);
  display: grid;
  align-items: end;
  background-size: cover;
  background-position: center top;
  position: relative;
  isolation: isolate;
}
.sg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,24,18,.58) 0%, rgba(28,24,18,.18) 48%, rgba(28,24,18,.04) 100%); }
.sg-hero-content { max-width: 720px; padding: clamp(64px, 9vw, 132px) clamp(20px, 6vw, 86px); color: #fff; }
.sg-hero .eyebrow {
  color: #fff7df;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  opacity: 1;
}
.sg-hero-title { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: clamp(3rem, 7vw, 6.2rem); line-height: .95; letter-spacing: -.055em; margin: 12px 0 18px; text-shadow: 0 8px 30px rgba(0,0,0,.32); }
.sg-hero-copy { max-width: 54ch; font-size: clamp(1rem, 1.2vw, 1.18rem); color: rgba(255,255,255,.95); text-shadow: 0 2px 14px rgba(0,0,0,.36); }
.sg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Home hero carousel — desktop artwork is normalized to 1487x550 */
.sg-hero-carousel--banner-only {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 550px;
  aspect-ratio: 1487 / 550;
  background: linear-gradient(90deg, #e8d4bc 0%, #f7f2ea 100%);
}
.sg-hero-carousel--banner-only .sg-hero-carousel-track {
  position: absolute;
  inset: 0;
}
.sg-hero-carousel--banner-only .sg-hero-carousel-media {
  display: block;
}
.sg-hero-carousel--banner-only .sg-hero-carousel-media img {
  object-fit: cover;
  object-position: center center;
}

.sg-hero-carousel {
  position: relative;
  min-height: 420px;
  height: clamp(420px, 37vw, 620px);
  overflow: hidden;
  isolation: isolate;
  background: var(--sg-ink);
}
.sg-hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .28s ease-out;
  will-change: transform;
}
.sg-hero-carousel-track.is-instant { transition: none; }
.sg-hero-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
}
.sg-hero-carousel-media,
.sg-hero-carousel-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sg-hero-carousel-media img { object-fit: cover; object-position: center top; }
.sg-hero-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(28,24,18,.64) 0%, rgba(28,24,18,.28) 48%, rgba(28,24,18,.05) 100%);
  pointer-events: none;
}
.sg-hero-carousel-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: clamp(64px, 8vw, 118px) clamp(20px, 6vw, 86px);
  color: #fff;
}
.sg-hero-carousel .eyebrow { color: #fff7df; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.sg-hero-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background .2s ease, transform .2s ease;
}
.sg-hero-carousel-nav:hover { background: rgba(255,255,255,.26); transform: translateY(-50%) scale(1.04); }
.sg-hero-carousel-prev { left: clamp(14px, 3vw, 34px); }
.sg-hero-carousel-next { right: clamp(14px, 3vw, 34px); }
.sg-hero-carousel-dots {
  position: absolute;
  left: clamp(20px, 6vw, 86px);
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.sg-hero-carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  transition: width .22s ease, background .22s ease;
}
.sg-hero-carousel-dot.is-active { width: 28px; background: #fff; }

.sg-section { padding: clamp(54px, 7vw, 96px) clamp(16px, 4vw, 56px); max-width: var(--sg-content); margin: 0 auto; }
.sg-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.sg-section-title { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; color: var(--sg-ink); }
.sg-section-copy { color: var(--sg-muted); max-width: 54ch; margin-top: 8px; }
.sg-collection-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; }
.sg-collection-card { min-height: 420px; border-radius: 24px; overflow: hidden; position: relative; background-size: cover; background-position: center; text-decoration: none; color: #fff; isolation: isolate; box-shadow: var(--sg-shadow-soft); }
.sg-collection-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, rgba(28,24,18,.72)); z-index: -1; }
.sg-collection-card:first-child { grid-row: span 2; min-height: 680px; }
.sg-collection-label { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.sg-collection-label strong { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.7rem, 2.5vw, 2.6rem); font-style: italic; }
.sg-trust { background: var(--sg-ink); color: #fff; }
.sg-trust-inner { max-width: var(--sg-content); margin: 0 auto; padding: 34px clamp(16px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sg-trust-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); font-weight: 800; }
.sg-trust-item i { color: var(--sg-gold-soft); font-size: 1.25rem; }
.sg-story { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,5vw,72px); align-items: center; }

/* Product detail */
.product-layout { width: 100%; max-width: var(--sg-content); margin: 0 auto; display: grid; grid-template-columns: 1fr; }
.product-gallery { position: relative; width: 100%; overflow: hidden; background: var(--sg-cream); aspect-ratio: 3/4; min-height: 460px; }
.gallery-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.25,.46,.45,.94); will-change: transform; }
.gallery-slide { flex: 0 0 100%; height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center top; background: var(--sg-cream); }
.gallery-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 5; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); border: 0; }
.gallery-dot.active { width: 24px; border-radius: 10px; background: #fff; }
.gallery-zoom-hint { position: absolute; right: 18px; bottom: 54px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--sg-radius-pill); background: rgba(28,24,18,.72); color: #fff; font-size: .82rem; z-index: 8; }
.product-info { padding: clamp(28px, 4vw, 54px) clamp(18px, 4vw, 56px); display: flex; flex-direction: column; }
.product-info > .kicker { color: var(--sg-muted); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.product-head { display: block; margin: 6px 0 10px; }
.product-title { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1.02; letter-spacing: -.04em; color: var(--sg-ink); }
.product-detail-price { display: block; margin: 0 0 22px; font-size: clamp(1.4rem, 1.8vw, 1.85rem); font-weight: 800; color: var(--sg-gold); letter-spacing: -.01em; }
.description { color: var(--sg-text); margin: 14px 0 22px; font-size: 1.02rem; line-height: 1.6; max-width: 62ch; }
.attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; max-width: 460px; }
.attr { border: 1px solid var(--sg-line); border-radius: 14px; padding: 13px; background: rgba(255,255,255,.78); text-align: center; }
.attr strong { display: block; color: var(--sg-muted); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.attr span { font-weight: 800; color: var(--sg-ink); }
.color-picker, .size-picker, .qty-picker { margin: 22px 0; }
.size-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.size-head h3, .qty-label { color: var(--sg-text); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.size-note { color: var(--sg-gold); font-size: .82rem; font-weight: 800; }
.color-grid, .size-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.color-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--sg-line); }
.color-btn.active { box-shadow: 0 0 0 3px rgba(168,138,63,.28); border-color: #fff !important; }
.size-btn { min-width: 48px; height: 46px; border: 1px solid var(--sg-line); border-radius: 12px; background: #fff; color: var(--sg-text); font-weight: 900; }
.size-btn.active { border-color: var(--sg-gold); color: var(--sg-gold); background: var(--sg-gold-mist); }
.size-btn:disabled { opacity: .36; cursor: not-allowed; background: #f3f1ed; }
.qty-picker { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.qty-controls { display: inline-flex; align-items: center; border: 1px solid var(--sg-line); border-radius: var(--sg-radius-pill); background: #fff; overflow: hidden; }
.qty-btn { width: 44px; height: 42px; border: 0; background: transparent; color: var(--sg-ink); }
.qty-value { min-width: 44px; text-align: center; font-weight: 900; }
.cta-wrap { margin-top: 24px; }
.cta-wrap .cta { width: 100%; }
.media-product { display: none !important; }

/* Cart/checkout */
.checkout-layout { width: 100%; max-width: var(--sg-content); margin: 0 auto; display: grid; grid-template-columns: 1fr; }
.checkout-main { padding: clamp(24px, 4vw, 54px) clamp(16px, 4vw, 56px); }
.checkout-summary { background: #fffaf0; border-top: 1px solid var(--sg-line); padding: 24px clamp(16px, 4vw, 32px); }
.summary { display: grid; gap: 12px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--sg-text); font-weight: 700; }
.list { display: grid; gap: 14px; }
.item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius-card); box-shadow: 0 10px 28px rgba(28,24,18,.05); }
.thumb { width: 100%; min-height: 124px; border-radius: 14px; background-size: cover; background-position: center top; border: 1px solid var(--sg-line); }
.item-main { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.item-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.item-name { font-weight: 900; color: var(--sg-ink); line-height: 1.25; }
.item-sub { color: var(--sg-muted); font-size: .86rem; margin-top: 4px; }
.remove { border: 0; background: transparent; color: var(--sg-danger); font-weight: 900; font-size: .82rem; }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--sg-line); border-radius: var(--sg-radius-pill); background: #fff; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--sg-ink); }
.qty span { min-width: 30px; text-align: center; font-weight: 900; }
.empty { border: 1px dashed var(--sg-line-strong); border-radius: var(--sg-radius-card); background: #fffaf0; padding: 32px; text-align: center; display: grid; gap: 12px; }
.empty p { color: var(--sg-muted); }
.empty a { color: var(--sg-gold); text-decoration: none; font-weight: 900; }
.is-hidden { display: none !important; }

/* Forms */
label { color: var(--sg-muted); }
input, select, textarea {
  border: 1px solid var(--sg-line) !important;
  border-radius: 12px !important;
  background-color: #fff !important;
  color: var(--sg-ink) !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--sg-gold) !important; box-shadow: 0 0 0 4px rgba(168,138,63,.12); }
.payment-option { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.payment-option:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(28,24,18,.08); }

/* Footer / mobile legacy nav */
.footer { display: none; }
.sg-site-footer {
  margin-top: auto;
  background: #fffaf2;
  color: var(--sg-text);
  border-top: 1px solid var(--sg-line);
}
.sg-footer-inner {
  max-width: var(--sg-content);
  margin: 0 auto;
  padding: 32px clamp(16px,4vw,56px) 24px;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 34px;
  align-items: start;
}
.sg-footer-brand { max-width: 360px; }
.sg-footer-section { min-width: 0; }
.sg-footer-brand p { color: var(--sg-muted); font-size: .92rem; line-height: 1.65; }
.sg-footer-logo {
  width: 105px;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 20px rgba(168,138,63,.14));
}
.sg-footer-title {
  color: var(--sg-ink);
  font-weight: 900;
  margin-bottom: 10px;
  font-size: .92rem;
  letter-spacing: .04em;
}
.sg-footer-link {
  display: block;
  color: var(--sg-muted);
  text-decoration: none;
  margin: 7px 0;
  font-size: .88rem;
  line-height: 1.45;
}
.sg-footer-link:hover { color: var(--sg-gold); }
.sg-footer-payments {
  background: #fffaf2;
  border-top: 1px solid var(--sg-line);
  padding: 18px clamp(16px,4vw,56px);
  display: grid;
  place-items: center;
}
.sg-footer-payments img { width: min(620px, 100%); height: auto; object-fit: contain; }
.sg-footer-bottom {
  border-top: 1px solid var(--sg-line);
  background: #fffaf2;
  color: var(--sg-text);
  padding: 12px clamp(16px,4vw,56px);
  text-align: center;
  font-size: .72rem;
  letter-spacing: .06em;
}

/* Sagrada toast / chip de feedback */
.sg-toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translate(-50%, 24px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  background: #fff;
  color: var(--sg-ink);
  border: 1px solid var(--sg-line);
  border-left: 4px solid var(--sg-gold);
  border-radius: var(--sg-radius-pill);
  box-shadow: 0 22px 48px rgba(28, 24, 18, 0.18);
  font-size: 0.92rem;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease, transform .26s ease;
  max-width: min(560px, calc(100vw - 24px));
}
.sg-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sg-toast[hidden] { display: none; }
.sg-toast .sg-toast-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sg-gold-mist);
  color: var(--sg-gold);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.sg-toast .sg-toast-body { display: grid; gap: 2px; min-width: 0; }
.sg-toast .sg-toast-title { font-weight: 800; font-size: .9rem; color: var(--sg-ink); letter-spacing: .01em; }
.sg-toast .sg-toast-msg { font-size: .8rem; color: var(--sg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-toast .sg-toast-action {
  margin-left: 4px;
  padding: 8px 14px;
  border-radius: var(--sg-radius-pill);
  background: var(--sg-ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease;
}
.sg-toast .sg-toast-action:hover { background: var(--sg-gold); }
@media (min-width: 768px) {
  .sg-toast { left: auto; right: 24px; bottom: 28px; transform: translate(0, 24px); max-width: 460px; }
  .sg-toast.is-visible { transform: translate(0, 0); }
  .sg-toast .sg-toast-msg { white-space: normal; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.95); cursor: zoom-out; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; z-index: 10; display: grid; place-items: center; }
.lightbox-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 1.35rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; }
.lightbox-prev { left: 18px; } .lightbox-next { right: 18px; }
.lightbox-content { position: relative; z-index: 5; max-width: 94vw; max-height: 88vh; display: grid; justify-items: center; gap: 12px; }
.lightbox-content img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; }
.lightbox-caption { color: rgba(255,255,255,.8); }
.lightbox-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.lightbox-dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,.38); }
.lightbox-dot.active { background: #fff; }

@media (min-width: 768px) {
  .grid, .sg-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .catgrid, .sg-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 410px; gap: 48px; padding: 36px clamp(24px, 4vw, 56px) 64px; }
  .checkout-main { padding: 0; }
  .checkout-summary { position: sticky; top: 118px; align-self: start; border: 1px solid var(--sg-line); border-radius: 22px; padding: 28px; box-shadow: var(--sg-shadow-soft); }
}

@media (min-width: 1100px) {
  .product-layout { max-width: 1400px; grid-template-columns: minmax(360px, 560px) minmax(0, 1fr); gap: clamp(44px, 5vw, 76px); padding: 36px clamp(24px,4vw,56px) 72px; align-items: start; }
  .product-gallery { border-radius: 26px; min-height: 0; max-height: 720px; max-width: 560px; aspect-ratio: 3 / 4; position: sticky; top: 138px; align-self: start; justify-self: end; box-shadow: var(--sg-shadow-soft); background: var(--sg-cream); }
  .product-info { padding: 24px 0; max-width: 760px; width: 100%; }
}

@media (min-width: 1024px) {
  .grid, .sg-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .catgrid, .sg-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .media { aspect-ratio: 3/4; }
}

@media (min-width: 1440px) {
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 767px) {
  .head { min-height: 104px; padding-top: 12px; padding-bottom: 12px; }
  .brand-mark { width: 136px; height: 88px; transform: none; }
  .top.sg-compact .head { min-height: 70px; padding-top: 7px; padding-bottom: 7px; }
  .top.sg-compact .brand-mark { width: 88px; height: 56px; }
  .topbar-announce { font-size: .62rem; letter-spacing: .13em; }
  .topbar-nav-inner { justify-content: flex-start; }
  .topbar-nav-link { font-size: .68rem; }
  .sg-hero { min-height: 70vh; }
  .sg-hero::before { background: linear-gradient(180deg, rgba(28,24,18,.08), rgba(28,24,18,.76)); }
  .sg-hero-content { padding: 80px 20px 44px; }
  .sg-hero-carousel:not(.sg-hero-carousel--banner-only) {
    height: min(72vh, 650px);
    min-height: 440px;
  }
  .sg-hero-carousel--banner-only {
    max-height: none;
    min-height: 520px;
    aspect-ratio: 3 / 4;
  }
  .sg-hero-carousel--banner-only .sg-hero-carousel-media img {
    object-fit: cover;
    object-position: center center;
  }
  .sg-hero-carousel--banner-only .sg-hero-carousel-dots {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 12px;
  }
  .sg-hero-carousel-overlay { background: linear-gradient(180deg, rgba(28,24,18,.08), rgba(28,24,18,.76)); }
  .sg-hero-carousel-content { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 84px 20px 54px; }
  .sg-hero-carousel .sg-hero-title { font-size: clamp(2.6rem, 14vw, 4.6rem); }
  .sg-hero-carousel .sg-hero-copy { font-size: .98rem; }
  .sg-hero-carousel-nav { display: none; }
  .sg-hero-carousel:not(.sg-hero-carousel--banner-only) .sg-hero-carousel-dots { left: 20px; bottom: 20px; }
  .sg-section-head { display: block; }
  .sg-collection-grid { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .sg-collection-card, .sg-collection-card:first-child { flex: 0 0 78%; min-height: 360px; scroll-snap-align: start; }
  .sg-trust-inner { grid-template-columns: 1fr 1fr; }
  .sg-story { grid-template-columns: 1fr; }
  .item { grid-template-columns: 84px 1fr; }
  .checkout-layout { padding-bottom: 0; }
  .checkout-main { padding: 24px 16px; }
  .checkout-summary { position: sticky; bottom: 0; z-index: 30; box-shadow: 0 -14px 40px rgba(28,24,18,.1); }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; border-right: 0; border-bottom: 1px solid var(--sg-line); padding: 0 0 22px; }
  .catalog-filter-link { font-size: .92rem; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-sort { width: 100%; min-width: 0; }
  .sg-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .sg-footer-payments { padding: 20px 16px; }
  .sg-footer-bottom { font-size: .7rem; line-height: 1.5; letter-spacing: .04em; }
}

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

/* Sagrada · WhatsApp floating widget */
.sg-wa-hidden .sg-wa { display: none !important; }
.sg-wa {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: max(env(safe-area-inset-bottom), 18px);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}
.sg-wa > * { pointer-events: auto; }

.sg-wa-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(140deg, var(--sg-gold) 0%, #8E7330 100%);
  color: #fff;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 38px rgba(28, 24, 18, .28), 0 6px 12px rgba(168, 138, 63, .35);
  transition: transform .22s ease, box-shadow .22s ease;
}
.sg-wa-fab:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(28, 24, 18, .32), 0 8px 16px rgba(168, 138, 63, .42); }
.sg-wa-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sg-wa-fab-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(168, 138, 63, .45);
  animation: sg-wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes sg-wa-pulse {
  0%   { transform: scale(.85); opacity: .7; }
  70%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}
.sg-wa-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--sg-gold);
  font-size: .7rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid var(--sg-gold);
  padding: 0 4px;
  letter-spacing: 0;
}
.sg-wa[data-open="true"] .sg-wa-fab-badge { display: none; }
.sg-wa[data-open="true"] .sg-wa-fab-ring { animation: none; opacity: 0; }

.sg-wa-popup {
  width: min(340px, calc(100vw - 28px));
  background: var(--sg-cream);
  border-radius: 22px;
  border: 1px solid var(--sg-line);
  box-shadow: 0 28px 60px rgba(28, 24, 18, .22), 0 10px 20px rgba(28, 24, 18, .08);
  overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(16px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.sg-wa[data-open="true"] .sg-wa-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sg-wa-popup-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--sg-gold) 0%, #8E7330 100%);
  color: #fff;
}
.sg-wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .65);
}
.sg-wa-avatar img { width: 112%; height: 112%; object-fit: contain; }
.sg-wa-meta { display: grid; gap: 1px; min-width: 0; }
.sg-wa-eyebrow {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, .8);
}
.sg-wa-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  color: #fff;
}
.sg-wa-status {
  font-size: .72rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .92);
}
.sg-wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .32);
}
.sg-wa-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.sg-wa-close:hover { background: rgba(255, 255, 255, .32); }
.sg-wa-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sg-wa-body {
  padding: 18px 16px 8px;
  background:
    radial-gradient(circle at 20% 10%, rgba(168, 138, 63, .08), transparent 60%),
    var(--sg-cream);
}
.sg-wa-bubble {
  position: relative;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: .9rem;
  color: var(--sg-ink);
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(28, 24, 18, .05);
  margin-top: 8px;
}
.sg-wa-bubble p { margin: 0 0 6px; }
.sg-wa-bubble p:last-of-type { margin-bottom: 6px; }
.sg-wa-bubble::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--sg-line);
  border-top: 1px solid var(--sg-line);
  transform: rotate(45deg);
}
.sg-wa-time {
  display: block;
  font-size: .68rem;
  color: var(--sg-muted);
  text-align: right;
  letter-spacing: .03em;
}

.sg-wa-foot {
  padding: 14px 16px 16px;
  background: var(--sg-cream);
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(168, 138, 63, .18);
}
.sg-wa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--sg-radius-pill);
  background: var(--sg-gold);
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(168, 138, 63, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.sg-wa-cta:hover { transform: translateY(-1px); background: #B79A4D; }
.sg-wa-cta i { font-size: 1.05rem; }
.sg-wa-foot-meta {
  text-align: center;
  font-size: .74rem;
  color: var(--sg-muted);
  letter-spacing: .04em;
}

@media (max-width: 480px) {
  .sg-wa { right: 12px; bottom: max(env(safe-area-inset-bottom), 14px); gap: 10px; }
  .sg-wa-fab { width: 54px; height: 54px; font-size: 1.5rem; }
  .sg-wa-popup { width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .sg-wa-fab-ring { animation: none; }
  .sg-wa-popup { transition: opacity .01ms ease; }
}

/* =============================================================================
   Legal pages — content styling
   ============================================================================= */

.legal-page {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px);
}

.legal-article {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sg-text, #313b4f);
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--sg-gold, #A88A3F);
}

.legal-header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--sg-ink, #1a1a2e);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--sg-muted, #7a8599);
  font-style: italic;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sg-ink, #1a1a2e);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  line-height: 1.3;
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sg-ink, #1a1a2e);
  margin-bottom: 0.5rem;
  margin-top: 1.2rem;
}

.legal-section p {
  margin-bottom: 0.75rem;
}

.legal-section ul,
.legal-section ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.4rem;
}

.legal-section a {
  color: var(--sg-gold, #A88A3F);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--sg-ink, #1a1a2e);
}

.legal-notice {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--sg-cream, #fffaf0);
  border-left: 3px solid var(--sg-gold, #A88A3F);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--sg-muted, #7a8599);
  line-height: 1.6;
}

.legal-notice strong {
  color: var(--sg-ink, #1a1a2e);
}

.legal-page--policy {
  max-width: 860px;
}

.legal-header--policy {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(168, 138, 63, 0.2);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(168, 138, 63, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 255, 255, 0.82));
}

.legal-kicker {
  margin-bottom: 0.55rem;
  color: var(--sg-gold, #A88A3F);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-intro {
  max-width: 58ch;
  margin-top: 0.85rem;
  color: var(--sg-muted, #7a8599);
}

.legal-card {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(168, 138, 63, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(40, 30, 15, 0.06);
}

.legal-card--highlight {
  background:
    linear-gradient(135deg, rgba(168, 138, 63, 0.1), rgba(255, 250, 240, 0.94)),
    #fff;
}

.legal-checklist {
  display: grid;
  gap: 14px;
  padding-left: 0 !important;
  list-style: none;
}

.legal-checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 0;
}

.legal-checklist i {
  margin-top: 0.2rem;
  color: var(--sg-gold, #A88A3F);
}

.legal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.45rem;
  padding: 10px 16px;
  border-radius: var(--sg-radius-pill, 999px);
  background: var(--sg-gold, #A88A3F);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(168, 138, 63, 0.2);
}

/* =============================================================================
   About page — Sagrada Moda
   ============================================================================= */

.sg-about-body {
  background:
    radial-gradient(circle at 8% 8%, rgba(168, 138, 63, 0.12), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, #fff 56%, #fffaf0 100%);
}

.sg-about-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: var(--sg-content, 1320px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) clamp(16px, 5vw, 64px);
}

.sg-about-hero__media {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 38px;
  background: var(--sg-cream, #fffaf0);
  box-shadow: 0 30px 80px rgba(40, 30, 15, 0.14);
}

.sg-about-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(255, 250, 240, 0.84));
  pointer-events: none;
}

.sg-about-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center top;
}

.sg-about-hero__content {
  padding: clamp(10px, 2vw, 24px) 0;
}

.sg-about-kicker {
  margin-bottom: 0.8rem;
  color: var(--sg-gold, #A88A3F);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sg-about-hero h1,
.sg-about-heading h1,
.sg-about-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--sg-ink, #1c1812);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.sg-about-hero h1 {
  max-width: 11ch;
  margin: 0 0 1.25rem;
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  font-style: italic;
}

.sg-about-hero__content > p:not(.sg-about-kicker) {
  max-width: 58ch;
  color: var(--sg-muted, #6e6a61);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.75;
}

.sg-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sg-about-section {
  max-width: var(--sg-content, 1320px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) clamp(16px, 5vw, 64px);
}

.sg-about-heading {
  max-width: 820px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.sg-about-heading h1,
.sg-about-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.6rem);
}

.sg-about-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(18px, 3vw, 34px);
}

.sg-about-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(168, 138, 63, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(168, 138, 63, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(40, 30, 15, 0.08);
}

.sg-about-card--dark {
  background:
    linear-gradient(135deg, rgba(168, 138, 63, 0.24), rgba(28, 24, 18, 0.94)),
    var(--sg-ink, #1c1812);
  color: #fff;
}

.sg-about-card__number {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--sg-gold, #A88A3F);
  font-weight: 900;
  letter-spacing: 0.2em;
}

.sg-about-card--dark .sg-about-card__number {
  color: #f6df9b;
}

.sg-about-card h3 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 4rem);
  font-style: italic;
  line-height: 1;
}

.sg-about-card p {
  max-width: 62ch;
  margin: 0 0 1rem;
  color: var(--sg-muted, #6e6a61);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.78;
}

.sg-about-card--dark p {
  color: rgba(255, 255, 255, 0.82);
}

.sg-about-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: var(--sg-content, 1320px);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px) clamp(58px, 7vw, 98px);
}

.sg-about-value {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 18px;
  border: 1px solid rgba(168, 138, 63, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--sg-ink, #1c1812);
  font-size: 0.92rem;
  font-weight: 800;
}

.sg-about-value i {
  color: var(--sg-gold, #A88A3F);
}

@media (max-width: 900px) {
  .sg-about-hero,
  .sg-about-grid,
  .sg-about-values {
    grid-template-columns: 1fr;
  }

  .sg-about-hero__media,
  .sg-about-hero__media img {
    min-height: 420px;
  }

  .sg-about-hero h1 {
    max-width: 10ch;
  }
}

@media (max-width: 640px) {
  .sg-about-hero {
    padding-top: 28px;
  }

  .sg-about-hero__media {
    border-radius: 28px;
  }

  .sg-about-card {
    min-height: 0;
    border-radius: 28px;
  }
}

/* =============================================================================
   Contact page — Sagrada Moda
   ============================================================================= */

.sg-contact-body {
  background:
    radial-gradient(circle at 85% 12%, rgba(168, 138, 63, 0.14), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, #fff 54%, #fffaf0 100%);
}

.sg-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
  max-width: var(--sg-content, 1320px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 96px) clamp(16px, 5vw, 64px);
}

.sg-contact-panel,
.sg-contact-card {
  border: 1px solid rgba(168, 138, 63, 0.18);
  border-radius: 34px;
  box-shadow: 0 26px 76px rgba(40, 30, 15, 0.09);
}

.sg-contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 74px);
  background:
    radial-gradient(circle at 8% 14%, rgba(168, 138, 63, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.88));
}

.sg-contact-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(168, 138, 63, 0.26);
  border-radius: 50%;
  pointer-events: none;
}

.sg-contact-kicker {
  margin-bottom: 0.8rem;
  color: var(--sg-gold, #A88A3F);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sg-contact-panel h1 {
  max-width: 12ch;
  margin: 0 0 1.2rem;
  color: var(--sg-ink, #1c1812);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.1rem, 6vw, 6.6rem);
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.sg-contact-panel > p:not(.sg-contact-kicker) {
  max-width: 56ch;
  color: var(--sg-muted, #6e6a61);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.75;
}

.sg-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.sg-contact-whatsapp,
.sg-contact-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: var(--sg-radius-pill, 999px);
  font-weight: 900;
  text-decoration: none;
}

.sg-contact-whatsapp {
  background: var(--sg-gold, #A88A3F);
  color: #fff;
  box-shadow: 0 16px 34px rgba(168, 138, 63, 0.24);
}

.sg-contact-phone {
  border: 1px solid rgba(168, 138, 63, 0.28);
  background: rgba(255, 255, 255, 0.78);
  color: var(--sg-ink, #1c1812);
}

.sg-contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 44px);
  background:
    linear-gradient(145deg, rgba(28, 24, 18, 0.95), rgba(168, 138, 63, 0.72)),
    var(--sg-ink, #1c1812);
  color: #fff;
}

.sg-contact-card img {
  width: 132px;
  max-width: 46%;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.18));
}

.sg-contact-card h2 {
  margin: 0 0 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1;
}

.sg-contact-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.sg-contact-card div {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sg-contact-card dt {
  margin-bottom: 4px;
  color: #f6df9b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sg-contact-card dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.sg-contact-card a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.sg-contact-help {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--sg-content, 1320px);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px) clamp(62px, 8vw, 104px);
}

.sg-contact-help article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid rgba(168, 138, 63, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(40, 30, 15, 0.06);
}

.sg-contact-help i {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--sg-gold, #A88A3F);
  font-size: 1.35rem;
}

.sg-contact-help h3 {
  margin: 0 0 10px;
  color: var(--sg-ink, #1c1812);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.sg-contact-help p {
  margin: 0;
  color: var(--sg-muted, #6e6a61);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .sg-contact-hero,
  .sg-contact-help {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sg-contact-hero {
    padding-top: 28px;
  }

  .sg-contact-panel,
  .sg-contact-card {
    border-radius: 28px;
  }
}

/* ─── Mercados internacionales ─────────────────────────────────── */
.market-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-switch-label {
  color: var(--sg-muted);
  font-size: 0.85rem;
  line-height: 1;
}

.market-switch-select {
  appearance: none;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-pill);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'><path d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") no-repeat right 10px center;
  padding: 7px 28px 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sg-ink);
  cursor: pointer;
  max-width: 170px;
}

.market-switch-select:focus {
  outline: 0;
  border-color: var(--sg-gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.price-usd,
.price-cop {
  font-weight: 800;
  color: var(--sg-gold);
}

@media (max-width: 767px) {
  .market-switch-select {
    max-width: 130px;
    font-size: 0.72rem;
    padding-right: 24px;
  }
}
