/* ==========================================================================
   ALMA LICORES — Propuesta 2 · Pixel-perfect (referente editorial)
   Reglas: rounded-none, sin shadow-2xl, sin degradados neon
   ========================================================================== */

:root {
  --cream: #f2efe0;
  --cream-soft: #f7f4ee;
  --border-chip: #ddd7cd;
  --ink: #242426;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;

  --font-display: "Denton", "Cormorant Garamond", "Times New Roman", serif;
  --font-brand: "Denton", "Times New Roman", serif;
  --font-sans: "Systemia", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad-x: 3rem; /* px-12 */
  --header-py: 1.5rem; /* py-6 */
  --header-h: 5.75rem;
  --bottle-h: min(52vh, 420px);
  --bottle-max-w: min(58vw, 280px);

  /* Ajuste manual de "Roble Blanco 2.png" — la botella dentro de ese PNG
     NO esta centrada (esta corrida a la izquierda/abajo), asi que se
     compensa con estas 2 RATIOS (no px fijos). --bottle-h cambia en cada
     breakpoint (720px, 480px, 780px, etc.), asi que si el offset fuera un
     px fijo se desfasa al cambiar de tamano de pantalla. Al multiplicar
     por --bottle-h, el desplazamiento escala junto con la sombra y se
     mantiene correcto en cualquier resolucion.
     --shadow-x-ratio : desplazamiento horizontal (+ derecha / - izquierda)
                        como fraccion de --bottle-h (0.4167 = 200px/480px)
     --shadow-y-ratio : desplazamiento vertical (+ abajo / - arriba)
                        como fraccion de --bottle-h (-0.0375 = -18px/480px)
     --shadow-scale   : tamano de la sombra respecto a la botella (1 = 100%) */
  --shadow-x-ratio: 0.325;
  --shadow-y-ratio: -0.0265;
  --shadow-x: calc(var(--bottle-h) * var(--shadow-x-ratio));
  --shadow-y: calc(var(--bottle-h) * var(--shadow-y-ratio));
  --shadow-scale: 1;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-theater: cubic-bezier(0.76, 0, 0.24, 1);
  --radius: 0;
  --intro-ink: #1a1a18;
  --intro-cream: #f2efe0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-introing {
  overflow: hidden;
}

/* ==========================================================================
   INTRO — bipanel editorial (abre a los lados; no cortina vertical como P1)
   ========================================================================== */

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.intro__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: var(--intro-ink);
  transition: transform 1.05s var(--ease-theater);
  will-change: transform;
}

.intro__panel--left {
  left: 0;
  transform: translateX(0);
}

.intro__panel--right {
  right: 0;
  transform: translateX(0);
}

body.is-revealed .intro__panel--left {
  transform: translateX(-102%);
}

body.is-revealed .intro__panel--right {
  transform: translateX(102%);
}

.intro__center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  padding: 2rem;
  transition:
    opacity 0.45s var(--ease),
    visibility 0s linear 0.5s;
}

body.is-revealed .intro__center {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__alma {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--intro-cream);
  opacity: 0;
  transform: translateY(0.55rem);
  animation: intro-rise 0.75s var(--ease) 0.12s forwards;
}

.intro__rule {
  display: block;
  width: 0;
  height: 1px;
  background: color-mix(in srgb, var(--intro-cream) 55%, transparent);
  animation: intro-rule 0.7s var(--ease) 0.35s forwards;
}

.intro__licores {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--intro-cream) 78%, transparent);
  opacity: 0;
  transform: translateY(0.4rem);
  animation: intro-rise 0.7s var(--ease) 0.48s forwards;
}

.intro__tag {
  margin: 1.1rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--intro-cream) 42%, transparent);
  opacity: 0;
  animation: intro-rise 0.65s var(--ease) 0.7s forwards;
}

@keyframes intro-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-rule {
  to {
    width: clamp(3.5rem, 12vw, 6rem);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
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;
}

/* --------------------------------------------------------------------------
   Header — links cerca del logo; iconos anclados a la esquina derecha
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 30;
  background: var(--cream);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: var(--header-py) var(--pad-x);
  min-height: var(--header-h);
}

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

/* Links empujados hacia el logo (centro), no a los bordes */
.nav-left {
  justify-self: end;
  padding-right: clamp(1.25rem, 2.5vw, 2.5rem);
}

.nav-right {
  justify-self: stretch;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: clamp(1.25rem, 2.5vw, 2.5rem);
  gap: 1rem;
  box-sizing: border-box;
}

.nav-left__list,
.nav-right__list {
  display: none;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.nav-left__list a,
.nav-right__list a {
  font-family: var(--font-sans);
  font-size: 0.9rem; /* +10% sobre 0.8125 */
  font-weight: 300; /* Systemia Light + trazo mínimo (~5% óptico) */
  -webkit-text-stroke: 0.022em currentColor;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity 0.3s var(--ease);
}

.nav-left__list a:hover,
.nav-right__list a:hover,
.nav-left__list a:focus-visible,
.nav-right__list a:focus-visible {
  opacity: 0.55;
  outline: none;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto; /* esquina derecha */
  flex-shrink: 0;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ink);
  transition: opacity 0.3s var(--ease);
}

.nav-icon svg {
  width: 24px;
  height: 24px;
}

.nav-icon:hover,
.nav-icon:focus-visible {
  opacity: 0.55;
  outline: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 1.75rem;
  height: 1.75rem;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Logo — Denton Bold, mas fuerza */
.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  line-height: 1;
}

.brand__alma {
  font-family: var(--font-brand);
  font-size: 1.925rem; /* +10% sobre 1.75 */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand__licores {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px; /* +10% sobre 11 */
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  border-top: 1px solid var(--border-chip);
  padding: 1.25rem var(--pad-x) 1.75rem;
  background: color-mix(in srgb, var(--cream) 96%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(36, 36, 38, 0.08);
  /* Overlay: no empuja el hero hacia abajo */
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--border-chip);
}

/* --------------------------------------------------------------------------
   Page / Hero — viewport composition (sin scroll)
   -------------------------------------------------------------------------- */

.page {
  height: calc(100svh - var(--header-h));
  overflow: hidden;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0 var(--pad-x) 1.25rem;
}

.hero__body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 5;
  max-width: 18rem;
  padding-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(0.6rem);
}

body.is-revealed .hero__copy {
  animation: rise 0.85s var(--ease) 0.08s forwards;
}

.hero__title {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero__title-line {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.875rem 1.75rem; /* py-3.5 px-7 */
  background: #181816;
  color: #fff;
  border: 1px solid #181816;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.75rem; /* text-xs */
  font-weight: 300; /* Systemia Light — mismo peso que menús */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: #181816;
  outline: none;
}

.btn__arrow {
  font-size: 0.95em;
  line-height: 1;
  transform: translateY(-0.5px);
}

/* --------------------------------------------------------------------------
   Bottle — monumental, centrada en su columna (no pegada al borde)
   -------------------------------------------------------------------------- */

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(0.85rem);
}

body.is-revealed .hero__stage {
  animation: rise 1s var(--ease) 0.18s forwards;
}

.product {
  position: relative;
  margin: 0;
  width: fit-content;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-height: 100%;
}

/* Carrusel: las 3 botellas apiladas; solo .is-active es visible */
.product__carousel {
  position: relative;
  z-index: 2;
  height: var(--bottle-h);
  width: var(--bottle-max-w);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.product__img {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  height: var(--bottle-h);
  width: auto;
  max-width: var(--bottle-max-w);
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.18) brightness(0.95) saturate(1.02);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: opacity;
}

.product__img.is-active {
  opacity: 1;
  z-index: 3;
}

/* Sombra del objeto — mismo alto que la botella; ancho libre.
   multiply elimina el fondo blanco del PNG (no tiene alpha real), asi el
   "corte" rectangular desaparece contra el crema del hero.
   translate(-50%, 0) centra el LIENZO del PNG bajo la botella; como la
   botella dentro de "Roble Blanco 2.png" no esta centrada en su lienzo,
   se suma el ajuste manual --shadow-x / --shadow-y / --shadow-scale
   (variables definidas en :root, arriba del archivo). */
.product__shadow-img {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  height: var(--bottle-h);
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  transform: translate(calc(-50% + var(--shadow-x)), var(--shadow-y))
    scale(var(--shadow-scale));
  transform-origin: center bottom;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Badges — 1px #DDD7CD
   -------------------------------------------------------------------------- */

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.25rem;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(0.6rem);
}

body.is-revealed .hero__foot {
  animation: rise 0.8s var(--ease) 0.35s forwards;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-chip);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--cream-soft) 70%, transparent);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-700);
  line-height: 1.3;
}

.chip__sep {
  color: var(--stone-500);
  font-weight: 400;
  margin: 0 0.15rem;
}

.chip__mark {
  display: inline-flex;
  color: var(--stone-700);
  flex-shrink: 0;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro__panel,
  .intro__center {
    transition: none !important;
  }

  .intro__alma,
  .intro__licores,
  .intro__tag,
  .intro__rule {
    animation: none !important;
    opacity: 1;
    transform: none;
    width: clamp(3.5rem, 12vw, 6rem);
  }

  .hero__copy,
  .hero__stage,
  .hero__foot {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .product__img {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Desktop composition (referente)
   -------------------------------------------------------------------------- */

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-left__list,
  .nav-right__list {
    display: flex;
  }

  /* Full-width: links hacia el logo, iconos a la esquina */
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    max-width: none;
    gap: 0;
  }

  .nav-left {
    justify-self: end;
    padding-right: clamp(1.5rem, 3vw, 3rem);
  }

  .nav-right {
    justify-self: stretch;
    width: 100%;
    padding-left: clamp(1.5rem, 3vw, 3rem);
  }

  .nav-left__list,
  .nav-right__list {
    gap: clamp(1.25rem, 2vw, 1.75rem);
  }

  .nav-left__list a,
  .nav-right__list a {
    font-size: clamp(0.85rem, 1.05vw, 0.95rem);
    font-weight: 300;
    letter-spacing: 0.15em;
  }

  .brand__alma {
    font-size: clamp(2.15rem, 2.6vw, 2.65rem);
    font-weight: 700;
  }

  .brand__licores {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.38em;
  }

  .nav-icons {
    margin-left: auto;
    gap: 1.15rem;
  }

  .nav-icon,
  .nav-icon svg {
    width: 26px;
    height: 26px;
  }

  .page {
    overflow: visible; /* sin máscara sobre la sombra; el body bloquea scroll */
  }

  .hero {
    overflow: visible;
  }

  .hero__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.15rem, 1vw, 0.65rem);
    overflow: visible;
  }

  .hero__copy {
    max-width: 28rem;
    align-self: center;
    justify-self: end; /* bloque de texto hacia el centro */
    padding-bottom: 2vh;
    margin-right: clamp(1.25rem, 4vw, 3.25rem);
  }

  .hero__title {
    font-size: clamp(3.5rem, 5.2vw, 5.5rem);
    font-weight: 500;
    margin-bottom: 1.75rem;
  }

  .hero__stage {
    justify-content: flex-start; /* botella hacia el centro */
    justify-self: start;
    align-self: center; /* misma referencia vertical que el título (no baja en pantallas altas/2K) */
    padding-right: 0;
    margin-left: clamp(1.25rem, 4vw, 3.25rem);
    margin-bottom: 0;
    overflow: visible;
  }

  :root {
    --bottle-h: min(78vh, 720px);
    --bottle-max-w: min(38vw, 440px);
  }
}

/* Laptops / pantallas medias */
@media (min-width: 900px) and (max-width: 1100px) {
  .nav-left {
    padding-right: 1.1rem;
  }

  .nav-right {
    padding-left: 1.1rem;
  }

  .nav-left__list,
  .nav-right__list {
    gap: 0.9rem;
  }

  .nav-left__list a,
  .nav-right__list a {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .brand__alma {
    font-size: 1.95rem;
  }

  .brand__licores {
    font-size: 11px;
    letter-spacing: 0.3em;
  }

  :root {
    --bottle-h: min(72vh, 560px);
    --bottle-max-w: min(36vw, 340px);
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  :root {
    --header-h: 4.75rem;
    --header-py: 0.85rem;
  }

  .hero__copy {
    padding-bottom: 1vh;
  }

  .hero__title {
    font-size: clamp(2.6rem, 4.2vw, 3.5rem);
    margin-bottom: 1.15rem;
  }

  :root {
    --bottle-h: min(68vh, 480px);
    --bottle-max-w: min(32vw, 300px);
  }

  .btn {
    padding: 0.95rem 1.35rem;
  }

  .chip {
    padding: 0.5rem 0.75rem;
    font-size: 0.5625rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --pad-x: 3.5rem;
  }

  .hero__copy {
    max-width: 30rem;
    margin-right: clamp(1.75rem, 5vw, 4rem);
  }

  .hero__stage {
    margin-left: clamp(
      3rem,
      7vw,
      12rem
    ); /* un poco mas a la derecha solo en pantallas grandes */
  }

  .hero__title {
    font-size: clamp(4.25rem, 5vw, 5.85rem);
  }

  :root {
    --bottle-h: min(80vh, 780px);
    --bottle-max-w: min(36vw, 480px);
  }
}

@media (min-width: 1600px) {
  :root {
    --pad-x: 4.5rem;
  }

  .hero {
    max-width: 1760px;
    margin: 0 auto;
  }

  .site-header__inner {
    max-width: 1760px;
  }
}

@media (max-width: 899px) {
  :root {
    --pad-x: 1.15rem;
    --header-py: 0.75rem;
    --header-h: 4.25rem;
  }

  .nav-left {
    justify-self: start;
    padding-right: 0;
  }

  .nav-right {
    justify-self: end;
    width: auto;
    padding-left: 0;
    justify-content: flex-end;
  }

  .hero {
    padding-bottom: 0.85rem;
  }

  .hero__copy {
    max-width: 100%;
    padding-bottom: 0;
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 2.75rem);
    margin-bottom: 1rem;
  }

  .hero__stage {
    justify-content: center;
  }

  :root {
    --bottle-h: min(42vh, 340px);
    --bottle-max-w: min(55vw, 240px);
  }

  /* Igual que en desktop: overflow visible en estos 3 contenedores para que
     la sombra no se corte contra un borde interno (pad-x); el recorte real
     ocurre recien en .page/body, que coincide con el borde real de pantalla
     (ahi si es invisible). Sin esto, .hero__body cortaba la sombra ~18px
     antes del borde, dejando una linea recta visible sobre el crema. */
  .hero {
    overflow: visible;
  }

  .hero__body {
    overflow: visible;
  }

  .hero__foot {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .chip {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 899px) and (max-height: 760px) {
  .hero__title {
    font-size: clamp(1.65rem, 5vw, 2.15rem);
    margin-bottom: 0.75rem;
  }

  .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.65rem;
  }

  :root {
    --bottle-h: min(38vh, 260px);
    --bottle-max-w: min(48vw, 200px);
  }

  .hero__foot {
    display: none;
  }
}

@media (max-width: 899px) and (max-height: 760px) and (orientation: landscape) {
  .hero__body {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  }

  :root {
    --bottle-h: min(55vh, 260px);
    --bottle-max-w: 34vw;
  }
}
