/* ============================================================
   OCEÁNICA · PAGINA LUZ · DESIGN SYSTEM
   Tipografía: Fraunces (display) + Space Grotesk (body) + JetBrains Mono (accent)
   Paleta: Marca Oceánica (burgundy, orange, yellow, rose, pink, cream)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Space+Grotesk:wght@300..700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Marca */
  --burgundy: #BA0F34;
  --orange:   #CF470B;
  --yellow:   #F6A91B;
  --rose:     #DE4967;
  --pink:     #F49EBB;
  --cream:    #FCF2E8;
  --sand:     #F4E8D8;
  --ink:      #1F1A1A;
  --ink-2:    #2A2626;
  --muted:    #6B6361;
  --line:     rgba(31, 26, 26, 0.12);

  /* Tipo */
  --f-display: 'Fraunces', serif;
  --f-sans:    'Space Grotesk', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Métricas */
  --container: 1380px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
  --tx: .5s var(--ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
@media (pointer: coarse) {
  body { cursor: auto; }
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; border: 0; background: transparent; color: inherit; }
@media (pointer: coarse) { button { cursor: pointer; } }

::selection { background: var(--burgundy); color: var(--cream); }

/* ============================================================
   CURSOR PERSONALIZADO
   ============================================================ */
.oc-cursor {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--burgundy);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), background .25s, border-color .25s;
  mix-blend-mode: difference;
  display: none;
}
.oc-cursor::after {
  content: "";
  position: absolute; inset: 50%;
  width: 4px; height: 4px;
  background: var(--yellow);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: all .25s var(--ease);
}
.oc-cursor.is-hover {
  width: 64px; height: 64px;
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.oc-cursor.is-hover::after { background: var(--cream); width: 6px; height: 6px; }
.oc-cursor.is-drag {
  width: 80px; height: 80px;
  background: var(--yellow);
  border-color: var(--yellow);
}
.oc-cursor.is-drag::after {
  width: 30px; height: 2px;
  background: var(--ink);
  border-radius: 0;
}
@media (hover: hover) and (pointer: fine) {
  .oc-cursor { display: block; }
}

/* ============================================================
   PAGE TRANSITION (curtain)
   ============================================================ */
.oc-curtain {
  position: fixed; inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: var(--burgundy);
  transform: translateY(100%);
  transition: transform .8s var(--ease-2);
  display: grid; place-items: center;
}
.oc-curtain.is-up { transform: translateY(0); }
.oc-curtain.is-down { transform: translateY(-100%); }
.oc-curtain .mark {
  color: var(--cream);
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(2rem, 6vw, 4rem);
  font-variation-settings: "opsz" 144;
  opacity: 0;
  transition: opacity .4s;
}
.oc-curtain.is-up .mark { opacity: 1; }

/* ============================================================
   CONTAINER & UTILITIES
   ============================================================ */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor; opacity: .6;
}
.eyebrow.no-line::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  line-height: .98;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 400;
  color: var(--burgundy);
}

.t-display {
  font-family: var(--f-display);
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: .88;
  letter-spacing: -.025em;
}
.t-h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); line-height: .96; }
.t-h2 { font-size: clamp(2rem, 4.8vw, 4rem); }
.t-h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }

.lede {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--ink-2);
  font-variation-settings: "opsz" 60;
  max-width: 60ch;
}

.mono {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .7rem;
  padding: 1.05rem 1.8rem;
  font-family: var(--f-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--burgundy);
  color: var(--cream);
  border-radius: 999px;
  transition: all .45s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform .5s var(--ease-2);
  z-index: 0;
}
.btn:hover { color: var(--yellow); }
.btn:hover::after { transform: translateY(0); }
.btn > * { position: relative; z-index: 1; }
.btn-arrow { transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost::after { background: var(--ink); }
.btn-ghost:hover { color: var(--cream); border-color: var(--ink); }

.btn-pill {
  padding: .7rem 1.15rem;
  font-size: .72rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all var(--tx);
  font-weight: 500;
  letter-spacing: .08em;
}
.btn-pill:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-pill.is-active { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }

/* ============================================================
   TOP MARQUEE / TICKER
   ============================================================ */
.oc-ticker {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .65rem 0;
  overflow: hidden;
}
.oc-ticker .track {
  display: flex; gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  animation: oc-marquee 40s linear infinite;
}
.oc-ticker span { display: inline-flex; align-items: center; gap: .55rem; }
.oc-ticker .star { color: var(--yellow); }
@keyframes oc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.oc-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 1rem 0;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.oc-nav.is-scrolled {
  background: color-mix(in oklab, var(--cream) 88%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
  padding: .65rem 0;
}
.oc-nav.theme-dark { color: var(--cream); }
.oc-nav.is-scrolled.theme-dark { color: var(--ink); }

.oc-nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.oc-brand {
  display: inline-flex; align-items: baseline; gap: .35rem;
}
.oc-brand .mark {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 90;
}
.oc-brand .mark em {
  font-style: italic;
  color: var(--burgundy);
  font-variation-settings: "opsz" 90, "wght" 400;
}
.oc-brand .tag {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .55;
  margin-left: .25rem;
}

/* ── Logo image + text fallback ───────────────────────────── */
.oc-logo-slot { align-items: center; gap: .5rem; }
.oc-asset-logo {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height .4s;
}
.oc-nav.is-scrolled .oc-asset-logo { height: 40px; }
@media (max-width: 880px) { .oc-asset-logo { height: 38px; } }
.oc-logo-slot .mark-fallback { display: none; }
.oc-logo-slot:not(:has(.oc-asset-logo)) .mark-fallback { display: inline-block; }

/* ── Photo assets that overlay a CSS-drawn mock fallback ──────
   Every .oc-asset sits in a positioned container next to a mock
   element. If the image loads it fills the slot and covers the
   mock; if it fails, onerror removes it and the mock shows.     */
.oc-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  border-radius: inherit;
}
.oc-asset-contain { object-fit: contain; }
:has(> .oc-asset) > .oc-bottle { opacity: 0; }
.ba .pane:has(> .oc-asset) .ba-pane-mock { opacity: 0; }
.oc-links {
  display: flex; gap: 2rem;
  justify-content: center;
}
.oc-links a {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  position: relative;
  padding: .4rem 0;
}
.oc-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: currentColor;
  transition: right .4s var(--ease);
}
.oc-links a:hover::after, .oc-links a.is-active::after { right: 0; }
.oc-links a.is-active { color: var(--burgundy); }

.oc-nav-r {
  display: flex; gap: .5rem; justify-content: flex-end; align-items: center;
}
.oc-ico {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: inline-grid; place-items: center;
  transition: all var(--tx);
  position: relative;
  opacity: .8;
}
.oc-ico:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); opacity: 1; }
.oc-ico .ct {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--yellow); color: var(--ink);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .62rem; font-weight: 600;
  display: inline-grid; place-items: center;
}

.oc-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid currentColor;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.oc-burger span { width: 14px; height: 1px; background: currentColor; transition: all var(--tx); }

@media (max-width: 880px) {
  .oc-links { display: none; }
  .oc-nav-inner { grid-template-columns: 1fr auto; }
  .oc-nav-r { gap: .35rem; }
  .oc-burger { display: inline-flex; }
}

/* Mobile menu */
.oc-mobile {
  position: fixed; inset: 0;
  z-index: 95;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-100%);
  transition: transform .55s var(--ease-2);
  display: flex; flex-direction: column;
  padding: 5rem var(--gutter) 2rem;
}
.oc-mobile.is-on { transform: translateY(0); }
.oc-mobile a {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 9vw, 5rem);
  padding: .65rem 0;
  border-bottom: 1px solid rgba(252, 242, 232, .15);
  display: block;
  line-height: 1;
  transition: color var(--tx), padding-left var(--tx);
}
.oc-mobile a:hover { color: var(--yellow); padding-left: 1rem; }
.oc-mobile a em { font-style: italic; color: var(--yellow); }
.oc-mobile .x {
  position: absolute; top: 1.25rem; right: var(--gutter);
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: inline-grid; place-items: center;
}
.oc-mobile .ft {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.oc-foot {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 7vw, 7rem) 0 1.5rem;
  position: relative;
}
.oc-foot-big {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(3rem, 12vw, 12rem);
  line-height: .9;
  color: var(--cream);
  font-variation-settings: "opsz" 144;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(252, 242, 232, .15);
}
.oc-foot-big em { color: var(--yellow); font-style: italic; }
.oc-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(252, 242, 232, .15);
}
@media (max-width: 880px) {
  .oc-foot-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .oc-foot-grid > div:first-child { grid-column: 1 / -1; }
}
.oc-foot h5 {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(252, 242, 232, .55);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.oc-foot ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.oc-foot a { font-size: .92rem; opacity: .8; transition: all var(--tx); }
.oc-foot a:hover { color: var(--yellow); opacity: 1; padding-left: .3rem; }
.oc-foot p { font-size: .9rem; opacity: .75; max-width: 32ch; }
.oc-foot-bot {
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(252, 242, 232, .5);
}
.oc-foot-bot a { font-family: var(--f-mono); font-size: .7rem; }

/* ============================================================
   WHATSAPP FIXED
   ============================================================ */
.oc-wa {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px rgba(37, 211, 102, .35);
  z-index: 70;
  transition: all var(--tx);
}
.oc-wa:hover { transform: scale(1.08) rotate(-6deg); }
.oc-wa::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 999px;
  border: 1px solid #25D366;
  animation: oc-pulse 2.5s var(--ease) infinite;
}
@keyframes oc-pulse {
  0% { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
[data-reveal-d="1"] { transition-delay: .08s; }
[data-reveal-d="2"] { transition-delay: .16s; }
[data-reveal-d="3"] { transition-delay: .24s; }
[data-reveal-d="4"] { transition-delay: .32s; }
[data-reveal-d="5"] { transition-delay: .4s; }

[data-split] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.6em);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-split].is-in .word {
  opacity: 1; transform: translateY(0);
}
[data-split].is-in .word:nth-child(1)  { transition-delay: .05s; }
[data-split].is-in .word:nth-child(2)  { transition-delay: .1s; }
[data-split].is-in .word:nth-child(3)  { transition-delay: .15s; }
[data-split].is-in .word:nth-child(4)  { transition-delay: .2s; }
[data-split].is-in .word:nth-child(5)  { transition-delay: .25s; }
[data-split].is-in .word:nth-child(6)  { transition-delay: .3s; }
[data-split].is-in .word:nth-child(7)  { transition-delay: .35s; }
[data-split].is-in .word:nth-child(8)  { transition-delay: .4s; }
[data-split].is-in .word:nth-child(9)  { transition-delay: .45s; }
[data-split].is-in .word:nth-child(10) { transition-delay: .5s; }

/* ============================================================
   PLACEHOLDER MEDIA
   ============================================================ */
.oc-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--burgundy) 8%, var(--sand)) 0 14px,
      var(--sand) 14px 28px);
  color: var(--ink);
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 1rem;
}
.oc-ph::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 50% 40%,
    color-mix(in oklab, var(--orange) 28%, transparent),
    transparent 70%);
}
.oc-ph > .tag {
  position: relative;
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(252, 242, 232, .92);
  padding: .3rem .55rem;
  border-radius: 4px;
  color: var(--ink);
}
.oc-ph.t-yellow { background: var(--yellow); }
.oc-ph.t-pink  {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--rose) 12%, var(--pink)) 0 14px,
      var(--pink) 14px 28px);
}

/* Bottle placeholder */
.oc-bottle {
  position: relative;
  width: 100%; aspect-ratio: 3/4;
  display: grid; place-items: center;
}
.oc-bottle .body {
  width: 56%; aspect-ratio: 1/1.5;
  border-radius: 18% 18% 24% 24% / 6% 6% 8% 8%;
  background: linear-gradient(170deg,
    color-mix(in oklab, var(--c, var(--burgundy)) 65%, #fff),
    var(--c, var(--burgundy)) 60%,
    color-mix(in oklab, var(--c, var(--burgundy)) 80%, #000) 100%);
  box-shadow:
    inset 8px -8px 24px rgba(0,0,0,.18),
    inset -8px 0 18px rgba(255,255,255,.15),
    0 30px 60px -20px rgba(31, 26, 26, .35);
  position: relative;
  display: grid; place-items: center;
  padding: 12% 8%;
}
.oc-bottle .body::before {
  content: "";
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 36%; height: 12%;
  background: color-mix(in oklab, var(--c, var(--burgundy)) 50%, #000);
  border-radius: 6px 6px 4px 4px;
}
.oc-bottle .body::after {
  content: "";
  position: absolute;
  top: 12%; left: 20%;
  width: 14%; height: 60%;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  filter: blur(2px);
}
.oc-bottle .body .lbl {
  background: var(--cream);
  width: 100%; aspect-ratio: 1/1.1;
  border-radius: 6px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: .9rem .75rem;
  border: 1px solid color-mix(in oklab, var(--c, var(--burgundy)) 20%, transparent);
  z-index: 2; position: relative;
}
.oc-bottle .body .lbl .nm {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(.9rem, 1.4vw, 1.3rem);
  line-height: 1;
  color: var(--c, var(--burgundy));
  font-variation-settings: "opsz" 60;
}
.oc-bottle .body .lbl .mt {
  font-family: var(--f-mono);
  font-size: .55rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.oc-bottle .body .lbl .ml {
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  color: var(--c, var(--burgundy));
  align-self: flex-end;
}

/* ============================================================
   ANIM HELPERS
   ============================================================ */
@keyframes oc-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes oc-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.spin-slow { animation: oc-spin 32s linear infinite; }
.spin-fast { animation: oc-spin 12s linear infinite; }

/* Drift in hero */
.drift {
  animation: oc-drift 14s ease-in-out infinite alternate;
}
@keyframes oc-drift {
  from { transform: translate(-6px, -8px); }
  to   { transform: translate(8px, 6px); }
}

/* Wave svg */
.oc-wave { width: 100%; display: block; }
.oc-wave-y { color: var(--yellow); }
.oc-wave-o { color: var(--orange); }
