/* ==========================================================================
   Enliva Tecnologías — site styles
   Palette and spacing are defined as custom properties at the top so the
   whole site can be re-skinned from one place.
   ========================================================================== */

:root {
  --navy-900: #07141f;
  --navy-800: #0a1b2e;
  --navy-700: #123a5a;
  --ink: #10202f;
  --ink-soft: #43596e;
  --ink-muted: #546a7f;
  --line: #e2e8ee;
  --paper: #ffffff;
  --paper-alt: #f5f7f9;
  --mint: #12a05f;
  --mint-ink: #0d7a4a;
  --mint-btn: #0d7a4a;
  --mint-btn-hover: #0a6740;
  --mint-bright: #7ef0b8;
  --mint-soft: #e8f7ef;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(10, 27, 46, .06), 0 6px 16px rgba(10, 27, 46, .04);
  --shadow-md: 0 10px 30px rgba(10, 27, 46, .09);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 650;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.16rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(10, 27, 46, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy-800);
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; }
.brand-sub {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: .94rem;
  font-weight: 500;
}
.nav > a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: color .18s ease;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--mint);
  transition: width .22s ease;
}
.nav > a:not(.btn):hover { color: var(--navy-800); }
.nav > a:not(.btn):hover::after { width: 100%; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.lang button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .04em;
  color: var(--ink-muted);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lang button:hover { color: var(--navy-800); }
.lang button.is-active {
  background: var(--navy-800);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-800);
  margin: 3px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease,
    color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--mint-btn);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 160, 95, .22);
}
.btn-primary:hover {
  background: var(--mint-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(18, 160, 95, .3);
}
.btn-ghost {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy-700);
  transform: translateY(-1px);
}
.nav-cta { padding: 10px 18px; font-size: .88rem; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(44px, 6vw, 72px);
  background:
    radial-gradient(1200px 520px at 78% -8%, rgba(18, 160, 95, .1), transparent 62%),
    radial-gradient(900px 460px at 8% 108%, rgba(18, 58, 90, .08), transparent 60%),
    var(--paper);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(18, 58, 90, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 58, 90, .045) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(760px 420px at 62% 26%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 420px at 62% 26%, #000 25%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mint-ink);
  margin: 0 0 18px;
}

.hero h1 { margin-bottom: 22px; }
.hero h1 .accent {
  display: block;
  background: linear-gradient(96deg, var(--navy-700), var(--mint-ink) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 54px;
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.proof > div { min-width: 0; }
.proof dt {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy-800);
}
.proof dd {
  margin: 2px 0 0;
  font-size: .84rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-alt {
  background: var(--paper-alt);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-lede {
  color: var(--ink-soft);
  font-size: 1.03rem;
  margin-bottom: 0;
}

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cfdae4;
}
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card h3 { margin-bottom: 10px; }

.card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note {
  margin: 26px 0 0;
  font-size: .92rem;
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------- steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}
.steps li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--mint);
}
.step-num {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  color: var(--mint-ink);
  letter-spacing: .06em;
}
.steps h3 { margin: 8px 0 10px; font-size: 1.06rem; }
.steps p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- work */

.work-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cfdae4;
}
.work-card h3 { font-size: 1.34rem; margin: 12px 0 12px; }
.work-card p { color: var(--ink-soft); font-size: .96rem; }
.tag {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint-ink);
  background: var(--mint-soft);
  border-radius: 999px;
  padding: 5px 11px;
}
.meta {
  margin: auto 0 0;
  padding-top: 8px;
  font-size: .82rem !important;
  color: var(--ink-muted) !important;
  font-family: var(--font-mono);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: auto 0 0;
  padding: 8px 0 0;
}
.chips a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .8rem;
  text-decoration: none;
  color: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.chips a:hover {
  border-color: var(--mint);
  color: var(--mint-ink);
  background: var(--mint-soft);
}

/* ---------------------------------------------------------------- about */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about-body p { color: var(--ink-soft); }
.about-body h2 { max-width: 20ch; }

.founder {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin: 26px 0;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--mint-ink));
}
.founder-name { font-weight: 650; margin: 0; color: var(--ink); }
.founder-role {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 2px 0 12px;
  color: var(--mint-ink);
}
.founder p:last-child { margin: 0; font-size: .94rem; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.facts li {
  position: relative;
  padding-left: 24px;
  font-size: .93rem;
  color: var(--ink-soft);
}
.facts li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.about-side {
  background: var(--navy-800);
  color: #dfe8f0;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.about-side h3 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.about-side ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 13px;
  font-size: .93rem;
}
.about-side li {
  position: relative;
  padding-left: 22px;
  line-height: 1.45;
}
.about-side li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--mint-bright);
}
.side-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .85rem;
  color: #9fb4c7;
}

/* ---------------------------------------------------------------- contact */

.contact {
  background:
    radial-gradient(900px 400px at 12% 0%, rgba(18, 160, 95, .1), transparent 60%),
    var(--paper);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.contact h2 { max-width: 22ch; }
.contact .lede { margin-bottom: 0; }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.contact-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  border-radius: 10px;
  transition: background .18s ease;
}
a.contact-line:hover { background: var(--mint-soft); }
.contact-line + .contact-line { border-top: 1px solid var(--line); }
.contact-k {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 4px;
}
.contact-v {
  font-size: .95rem;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy-900);
  color: #9fb4c7;
  padding: 48px 0 40px;
  font-size: .88rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin: 8px 0 0; }
.footer-legal p { margin: 0 0 6px; }
.footer-legal strong { color: #dbe6ee; font-weight: 600; }
.footer-links { display: grid; gap: 8px; justify-items: start; }
.footer-links a {
  color: #cddae4;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  padding-bottom: 1px;
}
.footer-links a:hover { color: var(--mint-bright); border-bottom-color: var(--mint-bright); }
.copyright { margin: 10px 0 0; color: #7591a8; font-size: .82rem; }

/* ---------------------------------------------------------------- reveal */

/* Content is visible by default; the .js hook is added by an inline script in
   <head>, so a failed script can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- legal */

.legal-page {
  padding: clamp(40px, 6vw, 72px) 0 80px;
}
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.legal-page h2 {
  font-size: 1.28rem;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal-page h3 { font-size: 1rem; margin-top: 24px; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: .95rem; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 7px; }
.legal-page .back { margin-bottom: 26px; }
.legal-page .back a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: .9rem;
}
.legal-page .back a:hover { color: var(--mint-ink); }
.legal-meta {
  font-size: .85rem;
  color: var(--ink-muted);
  margin-bottom: 30px;
}
.callout {
  background: var(--paper-alt);
  border-left: 3px solid var(--mint);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout p { margin: 0; }

.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.notfound code {
  font-family: var(--font-mono);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: .9em;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10, 27, 46, .08);
    padding: 14px 24px 22px;
    font-size: 1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .lang { align-self: flex-start; margin-top: 14px; }
  .nav-cta { margin-top: 12px; width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .grid-3, .grid-2, .steps { grid-template-columns: minmax(0, 1fr); }
  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }
  .proof dt { font-size: 1.22rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .contact-line { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact-k { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero-actions, .site-footer, .hero-bg { display: none; }
  body { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
