@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-soft: #121214;
  --surface: rgba(23, 23, 25, .88);
  --surface-strong: #19191c;
  --surface-2: #222226;
  --text: #f5f3ed;
  --muted: #aaa6a0;
  --line: rgba(255,255,255,.09);
  --gold: #d9a72d;
  --gold-2: #f4cf63;
  --gold-dark: #8f6514;
  --danger: #ee6b6b;
  --success: #60c790;
  --warning: #e6b95a;
  --shadow: 0 22px 60px rgba(0,0,0,.28);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.18);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1240px;
  --header: 74px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f2e8;
  --bg-soft: #fffaf0;
  --surface: rgba(255,255,255,.9);
  --surface-strong: #ffffff;
  --surface-2: #f1eadb;
  --text: #1a1712;
  --muted: #736c63;
  --line: rgba(35,28,18,.10);
  --gold: #aa7414;
  --gold-2: #d8aa36;
  --gold-dark: #79500e;
  --shadow: 0 22px 60px rgba(65,45,12,.13);
  --shadow-soft: 0 10px 30px rgba(65,45,12,.09);
}


:root[data-theme="light"] .brand-sub {
  color:#8a5a0b;
  font-weight:800;
  text-shadow:0 1px 0 rgba(255,255,255,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(217,167,45,.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell { width: min(calc(100% - 28px), var(--max)); margin-inline: auto; }
.hidden { display: none !important; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-row {
  min-height: var(--header); display: grid; grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center;
}
.brand { display:flex; align-items:center; gap:10px; min-width:0; }
.brand img { width: 47px; height:47px; object-fit:contain; filter: drop-shadow(0 8px 14px rgba(217,167,45,.18)); }
.brand-copy { line-height:1; }
.brand-title { font-family: Georgia, serif; font-weight:800; letter-spacing:.04em; font-size:1.2rem; }
.brand-sub { margin-top:5px; font-size:.66rem; text-transform:uppercase; letter-spacing:.22em; color:var(--gold-2); }

.search-box {
  display:flex; align-items:center; gap:10px; min-width:0;
  background:var(--surface); border:1px solid var(--line); border-radius:999px;
  padding: 0 16px; min-height:46px; box-shadow: var(--shadow-soft);
}
.search-box svg { flex:0 0 auto; opacity:.72; }
.search-box input { width:100%; border:0; outline:0; background:transparent; color:var(--text); }
.search-box input::placeholder { color:var(--muted); }
.header-actions { display:flex; gap:8px; align-items:center; }
.icon-btn {
  width:44px; height:44px; border-radius:50%; border:1px solid color-mix(in srgb,var(--gold) 34%,var(--line));
  background:var(--surface); display:grid; place-items:center; cursor:pointer;
  transition:.18s ease; position:relative;
}
.icon-btn:hover { transform:translateY(-1px); border-color:color-mix(in srgb,var(--gold) 40%,var(--line)); }
.badge {
  position:absolute; right:-3px; top:-4px; min-width:20px; height:20px; padding:0 5px;
  border-radius:999px; display:grid; place-items:center; background:var(--gold); color:#111;
  font-size:.72rem; font-weight:800; border:2px solid var(--bg);
}

.category-bar { overflow:auto hidden; scrollbar-width:none; border-top:1px solid transparent; }
.category-bar::-webkit-scrollbar { display:none; }
.category-row { display:flex; gap:9px; padding:0 0 12px; min-width:max-content; }
.chip {
  border:1px solid color-mix(in srgb,var(--gold) 32%,var(--line)); background:var(--surface); color:var(--muted);
  padding:9px 14px; border-radius:999px; cursor:pointer; transition:.18s ease; font-weight:800;
}
.chip:hover, .chip.active {
  color:#16120b;
  border-color:#b97d13;
  background:linear-gradient(135deg,#f4cf63,#d9a72d);
  box-shadow:0 8px 20px rgba(217,167,45,.18);
}

.hero { margin:22px 0 36px; position:relative; overflow:hidden; border-radius:28px; border:1px solid var(--line); box-shadow:var(--shadow); min-height:360px; background:#0a0a0b; }
.hero > img:not(.hero-seal-img) { width:100%; height:100%; min-height:360px; object-fit:cover; display:block; }
/* Sello gráfico "Con toda su gloria": pequeño, al pie y a la derecha */
.hero-seal-img {
  position:absolute;
  z-index:3;
  right:clamp(18px,2.4vw,30px);
  bottom:clamp(16px,2.1vw,24px);
  width:clamp(86px,8.8vw,108px) !important;
  height:auto !important;
  min-height:0 !important;
  max-width:none;
  object-fit:contain;
  display:block;
  pointer-events:none;
  filter:drop-shadow(0 6px 16px rgba(0,0,0,.42));
}

.btn {
  border:1px solid color-mix(in srgb,var(--gold) 42%,transparent); border-radius:999px; min-height:46px; padding:0 20px; cursor:pointer; font-weight:800;
  display:inline-flex; align-items:center; justify-content:center; gap:9px; transition:.18s ease;
}
.btn:hover { transform:translateY(-1px); }
.btn:disabled { opacity:.48; cursor:not-allowed; transform:none; }
.btn-primary { color:#17120a; border-color:color-mix(in srgb,var(--gold-dark) 65%,transparent); background:linear-gradient(135deg,var(--gold-2),var(--gold)); box-shadow:0 10px 26px rgba(217,167,45,.22); }
.btn-secondary { background:var(--surface-2); border-color:color-mix(in srgb,var(--gold) 34%,var(--line)); }
.btn-ghost { background:transparent; border-color:color-mix(in srgb,var(--gold) 30%,var(--line)); color:var(--muted); }
.btn-danger { background:rgba(238,107,107,.12); color:var(--danger); border:1px solid rgba(238,107,107,.26); }
.btn.full { width:100%; }

.section { margin: 0 0 42px; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px; }
.section-head h2 { margin:0; font-size:clamp(1.35rem,3vw,2rem); font-family:Georgia,serif; font-weight:800; }
.section-head p { margin:5px 0 0; color:var(--muted); font-weight:700; }
.link-action { color:var(--gold-2); font-weight:800; white-space:nowrap; }

.product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.product-card {
  background:var(--surface); border:1px solid var(--line); border-radius:20px; overflow:hidden;
  cursor:pointer; transition:.22s ease; box-shadow:var(--shadow-soft);
}
.product-card:hover { transform:translateY(-4px); border-color:color-mix(in srgb,var(--gold) 30%,var(--line)); }
.product-media { aspect-ratio: 4 / 5; background:var(--surface-2); position:relative; overflow:hidden; }
.product-media img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.product-card:hover .product-media img { transform:scale(1.025); }
.product-placeholder { width:100%; height:100%; display:grid; place-items:center; color:var(--muted); background:linear-gradient(145deg,var(--surface-2),var(--surface)); }
.product-tags { position:absolute; left:12px; top:12px; display:flex; flex-wrap:wrap; gap:6px; }
.tag { padding:6px 9px; border-radius:999px; font-size:.7rem; font-weight:800; backdrop-filter:blur(9px); background:rgba(12,12,13,.72); color:#fff; border:1px solid rgba(255,255,255,.14); }
.tag.gold { color:#17120a; background:linear-gradient(135deg,#f5d76d,#d99d21); border:0; }
.product-body { padding:14px 15px 16px; }
.product-name { font-weight:800; margin-bottom:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.price-row { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.price { font-size:1.3rem; font-weight:900; color:var(--gold-2); }
.price-old { color:var(--muted); text-decoration:line-through; font-size:.88rem; }
.stock-note { margin-top:8px; font-size:.78rem; color:var(--muted); }

.empty-state { border:1px dashed var(--line); border-radius:22px; padding:34px; text-align:center; color:var(--muted); background:color-mix(in srgb,var(--surface) 65%,transparent); }
.empty-state strong { display:block; color:var(--text); margin-bottom:6px; }
.skeleton { border-radius:18px; min-height:330px; background:linear-gradient(90deg,var(--surface) 25%,var(--surface-2) 40%,var(--surface) 55%); background-size:250% 100%; animation:shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position:-250% 0; } }

.footer { margin-top:56px; border-top:1px solid var(--line); background:var(--bg-soft); }
.footer-grid { padding:34px 0; display:grid; grid-template-columns:1.4fr repeat(2,1fr); gap:28px; }
.footer-logo { width:78px; margin-bottom:12px; }
.footer p, .footer a { color:var(--muted); }
.footer h4 { margin:0 0 12px; }
.footer-links { display:grid; gap:8px; }
.footer-bottom { border-top:1px solid var(--line); padding:15px 0 24px; color:var(--muted); font-size:.84rem; }

.drawer-backdrop, .modal-backdrop {
  position:fixed; inset:0; background:rgba(0,0,0,.56); backdrop-filter:blur(5px); z-index:90;
  opacity:0; pointer-events:none; transition:.2s ease;
}
.drawer-backdrop.open, .modal-backdrop.open { opacity:1; pointer-events:auto; }
.drawer {
  position:fixed; z-index:100; right:0; top:0; bottom:0; width:min(460px,100%); background:var(--bg-soft);
  border-left:1px solid var(--line); box-shadow:-28px 0 70px rgba(0,0,0,.3); transform:translateX(101%); transition:.25s ease;
  display:flex; flex-direction:column;
}
.drawer.open { transform:none; }
.drawer-head { padding:18px 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.drawer-head h3 { margin:0; }
.drawer-body { flex:1; overflow:auto; padding:16px 20px; }
.drawer-foot { padding:18px 20px; border-top:1px solid var(--line); background:var(--bg-soft); }
.cart-item { display:grid; grid-template-columns:72px 1fr auto; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.cart-thumb { width:72px; aspect-ratio:1; object-fit:cover; border-radius:14px; background:var(--surface-2); }
.cart-meta strong { display:block; margin-bottom:5px; }
.cart-meta small { color:var(--muted); }
.qty { display:flex; align-items:center; gap:8px; margin-top:10px; }
.qty button { width:30px; height:30px; border-radius:50%; border:1px solid var(--line); background:var(--surface); cursor:pointer; }
.cart-remove { border:0; background:transparent; color:var(--muted); cursor:pointer; padding:4px; }
.total-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:8px 0; }
.total-row.grand { font-size:1.12rem; font-weight:900; padding-top:10px; border-top:1px solid var(--line); }

.modal {
  position:fixed; z-index:101; left:50%; top:50%; transform:translate(-50%,-48%) scale(.98);
  width:min(1060px,calc(100% - 22px)); max-height:calc(100vh - 28px); overflow:auto;
  background:var(--bg-soft); border:1px solid var(--line); border-radius:26px; box-shadow:var(--shadow);
  opacity:0; pointer-events:none; transition:.2s ease;
}
.modal.open { opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1); }
.modal-close { position:sticky; float:right; top:12px; margin:12px 12px -58px 0; z-index:4; }
.product-detail { display:grid; grid-template-columns:1.05fr .95fr; min-height:560px; }
.detail-gallery { padding:20px; }
.detail-main { border-radius:20px; overflow:hidden; background:var(--surface-2); aspect-ratio:1; }
.detail-main img { width:100%; height:100%; object-fit:cover; }
.thumb-row { display:flex; gap:9px; overflow:auto; padding-top:10px; }
.thumb { width:64px; aspect-ratio:1; flex:0 0 auto; border-radius:12px; overflow:hidden; border:2px solid transparent; cursor:pointer; background:var(--surface-2); }
.thumb.active { border-color:var(--gold); }
.thumb img { width:100%; height:100%; object-fit:cover; }
.detail-info { padding:34px 30px 30px; display:flex; flex-direction:column; }
.detail-info h2 { margin:0 0 8px; font-family:Georgia,serif; font-size:clamp(1.8rem,4vw,3rem); }
.detail-description { color:var(--muted); line-height:1.6; }
.detail-block { margin-top:20px; }
.detail-label { display:block; margin-bottom:10px; font-size:.82rem; color:var(--muted); font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.option-row { display:flex; flex-wrap:wrap; gap:8px; }
.option {
  border:1px solid var(--line); border-radius:999px; background:var(--surface); padding:9px 13px; cursor:pointer; min-width:46px; text-align:center;
}
.option.active { background:linear-gradient(135deg,var(--gold-2),var(--gold)); color:#151109; border-color:transparent; font-weight:900; }
.option:disabled { opacity:.35; cursor:not-allowed; }
.meaning-box { margin-top:22px; padding:18px; border-radius:18px; background:linear-gradient(135deg,rgba(217,167,45,.11),transparent); border:1px solid rgba(217,167,45,.22); }
.meaning-box h4 { margin:0 0 7px; color:var(--gold-2); }
.verse { margin-top:10px; font-family:Georgia,serif; font-style:italic; }
.detail-actions { margin-top:auto; display:grid; grid-template-columns:1fr 1fr; gap:10px; padding-top:22px; }

.checkout { width:min(820px,calc(100% - 22px)); }
.checkout-wrap { padding:22px; }
.stepper { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:22px; }
.step { height:7px; border-radius:999px; background:var(--surface-2); }
.step.active { background:linear-gradient(90deg,var(--gold),var(--gold-2)); }
.checkout h2 { margin:0 0 4px; font-family:Georgia,serif; }
.checkout-sub { color:var(--muted); margin-bottom:22px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field { display:grid; gap:7px; }
.field.full { grid-column:1/-1; }
.field label { font-size:.8rem; color:var(--muted); font-weight:700; }
.input, .select, .textarea {
  width:100%; min-height:48px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--text); outline:0; padding:0 14px;
  transition:.16s ease;
}
.textarea { min-height:105px; resize:vertical; padding-top:12px; }
.input:focus, .select:focus, .textarea:focus { border-color:color-mix(in srgb,var(--gold) 58%,var(--line)); box-shadow:0 0 0 3px rgba(217,167,45,.09); }
.shipping-options { display:grid; gap:10px; }
.shipping-card { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:13px; padding:16px; border-radius:18px; border:1px solid var(--line); background:var(--surface); cursor:pointer; }
.shipping-card.active { border-color:var(--gold); box-shadow:0 0 0 3px rgba(217,167,45,.08); }
.shipping-card.disabled { opacity:.5; cursor:not-allowed; }
.shipping-icon { width:44px; height:44px; border-radius:14px; background:var(--surface-2); display:grid; place-items:center; font-size:1.3rem; }
.shipping-copy strong { display:block; }
.shipping-copy small { color:var(--muted); }
.shipping-price { font-weight:900; color:var(--gold-2); }
.address-panel { margin-top:14px; padding:16px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.address-panel .row { display:flex; gap:10px; align-items:flex-end; }
.address-autocomplete { margin-top:12px; }
.address-autocomplete gmp-place-autocomplete { width:100%; }
.map-box { height:270px; border-radius:18px; overflow:hidden; margin-top:12px; background:var(--surface-2); border:1px solid var(--line); }
.address-confirm { margin-top:10px; padding:12px 14px; border-radius:14px; background:var(--surface-2); color:var(--muted); }
.quote-box { margin-top:12px; display:flex; justify-content:space-between; gap:12px; align-items:center; padding:14px; border-radius:16px; background:rgba(217,167,45,.1); border:1px solid rgba(217,167,45,.24); }
.notice { padding:12px 14px; border-radius:14px; color:var(--muted); background:var(--surface); border:1px solid var(--line); font-size:.88rem; }
.checkout-actions { display:flex; justify-content:space-between; gap:10px; margin-top:22px; }
.summary-list { display:grid; gap:10px; }
.summary-item { display:flex; justify-content:space-between; gap:16px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.summary-item small { color:var(--muted); }

.toast-stack { position:fixed; z-index:200; right:16px; bottom:16px; display:grid; gap:8px; width:min(360px,calc(100% - 32px)); }
.toast { padding:13px 15px; border-radius:15px; background:var(--surface-strong); border:1px solid var(--line); box-shadow:var(--shadow-soft); animation:toastIn .18s ease; }
.toast.success { border-color:rgba(96,199,144,.35); }
.toast.error { border-color:rgba(238,107,107,.35); }
@keyframes toastIn { from { opacity:0; transform:translateY(8px); } }

@media (max-width: 920px) {
  .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .product-detail { grid-template-columns:1fr; }
  .detail-info { padding-top:10px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --header: 66px; }
  .shell { width:min(calc(100% - 20px), var(--max)); }
  .header-row { grid-template-columns:auto 1fr auto; gap:8px; }
  .brand-copy { display:none; }
  .brand img { width:42px; height:42px; }
  .search-box { grid-column:1/-1; grid-row:2; margin-bottom:10px; min-height:43px; }
  .category-row { padding-bottom:10px; }
  .hero { min-height:300px; border-radius:22px; margin-top:12px; }
  .hero > img:not(.hero-seal-img) { min-height:300px; }
  .hero-seal-img {
    right:12px;
    bottom:12px;
    width:78px !important;
    height:auto !important;
    min-height:0 !important;
  }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  .product-card { border-radius:17px; }
  .product-body { padding:11px 11px 13px; }
  .price { font-size:1.08rem; }
  .product-name { font-size:.9rem; }
  .footer-grid { grid-template-columns:1fr; }
  .detail-gallery { padding:12px; }
  .detail-info { padding:18px 16px 20px; }
  .detail-actions { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .checkout-wrap { padding:18px 14px; }
  .checkout-actions { position:sticky; bottom:0; background:linear-gradient(180deg,transparent,var(--bg-soft) 30%); padding-top:26px; }
  .shipping-card { grid-template-columns:auto 1fr; }
  .shipping-price { grid-column:2; }
  .address-panel .row { display:grid; }
}
