:root {
  --navy-950: #081a2c;
  --navy-900: #0d2b45;
  --navy-700: #164b73;
  --teal-400: #11cfc3;
  --teal-500: #0ab5a8;
  --whatsapp: #25d366;
  --white: #ffffff;
  --slate-50: #f4f8fc;
  --slate-100: #e6eef6;
  --text-dark: #0e2338;
  --text-light: #cfe8ff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-lg: 0 18px 48px rgba(8, 26, 44, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-size: 17px;
  font-family: "Outfit", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(145deg, #0b2238, #102f4a 20%, #eef4fb 20%, #f8fbff 100%);
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.6rem 1rem;
  z-index: 3000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(8, 26, 44, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 160px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  display: block;
  width: 160px;
  height: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  color: var(--text-light);
}

.nav-list a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  border-color: var(--teal-400);
  outline: none;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  order: 2;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== SECTIONS ===================== */
.section { padding: clamp(3.4rem, 6vw, 6.4rem) 0; position: relative; }
.section-dark { color: var(--white); background: linear-gradient(135deg, #0f3050, #154068 45%, #0f3a58); }
.section-light { background: linear-gradient(170deg, #ffffff, #f4f8fc); }

/* ===================== HERO ===================== */
.hero {
  overflow: clip;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7ee9df;
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Outfit", sans-serif;
  margin: 0 0 1rem;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
h4 { font-size: clamp(0.95rem, 1.8vw, 1.1rem); font-weight: 700; margin: 0.3rem 0 0.55rem; }

.lead { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; max-width: 52ch; color: #d5eaff; }
.section-intro { max-width: 68ch; line-height: 1.7; font-size: 1.05rem; margin-bottom: 1.5rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1rem; }
.hero-note { color: #afead9; font-size: 0.98rem; margin: 0; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--teal-400), var(--teal-500));
  color: #092231;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn:hover,
.btn:focus-visible { transform: translateY(-2px); filter: brightness(1.04); outline: 2px solid #d6fff8; outline-offset: 2px; }
.btn-sm { font-size: 0.92rem; padding: 0.62rem 0.95rem; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(207, 232, 255, 0.55);
}

/* ===================== CHAT SHOWCASE ===================== */
.chat-showcase { position: relative; }
.chat-card {
  background: linear-gradient(170deg, #f7fcff 0%, #e8f9f7 100%);
  color: #12324c;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(16, 55, 81, 0.2);
}
.chat-card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #0d2b45;
  color: #dcf8f2;
  padding: 0.7rem 0.9rem;
}
.chat-card-head p { margin: 0 0 0 0.45rem; font-size: 0.9rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #6ef0d9; opacity: 0.9; }
.chat-flow {
  min-height: 330px;
  max-height: 360px;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.bubble {
  max-width: 88%;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 0.95rem;
}
.bubble-user {
  margin-left: auto;
  background: linear-gradient(130deg, #0f4367, #0c2f4a);
  color: #f4fbff;
}
.bubble-bot {
  margin-right: auto;
  background: #d6f7f1;
  color: #12324b;
}
.typing {
  margin-right: auto;
  background: #d6f7f1;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.28rem;
  width: fit-content;
  padding: 0.5rem 0.72rem;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16567a;
  animation: blink 1s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.45; }
  40% { transform: scale(1); opacity: 1; }
}

.hero-glow {
  position: absolute;
  inset: auto auto -200px -180px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 207, 195, 0.3), rgba(17, 207, 195, 0));
  pointer-events: none;
}

/* ===================== CARDS ===================== */
.cards { display: grid; gap: 1.1rem; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid #d5e3f0;
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: 0 12px 24px rgba(15, 41, 66, 0.07);
}
.card p { margin: 0; line-height: 1.65; }
.card-dark {
  background: linear-gradient(150deg, #1a4a6e, #134060);
  border-color: rgba(151, 217, 255, 0.25);
  color: #e8f7ff;
}
.card-outline {
  border-top: 4px solid var(--teal-500);
}

/* ===================== FEATURE EXPLORER ===================== */
.feature-explorer {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  margin-top: 2.5rem;
}

.feature-nav-wrap {
  position: sticky;
  top: 175px;
  display: grid;
  gap: 0.45rem;
  background: rgba(10, 33, 56, 0.6);
  border: 1px solid rgba(151, 217, 255, 0.2);
  border-radius: 14px;
  padding: 0.7rem;
}

.feature-nav-btn {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  color: #d8ebff;
  border: 1px solid rgba(151, 217, 255, 0.18);
  border-radius: 10px;
  padding: 0.62rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.feature-nav-btn:hover {
  background: rgba(17, 207, 195, 0.12);
  border-color: rgba(126, 233, 223, 0.35);
}

.feature-nav-btn.is-active,
.feature-nav-btn[aria-selected="true"] {
  background: rgba(17, 207, 195, 0.22);
  border-color: rgba(126, 233, 223, 0.62);
  color: #f0fffd;
}

.feature-nav-btn:focus-visible {
  outline: 3px solid rgba(126, 233, 223, 0.8);
  outline-offset: 2px;
}

.feature-panels {
  min-height: 520px;
}

.feature-panel {
  opacity: 0;
  transform: translateY(8px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.45s ease;
}

.feature-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  max-height: 5000px;
  overflow: visible;
  pointer-events: auto;
}

.feature-group-title {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #7ee9df;
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(126, 233, 223, 0.28);
}

.feature-tag {
  display: inline-block;
  background: rgba(17, 207, 195, 0.18);
  color: #7ee9df;
  border: 1px solid rgba(17, 207, 195, 0.38);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.55rem;
}

.card-note {
  margin-top: 0.8rem !important;
  padding-top: 0.62rem;
  border-top: 1px dashed rgba(186, 236, 255, 0.35);
  color: #d8eefb;
  font-size: 0.94rem;
}

.warning-note {
  border-top-color: rgba(255, 207, 127, 0.52);
  color: #ffe6bc;
}

.inline-badge {
  display: inline-block;
  margin-left: 0.45rem;
  vertical-align: middle;
  background: rgba(255, 170, 77, 0.2);
  border: 1px solid rgba(255, 170, 77, 0.65);
  color: #ffd8a1;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

code {
  background: rgba(255, 255, 255, 0.16);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: "Courier New", monospace;
}

/* ===================== STEPS ===================== */
.steps {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.85rem;
  line-height: 1.7;
  max-width: 72ch;
}

/* ===================== PRICING ===================== */
.pricing-grid { align-items: stretch; }
.pricing-card {
  border: 1px solid rgba(171, 224, 255, 0.25);
  background: linear-gradient(160deg, #1a4e76, #134268);
  color: #e8f7ff;
}
.price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.35rem 0 0.1rem;
  color: #7ef0de;
}
.price-alt { font-weight: 700; margin: 0.1rem 0 0.2rem; }
.small-note { font-size: 0.86rem; color: #bcdaf5; margin-top: 0.35rem !important; }

/* ===================== FAQ ===================== */
.faq-list details {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #d4e4f3;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
  transition: box-shadow 0.2s ease;
}
.faq-list details[open] { box-shadow: 0 6px 20px rgba(15, 41, 66, 0.09); }
.faq-list summary { cursor: pointer; font-weight: 700; line-height: 1.4; }
.faq-list p { margin: 0.7rem 0 0; line-height: 1.65; }

/* ===================== CONTACT CTA ===================== */
.contact-cta {
  background: linear-gradient(160deg, #154268, #0c2538);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(161, 220, 255, 0.26);
  padding: 2.2rem 2.8rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-cta p { line-height: 1.7; margin: 0 0 1.2rem; color: #d5eaff; }
.contact-cta .btn { margin-bottom: 1.2rem; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: #081a2c;
  color: #c4dbef;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(207, 232, 255, 0.2);
}
.footer-inner {
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  gap: 0.6rem;
}
.footer-links a { color: #83edd7; text-underline-offset: 3px; }
.footer-version { opacity: 0.75; font-size: 0.88rem; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-grid,
  .cards-2,
  .cards-3 { grid-template-columns: 1fr; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 26, 44, 0.98);
    flex-direction: column;
    padding: 0.8rem 1.4rem 1.2rem;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0.6rem 0;
  }
  .nav-list li:last-child { border-bottom: none; }

  .hamburger { display: flex; }

  .nav-wrap { min-height: 155px; }
  .brand img { width: 155px; }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .feature-explorer {
    grid-template-columns: 1fr;
  }

  .feature-nav-wrap {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.55rem;
    padding: 0.65rem;
    scroll-snap-type: x proximity;
  }

  .feature-nav-btn {
    white-space: nowrap;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0.55rem 0.8rem;
    scroll-snap-align: start;
  }

  .feature-group-title { font-size: 1.1rem; }
}

@media (max-width: 600px) {
  .nav-wrap { min-height: 155px; }
  .btn-sm { display: none; }
  .section { padding: 3rem 0; }
  .chat-flow { min-height: 280px; }
  .contact-cta { padding: 1.6rem 1.2rem; }
  .steps { padding-left: 1.1rem; }
  h1 { font-size: 1.85rem; }
}


/* ===================== COMPARATIVA ===================== */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2.2rem; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.compare-table thead th {
  padding: 0.85rem 1.1rem;
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 0.97rem;
  text-align: center;
  background: rgba(8, 26, 44, 0.55);
  color: #cfe8ff;
}
.compare-table thead th:first-child { text-align: left; width: 34%; }
.compare-table thead th.col-hero {
  background: linear-gradient(135deg, rgba(17, 207, 195, 0.22), rgba(17, 207, 195, 0.06));
  border-top: 3px solid var(--teal-400);
  color: #7ee9df;
}
.compare-table thead th.col-other { color: #9bb8d0; }
.compare-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.compare-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.compare-table tbody td { padding: 0.78rem 1.1rem; font-size: 0.97rem; vertical-align: middle; text-align: center; color: #d5eaff; }
.compare-table tbody td:first-child { text-align: left; font-weight: 500; }
.compare-table tbody td .feat-note { display: block; font-size: 0.8rem; color: #9ab8d0; font-weight: 400; margin-top: 0.18rem; }
.compare-table tbody td.col-hero { background: rgba(17, 207, 195, 0.07); }
.compare-ok { color: var(--teal-400); font-size: 1.25rem; font-weight: 700; }
.compare-no { color: rgba(255, 255, 255, 0.25); font-size: 1.2rem; }
.compare-partial { color: #ffd870; font-size: 0.88rem; font-weight: 600; }
.brand-badge { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.brand-badge .name { font-size: 1.05rem; font-weight: 700; color: #fff; }
.brand-badge .pill {
  display: inline-block;
  background: var(--teal-400);
  color: #081a2c;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.55rem;
}
.compare-note { margin-top: 1.2rem; font-size: 0.84rem; color: #7a9cb0; line-height: 1.6; }

/* ======= FEATURE LIST (layout fila) ======= */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row .feature-tag {
  flex-shrink: 0;
  width: 110px;
  text-align: center;
}

.feature-row-body {
  flex: 1;
}

.feature-row-body h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.feature-row-body p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.78;
  line-height: 1.5;
}

.feature-row-body .card-note {
  margin-top: 4px;
  font-size: 0.82rem;
}

@media (max-width: 600px) {
  .feature-row {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .feature-row .feature-tag {
    width: auto;
  }
}
