:root {
  --bg: #ffffff;
  --text: #111318;
  --muted: #636b78;
  --line: #e9edf3;
  --soft: #f6f8fb;
  --accent: #205cff;
  --dark: #0b1020;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Navegación */
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  margin-left: 28px;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 110px 7vw 90px;
  text-align: center;
  max-width: 1120px;
  margin: auto;
}

.badge {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  margin: 0;
}

.hero-text {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
  margin: 30px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 650;
}

.primary {
  background: var(--dark);
  color: white;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

/* Secciones generales */
section {
  padding: 90px 7vw;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0 0 20px;
}

p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

/* Problemas y demo */
.problem,
.demo {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  background: var(--soft);
}

.problem-grid,
.cards,
.steps,
.usecase-grid {
  display: grid;
  gap: 16px;
}

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

.problem-grid span {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 22px;
  font-weight: 650;
}

/* Servicios */
.services,
.usecases,
.process,
.pricing,
.contact {
  max-width: 1180px;
  margin: auto;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
}

.cards article,
.steps div,
.pricing-card,
.contact form {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: white;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.04);
}

.cards h3,
.steps h3 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

/* Demo */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 800;
}

.flow {
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 24px;
  display: grid;
  gap: 12px;
}

.flow div {
  background: var(--soft);
  padding: 20px;
  border-radius: 18px;
  font-weight: 700;
}

.flow span {
  text-align: center;
  color: var(--muted);
}

/* Casos de uso */
.section-text {
  max-width: 760px;
}

.usecase-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
}

.usecase-grid a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 24px;
  font-weight: 700;
  background: var(--soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usecase-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

/* Proceso */
.steps {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
}

.steps strong {
  color: var(--accent);
}

/* Precios */
.pricing-card {
  background: var(--dark);
}

.pricing-card p {
  color: #c8d0df;
}

.price {
  color: white !important;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Contacto */
.contact {
  text-align: center;
}

.contact form {
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin: 30px auto 0;
  text-align: left;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  font: inherit;
}

textarea {
  min-height: 130px;
}

button {
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 16px 22px;
  font-weight: 800;
  cursor: pointer;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 45px 7vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  color: var(--muted);
}

footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: #111318;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800;
  padding: 15px 20px;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

/* Páginas legales */
.legal-page {
  max-width: 920px;
  margin: auto;
  padding: 90px 7vw;
}

.legal-page h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 34px;
}

.legal-page h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 850px) {
  .nav nav a:not(.nav-cta) {
    display: none;
  }

  .problem,
  .demo,
  .cards,
  .steps,
  .usecase-grid {
    grid-template-columns: 1fr;
  }

  section,
  .hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  footer {
    display: block;
  }

  .footer-links {
    margin-top: 20px;
  }
}

@media (max-width: 700px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    padding: 13px 17px;
    font-size: 0.9rem;
  }
}

/* Sección demos por sector */
.section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.demo-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.demo-sector-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.045);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.demo-sector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
  border-color: #d7deea;
}

.demo-sector-card.featured {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  border: 1px solid #cfd8ea;
}

.sector-tag {
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  color: #1746d3;
  background: #edf3ff;
  margin-bottom: 20px;
}

.copyright {

  margin-top: 8px;

  font-size: 0.85rem;

  color: #8a8f98;

}

/* Ajustes para demos por sector */
.sector-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  color: #1746d3;
  background: #edf3ff;
  margin-bottom: 18px;
}

.sector-tag.muted {
  color: var(--muted);
  background: var(--soft);
}

.small-list {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 16px;
  margin-bottom: 22px;
}

.cards article .btn {
  margin-top: auto;
  width: fit-content;
}

.cards article {
  display: flex;
  flex-direction: column;
}

.cards article h3 {
  font-size: 1.35rem;
  line-height: 1.1;
}
    min-height: auto;
  }
}