/* OLYMPUS — negro y blanco del logo; cada producto trae su propio color. */
:root {
  --bg: #000;
  --ink: #fff;
  --muted: #b5b5b5;
  --surface: #121212;
  --surface-2: #1c1c1c;
  --accent: #fff;
  --on-accent: #000;
  --m: clamp(16px, 2.4vw, 32px);
  --bar-h: 64px;
  --font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* cinco tamaños */
  --t-sm: 15px;
  --t-body: 17px;
  --t-md: clamp(22px, 2.4vw, 32px);
  --t-lg: clamp(40px, 5.4vw, 84px);
  --t-xl: clamp(96px, 17vw, 300px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.5; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: #fff; color: #000; padding: 10px 14px; z-index: 100; }
.skip:focus { top: 10px; }

/* ---------- marca (logo como máscara para poder cambiarle el color) ---------- */
.mark {
  display: block; aspect-ratio: 1150 / 250; width: 112px;
  background: currentColor;
  -webkit-mask: url(img/logo-olympus.png) center / contain no-repeat;
  mask: url(img/logo-olympus.png) center / contain no-repeat;
}
.mark-xl { width: 100%; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: var(--t-body); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
  touch-action: manipulation; user-select: none;
}
.btn:hover { background: #dcdcdc; }
.btn:active { transform: scale(.97); }
.btn-full { width: 100%; }
.link {
  font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
  transition: opacity .18s var(--ease);
}
.link:hover { opacity: .7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- barra ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--m); background: var(--bg); color: var(--ink);
}
.bar-logo { justify-self: start; padding: 8px 0; }
.bar-links { display: flex; gap: 28px; font-size: var(--t-sm); font-weight: 500; }
.bar-links a { text-decoration: none; transition: opacity .18s; }
.bar-links a:hover { opacity: .65; }
.bar-cart {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 6px 0 16px; border: 0; border-radius: 999px;
  background: var(--surface-2); font-size: var(--t-sm); font-weight: 700; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s;
}
.bar-cart:hover { background: #2a2a2a; }
.bar-cart:active { transform: scale(.96); }
.cart-count {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 999px; background: #fff; color: #000; font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------- cartel fijo ---------- */
.poster { position: relative; padding-top: var(--bar-h); }
.poster-intro {
  min-height: calc(100svh - var(--bar-h));
  padding: 8px var(--m) 48px;
  display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 40px; align-items: end;
}
.intro-mark { grid-column: 1 / -1; align-self: start; width: 100%; }
.poster-intro h1 { font-size: var(--t-lg); line-height: .95; letter-spacing: -.035em; font-weight: 800; max-width: 11ch; }
.lead { font-size: var(--t-md); line-height: 1.25; letter-spacing: -.01em; max-width: 30ch; margin: 28px 0 36px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; gap: 2px; padding: 20px 22px; background: var(--surface); border-radius: 18px; }
.facts strong { font-size: var(--t-md); letter-spacing: -.02em; line-height: 1.1; }
.facts span { color: var(--muted); font-size: var(--t-sm); }

/* el escenario se queda; producto, color y nombre cambian con el scroll */
.run { position: relative; height: calc(var(--n, 5) * 75svh + 100svh - var(--bar-h)); }
.stage {
  position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; gap: 24px; padding: 8px var(--m) 28px;
  background: var(--panel, #000); color: var(--panel-ink, #fff);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.stage-mark { color: var(--panel-ink, #fff); transition: background-color .5s var(--ease); }
.slides { position: relative; min-height: 0; }
.panel {
  position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 24px;
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s .45s;
}
.panel.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s; }
.panel-img { height: 100%; max-height: 520px; width: auto; aspect-ratio: 1; min-height: 0; object-fit: cover; border-radius: 20px; }
.panel-cap {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  font-size: var(--t-body);
}
.panel.cut .panel-img { object-fit: contain; border-radius: 0; max-height: 600px; }
.dots { position: absolute; right: var(--m); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .3; transition: opacity .3s, transform .3s var(--ease); }
.dots i.on { opacity: 1; transform: scale(1.4); }
.panel-cap h2 { font-size: var(--t-md); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.panel-price { font-size: var(--t-md); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.panel-cap .btn { justify-self: end; background: var(--panel-ink); color: var(--panel); }
.panel-cap .btn:hover { opacity: .85; }

/* ---------- catálogo ---------- */
.catalog { padding: 160px var(--m) 120px; }
.catalog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.catalog-head h2, .sheets-title, .faq h2 { font-size: var(--t-lg); line-height: .95; letter-spacing: -.035em; font-weight: 800; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); color: var(--ink); font-size: var(--t-sm); font-weight: 700;
  transition: background-color .18s, color .18s, transform .18s var(--ease);
}
.chip:hover { background: #2a2a2a; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: #fff; color: #000; }
.chip small { font-size: var(--t-sm); opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }

.catalog-list { display: grid; gap: 12px; }
.item {
  display: grid; grid-template-columns: minmax(200px, 3fr) 5fr 3fr; gap: 40px; align-items: center;
  padding: 16px; background: var(--surface); border-radius: 24px;
  transition: background-color .25s var(--ease);
}
.item:hover { background: var(--surface-2); }
.item[hidden] { display: none; }
.item-img { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; }
.item-img.cut { background: var(--tile, #eee); }
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.item-img.cut img { object-fit: contain; padding: 9%; }
.item-price.tbd { font-size: var(--t-md); line-height: 1.1; }
.item:hover .item-img img { transform: scale(1.04); }
.item-cat { color: var(--muted); font-size: var(--t-sm); }
.item h3 { font-size: var(--t-md); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 4px 0 12px; }
.item-desc { max-width: 42ch; }
.item-list { margin: 12px 0 0; color: var(--muted); font-size: var(--t-sm); }
.item-buy { display: grid; gap: 16px; justify-items: start; padding-right: 16px; }
.item-price { font-size: var(--t-lg); line-height: 1; letter-spacing: -.04em; font-weight: 800; font-variant-numeric: tabular-nums; }
.item-sup { color: var(--muted); font-size: var(--t-sm); }
.legal-note { color: var(--muted); font-size: var(--t-sm); margin-top: 24px; }

/* ---------- hojas apiladas ---------- */
.sheets { padding: 120px var(--m) 0; display: grid; gap: 12px; }
.sheets-title { margin-bottom: 36px; }
.sheet {
  height: min(64svh, 600px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  border-radius: 28px; overflow: hidden; background: var(--sheet); color: var(--sheet-ink);
}
.sheet-1 { --sheet: #f2661c; --sheet-ink: #000; }
.sheet-2 { --sheet: #ececec; --sheet-ink: #000; }
.sheet-2 .sheet-img { order: -1; }
.sheet-3 { --sheet: #eaa3bd; --sheet-ink: #000; }
.sheet-text { padding: 32px 36px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.sheet h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.03em; font-weight: 800; }
.sheet p { font-size: 19px; max-width: 36ch; line-height: 1.45; }
.sheet-img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 35%; }
.sheet-img.cut { object-fit: contain; padding: 6%; max-height: 64svh; }

/* ---------- un verbo a la vez ---------- */
.verbs { margin-top: 0; }
.verbs { margin-top: 160px; }
.verb {
  background: var(--vb); color: var(--vi); padding: 64px var(--m);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px;
}
.verb .verb-word { text-align: left; }
.verb .verb-line { padding-bottom: 2vw; }
.verb-1 { --vb: #fff; --vi: #000; }
.verb-2 { --vb: #f2661c; --vi: #000; }
.verb-3 { --vb: #3f7d2c; --vi: #fff; }
.verb-4 { --vb: #eaa3bd; --vi: #000; }
.verb-word { font-size: var(--t-xl); line-height: .85; letter-spacing: -.055em; font-weight: 900; text-align: center; }
.verb-line { font-size: var(--t-md); line-height: 1.2; letter-spacing: -.01em; max-width: 26ch; }

/* ---------- preguntas ---------- */
.faq { display: grid; grid-template-columns: 5fr 1fr 6fr; padding: 160px var(--m) 160px; background: var(--surface); }
.faq-col { grid-column: 1; }
.faq h2 { font-size: clamp(36px, 3.4vw, 52px); }
.faq-facts { list-style: none; padding: 0; margin: 24px 0 40px; display: grid; gap: 4px; font-size: 18px; }
.faq-list { display: grid; gap: 8px; margin-bottom: 40px; }
.faq details { border-radius: 16px; background: var(--surface-2); transition: background-color .2s; }
.faq details[open] { background: #242424; }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 16px 52px 16px 20px; position: relative;
  font-size: 19px; font-weight: 700; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 20px; color: #d6d6d6; max-width: 56ch; }
.faq-media { grid-column: 3; position: relative; margin: -220px 0 80px; }
.faq-tall { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; position: sticky; top: calc(var(--bar-h) + 24px); }
.faq-square { position: absolute; left: -40px; bottom: -40px; width: 36%; aspect-ratio: 1; object-fit: contain; padding: 4%; background: #1d2756; border-radius: 18px; border: 8px solid var(--surface); }

/* ---------- contacto ---------- */
.contact {
  background: #fff; color: #000;
  padding: 96px var(--m) 32px;
  display: grid; gap: 64px;
}
.contact-lead { font-size: var(--t-md); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; max-width: 22ch; }
.contact-big {
  justify-self: start;
  font-size: clamp(64px, 16.5vw, 300px); line-height: .85; letter-spacing: -.06em; font-weight: 900;
  text-decoration: none; transition: opacity .25s var(--ease);
}
.contact-big:hover { opacity: .6; }
.contact-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--t-sm); }
.socials { display: flex; gap: 24px; }

/* ---------- pie ---------- */
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px;
  padding: 120px var(--m) 30px; font-size: var(--t-sm); color: var(--muted);
}
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-year { justify-self: end; }

/* ---------- carrito ---------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s var(--ease); }
.cart-backdrop.on { opacity: 1; }
.cart {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(460px, 100vw);
  background: #fff; color: #000; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; overscroll-behavior: contain;
  transition: transform .4s var(--ease), visibility 0s .4s;
}
.cart.open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; box-shadow: -20px 0 60px rgba(0,0,0,.35); /* taste-skill-ignore: panel flotante */ }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; }
.cart-head h2 { font-size: var(--t-md); font-weight: 800; letter-spacing: -.02em; }
.cart-close { border: 0; background: #eee; border-radius: 999px; min-height: 40px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.cart-close:hover { background: #ddd; }
.cart-items { flex: 1; overflow-y: auto; padding: 0 24px; display: grid; align-content: start; gap: 12px; }
.cart-empty { color: #555; padding: 24px 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.line-name { font-weight: 700; font-size: var(--t-sm); line-height: 1.25; }
.line-price { font-size: var(--t-sm); color: #444; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; background: #eee; border-radius: 999px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; font-weight: 700; cursor: pointer; border-radius: 999px; }
.qty button:hover { background: #ddd; }
.qty span { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.cart-form { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: #f3f3f3; }
.cart-form label { display: grid; gap: 4px; font-size: var(--t-sm); font-weight: 700; }
.cart-form input { min-height: 46px; padding: 0 14px; border: 2px solid transparent; border-radius: 12px; background: #fff; font-size: 16px; font-weight: 400; }
.cart-form input:focus { outline: none; border-color: #000; }
.cart-total { display: flex; justify-content: space-between; font-size: var(--t-body); margin-bottom: 4px; }
.cart-form .btn { background: #000; color: #fff; margin-top: 6px; }
.cart-form .btn:hover { background: #222; }
.cart-note { font-size: var(--t-sm); color: #444; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 140%);
  background: #fff; color: #000; padding: 14px 20px; border-radius: 999px; font-weight: 700; font-size: var(--t-sm);
  transition: transform .35s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.4); /* taste-skill-ignore: aviso flotante */
}
.toast.on { transform: translate(-50%, 0); }

/* ---------- entradas ---------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }
.panel.on .panel-img { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.035) rotate(-.6deg); } }

/* ---------- tablet / celular ---------- */
@media (max-width: 900px) {
  .bar-links { display: none; }
  .bar { grid-template-columns: 1fr auto; }
  .poster-intro { grid-template-columns: 1fr; gap: 32px; }
  .item { grid-template-columns: 1fr 1fr; gap: 24px; }
  .item-buy { grid-column: 2; padding: 0 0 8px; }
  .item-info { grid-column: 2; grid-row: 1; }
  .item-img { grid-row: 1 / span 2; }
  .faq { grid-template-columns: 1fr; padding: 120px var(--m); }
  .faq-col { grid-column: 1; grid-row: 2; }
  .faq-media { grid-column: 1; grid-row: 1; margin: 0 0 72px; }
  .faq-tall { aspect-ratio: 4 / 5; position: static; }
  .faq-square { left: auto; right: 16px; bottom: -36px; width: 38%; }
  .foot { grid-template-columns: 1fr; gap: 8px; padding-top: 96px; }
  .foot-year { justify-self: start; }
}
@media (max-width: 600px) {
  :root { --bar-h: 58px; --t-body: 16px; }
  .bar-cart { padding-left: 14px; }
  .poster-intro { min-height: auto; padding-bottom: 64px; }
  .lead { font-size: 20px; }
  .panel { grid-template-rows: auto auto; align-content: center; }
  .panel-img { height: auto; width: 100%; max-height: none; max-width: min(100%, 48svh); }
  .btn { white-space: nowrap; padding: 0 20px; }
  .dots { right: 8px; }
  .panel-cap { grid-template-columns: 1fr auto; }
  .panel-cap h2 { grid-column: 1 / -1; }
  .item { grid-template-columns: 1fr; padding: 12px; gap: 16px; }
  .item-img, .item-info, .item-buy { grid-column: 1; grid-row: auto; }
  .item-info { padding: 0 8px; }
  .item-buy { grid-template-columns: 1fr auto; align-items: center; padding: 0 8px 8px; width: 100%; }
  .item-sup { grid-column: 1 / -1; }
  .item-price { font-size: 28px; }
  .sheets { padding-top: 96px; }
  .sheet { grid-template-columns: 1fr; height: auto; gap: 0; border-radius: 22px; }
  .sheet-img { order: -1; aspect-ratio: 4 / 3; height: auto; }
  .sheet-text { padding: 18px 20px 28px; gap: 16px; }
  .sheet h3 { font-size: 24px; }
  .sheet p { font-size: 17px; }
  .verb-word { font-size: 24vw; }
  .verb { grid-template-columns: 1fr; padding: 48px 16px; }
  .verbs { margin-top: 96px; }
  .verb-line { font-size: 20px; }
  .contact-big { font-size: 18vw; }
  .contact-foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .panel.on .panel-img { animation: none; }
  .panel, .stage { transition: none; }
  .cart, .toast, .cart-backdrop { transition: none; }
}
