/* ALMA LICORES — Propuesta 3 · Estructura B
   Full-bleed video · logo ALMA · CTA verde · spec bar
   Reglas: rounded-none, sin shadow-2xl, sin neon */

:root {
  --bg: #0a0a0c;
  --ink: #f3efea;
  --ink-soft: rgba(243, 239, 234, 0.82);
  --muted: rgba(214, 211, 209, 0.7);
  --green: #1a2b25;
  --green-logo: #1e352f;
  --green-deep: #13201c;
  --cream: #d2c4a3;
  --line: rgba(255, 255, 255, 0.14);
  --font-serif: "Denton", Georgia, "Times New Roman", serif;
  --font-sans: "Systemia", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 6.25rem;
}

*,
*::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;
}

body.is-introing {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Intro — sello + verde de marca → dissolve al cinema
   -------------------------------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, rgba(36, 61, 52, 0.55) 0%, transparent 62%),
    var(--green-deep);
  opacity: 1;
  transition: opacity 0.85s ease;
  pointer-events: none;
}

body.is-revealed .intro {
  opacity: 0;
}

.intro__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
  padding: 1.5rem;
}

.intro__logo {
  width: clamp(6.5rem, 18vw, 9.5rem);
  height: auto;
  opacity: 0;
  transform: scale(0.88);
  animation: intro-seal 1.05s ease 0.12s forwards;
}

.intro__rule {
  display: block;
  width: 0;
  height: 1px;
  background: rgba(210, 196, 163, 0.45);
  animation: intro-rule 0.7s ease 0.55s forwards;
}

.intro__tag {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(210, 196, 163, 0.72);
  opacity: 0;
  animation: intro-fade 0.7s ease 0.7s forwards;
}

.intro__line {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 3.2vw, 1.65rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  animation: intro-fade 0.75s ease 0.9s forwards;
}

@keyframes intro-seal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes intro-rule {
  to {
    width: 3.5rem;
  }
}

@keyframes intro-fade {
  to {
    opacity: 1;
  }
}

/* Reveal del hero tras el intro */
.site-header,
.hero,
.spec-bar {
  opacity: 0;
  transition: opacity 0.9s ease 0.15s;
}

body.is-revealed .site-header,
body.is-revealed .hero,
body.is-revealed .spec-bar {
  opacity: 1;
}

.hero__title {
  transform: translateY(0.6rem);
  transition: opacity 0.9s ease 0.15s, transform 0.9s ease 0.2s;
}

body.is-introing .hero__title {
  opacity: 0;
}

body.is-revealed .hero__title {
  opacity: 1;
  transform: translateY(0);
}

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 — full viewport
   -------------------------------------------------------------------------- */

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

.stage__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.stage__video {
  z-index: 1;
}

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

.stage.is-playing .stage__still {
  opacity: 0;
}

.stage__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 10, 12, 0.55) 0%, transparent 28%),
    linear-gradient(to top, rgba(10, 10, 12, 0.72) 0%, transparent 38%),
    radial-gradient(ellipse at center, transparent 35%, rgba(10, 10, 12, 0.35) 100%);
}

/* --------------------------------------------------------------------------
   Header — nav pegado al logo + línea interrumpida
   -------------------------------------------------------------------------- */

.site-header {
  --logo-size: clamp(4.25rem, 7.5vw, 5.75rem);
  --nav-gap: clamp(1.1rem, 2.2vw, 1.85rem);
  position: relative;
  z-index: 20;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr var(--logo-size) 1fr;
  align-items: center;
  column-gap: var(--nav-gap);
}

/* Degradado verde sutil del logo — solo PC */
@media (min-width: 901px) {
  .site-header {
    background-image: linear-gradient(
      180deg,
      rgba(30, 53, 47, 0.82) 0%,
      rgba(30, 53, 47, 0.55) 55%,
      rgba(30, 53, 47, 0.28) 85%,
      rgba(30, 53, 47, 0.12) 100%
    );
  }

  /* Extiende el fade bajo el header sin subir la fuerza */
  .site-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 5.5rem;
    background: linear-gradient(
      180deg,
      rgba(30, 53, 47, 0.12) 0%,
      rgba(30, 53, 47, 0.06) 40%,
      rgba(30, 53, 47, 0) 100%
    );
    pointer-events: none;
    z-index: -1;
  }
}

.nav-left,
.nav-right {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

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

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

/* Línea fina debajo del menú, cortada por el logo */
.nav-left::after,
.nav-right::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 1px;
  background: rgba(236, 228, 217, 0.28);
  pointer-events: none;
}

.nav-left::after {
  left: 0;
  right: calc(var(--nav-gap) * -0.35);
}

.nav-right::after {
  left: calc(var(--nav-gap) * -0.35);
  right: 0;
}

.nav-left__list,
.nav-right__list {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.5rem);
}

.nav-left__list a,
.nav-right__list a {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
  white-space: nowrap;
}

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

.brand {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--logo-size);
  justify-self: center;
}

.brand__logo {
  width: var(--logo-size);
  height: auto;
  display: block;
}

.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;
  width: 100%;
  background: var(--ink);
}

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

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

.mobile-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Hero title — una sola línea
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 0 1rem 2rem;
  text-align: center;
}

.hero__title {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 4.8vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.hero__title-line {
  display: inline;
}

.hero__title-line + .hero__title-line::before {
  content: "\00a0";
}

/* --------------------------------------------------------------------------
   Spec bar — paneles blur + CTA cuadrado (referencia)
   -------------------------------------------------------------------------- */

.spec-bar {
  --cta-size: clamp(7.5rem, 12vw, 9.5rem);
  --panel-h: clamp(2.75rem, 4.5vh, 3.35rem);
  position: relative;
  z-index: 20;
  width: min(58rem, calc(100% - 2rem));
  margin: 0 auto clamp(1.25rem, 3.5vh, 2.25rem);
  display: grid;
  grid-template-columns: 1fr var(--cta-size) 1fr;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: none;
  padding: calc((var(--cta-size) - var(--panel-h)) / 2) 0;
}

/* Línea horizontal que une los paneles tras el CTA */
.spec-bar__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(236, 228, 217, 0.28);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.spec-bar__panels {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.spec-bar__panels--left {
  justify-content: flex-end;
}

.spec-bar__panels--right {
  justify-content: flex-start;
}

.spec-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--panel-h);
  padding: 0 1.1rem;
  background: rgba(20, 20, 22, 0.28);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(236, 228, 217, 0.28);
}

.spec-panel__text {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
}

/* CTA cuadrado grande — sobresale de la franja */
.spec-bar__cta {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--cta-size);
  height: var(--cta-size);
  padding: 0.85rem;
  background: var(--green);
  color: var(--cream);
  border: 1px solid rgba(210, 196, 163, 0.55);
  border-radius: 0;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.spec-bar__cta-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: clamp(0.625rem, 1.1vw, 0.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
}

.spec-bar__cta-label span {
  display: block;
}

.spec-bar__cta:hover,
.spec-bar__cta:focus-visible {
  background: #243d34;
  color: #f5ecda;
  border-color: rgba(245, 236, 218, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  outline: none;
}

.spec-bar__cta:active {
  transform: translateY(-1px);
  background: var(--green-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

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

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

  .nav-toggle {
    display: flex;
  }

  .site-header {
    grid-template-columns: 2.5rem 1fr 2.5rem;
    column-gap: 0.75rem;
    background-image:
      linear-gradient(rgba(236, 228, 217, 0.28), rgba(236, 228, 217, 0.28)),
      linear-gradient(rgba(236, 228, 217, 0.28), rgba(236, 228, 217, 0.28));
    background-size:
      calc(50% - 2.6rem) 1px,
      calc(50% - 2.6rem) 1px;
    background-position:
      left bottom,
      right bottom;
    background-repeat: no-repeat;
  }

  .nav-left {
    justify-content: flex-start;
  }

  .nav-left::after,
  .nav-right::after {
    display: none;
  }

  .brand {
    justify-self: center;
  }

  .brand__logo {
    width: min(4.25rem, var(--logo-size));
  }

  /* Título arriba, dos líneas, más fuerza */
  .hero {
    align-content: start;
    justify-items: center;
    padding: 0.85rem 1rem 0;
  }

  .hero__title {
    white-space: normal;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-align: center;
    max-width: 11ch;
  }

  .hero__title-line {
    display: block;
  }

  .hero__title-line + .hero__title-line::before {
    content: none;
  }

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

  /* CTA protagonista; specs sutiles; más aire al video */
  .spec-bar {
    --cta-size: clamp(7.25rem, 34vw, 8.5rem);
    --cta-h: clamp(3.35rem, 12vw, 3.85rem);
    width: calc(100% - 1.5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem 0.35rem;
    padding: 0;
    margin-bottom: 1rem;
  }

  .spec-bar__line {
    display: none;
  }

  .spec-bar__cta {
    order: 0;
    flex: 0 0 auto;
    width: min(18rem, calc(100% - 0.5rem));
    height: var(--cta-h);
    min-width: 0;
    margin: 0 auto 0.15rem;
    padding: 0 1.25rem;
    border-width: 1.5px;
    border-color: rgba(210, 196, 163, 0.7);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }

  .spec-bar__cta-label {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.35em;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
  }

  .spec-bar__panels--left,
  .spec-bar__panels--right {
    order: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: auto;
  }

  .spec-panel {
    flex: 0 1 auto;
    height: auto;
    min-height: 0;
    padding: 0.4rem 0.7rem;
    background: rgba(12, 12, 14, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(236, 228, 217, 0.14);
    opacity: 0.55;
  }

  .spec-panel__text {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
    text-align: center;
    color: rgba(243, 239, 234, 0.75);
  }
}

@media (max-width: 520px) {
  :root {
    --header-h: 4.5rem;
  }

  .hero {
    padding-top: 0.65rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 12.5vw, 3rem);
    max-width: 10.5ch;
  }

  .spec-bar {
    --cta-h: 3.5rem;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }

  .spec-bar__cta {
    width: min(17rem, calc(100% - 0.25rem));
    height: var(--cta-h);
  }

  .spec-bar__cta-label {
    font-size: 0.625rem;
    letter-spacing: 0.18em;
  }

  .spec-panel {
    opacity: 0.45;
    padding: 0.32rem 0.55rem;
  }

  .spec-panel__text {
    font-size: 0.475rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro,
  .intro__logo,
  .intro__rule,
  .intro__tag,
  .intro__line,
  .site-header,
  .hero,
  .spec-bar,
  .hero__title {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .intro__rule {
    width: 3.5rem;
  }

  .stage__still {
    transition: none;
  }

  .spec-bar__cta {
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .spec-bar__cta:hover,
  .spec-bar__cta:focus-visible,
  .spec-bar__cta:active {
    transform: none;
  }
}
