/* Jaque Ecuador · estilos compartidos (café y negro) */
:root {
  --ink: #17110D; --ink-2: #221913; --ink-3: #2E231B;
  --paper: #F6F1EA; --card: #FFFFFF; --line: #E2D8CA;
  --muted: #5A4E44; --muted-dark: #CDBFB2;
  --cafe: #7A4A26; --cafe-2: #5C3519; --tan: #C9A27E; --gold: #E3B278;
  --ok: #1F7A52; --err: #B3261E;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: var(--cafe); }
img, svg { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 30; background: rgba(23, 17, 13, 0.94); backdrop-filter: blur(8px); color: #FFFFFF; border-bottom: 1px solid #2E231B; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding-block: 12px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.6px; color: #FFFFFF; text-decoration: none; }
.brand span { color: var(--tan); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 15px; }
.nav a.l { color: var(--muted-dark); text-decoration: none; }
.nav a.l:hover { color: #FFFFFF; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px; min-height: 48px; padding: 12px 22px; border-radius: 10px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-gold { background: var(--tan); color: var(--ink); box-shadow: 0 6px 18px rgba(201, 162, 126, 0.35); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(201, 162, 126, 0.5); }
.btn-cafe { background: var(--cafe); color: #FFFFFF; box-shadow: 0 6px 18px rgba(122, 74, 38, 0.3); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-line { border-color: #6B5A4C; color: #FFFFFF; background: transparent; }
.btn-line-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--cafe); }
.dark .eyebrow, .eyebrow.on-dark { color: var(--tan); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; line-height: 1.08; }
h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }

/* Formularios */
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], select {
  font: inherit; font-weight: 400; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; color: var(--ink); width: 100%;
}
input:focus, select:focus { outline: 3px solid var(--tan); outline-offset: 1px; border-color: var(--cafe); }
.error { font-weight: 500; font-size: 13px; color: var(--err); }
.invalid { border-color: var(--err) !important; }
.small { font-size: 13px; color: var(--muted); }

/* Animación de aparición al bajar */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.12s; } .js .reveal.d2 { transition-delay: 0.24s; } .js .reveal.d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
