/* ===================================================================
   invesare.com — Javier Sánchez
   Estética sobria: tinta oscura, fondo cálido, un solo acento.
   =================================================================== */

:root {
  --ink:        #1b1d1c;
  --ink-soft:   #54585a;
  --muted:      #8a8f8d;
  --bg:         #fbfaf8;
  --bg-alt:     #f3f1ec;
  --card:       #ffffff;
  --line:       #e6e3dc;
  --accent:     #204a47;   /* verde teal profundo */
  --accent-ink: #163633;
  --radius:     14px;
  --shadow:     0 1px 2px rgba(20,30,28,.04), 0 8px 24px rgba(20,30,28,.06);
  --maxw:       1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,248,.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 1.05rem;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav__cta:hover { background: var(--accent-ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 96px;
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% -10%, rgba(32,74,71,.07), transparent 60%);
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.hero__sub {
  margin: 20px auto 0;
  max-width: 540px;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--ink-soft);
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 16px 32px; font-size: 1.1rem; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
}
.section__title {
  margin-top: 8px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ---------- Servicios ---------- */
.services-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .15s, box-shadow .15s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(32,74,71,.08);
  color: var(--accent);
  margin-bottom: 16px;
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.1rem; font-weight: 700; }
.service p { margin-top: 8px; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Pestañas (proyectos) ---------- */
.tabs {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tab {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Grid de proyectos ---------- */
.projects-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.project {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.project:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(32,74,71,.4); }
.project__emoji { font-size: 2rem; line-height: 1; }
.project__title { margin-top: 14px; font-size: 1.2rem; font-weight: 700; }
.project__desc { margin-top: 6px; color: var(--ink-soft); font-size: .96rem; }
.project__chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: rgba(32,74,71,.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.project__cta {
  margin-top: 18px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent);
}
.projects-empty { margin-top: 28px; color: var(--muted); }

/* ---------- Contacto ---------- */
.section--contact { text-align: center; padding: 96px 0; }
.contact__lead { margin: 16px auto 28px; max-width: 460px; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .nav { gap: 16px; }
  .nav a:not(.nav__cta) { display: none; }
  .hero { padding: 88px 0 64px; }
  .section { padding: 64px 0; }
}
