/* ============================================================
   Bot2ERP - Sitio estático (Cloudflare Pages)
   Sin build, sin dependencias externas.
   ============================================================ */

:root {
  --green: #25d366;
  --green-dark: #128c7e;
  --blue: #0f4c81;
  --blue-dark: #0a3559;
  --ink: #1a2332;
  --muted: #5a6b82;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --line: #e3e9f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 76, 129, 0.08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-logo { width: 36px; height: 36px; border-radius: 8px; }

.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav > a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }

.nav-cta-solid {
  background: var(--green);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta-solid:hover { background: var(--green-dark); text-decoration: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 96px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--blue-dark);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 53, 89, 0.92), rgba(15, 76, 129, 0.72) 55%, rgba(18, 140, 126, 0.55));
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }

.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; letter-spacing: -0.03em; }

.hero-sub { font-size: clamp(1.1rem, 2.6vw, 1.45rem); margin-top: 18px; font-weight: 500; }

.hero-detail { font-size: 1rem; margin-top: 12px; color: rgba(255, 255, 255, 0.85); }

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }

.btn-outline { border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.lead { font-size: 1.08rem; color: var(--muted); max-width: 720px; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.about-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.about-card h3 { margin-bottom: 8px; color: var(--blue); }
.about-card p { color: var(--muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.service-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--bg);
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-card h3 { font-size: 1.12rem; color: var(--blue); margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.96rem; }

.integracion-note {
  margin-top: 36px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.integracion-note h3 { color: var(--blue); font-size: 1.05rem; margin-bottom: 6px; }
.integracion-note p { color: var(--muted); font-size: 0.95rem; }
.integracion-note a { color: var(--green-dark); font-weight: 600; }

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--blue-dark);
  color: #fff;
}

.testimonials .eyebrow { color: var(--green); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.testimonials blockquote {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonials blockquote p { font-size: 1.02rem; font-style: italic; }
.testimonials blockquote footer {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 36px 0;
}

.contact-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: box-shadow 0.2s, transform 0.2s;
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }
.contact-card h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.contact-card p { font-weight: 600; font-size: 1.05rem; color: var(--blue); }

.contact-actions { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cdd7e4;
  padding: 56px 0 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding-bottom: 32px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #cdd7e4; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--green); }

.footer-legal { display: flex; flex-direction: column; gap: 8px; }
.footer-legal a { color: #9fb0c6; font-size: 0.9rem; }
.footer-legal a:hover { color: var(--green); }

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #8ea0b8;
}
.footer-copy p { margin: 2px 0; }

/* ---------- Legal pages ---------- */
.page-legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 90px;
}
.page-legal h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 6px; }
.page-legal .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 34px; }
.page-legal h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.page-legal h3 { font-size: 1.05rem; margin: 20px 0 8px; color: var(--blue); }
.page-legal p, .page-legal li { color: var(--muted); }
.page-legal ul { padding-left: 22px; margin: 10px 0; }
.page-legal li { margin: 4px 0; }

/* ---------- Hero split + chat mockup ---------- */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-split h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: 1.08; letter-spacing: -0.03em; }
.hero-split .hero-sub { margin-top: 18px; }
.hero-split .hero-detail { margin-top: 12px; }

.hero-points { list-style: none; margin-top: 26px; display: grid; gap: 9px; }
.hero-points li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}
.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.hero-link { margin-top: 18px; }
.hero-link a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }
.hero-link a:hover { color: #fff; }

.hero-visual { display: flex; justify-content: center; }
.chat-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #075e54;
  color: #fff;
  padding: 12px 14px;
}
.chat-head img { width: 32px; height: 32px; border-radius: 50%; }
.chat-head-name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.chat-head-status { font-size: 0.74rem; color: rgba(255, 255, 255, 0.85); }
.chat-body {
  background: #ece5dd;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 280px;
}
.chat-msg {
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.chat-msg.bot { align-self: flex-end; background: #dcf8c6; border-top-right-radius: 3px; }
.chat-msg.client { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.chat-msg.status {
  align-self: flex-end;
  background: transparent;
  box-shadow: none;
  color: #6b7280;
  font-size: 0.72rem;
  padding: 0 2px;
}

/* ---------- Cómo funciona ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.step h3 { color: var(--blue); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Casos de uso ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.case-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg);
  transition: box-shadow 0.2s, transform 0.2s;
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.case-card h3 { color: var(--blue); margin-bottom: 8px; }
.case-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Confianza / cumplimiento ---------- */
.trust {
  background: var(--blue-dark);
  color: #fff;
}
.trust .eyebrow { color: var(--green); }
.trust h2 { color: #fff; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.trust-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px;
}
.trust-item h3 { font-size: 1rem; color: var(--green); margin-bottom: 6px; }
.trust-item p { font-size: 0.9rem; color: #cdd7e4; }

/* ---------- Precios ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  background: var(--bg);
}
.plan-card.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.plan-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.plan-msgs {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.plan-msgs span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.plan-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
.plan-card p { color: var(--muted); font-size: 0.9rem; }
.plan-card .plan-usd { margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.pricing-note { margin-top: 20px; color: var(--muted); font-size: 0.92rem; }
.models-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.models-note strong { color: var(--ink); }

.models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.model {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 22px;
}
.model h3 { font-size: 1rem; color: var(--blue); margin-bottom: 6px; }
.model p { color: var(--muted); font-size: 0.93rem; }

.sandbox-banner {
  margin-top: 36px;
  background: linear-gradient(120deg, var(--green-dark), var(--blue));
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sandbox-banner h3 { font-size: 1.3rem; margin-bottom: 6px; }
.sandbox-banner p { color: rgba(255, 255, 255, 0.9); max-width: 520px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px;
    transform: translateY(-120%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
  .main-nav > a { padding: 11px 12px; border-radius: 10px; }
  .main-nav > a:hover { background: var(--bg-soft); text-decoration: none; }
  .nav-cta { padding: 12px; text-align: center; margin-top: 6px; }
}

@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: 2; }
  .hero-copy { order: 1; }
  .chat-card { max-width: 320px; }
  section { padding: 64px 0; }
  .sandbox-banner { flex-direction: column; align-items: flex-start; }
}


/* Boton flotante: volver arriba */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--green-dark); }
