/* ============================================================
   AMŪN — Sistema de diseño único · "Templo en la Selva"
   Una sola hoja. Una paleta. Dos familias tipográficas.
   ============================================================ */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "Aeonik";
  src: url("fuentes/AeonikExtendedTRIAL-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("fuentes/AeonikExtendedTRIAL-SemiBold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink:    #1E3228;   /* selva profunda */
  --jungle: #3E5345;   /* verde medio */
  --gold:   #C8A877;   /* oro tenue */
  --clay:   #B0764C;   /* terracota */
  --sand:   #F0E6D2;   /* arena */
  --cream:  #F7F1E6;   /* crema (fondo claro) */
  --stone:  #8A8071;   /* neutro cálido */
  --char:   #2A2622;   /* casi-negro cálido (cuerpo) */

  /* compat con apartar.js / widgets */
  --amun-jungle-green: var(--ink);
  --amun-sand: var(--sand);
  --amun-gold-muted: var(--gold);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-label: "Aeonik", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", -apple-system, system-ui, Segoe UI, Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--char);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Tipografía ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 400; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.75; color: var(--char); }
.muted { color: var(--stone); }
p { max-width: 64ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 11vw, 9rem); }
.section--ink   { background: var(--ink);   color: var(--sand); }
.section--jungle{ background: var(--jungle); color: var(--sand); }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--ink h1, .section--ink h2, .section--ink h3,
.section--jungle h1, .section--jungle h2, .section--jungle h3 { color: var(--sand); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 60ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-label);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1rem 2.1rem; border-radius: 40px;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.4s var(--ease); white-space: nowrap;
}
.btn-primary { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-primary:hover { background: var(--gold); color: var(--ink); }
.btn-solid { background: var(--sand); color: var(--ink); }
.btn-solid:hover { background: var(--gold); }
.btn-dark { background: var(--ink); color: var(--sand); }
.btn-dark:hover { background: var(--jungle); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(200,168,119,0.14); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 1.5rem var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav.scrolled { background: var(--ink); padding-block: 1rem; box-shadow: 0 1px 0 rgba(200,168,119,0.18); }
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__brand img { height: 38px; width: auto; }
.nav__wordmark { font-family: var(--font-label); font-weight: 600; letter-spacing: 0.35em; color: var(--sand); font-size: 1.1rem; }
.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links a {
  font-family: var(--font-label); font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand);
  opacity: 0.82; transition: opacity 0.3s, color 0.3s; white-space: nowrap;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; color: var(--gold); }
.nav__cta { font-size: 0.66rem; padding: 0.7rem 1.4rem; }
.nav__toggle { display: none; background: none; border: none; color: var(--sand); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: var(--sand); padding: 7rem var(--gutter) 4rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30,50,40,0.5) 0%, rgba(30,50,40,0.35) 40%, rgba(30,50,40,0.75) 100%);
}
.hero .eyebrow { color: var(--gold); }
.hero__title { color: var(--sand); margin: 1.2rem 0; }
.hero__sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.7rem); color: var(--sand); opacity: 0.94; max-width: 30ch; }
.hero__line { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sand); opacity: 0.85; margin-top: 1.4rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.4rem; }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); }

/* ---------- Secciones de contenido ---------- */
.section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head.center { margin-inline: auto; }
.section__head .eyebrow { display: block; margin-bottom: 1.2rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.stack > * + * { margin-top: 1.2rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--cream); border: 1px solid rgba(138,128,113,0.25); border-radius: var(--radius); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30,50,40,0.12); }
.card__img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.card__body { padding: 1.6rem 1.5rem 1.9rem; }
.card__body h3 { color: var(--ink); margin-bottom: 0.5rem; }
.card__meta { font-family: var(--font-label); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.card__body p { font-size: 0.95rem; color: var(--stone); }

/* tarjeta sobre fondo oscuro */
.section--ink .card, .section--jungle .card { background: rgba(247,241,230,0.05); border-color: rgba(200,168,119,0.25); }
.section--ink .card__body h3, .section--jungle .card__body h3 { color: var(--sand); }
.section--ink .card__body p, .section--jungle .card__body p { color: rgba(240,230,210,0.75); }

/* lista con check */
.checklist { display: grid; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.98rem; }
.checklist li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.6em; border-radius: 50%; background: var(--gold); }

/* estadística / cifra */
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold); line-height: 1; }
.stat__label { font-family: var(--font-label); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: inherit; opacity: 0.8; margin-top: 0.6rem; }

/* cita / quote editorial */
.quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.3; color: var(--ink); max-width: 22ch; }
.section--ink .quote, .section--jungle .quote { color: var(--sand); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--char);
  background: #fff; border: 1px solid rgba(138,128,113,0.35); border-radius: var(--radius);
  padding: 0.85rem 1rem; transition: border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--sand); padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer h4 { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; font-weight: 600; }
.footer a, .footer p { font-size: 0.92rem; color: rgba(240,230,210,0.78); display: block; margin-bottom: 0.5rem; transition: color 0.3s; }
.footer a:hover { color: var(--gold); }
.footer__brand .display { font-size: 2rem; color: var(--sand); letter-spacing: 0.2em; }
.footer__bottom { border-top: 1px solid rgba(200,168,119,0.18); margin-top: 3rem; padding-top: 1.8rem; font-size: 0.78rem; color: rgba(240,230,210,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Reveal (un solo IntersectionObserver) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold); transition: transform 0.3s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 26px; height: 26px; }

/* ---------- Apartar mount ---------- */
#apartar-app { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; align-items: flex-start; gap: 1.5rem; background: var(--ink); padding: 6rem var(--gutter) 3rem; transform: translateY(-100%); transition: transform 0.5s var(--ease); height: auto; }
  .nav.menu-open .nav__links { transform: translateY(0); }
  .nav__links a { font-size: 1rem; }
  .nav__toggle { display: block; z-index: 101; }
  .nav__cta { display: none; }
  .split, .split--wide-left, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
