:root {
  --navy: #0d1b3d;
  --navy-deep: #081128;
  --gold: #c9a24b;
  --gold-light: #e4c983;
  --cream: #faf6ee;
  --beige: #efe6d6;
  --herbal: #6f8f6a;
  --lavender: #a79bc9;
  --ink: #1c2333;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0 0 .5em; }

p { line-height: 1.65; margin: 0 0 1em; }

.eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .8em;
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: var(--gold-light); }

.section-title {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--navy);
}
.section-title--light { color: var(--cream); }

.section-lead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5em;
  color: #555f76;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: .04em;
  padding: 15px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:active { transform: scale(.97); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(201, 162, 75, .35);
}
.btn--gold:hover { box-shadow: 0 10px 30px rgba(201, 162, 75, .5); }

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

.btn--ghost {
  background: transparent;
  border-color: rgba(201, 162, 75, .5);
  color: var(--gold);
  padding: 10px 20px;
  font-size: .82rem;
}
.btn--ghost:hover { background: rgba(201, 162, 75, .12); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(8, 17, 40, .55);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: .06em;
  color: var(--gold-light);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,17,40,.35) 0%, rgba(8,17,40,.55) 55%, rgba(8,17,40,.85) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding-top: 90px;
  padding-bottom: 60px;
  max-width: 760px;
  margin: 0 auto;
}
.hero__logo-frame {
  width: 195px;
  height: 119px;
  overflow: hidden;
  margin: -26px auto 18px;
  position: relative;
  animation: heroLogoFloat 7s ease-in-out infinite;
}
.hero__logo {
  position: absolute;
  width: 220px;
  height: 220px;
  max-width: none;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 900px) {
  .hero__logo-frame { width: 234px; height: 143px; }
  .hero__logo { width: 264px; height: 264px; top: -48px; }
  .hero__title { max-width: 640px; margin-left: auto; margin-right: auto; }
}
.hero__eyebrow {
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--gold-light);
  margin-bottom: 1.2em;
}
.hero__title {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: .4em;
}
.hero__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--beige);
  margin-bottom: 2em;
}
.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 36px;
  border: 1px solid rgba(250,246,238,.5);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: scrollDot 1.8s infinite ease;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Ritual steps ---------- */
.ritual-steps { position: relative; padding: 100px 0; background: var(--cream); overflow: hidden; }
.ritual-steps > .container { position: relative; z-index: 1; }
.ritual-steps::before,
.ritual-steps::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .35;
  filter: blur(2px);
}
.ritual-steps::before { top: -80px; left: -100px; background: radial-gradient(circle, rgba(111,143,106,.25), transparent 70%); }
.ritual-steps::after { bottom: -100px; right: -90px; background: radial-gradient(circle, rgba(167,155,201,.22), transparent 70%); }

/* ---------- Botanical background accents ---------- */
.botanical {
  position: absolute;
  width: 90px;
  height: auto;
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}
.botanical--herbal { stroke: var(--herbal); }
.botanical--lavender { stroke: var(--lavender); }
.botanical--gold { stroke: var(--gold); }

.botanical--top-left { top: 30px; left: -10px; transform: rotate(-8deg); }
.botanical--top-right { top: 20px; right: -10px; transform: rotate(8deg) scaleX(-1); }
.botanical--bottom-right { bottom: -10px; right: 20px; transform: rotate(6deg); }
.botanical--bottom-left { bottom: -10px; left: 20px; transform: rotate(-6deg) scaleX(-1); }

@media (min-width: 760px) {
  .botanical { width: 130px; opacity: .2; }
}
.steps-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}
@media (min-width: 760px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.steps-grid .step-card:nth-child(1) { transition-delay: .05s; }
.steps-grid .step-card:nth-child(2) { transition-delay: .18s; }
.steps-grid .step-card:nth-child(3) { transition-delay: .31s; }
.step-card {
  background: #fff;
  border: 1px solid var(--beige);
  border-radius: 18px;
  padding: 34px 28px;
  text-align: center;
  position: relative;
  transition: transform .45s ease, box-shadow .45s ease, opacity .7s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(13,27,61,.08); }
.step-card__num {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9em;
}
.step-card h3 { color: var(--navy); font-size: 1.35rem; }
.step-card p { color: #5a6478; font-size: .95rem; margin: 0; }

/* ---------- Ingredients ---------- */
.ingredients {
  position: relative;
  padding: 110px 0;
  color: var(--cream);
  overflow: hidden;
}
.ingredients__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(.4);
}
.ingredients::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8,17,40,.82), rgba(8,17,40,.95) 55%, rgba(8,17,40,.99));
}
.ingredients .container { position: relative; z-index: 1; }
.ingredients .section-lead { color: var(--beige); }

.ingredient-cards {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-top: 3em;
}
@media (min-width: 760px) {
  .ingredient-cards { grid-template-columns: repeat(3, 1fr); }
}
.ingredient-cards .ingredient-card:nth-child(1) { transition-delay: .05s; }
.ingredient-cards .ingredient-card:nth-child(2) { transition-delay: .18s; }
.ingredient-cards .ingredient-card:nth-child(3) { transition-delay: .31s; }
.ingredient-card {
  background: rgba(250, 246, 238, .06);
  border: 1px solid rgba(201, 162, 75, .35);
  border-radius: 18px;
  padding: 30px 26px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: opacity .7s ease, transform .7s ease, border-color .3s ease;
}
.ingredient-card:hover { border-color: rgba(201, 162, 75, .7); }
.ingredient-card__pct {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: .3em;
}
.ingredient-card h3 { color: var(--cream); margin-bottom: .1em; font-size: 1.5rem; }
.ingredient-card__latin {
  font-style: italic;
  font-family: var(--serif);
  color: var(--lavender);
  font-size: .95rem;
  margin-bottom: .8em;
}
.ingredient-card p:last-child { color: var(--beige); font-size: .92rem; margin: 0; }

.ingredients__note {
  text-align: center;
  color: rgba(250,246,238,.7);
  font-size: .85rem;
  max-width: 480px;
  margin: 3em auto 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 1.6em;
}
.badge {
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--navy-deep);
  background: var(--gold-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
}

/* ---------- Pause ---------- */
.pause {
  position: relative;
  padding: 100px 0;
  background: var(--beige);
  text-align: center;
  overflow: hidden;
}
.pause::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 480px; height: 480px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,.14), transparent 70%);
  pointer-events: none;
}
.pause__inner { position: relative; z-index: 1; }
.pause__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  color: var(--navy);
  max-width: 640px;
  margin: 0 auto 1.4em;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__logo { animation: none; }
}

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--cream); }
.contact__inner { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(250,246,238,.75);
  padding: 50px 0 30px;
  text-align: center;
}
.brand--footer {
  display: block;
  margin-bottom: .5em;
  font-size: 1.5rem;
}
.site-footer p { max-width: 420px; margin: 0 auto .8em; font-size: .9rem; }
.site-footer__fine { font-size: .75rem; opacity: .6; }

/* ================= MODAL: ACTIVÁ TU RITUAL ================= */
.ritual-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(8, 17, 40, .78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.ritual-overlay.is-open { opacity: 1; visibility: visible; }

.ritual-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(201,162,75,.4);
  border-radius: 20px;
  transform: translateY(24px) scale(.97);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.ritual-overlay.is-open .ritual-modal { transform: translateY(0) scale(1); opacity: 1; }

.ritual-modal__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 22px 24px 18px;
}
.ritual-modal .eyebrow { text-align: center; margin-bottom: .4em; font-size: .64rem; }
.ritual-modal h2 { color: var(--cream); font-size: clamp(1.25rem, 5vw, 1.5rem); margin-bottom: .2em; }
.ritual-modal__text { color: var(--beige); font-size: .82rem; line-height: 1.45; margin-bottom: 1em; }

.ritual-close {
  position: absolute;
  top: 8px; right: 10px;
  z-index: 3;
  background: transparent;
  border: none;
  color: var(--beige);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  padding: 6px;
}
.ritual-close:hover { opacity: 1; }

.ritual-modal__leaf { position: absolute; opacity: .12; pointer-events: none; }
.ritual-modal__leaf--left { top: -20px; left: -30px; width: 110px; height: 110px; background: radial-gradient(circle, var(--herbal), transparent 70%); }
.ritual-modal__leaf--right { bottom: -30px; right: -30px; width: 140px; height: 140px; background: radial-gradient(circle, var(--lavender), transparent 70%); }

.field { text-align: left; margin-bottom: 10px; }
.field label {
  display: block;
  font-size: .74rem;
  color: var(--beige);
  margin-bottom: 4px;
  letter-spacing: .02em;
}
.field .req { color: var(--gold-light); }
.field .opt { color: rgba(250,246,238,.5); font-size: .72rem; }

.field input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid rgba(201,162,75,.35);
  background: rgba(250,246,238,.06);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .9rem;
  outline: none;
  transition: border-color .25s ease, background .25s ease;
}
.field input::placeholder { color: rgba(250,246,238,.35); }
.field input:focus { border-color: var(--gold); background: rgba(250,246,238,.1); }
.field input.is-invalid { border-color: #d98383; }

.field-error {
  display: block;
  min-height: 0;
  font-size: .68rem;
  color: #e29a9a;
  margin-top: 2px;
}
.field-error:empty { display: none; }

.ritual-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 34px;
}
.ritual-submit[disabled] { opacity: .6; cursor: default; }

.ritual-consent {
  font-size: .66rem;
  color: rgba(250,246,238,.55);
  margin: 10px 0 0;
  line-height: 1.4;
}

.ritual-success { text-align: center; }
.ritual-success__mark {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.ritual-success h3 { color: var(--cream); font-size: 1.2rem; margin-bottom: .3em; }
.ritual-success p { color: var(--beige); font-size: .85rem; margin-bottom: 1em; }

body.ritual-locked { overflow: hidden; }

@media (max-height: 700px) {
  .ritual-modal__inner { padding: 14px 22px 12px; }
  .ritual-modal .eyebrow { margin-bottom: .2em; }
  .ritual-modal h2 { font-size: 1.15rem; margin-bottom: .15em; }
  .ritual-modal__text { font-size: .76rem; margin-bottom: .55em; line-height: 1.35; }
  .field { margin-bottom: 6px; }
  .field label { margin-bottom: 2px; }
  .field input { padding: 8px 12px; }
  .ritual-consent { margin-top: 6px; font-size: .62rem; }
  .ritual-submit { padding: 10px 34px; }
}

@media (max-height: 620px) {
  .ritual-modal__text { display: none; }
  .field { margin-bottom: 5px; }
}
