:root {
  --bg: #052840;
  --bg-deep: #031b2d;
  --panel: rgba(8, 52, 82, .76);
  --panel-strong: rgba(9, 61, 96, .92);
  --text: #edf8fb;
  --muted: #8fb1bf;
  --dim: #5f8798;
  --cyan: #28c7bd;
  --cyan-soft: rgba(40, 199, 189, .16);
  --red: #e75a6c;
  --line: rgba(126, 191, 210, .14);
  --shadow: 0 24px 70px rgba(0, 0, 0, .24);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 36px));
  --display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --serif: "Noto Serif", Georgia, serif;
  --sans: "Nunito Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(40, 199, 189, .12), transparent 32rem),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 42%, #042238 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(40, 199, 189, .72); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--cyan);
  color: #042033;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.container { width: var(--container); margin-inline: auto; }
.narrow { max-width: 820px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.site-header.is-scrolled {
  background: rgba(3, 27, 45, .88);
  border-color: var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
}

.nav {
  width: var(--container);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
}
.brand span { font-size: .98rem; }
.brand strong { color: var(--cyan); }

.nav-panel {
  position: fixed;
  inset: 76px 16px auto 16px;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(4, 33, 54, .98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.nav-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-panel a {
  padding: 10px 8px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}
.nav-panel a:hover { color: var(--text); }
.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 61, 96, .68);
  color: var(--text);
}
.nav-toggle span { width: 18px; height: 2px; background: currentColor; }
.nav-cta { display: none; }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--sans);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #33d5cb, #1eb1aa);
  color: #042033;
  box-shadow: 0 16px 34px rgba(40, 199, 189, .2);
}
.btn-ghost {
  color: var(--text);
  background: rgba(9, 61, 96, .42);
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 126px 0 78px;
  background:
    linear-gradient(90deg, rgba(3, 27, 45, .98) 0%, rgba(3, 27, 45, .94) 30%, rgba(3, 27, 45, .58) 56%, rgba(3, 27, 45, .18) 100%),
    linear-gradient(180deg, rgba(3, 27, 45, .22) 0%, rgba(3, 27, 45, .05) 52%, rgba(3, 27, 45, .92) 100%),
    url("../img/hero-negocios-locales-ia.png");
  background-size: cover;
  background-position: 62% center;
}
.ambient {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(22px);
  opacity: .42;
}
.ambient-one {
  top: -26rem;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(40, 199, 189, .34), transparent 64%);
}
.ambient-two {
  right: -30rem;
  top: 26rem;
  background: radial-gradient(circle, rgba(4, 101, 155, .42), transparent 65%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
}
.hero-copy {
  max-width: 780px;
  text-align: left;
  margin-inline: 0;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1, h2 { font-family: var(--display); }
h1 {
  max-width: 16ch;
  margin-inline: 0;
  font-size: clamp(2.55rem, 5.6vw, 4.9rem);
  font-weight: 700;
}
h1::first-line { color: var(--text); }
h2 {
  max-width: 850px;
  font-size: clamp(2.1rem, 4.4vw, 4.15rem);
  font-weight: 700;
}
h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}
.hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #b8d5df 74%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.62;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 30px;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}
.trust-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 61, 96, .42);
  color: #b8d5df;
  font-size: .95rem;
  font-weight: 500;
}

.metric-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 42px;
}
.metric-row div,
.info-card,
.solution-card,
.step-card,
.contact-box,
details,
.agent-console,
.results-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
}
.metric-row div {
  min-height: 104px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 18px;
  text-align: center;
}
.metric-row strong {
  color: var(--cyan);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
}
.metric-row span { color: var(--muted); font-size: .98rem; font-weight: 500; }

.section { padding: 86px 0; }
.section-heading {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 32px;
}
.section-heading p:not(.eyebrow), .section-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.72;
}
.card-grid, .solution-grid, .step-grid {
  display: grid;
  gap: 16px;
}
.info-card, .solution-card, .step-card {
  padding: 24px;
}
.info-card span,
.solution-card span,
.step-card span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  margin-bottom: 28px;
  padding-inline: 10px;
  border-radius: var(--radius);
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 600;
}
.info-card p, .solution-card p, .step-card p, details p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.72;
}
.solutions {
  background: linear-gradient(180deg, rgba(3, 27, 45, 0), rgba(7, 52, 82, .46), rgba(3, 27, 45, 0));
}
.solution-card {
  background: linear-gradient(180deg, rgba(9, 61, 96, .88), rgba(6, 43, 70, .82));
}

.agent-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}
.section-copy .btn { margin-top: 18px; }
.agent-console {
  overflow: hidden;
  background: #041f34;
}
.console-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.console-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dim);
}
.console-header span:first-child { background: var(--red); }
.console-header span:nth-child(2) { background: #e3b452; }
.console-header span:nth-child(3) { background: var(--cyan); }
.console-header strong { margin-left: auto; font-size: .86rem; }
.chat-line {
  width: fit-content;
  max-width: 82%;
  margin: 18px;
  padding: 13px 15px;
  border-radius: var(--radius);
  color: #d7e9ee;
  font-size: 1.05rem;
  font-weight: 500;
}
.chat-line.customer { margin-left: auto; background: rgba(40, 199, 189, .18); }
.chat-line.bot { background: rgba(255, 255, 255, .07); }

.results-strip {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.results-strip div {
  min-height: 220px;
  padding: 24px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
}
.results-strip strong {
  display: block;
  font-family: var(--display);
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.08;
}
.results-strip span {
  display: block;
  max-width: 34ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.72;
}

.process { background: rgba(3, 27, 45, .56); }
.step-grid {
  padding: 0;
  margin: 0;
  list-style: none;
}

.faq-list { display: grid; gap: 12px; }
details {
  padding: 18px 20px;
  background: rgba(9, 61, 96, .5);
}
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 1.18rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
}
details[open] summary::after { content: "-"; }

.contact {
  padding-bottom: 112px;
  background: linear-gradient(180deg, rgba(3, 27, 45, 0), rgba(40, 199, 189, .08));
}
.contact-box {
  max-width: 820px;
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
  margin-inline: auto;
}
.contact-box h2 { margin-inline: auto; }
.contact-box > p:not(.eyebrow) {
  max-width: 650px;
  margin: 16px auto 0;
  color: var(--muted);
}
.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  text-align: left;
}
.lead-form label {
  display: grid;
  gap: 7px;
  color: #c9e1e8;
  font-size: 1rem;
  font-weight: 400;
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 27, 45, .65);
  color: var(--text);
  padding: 13px 14px;
}
.lead-form textarea { resize: vertical; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #6d91a1; }
.lead-form button { width: 100%; cursor: pointer; }

.footer {
  padding: 32px 0;
  background: #031b2d;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.footer p { margin: 0; color: var(--muted); }
.footer-brand {
  align-items: center;
  line-height: 1;
}
.footer-brand img { width: 32px; height: 32px; }

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 18px 42px rgba(37, 211, 102, .28), 0 12px 28px rgba(0, 0, 0, .24);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  background: #1ebe5d;
  box-shadow: 0 22px 50px rgba(37, 211, 102, .36), 0 14px 32px rgba(0, 0, 0, .28);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  display: block;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (min-width: 720px) {
  .metric-row,
  .step-grid,
  .results-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid,
  .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-form .full { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-panel {
    position: static;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-panel a { padding: 0; }
  .nav-cta { display: inline-flex; }
  .metric-row { width: min(760px, calc(100vw - 36px)); }
  .solution-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent-layout { grid-template-columns: .92fr 1.08fr; }
  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .hero {
    padding-top: 104px;
    background:
      linear-gradient(180deg, rgba(3, 27, 45, .98) 0%, rgba(3, 27, 45, .9) 48%, rgba(3, 27, 45, .96) 100%),
      url("../img/hero-negocios-locales-ia.png");
    background-size: cover;
    background-position: 68% center;
  }
  .brand span { font-size: .9rem; }
}
