/* ==============================================================================
   ALMA LICORES — Sistema de Diseño Global
   Cumplimiento estricto de Reglas.md:
   - Sin botones rounded-full ni sombras 2xl ni gradientes neon
   - Estética editorial de lujo, sobria, creíble y refinada
   ============================================================================== */

:root {
  /* Paleta Cinema / Nocturna */
  --cinema-bg: #0a0a0c;
  --cinema-ink: #f3efea;
  --cinema-ink-soft: rgba(243, 239, 234, 0.82);
  --cinema-green: #1a2b25;
  --cinema-green-deep: #13201c;
  --cinema-cream: #d2c4a3;
  --cinema-line: rgba(255, 255, 255, 0.14);

  /* Paleta Editorial / Cálida (Internas y Secciones Editoriales) */
  --cream: #f2efe0;
  --cream-soft: #f7f4ee;
  --cream-card: #ffffff;
  --ink: #242426;
  --ink-light: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --border-line: rgba(36, 36, 38, 0.08);
  --border-chip: #ddd7cd;
  --green: #1a2b25;
  --green-olive: #2c3529;
  --copper: #8a6b4a;

  /* Tipografías */
  --font-serif: "Denton", Georgia, "Times New Roman", serif;
  --font-sans: "Systemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Denton", "Casko Luxury", Georgia, serif;
  --font-luxury: "Casko Luxury", "Denton", serif;

  /* Espaciados y Header */
  --header-h: 5.75rem;
  --max-w: 78rem;
  --pad-x: clamp(1.25rem, 5vw, 3.5rem);

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-theater: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--cream);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

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

/* --------------------------------------------------------------------------
   Tipografía General
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, .serif-title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.15;
}

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 400;
  margin-bottom: 0.75rem;
  display: block;
}

/* --------------------------------------------------------------------------
   Botones Editoriales (Reglas: sin rounded-full, sin shadow-2xl, sin neon)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background-color: var(--green);
  color: var(--cream-soft);
  border: 1px solid var(--green);
  border-radius: 0;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .btn {
    white-space: normal;
    max-width: 100%;
    line-height: 1.35;
    padding: 0.85rem 1.35rem;
    text-align: center;
  }
}

.btn:hover {
  background-color: #243d34;
  border-color: #243d34;
  color: #fff;
}

.btn--dark {
  background-color: var(--ink);
  color: var(--cream-soft);
  border-color: var(--ink);
}

.btn--dark:hover {
  background-color: #121213;
  border-color: #121213;
}

.btn--light {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--cinema-ink);
  border: 1px solid rgba(243, 239, 234, 0.2);
}

.btn--light:hover {
  background-color: rgba(243, 239, 234, 0.16);
  border-color: rgba(243, 239, 234, 0.4);
  color: #fff;
}

.btn--outline {
  background-color: rgba(36, 36, 38, 0.03);
  color: var(--ink);
  border: 1px solid rgba(36, 36, 38, 0.16);
}

.btn--outline:hover {
  background-color: var(--ink);
  color: var(--cream-soft);
  border-color: var(--ink);
}

.btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  font-variant-emoji: text;
  transition: transform 0.25s ease;
}

.btn__arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn:hover .btn__arrow {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   Chips & Sellos de Origen
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-500);
}

.chip--coords {
  font-feature-settings: "tnum" 1;
}

.chip__sep {
  opacity: 0.4;
}

.chip--seal {
  gap: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--ink-light);
}

.chip__mark {
  display: inline-flex;
  color: var(--green-olive);
}

/* --------------------------------------------------------------------------
   Header Editorial (Para Páginas Internas)
   -------------------------------------------------------------------------- */

.site-header-editorial {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: rgba(242, 239, 224, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-line);
  padding: 1.15rem var(--pad-x);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header-editorial.is-hidden {
  transform: translateY(-100%);
}

.site-header-editorial__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header-editorial .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header-editorial .brand__logo {
  height: 2.5rem;
  width: auto;
}

.site-header-editorial .nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-header-editorial .nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-600);
  padding: 0.25rem 0;
  position: relative;
}

.site-header-editorial .nav-link:hover,
.site-header-editorial .nav-link.is-active {
  color: var(--ink);
}

.site-header-editorial .nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--green-olive);
}

/* --------------------------------------------------------------------------
   Mobile Navigation Toggle & Drawer
   -------------------------------------------------------------------------- */

.nav-toggle-btn {
  display: none;
  width: 2.25rem;
  height: 1.75rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.25rem 0;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle-btn__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 43, 37, 0.98);
  color: var(--cinema-ink);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--cinema-cream, #ece4d9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, border-color 0.2s ease, transform 0.2s ease;
}

.drawer-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.drawer-close-btn:focus {
  outline: none;
}

.drawer-close-btn:active {
  transform: scale(0.92);
}

.drawer-close-btn svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mobile-drawer__link {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  color: var(--cinema-cream);
  text-transform: uppercase;
}

.mobile-drawer__meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header-editorial .nav-menu {
    display: none;
  }
  .nav-toggle-btn {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Footer Compartido
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: #1a201c;
  color: #e5e2db;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--pad-x) 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.5fr 1.1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__brand-col .brand-logo {
  height: 2.75rem;
  width: auto;
  margin-bottom: 1.25rem;
}

.site-footer__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(229, 226, 219, 0.7);
  max-width: 22rem;
  margin: 0 0 1.5rem;
}

.site-footer__col-title {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cinema-cream);
  margin: 0 0 1.35rem;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer__list a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: rgba(229, 226, 219, 0.75);
}

.site-footer__list a:hover {
  color: #ffffff;
}

.site-footer__list--products {
  gap: 1rem;
}

.site-footer__list--products a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.site-footer__prod-brand {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(229, 226, 219, 0.92);
  transition: color 0.25s ease;
}

.site-footer__prod-name {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(229, 226, 219, 0.5);
  transition: color 0.25s ease;
}

.site-footer__list--products a:hover .site-footer__prod-brand {
  color: #ffffff;
}

.site-footer__list--products a:hover .site-footer__prod-name {
  color: rgba(229, 226, 219, 0.75);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: rgba(229, 226, 219, 0.55);
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__notice {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: rgba(229, 226, 219, 0.45);
}

.site-footer__credit a {
  color: var(--cinema-cream, #e5e2db);
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 226, 219, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-footer__credit a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 860px) {
  .site-footer {
    padding: 2.75rem var(--pad-x) 1.75rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 2rem;
  }

  .site-footer__desc {
    font-size: 0.825rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .site-footer__col-title {
    margin-bottom: 0.65rem;
    font-size: 0.65rem;
  }

  .site-footer__list {
    gap: 0.55rem;
  }

  .site-footer__list--products {
    gap: 0.75rem;
  }

  .site-footer__list a {
    font-size: 0.78rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding-top: 1.5rem;
    font-size: 0.72rem;
  }
}

/* --------------------------------------------------------------------------
   Smart Reverse-Scroll Header (Revelado sutil al hacer scroll hacia arriba)
   -------------------------------------------------------------------------- */

.smart-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 950;
  height: clamp(4.25rem, 6vh, 4.85rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background-color: rgba(10, 16, 13, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
}

.smart-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.smart-header__inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(1.1rem, 2.2vw, 1.85rem);
}

.smart-header__nav-left,
.smart-header__nav-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.smart-header__nav-left {
  justify-content: flex-end;
}

.smart-header__nav-right {
  justify-content: flex-start;
}

.smart-header__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.smart-header__list a {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 239, 234, 0.82);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.smart-header__list a:hover {
  color: #ffffff;
}

.smart-header__brand {
  display: grid;
  place-items: center;
}

.smart-header__logo {
  height: clamp(2.2rem, 3.5vw, 2.75rem);
  width: auto;
  display: block;
}

.smart-header__toggle {
  display: none;
  width: 2rem;
  height: 1.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.38rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.smart-header__toggle-line {
  display: block;
  height: 1px;
  width: 100%;
  background: #f3efea;
}

@media (max-width: 900px) {
  .smart-header {
    height: var(--header-h, 4.5rem);
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    background-color: rgba(14, 20, 16, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .smart-header__inner {
    grid-template-columns: 2.5rem 1fr 2.5rem;
    column-gap: 0.75rem;
    align-items: center;
    height: 100%;
  }

  .smart-header__nav-left {
    justify-content: flex-start;
    align-items: center;
    height: 100%;
  }

  .smart-header__nav-left .smart-header__list,
  .smart-header__nav-right .smart-header__list {
    display: none;
  }

  .smart-header__toggle {
    display: flex;
    width: 2rem;
    height: 1.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
  }

  .smart-header__toggle-line {
    display: block;
    height: 1px;
    width: 100%;
    background: #ece4d9;
  }

  .smart-header__brand {
    justify-self: center;
    display: grid;
    place-items: center;
    height: 100%;
  }

  .smart-header__logo {
    width: min(4.25rem, clamp(3rem, 5vw, 3.85rem));
    max-height: calc(var(--header-h, 4.5rem) - 1.5rem);
    height: auto;
    display: block;
    object-fit: contain;
  }
}

/* --------------------------------------------------------------------------
   Age Gate — USA 21+ (primera visita)
   -------------------------------------------------------------------------- */

html.age-gate-open,
body.age-gate-open {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}

.age-gate.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.age-gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(10, 14, 12, 0.94) 0%, rgba(19, 32, 28, 0.96) 55%, rgba(10, 10, 12, 0.97) 100%);
}

.age-gate__panel {
  position: relative;
  z-index: 1;
  width: min(30rem, 100%);
  max-width: 100%;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.25rem);
  background-color: var(--cinema-green-deep);
  border: 1px solid rgba(210, 196, 163, 0.22);
  color: var(--cinema-ink);
  text-align: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  box-sizing: border-box;
}

.age-gate__logo {
  width: 4.5rem;
  height: auto;
  margin: 0 auto 1.35rem;
  opacity: 0.95;
}

.age-gate__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cinema-cream);
  font-family: var(--font-sans);
  font-weight: 400;
}

.age-gate__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 4vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cinema-ink);
}

.age-gate__copy {
  margin: 0 auto 1.75rem;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--cinema-ink-soft);
  font-weight: 300;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.age-gate__btn,
.age-gate .btn {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.1em;
  padding: 0.9rem 1rem;
  box-sizing: border-box;
  min-width: 0;
}

.age-gate__btn--yes {
  background-color: var(--cinema-cream);
  border-color: var(--cinema-cream);
  color: var(--cinema-green-deep);
}

.age-gate__btn--yes:hover {
  background-color: #e4d7b8;
  border-color: #e4d7b8;
  color: var(--cinema-green-deep);
}

.age-gate__btn--no,
.age-gate .btn--outline {
  background: transparent;
  border-color: rgba(243, 239, 234, 0.28);
  color: var(--cinema-ink);
}

.age-gate__btn--no:hover,
.age-gate .btn--outline:hover {
  background-color: rgba(243, 239, 234, 0.08);
  border-color: rgba(243, 239, 234, 0.45);
  color: var(--cinema-ink);
}

.age-gate__denied {
  margin-bottom: 0.25rem;
}

.age-gate__denied-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cinema-cream);
}

.age-gate__denied .age-gate__copy {
  margin-bottom: 1.35rem;
}

.age-gate__legal {
  margin: 1.5rem 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: rgba(243, 239, 234, 0.45);
}

/* Botones siempre en columna: textos largos (ES) no desbordan */
