/* ====================================================================
   AITA AGENCY · SHARED STYLES
   Reset + variables + typography + buttons + nav + footer.
   Es el subset del CSS del index.html que necesitan las páginas nuevas
   (proyectos.html y case studies) para verse consistentes.
==================================================================== */

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

:root {
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --cyan: #06B6D4;
  --bg: #F8FAFC;
  --bg-warm: #FAFAF7;
  --text: #1E293B;
  --text-mute: #64748B;
  --text-soft: #94A3B8;
  --line: #E2E8F0;
  --line-soft: #F1F5F9;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 12px 32px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.12), 0 8px 24px rgba(15,23,42,.08);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1240px;
  --ease: cubic-bezier(.22,1,.36,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 6px 12px;
  background: rgba(15,23,42,.04);
  border-radius: 99px;
  border: 1px solid var(--line);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(6,182,212,.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 500;
  font-size: 15px;
  border-radius: 99px;
  transition: all .25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 24px -8px rgba(37,99,235,.5);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-large { padding: 18px 32px; font-size: 16px; }
.btn-arrow { font-size: 18px; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all .3s var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px 24px;
  background: rgba(248,250,252,.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}
.nav.scrolled .nav-inner {
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-md);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: white;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(6,182,212,.5), transparent 50%);
}
.logo-mark svg { position: relative; z-index: 1; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-mute);
  font-weight: 500;
  border-radius: 99px;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(15,23,42,.04); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn { padding: 10px 18px; font-size: 13px; }
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 320px; line-height: 1.55; }
.footer h5 { color: white; font-family: var(--font-display); font-size: 14px; margin-bottom: 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  display: grid;
  place-items: center;
  transition: all .2s;
}
.footer-social a:hover { background: var(--blue); color: white; transform: translateY(-2px); }

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  z-index: 90;
  transition: all .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 40px rgba(37,211,102,.5); }
.wa-float svg { width: 30px; height: 30px; }

/* Section header */
.section-header {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-header h2 { margin: 18px 0 18px; }
.section-header p {
  color: var(--text-mute);
  font-size: 17px;
  line-height: 1.55;
}
