/* Jetro — sitio público.
   Concepto: el consejo de Éxodo 18. Noche del desierto (azul profundo), arena y el ámbar del logo.
   Títulos en serif editorial (Instrument Serif), texto en Inter. */
:root {
  --night: #0e1530;
  --night-2: #1b2750;
  --night-3: #2a3968;
  --sand: #f3ecdf;
  --sand-2: #e9dcc3;
  --paper: #fffdf8;
  --ink: #1d1a16;
  --ink-soft: #5a5347;
  --moon: #eef1fb;
  --moon-soft: #a9b3d4;
  --blue: #2450b8;
  --amber: #f2b441;
  --amber-deep: #b87a00;
  --ok: #1f7a4d;
  --alert: #b3470f;
  --radius: 18px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ── Tipografía ── */
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.eyebrow-dark { color: var(--amber-deep); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(3.6rem, 11vw, 9rem); line-height: 0.92; letter-spacing: -0.02em; color: var(--moon); margin-top: 1.2rem; }
.display em { color: var(--amber); }
.title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: 1; letter-spacing: -0.01em; margin-top: 0.8rem; max-width: 18ch; }
.title em { color: var(--blue); }
.title-light { color: var(--moon); max-width: 22ch; }
.title-light em { color: var(--amber); }
.intro { color: var(--ink-soft); font-size: 1.1rem; max-width: 38rem; margin-top: 1.2rem; }
.intro-light { color: var(--moon-soft); }
.ref { margin-top: 0.8rem; color: var(--moon-soft); font-size: 0.95rem; }
.ref-dark { color: var(--ink-soft); }

/* ── Botones ── */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border-radius: 999px; padding: 0.55rem 1.05rem; font: 600 0.92rem var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; }
.pill:hover { transform: translateY(-1px); }
.pill-lg { padding: 0.95rem 1.5rem; font-size: 1rem; }
.pill-amber { background: var(--amber); color: var(--night); box-shadow: 0 8px 24px -10px rgb(242 180 65 / 0.7); }
.pill-amber:hover { background: #f6c460; }
.pill-blue { background: var(--blue); color: #fff; }
.pill-ghost { background: transparent; color: var(--ink); border-color: #d6ccb8; }
.link-arrow { color: var(--moon); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgb(238 241 251 / 0.3); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--amber); }

/* ── Barra ── */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; transition: background 0.25s, box-shadow 0.25s; }
.bar.is-solid { background: rgb(14 21 48 / 0.86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.06); }
.bar-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--moon); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand-sm { font-size: 1rem; color: var(--ink); }
.bar-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.bar-nav a { color: var(--moon-soft); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.bar-nav a:hover { color: var(--moon); }
@media (max-width: 760px) { .bar-nav { display: none; } .bar .pill { margin-left: auto; } }

/* ── Portada ── */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 70% 0%, #22306a 0%, var(--night) 60%); padding: clamp(8rem, 18vw, 12rem) 0 clamp(9rem, 16vw, 13rem); }
.hero-inner { position: relative; z-index: 2; }
.hero-lead { color: var(--moon-soft); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 36rem; margin-top: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.4rem; }
.dunes { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 16vw, 220px); z-index: 1; }
.stars { position: absolute; inset: 0; opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 16%, #f7d98f 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 60%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%);
}

/* ── Secciones ── */
.sand { background: var(--sand-2); padding: clamp(4.5rem, 10vw, 8rem) 0; }
.night { background: var(--night); color: var(--moon); padding: clamp(5rem, 11vw, 9rem) 0; }

/* Antes / con Jetro */
.versus { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: 2rem; align-items: center; margin-top: 3.5rem; }
.versus-arrow { font-family: var(--serif); font-size: 3.5rem; color: var(--amber-deep); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem; }
.tag-muted { background: #d9ccb2; color: var(--ink-soft); }
.tag-blue { background: var(--blue); color: #fff; }
.phone, .card-demo { margin: 0; }
.chat { background: #e5ddd3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23d6cbbd'/%3E%3C/svg%3E"); border-radius: var(--radius); padding: 1.1rem; font-size: 0.92rem; display: grid; gap: 0.5rem; box-shadow: inset 0 0 0 1px #d2c5b0; }
.chat-name { font-size: 0.78rem; font-weight: 600; color: #7c6a4f; }
.bubble { position: relative; background: #fff; border-radius: 4px 14px 14px 14px; padding: 0.6rem 0.8rem 1.1rem; max-width: 92%; line-height: 1.45; box-shadow: 0 1px 0 rgb(0 0 0 / 0.06); }
.bubble-in { justify-self: end; background: #d9fdd3; border-radius: 14px 4px 14px 14px; }
.time { position: absolute; right: 0.6rem; bottom: 0.25rem; font-size: 0.68rem; color: #8b8b8b; }
.card-demo { background: var(--paper); border-radius: var(--radius); padding: 1.3rem; box-shadow: 0 30px 60px -30px rgb(29 26 22 / 0.35), 0 0 0 1px #e3d7c1; }
.event { display: flex; gap: 0.9rem; align-items: center; padding-bottom: 0.9rem; border-bottom: 1px solid #ece2cf; }
.event-date { display: grid; place-items: center; width: 54px; border: 1px solid #e3d7c1; border-radius: 10px; padding: 0.35rem 0; line-height: 1.05; }
.event-date span { font-size: 0.62rem; text-transform: uppercase; color: var(--ink-soft); }
.event-date b { font-size: 1.45rem; }
.event-title { font-weight: 600; }
.event-meta { font-size: 0.85rem; color: var(--ink-soft); }
.roles { list-style: none; margin: 0.4rem 0 0; padding: 0; font-size: 0.9rem; }
.roles li { display: grid; grid-template-columns: 5.2rem 1fr auto; gap: 0.6rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid #f1e8d7; }
.roles li:first-child { border-top: 0; }
.roles span { color: var(--ink-soft); }
.roles i { font-style: normal; font-size: 0.74rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.ok { color: var(--ok); background: rgb(31 122 77 / 0.1); }
.wait { color: var(--amber-deep); background: rgb(242 180 65 / 0.2); }
.alert { color: var(--alert); background: rgb(179 71 15 / 0.1); }
@media (max-width: 900px) {
  .versus { grid-template-columns: 1fr; }
  .versus-arrow { transform: rotate(90deg); justify-self: center; line-height: 1; }
}
@media (max-width: 480px) { .roles li { grid-template-columns: 1fr auto; } .roles span { grid-column: 1 / -1; font-size: 0.78rem; } }

/* El consejo: cuatro niveles */
.tiers { list-style: none; padding: 0; margin: 4rem 0 0; display: grid; gap: 1.1rem; }
.tier { position: relative; display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 1.5rem; align-items: center; padding: 1.4rem 0; }
.tier::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: var(--w); background: linear-gradient(90deg, var(--amber), rgb(242 180 65 / 0.15)); border-radius: 3px; transform-origin: left; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.tier-num { font-family: var(--serif); font-size: clamp(3.2rem, 8vw, 5.5rem); line-height: 1; color: var(--amber); }
.tier-body h3 { font-size: 1.25rem; font-weight: 600; }
.tier-body p { color: var(--moon-soft); margin-top: 0.3rem; max-width: 40rem; }
@media (max-width: 640px) { .tier { grid-template-columns: 1fr; gap: 0.4rem; } }

/* Aparición al hacer scroll (solo si hay JS y no se pidió reducir movimiento) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal::before { transform: scaleX(0); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.is-in::before { transform: scaleX(1); }

/* Pruébalo */
.try { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 0.6rem; font-weight: 500; }
.demo { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(29 26 22 / 0.35), 0 0 0 1px #e3d7c1; }
.demo-special { background: rgb(242 180 65 / 0.22); color: var(--amber-deep); font-weight: 700; padding: 0.65rem 1.2rem; }
.demo-row { display: grid; grid-template-columns: 6rem 1fr; gap: 0.5rem 1rem; padding: 1.2rem; border-top: 1px solid #efe5d3; align-items: center; }
.demo-row:first-of-type { border-top: 0; }
.demo-role { color: var(--ink-soft); font-size: 0.92rem; }
.demo-pick label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; }
.demo-pick select { width: 100%; font: 0.92rem var(--sans); padding: 0.6rem 0.7rem; border-radius: 10px; border: 1px solid #d6ccb8; background: #fff; color: var(--ink); }
.demo-hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.45rem; }
.demo-hint.is-warn { color: var(--alert); }
.demo-hint.is-good { color: var(--ok); }
.demo-person { display: flex; align-items: center; gap: 0.7rem; }
.demo-person b { color: var(--blue); }
.demo-status { font-size: 0.75rem; font-weight: 600; padding: 0.18rem 0.6rem; border-radius: 999px; color: var(--amber-deep); background: rgb(242 180 65 / 0.2); }
.demo-status.is-ok { color: var(--ok); background: rgb(31 122 77 / 0.1); }
.demo-status.is-no { color: var(--alert); background: rgb(179 71 15 / 0.1); }
.demo-actions { grid-column: 2; display: flex; gap: 0.5rem; }
@media (max-width: 900px) { .try { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .demo-row { grid-template-columns: 1fr; } .demo-actions { grid-column: 1; } }

/* Versículo */
.verse { background: var(--sand); padding: clamp(5rem, 12vw, 9rem) 0; text-align: center; }
.verse-text { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.12; max-width: 22ch; margin-inline: auto; }

/* Cierre */
.closing { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; }
.church { display: flex; align-items: center; gap: 1rem; max-width: 30rem; margin-top: 2rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--night-3); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.church:hover { border-color: var(--amber); transform: translateY(-2px); }
.church-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; }
.church b { display: block; }
.church small { color: var(--moon-soft); }
.church-go { margin-left: auto; color: var(--amber); font-weight: 600; }
.contact { background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--radius); padding: 2rem; }
.contact h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.contact p { color: var(--moon-soft); margin: 0.6rem 0 1.4rem; }
@media (max-width: 900px) { .closing { grid-template-columns: 1fr; } }

/* Pie */
.foot { background: var(--sand); padding: 1.6rem 0; color: var(--ink-soft); font-size: 0.9rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal::before { opacity: 1; transform: none; transition: none; }
  .pill, .church { transition: none; }
}
