:root {
  --ink: #0f1720;
  --ink-soft: #475467;
  --muted: #667085;
  --bg: #ffffff;
  --bg-alt: #f6f7f4;
  --line: #e6e8e3;
  --brand: #1f6f5c;
  --brand-dark: #165244;
  --brand-tint: #e5f1ed;
  --accent: #f2a541;
  --whatsapp: #25d366;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 32, 0.18);
  --container: 1140px;
}

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

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

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

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.accent { color: var(--brand); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn--small { padding: 10px 18px; font-size: 0.9rem; background: var(--ink); color: #fff; }
.btn--small:hover { background: var(--brand); }
.btn--whatsapp { background: var(--whatsapp); color: #0b3d1f; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.7); }
.btn--whatsapp:hover { background: #1fbe5b; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Navegación */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.logo span { color: var(--brand); margin-left: 3px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 0.95rem; }
.nav__links a:not(.btn):hover { color: var(--brand); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform 0.25s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 64px 0 96px;
  background:
    radial-gradient(900px 500px at 85% 10%, var(--brand-tint), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, #fdf1e0, transparent 60%);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.hero__niches { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero__niches li {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 260px;
  aspect-ratio: 9 / 18.5;
  border-radius: 38px;
  padding: 10px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 32, 0.45);
  transform: rotate(3deg);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.7)),
    linear-gradient(135deg, #2d8a73, #1f6f5c 45%, #f2a541 120%);
  color: #fff;
}
.phone__rec {
  position: absolute; top: 18px; left: 16px;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.35); padding: 4px 10px; border-radius: 999px;
}
.phone__rec span { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; animation: blink 1.2s infinite; }
.phone__caption { position: absolute; left: 16px; right: 16px; bottom: 56px; }
.phone__caption strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.phone__caption small { opacity: 0.8; }
.phone__stats { position: absolute; left: 16px; right: 16px; bottom: 20px; display: flex; gap: 14px; font-size: 0.8rem; font-weight: 600; }

.float-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  animation: float 5s ease-in-out infinite;
}
.float-card strong { font-size: 1.25rem; color: var(--brand); }
.float-card small { color: var(--muted); font-size: 0.8rem; }
.float-card--a { top: 14%; left: -4%; }
.float-card--b { bottom: 12%; right: -2%; animation-delay: -2.5s; }

@keyframes blink { 50% { opacity: 0.2; } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Secciones */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow { color: var(--accent); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__sub { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--bg-alt);
  margin-bottom: 20px;
}
.card p { color: var(--ink-soft); margin: 0; }

.service {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service p { color: var(--ink-soft); }
.service--featured { background: var(--brand); color: #fff; border-color: var(--brand); }
.service--featured p { color: rgba(255, 255, 255, 0.85); }
.service--featured .service__num { color: var(--accent); }
.service--featured .checks li::before { background: rgba(255, 255, 255, 0.18); color: #fff; }
.service__num { display: block; font-weight: 800; font-size: 0.9rem; color: var(--brand); margin-bottom: 18px; letter-spacing: 0.05em; }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 0.95rem; font-weight: 500; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: "✓";
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.75rem; font-weight: 800;
  background: var(--brand-tint); color: var(--brand);
  margin-top: 1px;
}

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.step p { color: rgba(255, 255, 255, 0.72); margin: 0; }
.step__num {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Equipo */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.member {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.member h3 { margin-bottom: 2px; font-size: 1.35rem; }
.member p { color: var(--ink-soft); margin: 0; }
.member .member__role { color: var(--brand); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.member__avatar {
  flex: none;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.8rem; font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #2d8a73);
}
.member__avatar--alt { background: linear-gradient(135deg, var(--accent), #e07b39); }

/* CTA */
.cta {
  text-align: center;
  padding: 72px 32px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(242, 165, 65, 0.35), transparent 60%),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.cta p { max-width: 560px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* Responsive */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__text { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__niches { justify-content: center; }
  .grid--3, .steps { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .team { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; padding: 14px; }

  .hero { padding: 40px 0 72px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .phone { width: 220px; }
  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
  .card, .service, .step, .member { padding: 26px; }
  .member { flex-direction: column; gap: 16px; }
  .cta { padding: 52px 22px; border-radius: 22px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
