:root {
  --bg: #0a0c12;
  --panel: #12162299;
  --navy: #2e3554;
  --blue: #2f5fd0;
  --blue-soft: #5d87ea;
  --text: #e8eaf2;
  --muted: #9aa1b5;
  --wa: #25d366;
  --radius: 14px;
  --display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw + 0.5rem, 3.6rem);
  line-height: 1.08;
  margin: 0.75rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw + 0.5rem, 2.4rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--blue-soft); }

.kicker {
  color: var(--blue-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin: 0 0 0.5rem;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 4vw, 2rem);
  padding-top: calc(0.65rem + env(safe-area-inset-top));
  background: #0a0c12d9;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2e355466;
}
.nav-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand span { color: var(--blue-soft); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

#servicios, #nosotros, #como-funciona { scroll-margin-top: 4.5rem; }

/* Hero */
.hero {
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(clamp(2rem, 6vw, 5rem) + 3.5rem) 1.25rem clamp(2rem, 6vw, 5rem);
  background:
    radial-gradient(60rem 30rem at 70% -10%, #2f5fd033, transparent 60%),
    radial-gradient(40rem 24rem at 10% 110%, #2e355466, transparent 60%),
    var(--bg);
}
.hero-logo { width: min(420px, 78vw); height: auto; }
.hero-sub { color: var(--muted); max-width: 34rem; font-size: clamp(1rem, 1.5vw + 0.6rem, 1.2rem); margin: 0 0 1.75rem; }

/* WhatsApp buttons */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--wa);
  color: #06210f;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  min-height: 44px;
  border-radius: 999px;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 6px 24px #25d36640;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 30px #25d36659; }
.wa-icon { width: 22px; height: 22px; }

/* Trust strip */
.trust { border-top: 1px solid #2e355466; border-bottom: 1px solid #2e355466; background: #10141f99; }
.trust-strip {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem;
}
.trust-strip li { display: flex; align-items: center; gap: 0.65rem; color: var(--muted); font-size: 0.95rem; }
.trust-strip svg { width: 24px; height: 24px; flex: none; color: var(--blue-soft); }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 1.25rem; max-width: 68rem; margin: 0 auto; text-align: center; }
.section-alt { background: linear-gradient(180deg, transparent, #12162280 20%, #12162280 80%, transparent); max-width: none; }
.section-alt > * { max-width: 68rem; margin-left: auto; margin-right: auto; }
.section-alt .btn-wa { margin-top: 2rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
.card {
  background: var(--panel);
  border: 1px solid #2e355480;
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p { color: var(--muted); margin: 0; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: #2f5fd026;
  color: var(--blue-soft);
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* About */
.about { display: grid; grid-template-columns: 1fr; gap: 1.5rem; text-align: left; }
.about-text p { color: var(--muted); margin: 0 0 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-points {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid #2e355480;
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  display: grid;
  gap: 0.9rem;
  align-content: center;
}
.about-points li { position: relative; padding-left: 1.6rem; color: var(--text); }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--blue-soft);
  border-bottom: 2.5px solid var(--blue-soft);
  transform: rotate(-45deg);
}

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding: 0; margin: 0 auto; text-align: left; }
.step { background: var(--panel); border: 1px solid #2e355480; border-radius: var(--radius); padding: 1.5rem; }
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
#como-funciona .btn-wa { margin-top: 2rem; }

/* Footer */
.site-footer { padding: 3rem 1.25rem calc(2rem + env(safe-area-inset-bottom)); color: var(--muted); border-top: 1px solid #2e355466; }
.footer-grid {
  max-width: 68rem;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
}
.footer-brand img { opacity: 0.8; margin-bottom: 0.5rem; }
.footer-brand p { margin: 0; font-size: 0.95rem; }
.site-footer h3 {
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 0.75rem;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--text); text-decoration: underline; }
.footer-contact p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.fine { font-size: 0.8rem; opacity: 0.8; text-align: center; margin: 0; border-top: 1px solid #2e355433; padding-top: 1.5rem; max-width: 68rem; margin-inline: auto; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: #06210f;
  border-radius: 50%;
  box-shadow: 0 8px 24px #00000080;
  z-index: 10;
}
.wa-float:hover { transform: scale(1.06); }

/* ≤ 520 px: compact nav */
@media (max-width: 520px) {
  .nav-brand span { display: none; }
  .nav-links a { font-size: 0.85rem; }
  .nav-contacto { display: none; }
}

/* ≥ 768 px */
@media (min-width: 768px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; }
}

/* ≥ 900 px */
@media (min-width: 900px) {
  .about { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-wa, .wa-float { transition: none; }
}
