:root {
  --bg: #ffffff;
  --bg-2: #f7fafc;
  --card: #ffffff;

  --txt: #030b22;
  --muted: #475569;
  --border: rgba(15, 23, 42, .12);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.10);

  --primary: #24e29f;
  --primary-2: #0ed195;
  --success: #16a34a;
  --danger: #ef4444;

  --step-h1: clamp(28px, 4vw + 1rem, 48px);
  --step-h2: clamp(22px, 2.2vw + .8rem, 34px);
  --step-p: clamp(15px, .6vw + .7rem, 18px);

  --header-h-desktop: 22px;
  --header-h-mobile: 35px;

  --wa-bg: #0b141a;
  --wa-header: #1f2c34;
  --wa-in: #1f2c34;
  --wa-out: #005c4b;
  --wa-text: #e9edef;
  --wa-outline: rgba(255, 255, 255, 0.07);

  --header-solid-bg: rgba(255, 255, 255, .86);
  --header-solid-shadow: 0 10px 20px rgba(2, 6, 23, .06);

  --header-hero-bg: rgba(7, 11, 25, .22);
  --header-hero-border: rgba(255, 255, 255, .16);
  --header-hero-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-desktop) + 16px);
}

section[id] {
  scroll-margin-top: calc(var(--header-h-desktop) + 16px);
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(var(--header-h-mobile) + 16px);
  }

  section[id] {
    scroll-margin-top: calc(var(--header-h-mobile) + 16px);
  }
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, filter .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 168, 103, .25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 12px 26px rgba(37, 168, 103, .18);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(1.00);
  box-shadow: 0 8px 18px rgba(37, 168, 103, .14);
}

.btn-outline {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  filter: none;
  background: rgba(36, 226, 159, .08);
  box-shadow: 0 10px 18px rgba(2, 6, 23, .06);
}

.btn-outline:active {
  transform: translateY(0);
  background: rgba(36, 226, 159, .06);
  box-shadow: none;
}

.btn-link {
  color: var(--muted);
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  background: rgba(9, 126, 90, .12);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  color: #0b3b2c;
  font-size: 12px;
  margin-right: 8px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid var(--border);
  background: var(--header-solid-bg);
  box-shadow: var(--header-solid-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 32px;
  width: auto;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--txt);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover {
  color: var(--txt);
}

.nav .btn-primary {
  color: #fff;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .72);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-size: 0;
  line-height: 0;
}

.nav-toggle .hamburger-icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .hamburger-icon line {
  stroke: var(--txt);
  stroke-width: 2.2;
  stroke-linecap: round;
}

body.on-hero .site-header {
  background: var(--header-hero-bg);
  border-bottom: 1px solid var(--header-hero-border);
  box-shadow: var(--header-hero-shadow);
}

body.on-hero .logo a {
  color: #eaf0ff;
}

body.on-hero .nav a {
  color: rgba(234, 240, 255, .78);
}

body.on-hero .nav a:hover {
  color: #ffffff;
}

body.on-hero .nav-toggle {
  background: rgba(7, 11, 25, .35);
  border-color: rgba(255, 255, 255, .18);
}

body.on-hero .nav-toggle .hamburger-icon line {
  stroke: #eaf0ff;
}

.hero {
  padding: 64px 0 24px;
}

.hero-video {
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-video__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}

.hero-bg-video__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%,
      rgba(20, 32, 70, 0.55),
      transparent 60%),
    linear-gradient(to bottom,
      rgba(7, 11, 25, .85),
      rgba(7, 11, 25, .65),
      rgba(7, 11, 25, .95));
}

.hero-video .hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-size: var(--step-h1);
  line-height: 1.1;
  margin: 0 0 12px;
  color: #ffffff;
}

.hero-copy p {
  color: rgba(234, 240, 255, .78);
  font-size: var(--step-p);
  margin: 0 0 16px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin: 16px 0 10px;
}

.trust {
  margin-top: 8px;
}

.hero .badge {
  background: linear-gradient(135deg, rgba(37, 168, 103, .22), rgba(0, 212, 255, .16));
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(234, 240, 255, .92);
}

.hero-art {
  position: relative;
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.glass {
  backdrop-filter: saturate(140%) blur(8px);
}

.hero .card {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .35);
}

.flow {
  margin-bottom: 18px;
}

.flow-header {
  display: flex;
  gap: 10px;
  padding: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.node {
  background: linear-gradient(135deg, rgba(24, 33, 68, .9), rgba(15, 23, 51, .85));
  border: 1px solid rgba(255, 255, 255, .18);
  color: #cfe1ff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: inset 0 0 24px rgba(0, 212, 255, .12);
}

.flow-body {
  height: 80px;
  padding: 12px;
}

.line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-2), transparent);
  margin: 12px 0;
  border-radius: 99px;
}

.chat {
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--wa-outline);
  color: #cfe1ff;
  background: var(--wa-header);
}

.dot {
  width: 8px;
  height: 8px;
  background: #3b4a79;
  border-radius: 50%;
}

.chat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0/22px 22px,
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 11px 11px/22px 22px,
    var(--wa-bg);
  border-top: 1px solid var(--wa-outline);
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  margin: 10px 0;
  line-height: 1.35;
  opacity: 0;
  position: relative;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.msg.in {
  background: var(--wa-in);
  color: var(--wa-text);
  border: 1px solid var(--wa-outline);
  border-radius: 12px 12px 12px 6px;
  margin-right: auto;
}

.msg.bot {
  background: var(--wa-out);
  color: var(--wa-text);
  border: 1px solid rgba(0, 0, 0, 0.2);
  margin-left: auto;
  text-align: left;
  border-radius: 12px 12px 6px 12px;
}

.msg.in::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: 2.3px;
  width: 10px;
  height: 10px;
  background: var(--wa-in);
  transform: rotate(45deg);
  border-bottom-left-radius: 2px;
  border-left: 1px solid var(--wa-outline);
  border-bottom: 1px solid var(--wa-outline);
}

.msg.bot::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: 2.3px;
  width: 10px;
  height: 10px;
  background: var(--wa-out);
  transform: rotate(45deg);
  border-bottom-right-radius: 2px;
}

.msg.play {
  animation: fadeIn .5s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-body .msg {
    animation: none;
    opacity: 1;
  }
}

.typing {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 14px;
  margin: 8px 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .18));
}

.typing .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1f3dd;
  opacity: .45;
  animation: dotBlink 1s infinite ease-in-out;
}

.typing .dot:nth-child(2) {
  animation-delay: .15s;
}

.typing .dot:nth-child(3) {
  animation-delay: .3s;
}

@keyframes dotBlink {

  0%,
  80%,
  100% {
    opacity: .2;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing .dot {
    animation: none;
    opacity: .6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video__media {
    display: none;
  }

  .hero-bg-video__overlay {
    background:
      radial-gradient(1200px 600px at 10% -10%, rgba(20, 32, 70, 0.7), transparent 60%),
      linear-gradient(to bottom, rgba(7, 11, 25, .95), rgba(7, 11, 25, .95));
  }
}

.features {
  padding: 64px 0;
  background: var(--bg);
}

.features h2 {
  font-size: var(--step-h2);
  margin: 0 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.feature .icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.feature-image {
  width: 100%;
  height: 200px;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.integrations {
  padding: 64px 0 84px;
  background: var(--bg-2);
  overflow: hidden;
}

.integrations .container {
  max-width: 1040px;
}

.integrations h2 {
  font-size: var(--step-h2);
  margin: 0 0 8px;
  text-align: center;
}

.integrations .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 48px;
}

.integrations-carousel {
  position: relative;
  width: 100%;
  max-width: 980px;   /* ajusta: 900-1000 suele verse bien */
  margin: 0 auto;     /* lo centra */
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: fit-content;
  will-change: transform;
  animation: scroll 28s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 140px;
  height: 140px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.06);
}

.integration-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
}

.integration-item i {
  font-size: 42px;
  color: var(--txt);
}

.integration-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  text-align: center;
  opacity: .92;
}

.integration-item svg,
.integration-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  fill: currentColor;
}

.integration-item {
  color: #030b22;
}

.how {
  padding: 24px 0 64px;
  background: var(--bg-2);
}

.how h2 {
  font-size: var(--step-h2);
  margin: 0 0 16px;
}

.steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.steps li {
  margin-bottom: 8px;
}

.steps strong {
  color: var(--txt);
}

.quote {
  padding: 44px 0 64px;
  background: var(--bg);
}

.quote h2 {
  font-size: var(--step-h2);
  margin: 0 0 8px;
}

.quote .sub {
  color: var(--muted);
  margin: 0 0 18px;
}

.quote-form {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--txt);
  font-weight: 600;
  font-size: 14px;
}

.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--txt);
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #94a3b8;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 209, 149, .18);
}

.form-field textarea {
  resize: none;
}

.actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.form-note {
  color: var(--muted);
  margin-top: 10px;
}

.form-status {
  margin-top: 10px;
  font-weight: 600;
}

.form-status.error {
  color: var(--danger);
}

.form-status.success {
  color: var(--success);
}

.cf-turnstile {
  margin-top: 1rem;
}

.cta {
  padding: 48px 0;
  background: var(--bg);
}

.cta-inner {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.cta-form input {
  width: 320px;
  max-width: 70vw;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--txt);
}

.cta-form input::placeholder {
  color: #94a3b8;
}

.note {
  color: var(--muted);
  margin-top: 12px;
}

.partners {
  padding: 48px 0;
  background: var(--bg-2);
}

.partners-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: center;
}

.partners-content h2 {
  font-size: var(--step-h2);
  margin: 0 0 8px;
}

.partners-content .sub {
  color: var(--muted);
  margin: 0 0 16px;
}

.partners-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.partners-link:hover {
  color: var(--txt);
}

.site-footer {
  background: var(--bg);
  color: var(--muted);
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.footer-logo a {
  color: var(--txt);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #24E29F;
  border: 2px solid #24E29F;
  background: transparent;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-social i {
  font-size: 1.05rem;
  line-height: 1;
}

.copy {
  opacity: 0.75;
  font-size: 1.05rem;
  margin-top: 6px;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {

  .grid,
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    position: relative;
    height: 80px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 55px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  body.on-hero .nav {
    background: rgba(7, 11, 25, .75);
    border-color: rgba(255, 255, 255, .18);
  }

  body.on-hero .nav a {
    color: rgba(234, 240, 255, .85);
  }

  body.on-hero .nav a:hover {
    color: #ffffff;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 8px;
    text-align: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
  }

  .hero-art {
    transform: scale(.98);
  }

  .hero-art {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-art .card {
    margin-left: auto;
    margin-right: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .features .container,
  .how .container,
  .quote .container {
    text-align: center;
  }

  .feature {
    text-align: center;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: center;
  }

  .partners-inner {
    grid-template-columns: 1fr;
  }

  .partners-content {
    text-align: center;
  }

  .carousel-track {
    animation-duration: 20s;
  }

  .integration-item {
    min-width: 128px;
    height: 128px;
    padding: 16px;
  }

  .integration-item i {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .cta-form {
    flex-direction: column;
  }

  .cta-form input {
    width: 100%;
    max-width: 100%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}