/* ══════════════════════════════════════════════
   AS DIGITAL AGENCY · BASE
   Design tokens, reset, typography
   ══════════════════════════════════════════════ */

:root {
  /* Brand */
  --negro:        #0A0F1E;
  --negro-deep:   #050810;
  --azul:         #1A56DB;
  --azul-suave:   #3B82F6;
  --azul-deep:    #1447C0;
  --oro:          #C9A84C;
  --oro-soft:     #E6C76A;

  /* Neutrals */
  --ink:          #0F172A;
  --gris:         #64748B;
  --gris-soft:    #94A3B8;
  --gris-claro:   #F1F5F9;
  --borde:        #E2E8F0;
  --blanco:       #FFFFFF;
  --fondo:        #FBFAF7; /* subtle warm off-white */

  /* Success/alert */
  --verde:        #10B981;
  --rojo:         #EF4444;

  /* Typography */
  --f-sans:       'Inter', system-ui, sans-serif;
  --f-serif:      'Fraunces', 'Playfair Display', Georgia, serif;
  --f-mono:       'JetBrains Mono', ui-monospace, monospace;

  /* Easing */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:    cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  animation: pageReveal 0.35s ease both;
}
@keyframes pageReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  font-family: var(--f-sans);
  background: var(--fondo);
  color: var(--negro);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

::selection { background: var(--azul); color: #fff; }

/* Section primitives */
section { padding: 120px 60px; position: relative; }
.section-inner { max-width: 1180px; margin: 0 auto; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--azul);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.gold { color: var(--oro); }
.eyebrow.light { color: rgba(255,255,255,0.65); }

.display {
  font-family: var(--f-serif);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-size: clamp(44px, 5.6vw, 84px);
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--azul);
}
.display .gold { color: var(--oro); font-style: italic; font-weight: 400; }

.section-title {
  font-family: var(--f-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.05;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--azul); }

.section-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gris);
  max-width: 620px;
  margin-bottom: 70px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 10px 30px -10px rgba(26,86,219,0.55);
}
.btn-primary:hover {
  background: var(--azul-deep);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 18px 40px -10px rgba(26,86,219,0.7);
}
.btn-gold {
  background: var(--oro);
  color: var(--negro);
  box-shadow: 0 10px 30px -10px rgba(201,168,76,0.6);
}
.btn-gold:hover {
  background: var(--oro-soft);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 16px 0;
}
.btn-ghost:hover { color: #fff; }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
}

/* Arrow glyph */
.arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive base */
@media (max-width: 900px) {
  section { padding: 80px 24px; }
  .section-lead { margin-bottom: 48px; }
}
