@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --purple:       #C69CFE;
  --purple-mid:   #A87DF8;
  --purple-dark:  #7C4FD4;
  --purple-light: #F0EAFF;
  --purple-xlight:#F8F5FF;
  --ink:          #100F0E;
  --ink-70:       #4A4744;
  --ink-40:       #9E9B97;
  --ink-15:       #E5E3DF;
  --bg:           #FAFAF8;
  --bg-alt:       #F3F1EE;
  --white:        #FFFFFF;
  --font:         'Geist', 'Helvetica Neue', sans-serif;
  --r:            14px;
  --max:          1200px;
  --nav-h:        68px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

/* ─── Reveal animation ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(.22,.68,0,1.1), transform 0.65s cubic-bezier(.22,.68,0,1.1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.nav.scrolled { border-color: var(--ink-15); }
.nav-logo { height: 26px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-70);
  text-decoration: none; padding: 6px 12px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta {
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--purple); border-radius: 100px;
  padding: 9px 22px; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.nav-cta:hover { background: var(--purple-mid); transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  border-radius: 100px; padding: 13px 28px;
  text-decoration: none; cursor: pointer; border: none;
  letter-spacing: -0.01em; transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #222120; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink-15); }
.btn-outline:hover { border-color: var(--ink-40); }
.btn-purple { background: var(--purple); color: var(--ink); }
.btn-purple:hover { background: var(--purple-mid); }
.btn-lg { font-size: 16px; padding: 16px 36px; }

/* ─── Layout helpers ──────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.page-body { padding-top: var(--nav-h); }

/* Section spacing */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* Labels */
.label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--purple-dark);
  margin-bottom: 24px;
}
/* Headings */
.h1 { font-size: clamp(48px, 6.5vw, 88px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
.h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
em.accent { font-style: italic; font-weight: 300; color: var(--purple-dark); }

/* Body text */
.body-lg { font-size: 18px; line-height: 1.65; color: var(--ink-70); }
.body-md { font-size: 16px; line-height: 1.65; color: var(--ink-70); }
.body-sm { font-size: 14px; line-height: 1.6; color: var(--ink-70); }

/* Divider */
.divider { height: 1px; background: var(--ink-15); }

/* ─── Tag pill ────────────────────────────────────────────── */
.tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--purple-dark); background: var(--purple-light);
  border-radius: 100px; padding: 5px 14px;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--bg); padding: 64px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,250,248,0.1);
}
.footer-logo { height: 24px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: rgba(250,250,248,0.45); line-height: 1.65; max-width: 260px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,250,248,0.3); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: rgba(250,250,248,0.6); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--bg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; color: rgba(250,250,248,0.25); }

/* ─── Hero (index) ────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 80px 48px 88px;
  position: relative; overflow: hidden;
}
.hero-orb1 {
  position: absolute; top: -100px; right: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, #DDD0FF55 0%, transparent 65%);
  pointer-events: none;
}
.hero-orb2 {
  position: absolute; bottom: -80px; left: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, #EDE8FF44 0%, transparent 65%);
  pointer-events: none;
}

/* ─── Page hero (inner pages) ────────────────────────────── */
.page-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--ink-15); }
.page-hero-inner { max-width: 720px; }

/* ─── Card base ───────────────────────────────────────────── */
.card {
  background: var(--bg-alt); border-radius: var(--r);
  padding: 40px; border: 1.5px solid transparent;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(198,156,254,0.15);
}

/* ─── How-grid (3-col bordered) ──────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1.5px solid var(--ink); border-radius: var(--r);
  overflow: hidden; margin-top: 56px;
}
.how-card {
  padding: 44px 36px;
  border-right: 1.5px solid var(--ink);
  transition: background 0.2s;
}
.how-card:last-child { border-right: none; }
.how-card:hover { background: var(--purple-xlight); }
.how-num { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-40); margin-bottom: 20px; }
.how-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--purple); margin-bottom: 20px; }

/* ─── Dark section ────────────────────────────────────────── */
.dark-section { background: var(--ink); color: var(--bg); }
.dark-section .label { color: var(--purple); }
.dark-section .h2 { color: var(--bg); }
.dark-section em.accent { color: var(--purple); }
.dark-section .body-md { color: rgba(250,250,248,0.55); }
.dark-section .body-md strong { color: var(--bg); font-weight: 600; }

/* ─── CTA Band ────────────────────────────────────────────── */
.cta-band {
  background: var(--purple-light);
  text-align: center; padding: 96px 48px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 110%, #DDD0FF 0%, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }

/* ─── Service card ────────────────────────────────────────── */
.service-card {
  background: var(--bg-alt); border-radius: var(--r);
  padding: 48px; border: 1.5px solid transparent;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--purple);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover { border-color: var(--purple); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-list { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ink-15); margin-top: 8px; }
.service-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-70); line-height: 1.45; }
.service-list li::before { content: ''; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); margin-top: 7px; }

/* ─── Link arrow ──────────────────────────────────────────── */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--purple-dark);
  text-decoration: none; transition: gap 0.15s;
}
.link-arrow:hover { gap: 12px; }

/* ─── Contact form ────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.form-input, .form-textarea, .form-select {
  font-family: var(--font); font-size: 15px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--ink-15);
  border-radius: 10px; padding: 13px 16px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(198,156,254,0.2);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-select { appearance: none; cursor: pointer; }

/* ─── Questions (Nosotros) ────────────────────────────────── */
.question-card {
  border-top: 1.5px solid var(--ink-15);
  padding: 32px 0;
}
.question-card:last-child { border-bottom: 1.5px solid var(--ink-15); }
.question-num { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--purple-dark); margin-bottom: 12px; }
.question-text { font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.2; }

/* ─── Stats row ───────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.stat-box { background: var(--white); padding: 40px 32px; border-radius: 0; }
.stat-box:first-child { border-radius: var(--r) 0 0 var(--r); }
.stat-box:last-child { border-radius: 0 var(--r) var(--r) 0; }
.stat-num { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; color: var(--purple-dark); line-height: 1; }
.stat-label { font-size: 14px; color: var(--ink-70); margin-top: 8px; }

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 880px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }
  .nav-mobile-menu {
    position: fixed; inset: 0; top: var(--nav-h); z-index: 190;
    background: var(--bg); padding: 32px 24px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .nav-mobile-menu a { font-size: 18px; font-weight: 500; padding: 14px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-15); }
  .container { padding: 0 24px; }
  .hero { padding: 64px 24px 72px; }
  .section { padding: 72px 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .how-card:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats-row { grid-template-columns: 1fr; gap: 2px; }
  .stat-box:first-child { border-radius: var(--r) var(--r) 0 0; }
  .stat-box:last-child { border-radius: 0 0 var(--r) var(--r); }

  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:280px 1fr"],
  [style*="grid-template-columns: 280px 1fr"],
  [style*="grid-template-columns:320px 1fr"],
  [style*="grid-template-columns: 320px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="gap:96px"],
  [style*="gap: 96px"],
  [style*="gap:80px"],
  [style*="gap: 80px"],
  [style*="gap:64px"],
  [style*="gap: 64px"] {
    gap: 40px !important;
  }
}

@media (max-width: 480px) {
  :root { --nav-h: 64px; }

  .nav { padding: 0 18px; }
  .nav-cta { display: none; }
  .container { padding: 0 20px; }
  .hero { padding: 52px 20px 64px; }
  .section { padding: 60px 0; }
  .section-sm { padding: 48px 0; }
  .page-hero { padding: 56px 0 48px; }
  .cta-band { padding: 72px 20px; }

  .h1 { font-size: clamp(38px, 12vw, 48px); letter-spacing: -0.035em; }
  .h2 { font-size: clamp(30px, 9vw, 38px); letter-spacing: -0.025em; }
  .body-lg { font-size: 17px; }

  .btn { width: 100%; justify-content: center; padding: 13px 22px; }
  .btn-lg { padding: 15px 24px; }
  .card,
  .service-card { padding: 28px; }
  .how-card { padding: 36px 28px; }

  [style*="padding:48px"],
  [style*="padding: 48px"] {
    padding: 28px !important;
  }

  [style*="padding:40px"],
  [style*="padding: 40px"] {
    padding: 28px !important;
  }

  [style*="gap:40px"],
  [style*="gap: 40px"] {
    gap: 28px !important;
  }
}
