/* Olympo.Shop — estilos compartidos del sitio público */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --bg-4: #222226;
  --line: rgba(236, 232, 223, .10);
  --line-2: rgba(236, 232, 223, .18);
  --ink: #ece8df;
  --ink-2: #bdb8ae;
  --muted: #8d897f;
  --gold: #c9a45c;
  --gold-2: #e3c88d;
  --gold-ink: #1a1306;
  --stone: #e9e5dc;
  --stone-2: #d5cfc2;
  --ok: #6cc59a;
  --warn: #e4b44f;
  --danger: #ec6a55;
  --radius: 16px;
  --radius-sm: 10px;
  --ff-display: 'Cinzel', 'Times New Roman', serif;
  --ff: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--ff);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; line-height: 1.5; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--ff); letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.display { font-family: var(--ff-display); letter-spacing: .02em; }

.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--ff); letter-spacing: .02em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 10px 30px -10px rgba(201, 164, 92, .6); }
.btn-light { background: var(--ink); color: #0b0b0c; }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .06); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; position: relative; transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .07); }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, body:not(.page-landing) .site-header {
  background: rgba(10, 10, 11, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; color: var(--ink); }
.brand-word { font: 700 19px/1 var(--ff-display); letter-spacing: .2em; }
.brand-word span { color: var(--gold); font-size: .72em; letter-spacing: .16em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: .02em; position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font: 700 11px/18px var(--ff); text-align: center;
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; margin: 0;
    background: rgba(10, 10, 11, .97); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .header-actions { margin-left: auto; }
  .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 16px; letter-spacing: .14em; }
  .logo-mark { width: 36px; height: 36px; }
}

/* ---------- Tarjeta de producto ---------- */
.p-card { display: flex; flex-direction: column; gap: 14px; position: relative; color: var(--ink); }
.p-media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #f4f1eb 0%, var(--stone) 45%, var(--stone-2) 100%);
}
.p-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .6s var(--ease); }
.p-media img.is-photo { object-fit: cover; padding: 0; }
.p-card:hover .p-media img { transform: scale(1.045) translateY(-1%); }
.p-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 700 11px/1 var(--ff); letter-spacing: .08em; text-transform: uppercase;
  background: #0b0b0c; color: var(--ink);
}
.badge-gold { background: var(--gold); color: var(--gold-ink); }
.badge-sale { background: #b3262d; color: #fff; }
.badge-out { background: rgba(11, 11, 12, .72); color: var(--ink); }
.p-sizes {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px;
  opacity: 0; transform: translateY(8px); transition: .3s var(--ease);
}
.p-card:hover .p-sizes, .p-card:focus-within .p-sizes { opacity: 1; transform: none; }
.p-sizes span { font: 600 12px/1 var(--ff); background: rgba(11, 11, 12, .85); color: var(--ink); padding: 7px 9px; border-radius: 8px; }
.p-sizes span.out { opacity: .45; text-decoration: line-through; }
.p-info { display: grid; gap: 4px; }
.p-brand { font: 600 11px/1 var(--ff); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.p-name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.p-color { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.p-color i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); }
.p-price { display: flex; gap: 10px; align-items: baseline; font-weight: 600; margin-top: 4px; }
.p-price s { color: var(--muted); font-weight: 400; font-size: 14px; }
.p-card .stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* ---------- Drawer del carrito ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease); outline: none;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 700 18px/1 var(--ff-display); letter-spacing: .14em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer-foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.sum-row strong { font-size: 20px; }
.ship-progress { padding: 14px 20px 0; font-size: 13px; color: var(--ink-2); }
.ship-progress .bar { height: 4px; border-radius: 4px; background: var(--bg-4); margin-top: 8px; overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; transition: width .5s var(--ease); }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 76px; aspect-ratio: 4 / 5; border-radius: 10px; background: var(--stone); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-thumb img.is-photo { object-fit: cover; padding: 0; }
.cart-line h4 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-line .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-line .price { font-weight: 600; font-size: 14px; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; margin-top: 10px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: rgba(255, 255, 255, .07); }
.qty button .icon { width: 16px; height: 16px; }
.qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.cart-empty { text-align: center; padding: 64px 12px; color: var(--ink-2); display: grid; gap: 16px; justify-items: center; }
.cart-empty .icon { width: 44px; height: 44px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .3s; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; width: min(980px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px;
  opacity: 0; transform: translateY(24px) scale(.98); transition: .4s var(--ease);
}
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(11, 11, 12, .7); }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .18); }
.input::placeholder { color: #6f6b64; }
.field.has-error .input, .field.has-error .select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

/* ---------- Avisos ---------- */
.toast-zone { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px;
  background: var(--ink); color: #0b0b0c; font-weight: 600; font-size: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  animation: toast-in .45s var(--ease); pointer-events: auto;
}
.toast.is-error { background: var(--danger); color: #fff; }
.toast .icon { width: 20px; height: 20px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
.notice { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-3); font-size: 14px; color: var(--ink-2); }
.notice-gold { border-color: rgba(201, 164, 92, .4); background: rgba(201, 164, 92, .08); color: var(--gold-2); }
.notice-error { border-color: rgba(236, 106, 85, .45); background: rgba(236, 106, 85, .08); color: #f4b1a5; }
.notice-ok { border-color: rgba(108, 197, 154, .45); background: rgba(108, 197, 154, .08); color: #b4e6cd; }

/* ---------- Páginas internas ---------- */
.page-top { padding: calc(var(--header-h) + 48px) 0 32px; position: relative; overflow: hidden; }
.page-top h1 { font: 700 clamp(36px, 6vw, 64px)/1 var(--ff-display); letter-spacing: .04em; margin-top: 14px; }
.page-top p { color: var(--ink-2); margin-top: 12px; max-width: 560px; }

/* ---------- Pie de página ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: #070708; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 340px; font-size: 14px; }
.footer-loc { display: flex; gap: 8px; align-items: center; color: var(--ink-2) !important; }
.footer-loc .icon { width: 18px; height: 18px; color: var(--gold); }
.site-footer h3 { font: 600 12px/1 var(--ff); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer .footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 12px; }
.site-footer .footer-grid a:not(.brand) { color: var(--ink-2); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; transition: color .2s; }
.site-footer .footer-grid a:not(.brand):hover { color: var(--ink); }
.site-footer .footer-grid a .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

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