/* Olympo.Shop — estilos compartidos del sitio público */

:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --bg-4: #262626;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .2);
  --ink: #f5f5f5;
  --ink-2: #bdbdbd;
  --muted: #8c8c8c;
  --accent: #ffffff;
  --accent-2: #e5e5e5;
  --accent-ink: #0a0a0a;
  --stone: #e9e5dc;
  --stone-2: #d5cfc2;
  --ok: #6cc59a;
  --warn: #e4b44f;
  --danger: #ec6a55;
  --radius: 4px;
  --radius-sm: 3px;
  --ff-display: 'Montserrat', 'Helvetica Neue', Arial, sans-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(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); 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(--accent); color: var(--accent-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: 500 11px/1 var(--ff); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.display { font-family: var(--ff-display); letter-spacing: .02em; }

.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Enlaces destacados (blancos, subrayado animado) ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink); white-space: nowrap;
  font: 600 12px/1 var(--ff); letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s var(--ease), opacity .2s, color .2s;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover { background-size: 35% 1px; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow.is-muted { color: var(--ink-2); }
.link-arrow.is-muted:hover { color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 30px; border-radius: 2px; border: 1px solid transparent;
  font: 600 12px/1 var(--ff); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-light { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 11px; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; position: relative; transition: background .2s, border-color .2s, opacity .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- 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, 10, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.has-promo { --promo-h: 34px; --header-h: 106px; }
.promo-bar {
  display: flex; align-items: center; justify-content: center; height: var(--promo-h); padding: 0 16px;
  background: #fff; color: #0a0a0a; font: 600 11px/1.2 var(--ff); letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-inner { height: calc(100% - var(--promo-h, 0px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: 1440px; }
.header-left { display: flex; align-items: center; gap: 8px; justify-self: start; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); justify-self: center; }
.brand-logo { display: inline-grid; justify-items: center; gap: 4px; }
.logo-icon { width: 40px; height: 30px; color: var(--ink); }
.brand-logo .brand-word { font: 400 12px/1 var(--ff-display); letter-spacing: .42em; margin-right: -.42em; }
.brand-logo .brand-word span { color: inherit; }
.logo-mark { width: 42px; height: 42px; color: var(--ink); }
.brand-word { font: 800 21px/1 var(--ff-display); letter-spacing: .01em; }
.brand-word span { color: var(--ink-2); }
.nav { display: flex; gap: 26px; }
.nav a { font: 500 12px/1 var(--ff); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); position: relative; padding: 8px 0; opacity: .82; transition: opacity .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav .nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 2px; justify-self: end; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-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: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.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: 1360px) {
  .nav { gap: 20px; }
  .nav a { letter-spacing: .14em; }
}
@media (max-width: 1240px) {
  .menu-btn { display: inline-grid; margin-left: -10px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; margin: 0;
    background: rgba(10, 10, 10, .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: 18px 4px; border-bottom: 1px solid var(--line); font-size: 14px; opacity: 1; }
  .nav a::after { display: none; }
  .nav .nav-extra { display: block; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 18px; }
  .logo-icon { width: 34px; height: 25px; }
  .brand-logo .brand-word { font-size: 10.5px; letter-spacing: .36em; margin-right: -.36em; }
  .header-actions .icon-btn { width: 38px; }
  .promo-bar { font-size: 10px; letter-spacing: .1em; }
}

/* ---------- Círculos de marcas ---------- */
.brand-circles {
  display: flex; gap: clamp(18px, 3.4vw, 44px); justify-content: center; overflow-x: auto; scrollbar-width: none;
  padding: 6px 4px 4px; scroll-snap-type: x proximity;
}
.brand-circles::-webkit-scrollbar { display: none; }
.bc { flex: none; display: grid; justify-items: center; gap: 8px; width: clamp(84px, 9vw, 116px); scroll-snap-align: start; color: var(--ink); }
.bc-ring {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; padding: 4px;
  border: 1px solid rgba(255, 255, 255, .28); transition: border-color .3s, transform .35s var(--ease);
}
.bc-img { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--stone); }
.bc-img img { width: 100%; height: 100%; object-fit: contain; padding: 14%; transition: transform .5s var(--ease); }
.bc-img img.is-photo { object-fit: cover; padding: 0; transform: scale(1.12); }
.bc-img img.is-logo { object-fit: cover; padding: 0; }
.bc-all { background: var(--bg-3); color: var(--ink); }
.bc-all .icon { width: 30%; height: 30%; }
.bc-name { font: 600 11px/1.2 var(--ff); letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.bc-count { font-size: 11px; color: var(--muted); margin-top: -4px; }
.bc:hover .bc-ring, .bc.is-active .bc-ring { border-color: var(--ink); border-width: 2px; padding: 3px; }
.bc:hover .bc-ring { transform: translateY(-3px); }
.bc:hover .bc-img img { transform: scale(1.08); }
.bc:hover .bc-img img.is-photo { transform: scale(1.2); }
@media (max-width: 760px) {
  .brand-circles { justify-content: flex-start; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
}

/* ---------- 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: 2px;
  font: 700 11px/1 var(--ff); letter-spacing: .08em; text-transform: uppercase;
  background: #0b0b0c; color: var(--ink);
}
.badge-accent { background: var(--accent); color: var(--accent-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(--ink-2); }
.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: 600 18px/1 var(--ff-display); letter-spacing: .14em; text-transform: uppercase; }
.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(--accent); 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(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .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-accent { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); color: var(--accent-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: 200 clamp(34px, 5vw, 60px)/1 var(--ff-display); letter-spacing: .06em; text-transform: uppercase; 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(--accent); }
.site-footer h3 { font: 600 12px/1 var(--ff); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); 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; }
}
