/* ============================================================
   Libia Montoya Orozco — sitio de autora
   Paleta tierra + crema · serif elegante + sans limpia
   ============================================================ */

:root {
  /* Crema y tierra */
  --cream:        oklch(0.969 0.014 80);   /* fondo principal */
  --cream-2:      oklch(0.951 0.020 76);   /* secciones alternas */
  --paper:        oklch(0.985 0.008 85);   /* tarjetas claras */
  --sand:         oklch(0.886 0.030 72);   /* bordes / divisores cálidos */
  --sand-deep:    oklch(0.815 0.040 68);

  /* Tinta marrón */
  --ink:          oklch(0.305 0.028 55);   /* texto principal */
  --ink-soft:     oklch(0.435 0.030 56);   /* texto secundario */
  --ink-faint:    oklch(0.560 0.028 58);   /* metadatos */

  /* Acento terracota */
  --terra:        oklch(0.605 0.115 42);
  --terra-deep:   oklch(0.530 0.115 41);

  /* Contraste para COMPRA — verde pino / Pacífico */
  --buy:          oklch(0.505 0.088 182);
  --buy-deep:     oklch(0.435 0.085 183);
  --buy-glow:     oklch(0.505 0.088 182 / 0.30);

  --maxw: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px oklch(0.305 0.028 55 / 0.08), 0 6px 18px oklch(0.305 0.028 55 / 0.06);
  --shadow-md: 0 6px 22px oklch(0.305 0.028 55 / 0.12), 0 22px 50px oklch(0.305 0.028 55 / 0.10);
  --shadow-lg: 0 30px 70px oklch(0.305 0.028 55 / 0.22);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.7em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn--terra {
  background: var(--terra);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn--terra:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--sand-deep);
}
.btn--ghost:hover { border-color: var(--ink); background: oklch(0.305 0.028 55 / 0.04); }

/* Botón de COMPRA destacado (color de contraste) */
.btn--buy {
  background: var(--buy);
  color: oklch(0.985 0.008 85);
  box-shadow: 0 2px 0 var(--buy-deep), 0 10px 24px var(--buy-glow);
  font-size: 1rem;
  padding: 0.95em 1.4em;
}
.btn--buy:hover { background: var(--buy-deep); transform: translateY(-2px); box-shadow: 0 2px 0 var(--buy-deep), 0 16px 34px var(--buy-glow); }
.btn--buy .arrow { transition: transform .18s ease; }
.btn--buy:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Placeholders de imagen ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.886 0.030 72) 0 11px,
      oklch(0.851 0.034 70) 11px 22px
    );
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph__label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: oklch(0.985 0.008 85 / 0.82);
  color: var(--ink);
  padding: 0.5em 0.85em;
  border-radius: 3px;
  text-align: center;
  max-width: 80%;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}

/* ---------- Utilidades de revelado ---------- */
/* Estado base = visible (no-JS, impresión, PDF). El ocultado solo se aplica
   cuando JS marca <html class="js-anim"> y no hay reduce-motion. */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js-anim .reveal { opacity: 0; transform: translateY(22px); }
.js-anim .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Selector de diseño (enlace flotante) ---------- */
.design-switch {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 80;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.7em 1.1em;
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--sand);
  box-shadow: var(--shadow-md);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.design-switch:hover { color: var(--terra); border-color: var(--terra); transform: translateY(-2px); }
@media (max-width: 520px) {
  .design-switch { font-size: 0.66rem; padding: 0.6em 0.9em; left: 12px; bottom: 12px; }
}
