/* ==========================================================================
   Julio Ribes — base.css
   Tokens de diseño, reset, tipografía, layout y utilidades
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de diseño
   -------------------------------------------------------------------------- */
:root {
  --cream: #f7f5ed;
  --beige: #ebe7e0;
  --sand: #dccab0;
  --dark: #171612;
  --dark-2: #1f1d18;
  --ink: #1a1917;
  --text: #4f4d49;
  --muted: #8a857b;
  --muted-dark: #a0998d;
  --line: rgba(23, 22, 18, 0.12);
  --line-dark: rgba(247, 245, 237, 0.12);
  --gold: #c68f2f;
  --gold-dark: #9b641c;
  --gold-soft: rgba(198, 143, 47, 0.18);
  --red: #c5382b;
  --red-deep: #8b211d;
  --circ-bg: #170605;
  --circ-card: #1a0e0c;
  --circ-line: rgba(255, 255, 255, 0.08);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Allura", "Brush Script MT", cursive;

  --container: 1152px;
  --container-wide: 1392px;
  --gutter: 24px;

  --radius: 2px;
  --shadow-card: 0 30px 60px -20px rgba(23, 22, 18, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */
*,
*::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);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout y utilidades
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: 112px;
}

.section--tight {
  padding-block: 80px;
}

.section--dark {
  background: var(--dark);
  color: var(--muted-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--cream);
}

.section--beige {
  background: var(--beige);
}

.section--circ {
  background: var(--circ-bg);
  color: #c9bdb9;
}

.section--circ h2,
.section--circ h3 {
  color: var(--cream);
}

.section--bordered {
  border-top: 1px solid var(--circ-line);
}

.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.section--dark .eyebrow {
  color: var(--gold);
}

.section--circ .eyebrow,
.eyebrow--red {
  color: var(--red);
}

.title-xl {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
}

.title-lg {
  font-size: clamp(34px, 4vw, 48px);
}

.title-md {
  font-size: clamp(28px, 3vw, 38px);
}

.title-sm {
  font-size: clamp(22px, 2.3vw, 26px);
}

.lead {
  max-width: 560px;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
}

.lead--sm {
  font-size: 14px;
  color: var(--muted);
}

.section--dark .lead--sm {
  color: var(--muted-dark);
}

.text-center {
  text-align: center;
}

.text-center .lead {
  margin-inline: auto;
}

.divider-gold {
  border-top: 1px solid var(--gold);
}

/* Reveal al hacer scroll (se activa desde script.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
