/* =========================================================
   DELIRIUM BOOTH — Estilos
   Colores y tipografías en las variables de :root
   ========================================================= */
:root {
  --black: #111111;
  --black-2: #0b0b0b;
  --black-soft: #1a1918;
  --cream: #F1E4DA;
  --bone: #F8F3EE;
  --gold: #C49A6C;
  --gold-soft: rgba(196, 154, 108, .45);
  --text-dark: #2a2522;
  --text-muted: #6d625a;
  --text-light: #F7F1EA;
  --text-light-muted: rgba(247, 241, 234, .72);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.gold-line {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 22px auto;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: #d3ad82; }
.btn--dark { background: var(--black); color: var(--text-light); }
.btn--dark:hover { background: #2a2826; }
.btn--lg { min-height: 60px; padding: 18px 32px; font-size: 13px; }
.icon-wa { width: 20px; height: 20px; flex: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, .gallery:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Encabezado ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: rgba(17, 17, 17, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(196, 154, 108, .2);
}
.topbar__logo { display: block; line-height: 0; }
.topbar__logo img { height: 34px; width: auto; }
/* El logo del encabezado aparece al hacer scroll (en la portada ya está el logo grande) */
.js .topbar__logo { opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.js .topbar.is-scrolled .topbar__logo { opacity: 1; pointer-events: auto; }
.topbar { justify-content: space-between; }
.topbar__cta { margin-left: auto; }
.topbar__cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  padding: 9px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.topbar__cta:hover { background: var(--gold); color: var(--black); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--text-light);
  overflow: hidden;
}
/* Celular: foto arriba, texto debajo fundido en negro */
.hero__media { position: relative; height: 62vh; height: 62svh; min-height: 360px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,.6) 0%, rgba(17,17,17,0) 18%, rgba(17,17,17,0) 55%, #111 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: -96px;
  padding: 0 var(--gutter) 56px;
  text-align: center;
}
.hero__title { margin-top: 14px; line-height: 0; }
.hero__title img { width: min(74vw, 300px); height: auto; margin: 0 auto; }
@media (min-width: 900px) {
  .hero__title img { width: 440px; margin: 0; }
}
.hero .gold-line { margin: 20px auto 16px; }
.hero__lead {
  font-family: var(--serif);
  font-size: clamp(21px, 5.6vw, 32px);
  line-height: 1.25;
  max-width: 520px;
  margin: 0 auto;
}
.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--text-light-muted);
  margin: 8px auto 26px;
}
.hero .btn { width: 100%; max-width: 380px; }
@media (max-width: 420px) {
  .btn { letter-spacing: .1em; padding: 14px 18px; }
}
.hero__scroll { display: none; }

@media (min-width: 900px) {
  .hero { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; }
  .hero__media { position: absolute; inset: 0 0 0 auto; width: 46%; height: auto; }
  .hero__media img { object-position: 50% 40%; }
  .hero__media::after {
    background: linear-gradient(90deg, #111 0%, rgba(17,17,17,.35) 28%, rgba(17,17,17,0) 55%),
                linear-gradient(0deg, rgba(17,17,17,.5) 0%, rgba(17,17,17,0) 25%);
  }
  .hero__content {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    padding: 120px 40px 80px;
    text-align: left;
  }
  .hero__content > * { max-width: 560px; }
  .hero .gold-line { margin-left: 0; }
  .hero__lead, .hero__sub { margin-left: 0; }
  .hero .btn { width: auto; }
  .hero__scroll {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 1px;
    height: 48px;
    background: var(--gold-soft);
    overflow: hidden;
  }
  .hero__scroll span {
    display: block;
    width: 1px;
    height: 16px;
    background: var(--gold);
    animation: scrollhint 2.4s var(--ease) infinite;
  }
}
@keyframes scrollhint { from { transform: translateY(-16px); } to { transform: translateY(48px); } }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; scroll-margin-top: 56px; }
.section--light { background: var(--cream); color: var(--text-dark); }
.section--bone { background: var(--bone); color: var(--text-dark); }
.section--dark { background: var(--black); color: var(--text-light); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 8.5vw, 52px);
  line-height: 1.1;
  margin-top: 12px;
}
.section__title em { font-style: italic; color: var(--gold); }
.section--light .section__title em, .section--bone .section__title em { color: #9c7448; }
.section--light .eyebrow, .section--bone .eyebrow { color: #9c7448; }
.section--light .gold-line, .section--bone .gold-line { background: var(--gold); }

@media (min-width: 900px) {
  .section { padding: 120px 0; }
  .section__head { margin-bottom: 64px; }
  :root { --gutter: 40px; }
}

/* Íconos de línea */
.line-icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 2. Tarjetas de eventos ---------- */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--bone);
  border: 1px solid rgba(196, 154, 108, .35);
  padding: 40px 28px;
  text-align: center;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(196, 154, 108, .18);
  pointer-events: none;
}
.card .line-icon { margin: 0 auto 18px; stroke: #9c7448; }
.card__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}
.card p { color: var(--text-muted); max-width: 280px; margin: 0 auto; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- 3. Beneficios ---------- */
.benefits { display: grid; gap: 0; }
.benefit {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px 0;
  border-top: 1px solid rgba(196, 154, 108, .22);
}
.benefit:last-child { border-bottom: 1px solid rgba(196, 154, 108, .22); }
.benefit .line-icon { flex: none; width: 40px; height: 40px; }
.benefit h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.benefit p { color: var(--text-light-muted); }
@media (min-width: 760px) {
  .benefits { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
  .benefit:nth-last-child(2) { border-bottom: 1px solid rgba(196, 154, 108, .22); }
}
@media (min-width: 1000px) {
  .benefits { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .benefit { flex-direction: column; border-bottom: 1px solid rgba(196, 154, 108, .22); padding: 36px 0; }
}

/* ---------- 4. Galería ---------- */
.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__item {
  flex: 0 0 78%;
  margin: 0;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #d9c9bb;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.gallery__dots button {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.gallery__dots button::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(156, 116, 72, .35); transition: background-color .3s, transform .3s;
}
.gallery__dots button.is-active::before { background: #9c7448; transform: scale(1.35); }

@media (min-width: 900px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    overflow: visible;
  }
  .gallery__item { flex: none; }
  .gallery__item:hover img { transform: scale(1.04); }
  .gallery__dots { display: none; }
}

/* ---------- 5. Planes ---------- */
.plans { text-align: center; position: relative; overflow: hidden; }
.plans::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(196,154,108,.13), transparent 62%);
  pointer-events: none;
}
.plans__box {
  position: relative;
  border: 1px solid rgba(196, 154, 108, .35);
  padding: 56px 24px;
}
.plans__box::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(196, 154, 108, .15); pointer-events: none;
}
.plans__from {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 30px;
  color: var(--text-light-muted);
  margin-top: 24px;
}
.plans__price {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(96px, 30vw, 168px);
  line-height: .9;
  color: var(--gold);
  letter-spacing: -.01em;
}
.plans__currency { font-size: .45em; vertical-align: .9em; margin-right: 4px; }
.plans__note { font-size: 14px; color: var(--text-light-muted); }
.plans__factors {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 14px 0 28px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.plans__factors li::before { content: "◆"; color: var(--gold); font-size: 8px; margin-right: 10px; vertical-align: 2px; }
.plans__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 23px;
  line-height: 1.35;
  max-width: 460px;
  margin: 0 auto 34px;
}
.plans .btn { width: 100%; max-width: 340px; }
@media (min-width: 600px) {
  .plans__factors { flex-direction: row; justify-content: center; gap: 28px; }
  .plans__box { padding: 72px 48px; }
}

/* ---------- 6. Cómo funciona ---------- */
.how { display: grid; gap: 48px; align-items: start; }
.steps { position: relative; counter-reset: step; }
.steps::before {
  content: "";
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 1px;
  background: var(--gold);
}
.step { position: relative; display: flex; gap: 24px; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step__num {
  flex: none;
  width: 47px; height: 47px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  color: #9c7448;
  position: relative; z-index: 1;
}
.step h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin: 8px 0 4px; }
.step p { color: var(--text-muted); }

.notice {
  background: var(--black);
  color: var(--text-light);
  text-align: center;
  padding: 44px 28px;
  position: relative;
}
.notice::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(196, 154, 108, .4); pointer-events: none;
}
.notice .line-icon { margin: 0 auto 14px; }
.notice__label { font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.notice__text { font-family: var(--serif); font-size: 30px; line-height: 1.2; margin: 10px 0 26px; }
.notice__text strong { font-weight: 500; color: var(--gold); }
.notice .btn { position: relative; background: transparent; border-color: var(--gold); color: var(--gold); }
.notice .btn:hover { background: var(--gold); color: var(--black); }

@media (min-width: 900px) {
  .how { grid-template-columns: 1.3fr 1fr; gap: 80px; }
  .notice { position: sticky; top: 110px; }
}

/* ---------- 7. FAQ ---------- */
.faq { border-top: 1px solid rgba(156, 116, 72, .3); }
.faq__item { border-bottom: 1px solid rgba(156, 116, 72, .3); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(#9c7448, #9c7448) center / 14px 1px no-repeat,
    linear-gradient(#9c7448, #9c7448) center / 1px 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 24px; color: var(--text-muted); max-width: 620px; }
.faq__item[open] .faq__answer { animation: fadeDown .45s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Testimonios (bloque opcional) */
.testimonial { margin: 0; text-align: center; font-family: var(--serif); font-size: 24px; font-style: italic; }
.testimonial cite { display: block; margin-top: 12px; font-family: var(--sans); font-size: 12px; font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #9c7448; }

/* ---------- 8. Contacto ---------- */
.contact { text-align: center; }
.contact__logo { width: 120px; height: auto; margin: 0 auto 28px; opacity: .85; }
.contact__text { color: var(--text-light-muted); max-width: 440px; margin: 0 auto 32px; }
.contact .btn { width: 100%; max-width: 420px; }
.contact__ig {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px;
  font-size: 13px; font-weight: 500; letter-spacing: .16em;
  text-decoration: none; color: var(--gold);
}
.contact__ig svg { width: 20px; height: 20px; }
.contact__ig:hover { color: var(--text-light); }

/* ---------- 9. Footer ---------- */
.footer {
  background: var(--black-2);
  color: var(--text-light-muted);
  text-align: center;
  padding: 48px var(--gutter) 110px;
  border-top: 1px solid rgba(196, 154, 108, .18);
  font-size: 12px;
}
.footer__logo { line-height: 0; }
.footer__logo img { width: 150px; height: auto; margin: 0 auto; opacity: .9; }
.footer__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  margin: 18px 0;
  letter-spacing: .18em; text-transform: uppercase; font-size: 11px;
}
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { opacity: .6; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid #25D366;
  animation: pulse 2.8s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before, .hero__scroll span { animation: none; }
}
