:root {
  --primary: #ff8a3d;
  --primary-dark: #f36f1d;
  --secondary: #1554b7;
  --secondary-dark: #0f428f;
  --bg: #f5f8fc;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 20px 50px rgba(21, 84, 183, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.text-orange { color: var(--primary); }
.text-blue { color: var(--secondary); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--secondary);
}

.logo-main {
  height: 42px;
  width: auto;
  display: block;
}

.brand-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
  color: var(--secondary);
}

.brand-text div {
  font-size: 13px;
  line-height: 1.1;
  color: var(--secondary);
  opacity: .85;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: var(--muted);
}

.menu a:hover { color: var(--secondary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 12px 26px rgba(255, 138, 61, 0.28);
}

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

.btn-secondary {
  background: white;
  color: var(--secondary);
  border: 1px solid rgba(21, 84, 183, 0.15);
}

.hero { padding: 72px 0 42px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--secondary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 18px;
  color: #0f172a;
}

.hero p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

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

.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 24px;
  color: var(--secondary);
  margin-bottom: 4px;
}

.hero-card {
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  border: 1px solid #d7e6f5;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,0,.24), transparent 70%);
}

.mini-label {
  display: inline-block;
  background: rgba(255,122,0,.12);
  color: var(--primary-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.chat-demo {
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 18px;
}

.chat-row { display: flex; margin-bottom: 14px; }
.chat-row.user { justify-content: flex-end; }
.bubble {
  max-width: 82%;
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 14px;
}
.bot .bubble {
  background: #edf5ff;
  color: var(--secondary-dark);
  border-bottom-left-radius: 8px;
}
.user .bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-bottom-right-radius: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
}

section { padding: 42px 0; }
.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}
.section-title h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #0f172a;
}
.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card, .feature-item, .price-card, details, form {
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(255,122,0,.18), rgba(15,76,129,.14));
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--secondary);
}
.card p { margin: 0; color: var(--muted); }

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

.feature-item { padding: 20px; }
.feature-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 18px;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 28px;
}

.price-card.featured {
  border: 2px solid var(--primary);
  transform: translateY(-6px);
}

.tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--secondary);
  color: white;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.price-card h3 { margin: 0; font-size: 24px; }
.price {
  font-size: 38px;
  font-weight: 800;
  color: var(--secondary);
  margin: 12px 0 6px;
}
.price small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.price-card p { color: var(--muted); margin: 0 0 18px; }
.price-list { padding: 0; margin: 0 0 24px; list-style: none; }
.price-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
  color: #374151;
}
.setup-note {
  text-align: center;
  color: var(--muted);
  margin-top: 16px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
}

.contact-panel {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-panel p {
  color: rgba(255,255,255,.82);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.contact-box {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 16px;
}

form { padding: 28px; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.field.full { grid-column: 1 / -1; }
label {
  font-weight: 700;
  color: #334155;
  font-size: 14px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #dbe3ea;
  background: #fbfdff;
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  color: #111827;
}
textarea { min-height: 140px; resize: vertical; }
.form-message {
  margin: 14px 0 0;
  color: var(--secondary);
  font-weight: 600;
}

.faq {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
details { padding: 18px 20px; }
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--secondary);
}
details p { color: var(--muted); margin: 12px 0 0; }

/* ===== CHAT FLOTANTE ===== */
.floating-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 360px;
  height: 520px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
  z-index: 950;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.floating-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 15px 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floating-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-row {
  display: flex;
  margin-bottom: 0;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-row.bot {
  justify-content: flex-start;
}

.bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-row.bot .bubble {
  background: #eef4ff;
  color: var(--secondary-dark);
  border-bottom-left-radius: 6px;
}

.chat-row.user .bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.chat-input input {
  flex: 1;
  min-width: 0;
}

.chat-toggle-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chat-toggle-btn:hover {
  background: rgba(255,255,255,0.28);
}

.floating-chat.chat-minimized {
  height: 64px;
}

.floating-chat.chat-minimized .floating-body {
  display: none;
}

/* ===== WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.22);
  z-index: 900;
}

.whatsapp-float img,
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* ===== RESPONSIVE SOLO CHAT ===== */
@media (max-width: 768px) {
  .floating-chat {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    height: 70vh;
  }

  .whatsapp-float {
    left: 16px;
    bottom: 16px;
  }
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 768px) {
  .container {
    width: calc(100% - 24px);
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    font-size: 14px;
    gap: 8px;
  }

  .brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .menu {
    width: 100%;
    justify-content: center;
    gap: 14px;
    font-size: 14px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .hero-grid,
  .cards-3,
  .pricing,
  .contact-wrap,
  .features-grid,
  .stats,
  .field-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 1.08;
  }

  .hero p,
  .section-title p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .stat,
  .card,
  .feature-item,
  .price-card,
  .contact-panel,
  form {
    padding: 20px;
  }

  .price-card.featured {
    transform: none;
  }

  .contact-panel,
  form,
  .hero-card {
    border-radius: 22px;
  }

  .field.full {
    grid-column: auto;
  }

  textarea {
    min-height: 120px;
  }

  .topbar {
    position: static;
  }

  .floating-chat {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    height: 68px;
    border-radius: 18px;
  }

  .floating-chat:not(.chat-minimized) {
    height: 70vh;
  }

  .whatsapp-float {
    left: 16px;
    bottom: 90px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 768px) {
  .brand {
    gap: 8px;
  }

  .logo-main {
    height: 34px;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .brand-text div {
    font-size: 12px;
  }
}