/* ===== Tokens — tema claro y cercano ===== */
:root {
  --bg: #f7fbff;
  --bg-soft: #eef6fb;
  --surface: #ffffff;
  --surface-2: #f3faf7;
  --text: #1a2b3c;
  --muted: #5b6b7c;
  --border: rgba(26, 43, 60, 0.1);

  --brand: #0d9488;       /* teal confiable */
  --brand-2: #0284c7;     /* azul cielo (sin morado) */
  --accent: #f97316;      /* naranja cálido y llamativo */
  --brand-soft: rgba(13, 148, 136, 0.12);
  --accent-soft: rgba(249, 115, 22, 0.12);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px -18px rgba(26, 43, 60, 0.22);
  --container: 1140px;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 148, 136, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(249, 115, 22, 0.1), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

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

.grad {
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn--primary {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(13, 148, 136, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(2, 132, 199, 0.5);
}
.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 4px 14px -8px rgba(26, 43, 60, 0.15);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 251, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -16px rgba(26, 43, 60, 0.2);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px -8px rgba(13, 148, 136, 0.65);
}
.brand__name { letter-spacing: -0.02em; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 500; color: var(--muted); transition: color 0.15s ease; }
.nav__links a:hover { color: var(--brand); }
.nav__links a.btn { color: #fff; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 160px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -15%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(13, 148, 136, 0.22), rgba(249, 115, 22, 0.1) 42%, transparent 65%);
  filter: blur(12px); pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero__eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 20px;
  padding: 7px 16px; border: 1px solid rgba(13, 148, 136, 0.25); border-radius: 999px;
  background: var(--brand-soft);
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.hero__lead { margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--brand); }
.stat__label { color: var(--muted); font-size: 0.92rem; }

/* ===== Sections ===== */
.section { padding: 96px 0; position: relative; }
.section--alt {
  background: linear-gradient(180deg, var(--bg-soft), #e8f4f1);
  border-block: 1px solid var(--border);
}
.kicker {
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.kicker--light { color: var(--accent); }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; color: var(--text); }
.section__sub { color: var(--muted); margin-top: 14px; font-size: 1.08rem; max-width: 620px; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head .section__sub { margin-inline: auto; }

.prose { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }
.prose strong { color: var(--text); font-weight: 600; }

/* Grid 2 col */
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.checklist { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--text); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* Value cards */
.values { display: grid; gap: 16px; }
.value-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 8px 24px -18px rgba(26, 43, 60, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow);
}
.value-card__icon { font-size: 1.7rem; margin-bottom: 10px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.value-card p { color: var(--muted); font-size: 0.97rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 0 8px 24px -18px rgba(26, 43, 60, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(13,148,136,0.55), rgba(249,115,22,0.25) 55%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.22s ease;
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 700; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(2, 132, 199, 0.12));
  border: 1px solid rgba(13, 148, 136, 0.18); color: var(--brand);
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
  box-shadow: 0 8px 24px -18px rgba(26, 43, 60, 0.18);
}
.step__num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.8rem;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* CTA */
.section--cta { padding: 96px 0; }
.cta__box {
  background: linear-gradient(160deg, #ffffff, #eefaf6 55%, #fff7ed);
  border: 1px solid var(--border); border-radius: 28px;
  padding: clamp(30px, 5vw, 60px); text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cta__box::before {
  content: ""; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.14), transparent 60%);
  pointer-events: none;
}
.cta__box > * { position: relative; z-index: 1; }
.cta__box .section__title { margin-inline: auto; max-width: 640px; }
.cta__box .section__sub { margin: 14px auto 0; }

/* Form */
.form { max-width: 620px; margin: 34px auto 0; text-align: left; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px; resize: vertical;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.form input::placeholder, .form textarea::placeholder { color: #94a3b8; }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.form input.is-invalid, .form textarea.is-invalid {
  border-color: #e11d48;
  background: #fff1f2;
  box-shadow: none;
}
.form .btn { justify-self: start; }
.field__error {
  font-size: 0.82rem;
  color: #e11d48;
  min-height: 1.1em;
}
.form__msg { font-size: 0.95rem; min-height: 1.2em; }
.form__msg.ok { color: var(--brand); }
.form__msg.err { color: #e11d48; }

.cta__contact { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.cta__contact a { color: var(--brand); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-soft); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.brand--footer { font-size: 1.15rem; }
.footer__tag { color: var(--muted); max-width: 460px; }
.footer__copy { color: var(--muted); font-size: 0.88rem; opacity: 0.85; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(247, 251, 255, 0.98); backdrop-filter: blur(14px);
    padding: 16px 24px 24px; border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform 0.3s ease; z-index: 40;
    box-shadow: 0 16px 32px -20px rgba(26, 43, 60, 0.25);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 12px 4px; }
  .nav__links a.btn { margin-top: 8px; text-align: center; }
  .nav__toggle { display: flex; }
  .hero { padding-top: 130px; }
  .hero__stats { gap: 26px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
