/* ═══════════════════════════════════════════
   BASE — Eje Cafetero Investment Consulting
   Variables · Reset · Tipografía · Utilidades
═══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── Variables ── */
:root {
  /* Brand colors */
  --verde:        #1B3D2C;
  --verde-medio:  #2C5F40;
  --verde-claro:  #3A7855;
  --oro:          #B8892A;
  --oro-claro:    #C9A84C;
  --oro-suave:    #DDB96A;
  --crema:        #FAF8F2;
  --arena:        #E8E2D0;
  --arena-dark:   #CEC6AE;

  /* UI */
  --texto:        #111111;
  --texto-suave:  #2E2520;
  --texto-muted:  #4A3F38;
  --blanco:       #ffffff;

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;

  /* Espaciado */
  --section-py:   96px;
  --container:    1160px;
  --radius:       10px;
  --radius-lg:    16px;

  /* Sombras */
  --shadow-sm:    0 2px 12px rgba(27,61,44,.08);
  --shadow-md:    0 6px 28px rgba(27,61,44,.12);
  --shadow-lg:    0 16px 56px rgba(27,61,44,.16);
  --shadow-gold:  0 4px 24px rgba(184,137,42,.25);

  /* Z-index */
  --z-intro:    1000;
  --z-nav:       999;
  --z-float:     888;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-ui);
  color: var(--texto);
  background: var(--crema);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Tipografía base ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h4, h5, h6 { font-family: var(--font-ui); }

.t-display {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 700;
  line-height: 1.1;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.18;
}
.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
}
.t-body {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
}
.t-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
}
.t-ui { font-family: var(--font-ui); }

/* ── Colores de texto ── */
.c-verde   { color: var(--verde); }
.c-oro     { color: var(--oro); }
.c-crema   { color: var(--crema); }
.c-muted   { color: var(--texto-suave); }
.c-white   { color: var(--blanco); }

/* ── Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5%;
}
.section { padding: var(--section-py) 0; }

/* Fondo de secciones */
.bg-verde  { background: var(--verde); }
.bg-crema  { background: var(--crema); }
.bg-arena  { background: var(--arena); }
.bg-white  { background: var(--blanco); }

/* ── Eyebrow / etiqueta de sección ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--oro);
  font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--oro);
  flex-shrink: 0;
}

/* ── Separador dorado ── */
.gold-bar {
  width: 48px;
  height: 1.5px;
  background: var(--oro);
  margin: 20px 0;
}
.gold-bar.center { margin: 20px auto; }

/* ── Accent line decorativa ── */
.accent-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.accent-line::before,
.accent-line::after {
  content: '';
  flex: 1;
  height: 0.7px;
  background: var(--oro);
  max-width: 60px;
}
.accent-line-diamond {
  width: 5px;
  height: 5px;
  background: var(--oro);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1),
              transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.shown { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.reveal-left.shown { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.reveal-right.shown { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── Accesibilidad ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
