:root {
  --green: #3cb44b;
  --green-deep: #1a6b2a;
  --gold: #d4af5a;
  --gold-soft: #f0d78c;
  --ink: #0b120d;
  --cream: #f6f0e4;
  --white: #fffdf8;
  --glass: rgba(12, 18, 14, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: Outfit, system-ui, sans-serif;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  background: #07100a;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.loader img {
  width: 120px;
  height: 120px;
  animation: pulse 1.6s ease-in-out infinite;
}

.loader span {
  font-family: Cinzel, serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-soft);
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(212, 175, 90, 0)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 18px rgba(212, 175, 90, 0.45)); }
}

/* ---------- background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-layer {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: ken 28s ease-in-out infinite alternate;
}

.layer-a {
  background-image: url("../img/hero.jpg");
  animation: ken 28s ease-in-out infinite alternate, fadeA 18s ease-in-out infinite;
}

.layer-b {
  background-image: url("../img/dusk.jpg");
  opacity: 0;
  animation: ken 32s ease-in-out infinite alternate reverse, fadeB 18s ease-in-out infinite;
}

@keyframes ken {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}

@keyframes fadeA {
  0%, 42%, 100% { opacity: 1; }
  50%, 92% { opacity: 0; }
}

@keyframes fadeB {
  0%, 42%, 100% { opacity: 0; }
  50%, 92% { opacity: 1; }
}

.bg-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(8, 14, 10, 0.15), transparent 46%),
    radial-gradient(ellipse at 50% 100%, rgba(6, 10, 8, 0.88), transparent 55%),
    linear-gradient(180deg, rgba(7, 12, 9, 0.55) 0%, rgba(7, 12, 9, 0.62) 42%, rgba(7, 12, 9, 0.82) 100%);
}

.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- topbar ---------- */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6vw 0;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Cinzel, serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mini img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(212, 175, 90, 0.55);
}

.top-link {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(212, 175, 90, 0.45);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.top-link:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  padding: 2.2rem 6vw 5.5rem;
}

.hero-inner {
  width: min(760px, 100%);
  text-align: center;
  animation: rise 1.1s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.logo-wrap {
  position: relative;
  width: clamp(148px, 22vw, 210px);
  height: clamp(148px, 22vw, 210px);
  margin: 0 auto 1.5rem;
}

.logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(212, 175, 90, 0.7),
    0 0 40px rgba(60, 180, 75, 0.25);
}

.logo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(240, 215, 140, 0.35);
  animation: spinRing 18s linear infinite;
}

.logo-ring::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--gold-soft);
  border-radius: 50%;
  top: 8%;
  left: 50%;
  box-shadow: 0 0 12px var(--gold);
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--gold-soft);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
}

.eyebrow.light {
  letter-spacing: 0.26em;
}

.chakana {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

h1 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--white);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

h1 em {
  display: block;
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, #e8c56a, #fff6d4 35%, #d4af5a 70%, #fff1c2);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}

@keyframes shine {
  to { background-position: 180% center; }
}

.lead {
  margin: 0 auto 1.5rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(246, 240, 228, 0.88);
}

.grains-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0;
  margin: 0 0 1.8rem;
}

.grains-row li {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.48rem 0.9rem;
  border: 1px solid rgba(60, 180, 75, 0.45);
  background: rgba(60, 180, 75, 0.12);
  border-radius: 999px;
  color: #d8f5d4;
}

.notify {
  width: min(520px, 100%);
  margin: 0 auto;
}

.notify-box {
  display: flex;
  gap: 0.45rem;
  padding: 0.4rem;
  background: var(--glass);
  border: 1px solid rgba(240, 215, 140, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.notify input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font: 400 0.95rem Outfit, sans-serif;
  padding: 0.75rem 1rem;
  outline: none;
}

.notify input::placeholder {
  color: rgba(246, 240, 228, 0.55);
}

.notify button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font: 600 0.78rem Outfit, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, #f0d78c, #c9a24a);
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), filter 0.2s;
}

.notify button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.notify button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.hint {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: rgba(246, 240, 228, 0.58);
}

.form-msg {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.form-msg.ok {
  color: #9be7a4;
}

.form-msg.err {
  color: #ffb4a8;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 240, 228, 0.7);
}

.scroll-hint i {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 1.6s ease-in-out infinite;
}

@keyframes drip {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- origen ---------- */
.origen {
  position: relative;
  z-index: 2;
  padding: 4.5rem 6vw 5rem;
  background:
    linear-gradient(180deg, rgba(7, 12, 9, 0.2), rgba(10, 16, 12, 0.92) 12%, #101810);
}

.origen-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
}

.origen-copy h2 {
  margin: 0.4rem 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
}

.origen-copy p {
  margin: 0 0 1.4rem;
  color: rgba(246, 240, 228, 0.82);
  line-height: 1.7;
  font-weight: 300;
  max-width: 38rem;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.facts li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0 0.85rem 1rem;
  border-left: 2px solid var(--green);
}

.facts strong {
  font-family: Cinzel, serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--gold-soft);
}

.facts span {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(246, 240, 228, 0.78);
  font-weight: 300;
}

.shot-stack {
  display: grid;
  gap: 0.75rem;
}

.shot-brand {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(212, 175, 90, 0.35),
    0 0 28px rgba(60, 180, 75, 0.12);
}

.shot-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 18, 13, 0.08), transparent 28%, transparent 70%, rgba(11, 18, 13, 0.28)),
    radial-gradient(ellipse at 50% 20%, rgba(240, 215, 140, 0.08), transparent 46%);
}

.shot {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 240px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
  transition: transform 1.2s var(--ease);
}

.shot:hover img {
  transform: scale(1.06);
}

.shot figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(11, 18, 13, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 90, 0.3);
}

/* ---------- footer ---------- */
.foot {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.4rem 6vw 3rem;
  background: #0c140f;
  border-top: 1px solid rgba(212, 175, 90, 0.15);
}

.foot img {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
}

.foot p {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  color: rgba(246, 240, 228, 0.7);
}

.foot-note {
  font-size: 0.72rem !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold) !important;
}

/* ---------- responsive ---------- */
@media (min-width: 900px) {
  .origen-grid {
    grid-template-columns: 1fr 1.05fr 1fr;
    grid-template-rows: auto;
    align-items: stretch;
  }

  .origen-copy {
    padding: 1.2rem 0.4rem;
  }

  .shot-a {
    align-content: start;
  }

  .shot-a .shot img {
    min-height: 260px;
  }

  .shot-b {
    min-height: 560px;
    margin-top: 3.5rem;
  }

  .shot-b img {
    min-height: 560px;
  }
}

@media (max-width: 680px) {
  .notify-box {
    flex-direction: column;
    border-radius: 22px;
    padding: 0.55rem;
  }

  .notify button {
    width: 100%;
  }

  .topbar .brand-mini span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .bg-layer {
    transform: none;
  }
}
