/* ALMA LICORES — Propuesta 3 · Origen
   Hero oscuro: navbar + ORIGEN vertical + copy + media (still → video)
   + barra glassmorphism. Sin rounded-full, sin shadow-2xl, sin neon. */

:root {
  --bg: #0e0e10;
  --ink: #f3efea;
  --ink-muted: #a8a29e;
  --bronze: #b08968;
  --bronze-soft: rgba(176, 137, 104, 0.7);
  --gold: #c89d73;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --font-serif: "Denton", Georgia, "Times New Roman", serif;
  --font-sans: "Systemia", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 5rem;
  --bar-pad: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Stage
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: var(--header-h) 1fr;
  background: var(--bg);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 40;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left__list,
.nav-right__list {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-left__list a,
.nav-right__list a {
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #d6d3d1;
  transition: color 0.25s ease;
}

.nav-left__list a:hover,
.nav-right__list a:hover {
  color: var(--gold);
}

.nav-sep {
  font-size: 0.6875rem;
  color: rgba(214, 211, 209, 0.35);
  user-select: none;
}

.nav-bag {
  display: grid;
  place-items: center;
  color: #d6d3d1;
  transition: color 0.25s ease;
}

.nav-bag:hover {
  color: var(--gold);
}

.brand {
  --mark: clamp(2.2rem, 3.4vw, 2.65rem);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #d2c5a9;
}

.brand__logo {
  display: block;
  width: var(--mark);
  height: var(--mark);
  object-fit: contain;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--mark);
  line-height: 1;
  color: #d2c5a9;
}

.brand__alma {
  font-family: var(--font-serif);
  font-size: calc(var(--mark) * 0.44);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: inherit;
}

.brand__licores {
  margin: 0;
  font-size: calc(var(--mark) * 0.24);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: inherit;
}

.nav-toggle {
  display: none;
  width: 2rem;
  height: 1.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.nav-toggle__line {
  display: block;
  height: 1px;
  background: #d6d3d1;
  width: 100%;
}

.mobile-nav {
  position: absolute;
  z-index: 35;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(14, 14, 16, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 1.5rem 1.5rem;
}

.mobile-nav ul {
  display: grid;
  gap: 1rem;
}

.mobile-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d6d3d1;
}

/* --------------------------------------------------------------------------
   ORIGEN watermark
   -------------------------------------------------------------------------- */

.origen {
  position: absolute;
  z-index: 5;
  left: clamp(0.15rem, 1.2vw, 0.85rem);
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-family: var(--font-serif);
  font-size: clamp(5.5rem, 14vh, 9.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--bronze-soft);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.hero__copy {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding:
    clamp(2rem, 6vh, 4rem)
    clamp(2rem, 5vw, 4rem)
    clamp(5rem, 12vh, 7rem)
    clamp(7.5rem, 14vw, 11.5rem);
}

.hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__title-line {
  display: block;
}

.hero__eyebrow {
  display: none;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero__cta:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   Media (still → video)
   -------------------------------------------------------------------------- */

.hero__media {
  position: relative;
  z-index: 8;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #080809;
}

.hero__media-glow {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 8%;
  width: min(70%, 28rem);
  height: min(70%, 28rem);
  transform: translateX(-50%);
  background: radial-gradient(
    circle at center,
    rgba(180, 110, 40, 0.45) 0%,
    rgba(120, 70, 20, 0.18) 42%,
    transparent 72%
  );
  pointer-events: none;
}

.hero__video,
.hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__video {
  z-index: 2;
}

.hero__still {
  z-index: 3;
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero__media.is-playing .hero__still {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Status bar — provenance strip (01 / 02 / 03), bottom-left
   -------------------------------------------------------------------------- */

.status-bar {
  position: absolute;
  z-index: 30;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 2.5vh, 1.5rem);
  right: auto;
  width: auto;
  max-width: min(36rem, calc(100% - 2rem));
  margin: 0;
  padding: 0;
  display: block;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--gold);
}

.status-bar__facts {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}

.fact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: none;
}

.fact__index {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--bronze);
  line-height: 1;
  flex-shrink: 0;
}

.fact__body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.fact__label {
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(168, 162, 158, 0.85);
  line-height: 1;
}

.fact__value {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .nav-left__list,
  .nav-right__list {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Watermark vertical solo desktop; en móvil pasa a eyebrow */
  .origen {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(42vh, 48vh) auto;
  }

  .hero__media {
    order: -1;
    min-height: 42vh;
  }

  /* Fundido corto desde abajo: el video se ve más */
  .hero__media::after {
    content: "";
    position: absolute;
    z-index: 4;
    inset: auto 0 0;
    height: 22%;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    pointer-events: none;
  }

  .hero__media-glow {
    opacity: 0.55;
  }

  .hero__copy {
    justify-content: flex-start;
    padding: 0.85rem 1.35rem 4.25rem;
    gap: 0.75rem;
  }

  .hero__eyebrow {
    display: block;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--bronze);
    line-height: 1;
    opacity: 0.9;
  }

  .hero__title {
    font-size: clamp(2.75rem, 12vw, 3.75rem);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -0.03em;
    max-width: 10.5ch;
  }

  .hero__title-line + .hero__title-line {
    margin-top: 0.04em;
  }

  /* CTA más discreto: enlace tipográfico, no botón dominante */
  .hero__cta {
    margin-top: 0.15rem;
    padding: 0;
    border: none;
    border-bottom: 1px solid rgba(200, 157, 115, 0.45);
    border-radius: 0;
    background: transparent;
    color: rgba(243, 239, 234, 0.55);
    font-size: 0.625rem;
    letter-spacing: 0.22em;
    padding-bottom: 0.35rem;
  }

  .hero__cta:hover {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
  }

  /* Proveniencia: fila quieta abajo-izquierda, sin panel pesado */
  .status-bar {
    left: 1.15rem;
    right: auto;
    bottom: 1rem;
    max-width: calc(100% - 2.3rem);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-left: none;
    padding: 0;
  }

  .status-bar__facts {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem 1rem;
  }

  .fact {
    padding: 0;
    border: none;
    gap: 0.35rem;
    opacity: 0.42;
  }

  .fact__index {
    font-size: 0.5625rem;
    color: rgba(176, 137, 104, 0.7);
  }

  .fact__label {
    display: none;
  }

  .fact__value {
    font-size: 0.5625rem;
    letter-spacing: 0.16em;
    color: rgba(214, 211, 209, 0.9);
  }

  .fact__body {
    gap: 0;
  }
}

@media (max-width: 520px) {
  .brand {
    --mark: 2rem;
  }

  .hero {
    grid-template-rows: minmax(40vh, 46vh) auto;
  }

  .hero__media {
    min-height: 40vh;
  }

  .hero__media::after {
    height: 18%;
  }

  .hero__copy {
    padding: 0.65rem 1.15rem 3.75rem;
    gap: 0.6rem;
  }

  .hero__eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.36em;
  }

  .hero__title {
    font-size: clamp(2.5rem, 13vw, 3.15rem);
    max-width: none;
  }

  .hero__cta {
    font-size: 0.5625rem;
    letter-spacing: 0.18em;
    margin-top: 0.1rem;
  }

  .status-bar {
    left: 1.15rem;
    bottom: 0.85rem;
  }

  .fact {
    opacity: 0.38;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__still {
    transition: none;
  }
}
