:root {
  --blue: #0f2a4a;
  --blue-dark: #081a30;
  --gold: #c9a24b;
  --bg: #ffffff;
  --surface: #f4f6f9;
  --text: #16223a;
  --text-muted: #5b6b82;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 42, 74, 0.08);
  --transition: 220ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

img, svg { max-width: 100%; display: block; }

a { color: var(--blue); }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 42, 74, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.topnav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.topnav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.topnav a:hover { background: var(--surface); color: var(--blue); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--blue);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-sm { padding: 8px 18px; font-size: 0.88rem; white-space: nowrap; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--surface); transform: translateY(-2px); }

.btn-gold { background: linear-gradient(135deg, var(--gold), #dfba63); color: var(--blue-dark); }
.btn-gold:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 56px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #e6c877);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  color: var(--blue);
  letter-spacing: 0.01em;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

/* Mockup de chat animado — CSS + JS, sin capturas ni fotos de stock */
.hero-mock { display: flex; justify-content: center; margin-bottom: 32px; }

.chat-mock {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 42, 74, 0.18);
  overflow: hidden;
  border: 1px solid rgba(15, 42, 74, 0.08);
}

.chat-mock-header {
  background: var(--blue);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-mock-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

.chat-mock-body {
  padding: 18px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 380ms ease forwards;
}

.chat-bubble.bot {
  background: var(--surface);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

@keyframes bubbleIn {
  to { opacity: 1; transform: translateY(0); }
}

.typing-dots {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.channel-strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Sections ---------- */

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-alt {
  max-width: none;
  background: var(--surface);
}

.section-alt > * { max-width: 1000px; margin-left: auto; margin-right: auto; }

.section h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--blue); text-align: center; }

.section-note {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 0.95rem;
}

/* ---------- Grids / cards (features, pricing) ---------- */

.grid { display: grid; gap: 20px; }

.grid-features { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.05rem; color: var(--blue); margin-bottom: 6px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.grid-pricing { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }

.plan-card {
  background: #fff;
  border: 1.5px solid rgba(15, 42, 74, 0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.plan-card.highlight {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(201, 162, 75, 0.25);
  position: relative;
}

.plan-card.highlight::before {
  content: "Más elegido";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-card h3 { color: var(--blue); font-size: 1.2rem; }
.plan-card .plan-tagline { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.plan-price { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); margin: 6px 0 2px; }
.plan-monthly { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-card li { padding: 6px 0; font-size: 0.92rem; }
.plan-card li::before { content: "✓ "; color: var(--gold); font-weight: 800; }

/* ---------- Steps (Cómo funciona) ---------- */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1 1 200px;
  text-align: center;
  padding: 20px;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.step.in-view { opacity: 1; transform: translateY(0); }

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -10%;
  width: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201,162,75,0.15));
}

@media (max-width: 760px) {
  .step:not(:last-child)::after { display: none; }
}

.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin: 0 auto 14px;
}

.step h3 { font-size: 1rem; color: var(--blue); margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ---------- Categorías de negocio (grid + acordeón) ---------- */

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 8px;
}

@media (min-width: 640px) {
  .type-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .type-grid { grid-template-columns: repeat(6, 1fr); }
}

.type-card {
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.type-card .type-icon { font-size: 1.5rem; display: block; margin-bottom: 6px; }

.type-card:hover { transform: translateY(-3px); }

.type-card.selected {
  border-color: var(--gold);
  background: #fff;
  box-shadow: var(--shadow);
}

.type-accordion {
  max-width: 720px;
  margin: 20px auto 0;
  background: #fff;
  border: 1.5px solid rgba(201, 162, 75, 0.4);
  border-radius: var(--radius);
  padding: 24px;
  animation: fadeInUp 320ms ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.type-accordion h3 { color: var(--blue); margin-bottom: 12px; }
.type-accordion .pains, .type-accordion .benefits { list-style: none; padding: 0; margin: 0 0 14px; }
.type-accordion .pains li { color: var(--text-muted); font-size: 0.9rem; padding: 3px 0; }
.type-accordion .pains li::before { content: "❌ "; }
.type-accordion .benefits li { font-size: 0.9rem; padding: 3px 0; }
.type-accordion .stat-line { font-style: italic; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }

/* ---------- Calculadora ---------- */

.calc-box {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.calc-box label { display: block; margin-bottom: 14px; font-size: 0.95rem; }

#calc-hours {
  width: 100%;
  margin-bottom: 20px;
  accent-color: var(--gold);
}

.calc-result { font-size: 1.05rem; margin-bottom: 10px; }
.calc-result strong { color: var(--blue); }
.calc-disclaimer { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* ---------- Casos / proof points ---------- */

.proof-box {
  max-width: 700px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-links {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-links a {
  display: block;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 14px;
}

.contact-links a:hover { color: var(--gold); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1.5px solid rgba(15, 42, 74, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-note { font-size: 0.85rem; color: var(--text-muted); margin: 4px 0 0; min-height: 1.2em; }
.form-note.error { color: #c0392b; }
.form-note.success { color: #1e824c; }

/* ---------- CTA final ---------- */

.cta-final {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.cta-final h2 { color: #fff; margin-bottom: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a { color: var(--text-muted); }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 8px;
    box-shadow: var(--shadow);
    display: none;
  }

  .topnav.open { display: flex; }
  .topnav a { padding: 12px 16px; }

  .hamburger { display: block; }
  #nav-cta { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
}
