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

:root {
  --ink: #07183f;
  --ink-soft: #33415f;
  --muted: #667085;
  --brand: #2354ff;
  --brand-strong: #1737cf;
  --brand-soft: #eaf0ff;
  --cyan: #15b8d6;
  --green: #20a779;
  --rose: #a64262;
  --bg: #f6f8fc;
  --panel: #ffffff;
  --line: #dfe5ef;
  --shadow: 0 18px 50px rgba(7, 24, 63, 0.12);
  --shadow-soft: 0 10px 28px rgba(7, 24, 63, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 229, 239, 0.85);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-link {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(35, 84, 255, 0.24);
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 72px 0 42px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(246, 248, 252, 0.99) 0%, rgba(246, 248, 252, 0.95) 48%, rgba(246, 248, 252, 0.45) 100%),
    url("portada.png") right center / min(38vw, 620px) auto no-repeat,
    radial-gradient(circle at 85% 30%, rgba(35, 84, 255, 0.16), transparent 36%),
    #f6f8fc;
}

.hero-inner {
  width: min(760px, 100%);
  padding: 52px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
  background: rgba(35, 84, 255, 0.09);
  border: 1px solid rgba(35, 84, 255, 0.16);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.87rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.36rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-pill {
  padding: 8px 11px;
  border: 1px solid rgba(102, 112, 133, 0.18);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: #fff;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-kicker {
  color: var(--brand);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.section-head p {
  margin: 16px 0 0;
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.metric,
.quote,
.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 25px;
}

.card h3 {
  margin: 0 0 9px;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

.card p,
.card li {
  color: var(--muted);
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  margin-bottom: 18px;
  font-weight: 900;
}

.workflow {
  counter-reset: step;
}

.workflow .card {
  position: relative;
}

.workflow .card::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 14px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.feature-list li {
  padding: 9px 0 9px 28px;
  position: relative;
  border-top: 1px solid rgba(223, 229, 239, 0.65);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--green);
  font-weight: 900;
}

.quick-contact {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-contact a {
  color: var(--green);
  font-weight: 800;
}

.analytics-band {
  border-radius: 28px;
  padding: 36px;
  background: linear-gradient(135deg, #07183f 0%, #12306f 58%, #2354ff 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.analytics-band h2,
.analytics-band p,
.analytics-band .section-kicker {
  color: #fff;
}

.analytics-band .section-kicker {
  opacity: 0.76;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.metric {
  padding: 18px;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.17);
  color: #fff;
  box-shadow: none;
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.use-case {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.use-case .tag,
.example-card .tag {
  align-self: flex-start;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 0.76rem;
  margin-bottom: 16px;
}

.example-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.example-card p {
  flex: 1;
}

.example-link {
  margin-top: 16px;
  color: var(--brand);
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  padding: 15px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.panel-row b {
  display: block;
  margin-bottom: 3px;
}

.panel-row span {
  color: var(--muted);
}

.quote {
  padding: 28px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.quote b {
  color: var(--ink);
}

.contact-section {
  background: #fff;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-panel {
  padding: 30px;
}

.contact-panel h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 750;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 138px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--ink);
}

.faq p {
  color: var(--muted);
  margin-bottom: 0;
}

.footer {
  padding: 46px 0;
  background: #07183f;
  color: rgba(255, 255, 255, 0.72);
}

.footer a {
  color: rgba(255, 255, 255, 0.82);
}

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

.footer h4,
.footer b {
  color: #fff;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: #fff;
  background: #25d366;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.32);
  font-weight: 900;
  font-size: 0.95rem;
}

.whatsapp::before {
  content: "✆";
  font-size: 1.1rem;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links.open {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 12px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(246, 248, 252, 0.94), rgba(246, 248, 252, 0.92)),
      url("portada.png") center 28px / min(92vw, 620px) auto no-repeat,
      #f6f8fc;
    padding-top: 210px;
  }

  .grid-3,
  .grid-4,
  .split,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 170px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 15vw, 3.5rem);
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .metric-grid,
  .grid-2,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .analytics-band {
    padding: 24px;
    border-radius: 20px;
  }

  .footer-bottom {
    display: grid;
  }

  .whatsapp {
    width: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .whatsapp::before {
    font-size: 1.25rem;
  }
}
