/* ===== Bitacor Pro — Landing ===== */
:root {
  --navy-900: #070b16;
  --navy-800: #0b1020;
  --navy-700: #0f1729;
  --navy-600: #131c34;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf5;
  --text-dim: #9aa6bd;
  --blue: #3b82f6;
  --blue-2: #5b8def;
  --cyan: #38bdf8;
  --gold: #c9a747;
  --olive: #6f9a3f;
  --radius: 16px;
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--navy-800);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text { font-family: "Sora", "Inter", sans-serif; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

a { color: inherit; text-decoration: none; }

/* ===== Fondo decorativo ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(59,130,246,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(circle, rgba(59,130,246,.22), transparent 60%);
  filter: blur(20px);
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(8, 12, 24, 0.72);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.brand-text { font-size: 1.2rem; letter-spacing: .3px; }
.brand-pro { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-dim); font-size: .94rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

.lang-switch {
  display: inline-flex; gap: 4px; padding: 3px;
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border);
  border-radius: 10px;
}
.lang-switch button {
  padding: 5px 9px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-dim);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--blue); color: #fff; }

html.rtl body { font-family: "Heebo", "Inter", system-ui, sans-serif; }
html.rtl h1, html.rtl h2, html.rtl h3, html.rtl .brand-text { font-family: "Heebo", "Sora", sans-serif; }
html.rtl .hero-grid, html.rtl .bot-grid, html.rtl .banner-inner { direction: rtl; }
html.rtl .check-list li::before { margin-inline: 0 10px; }
html.rtl .fusion-arrow { transform: scaleX(-1); }
html.rtl .wa-bubble.in { margin-inline: auto 0; }
html.rtl .wa-bubble.out { margin-inline: 0 auto; }
html.rtl .bubble.in { margin-inline: auto 0; }
html.rtl .bubble.out { margin-inline: 0 auto; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff; box-shadow: 0 10px 30px -8px rgba(59,130,246,.6);
}
.btn-primary:hover { box-shadow: 0 14px 40px -8px rgba(59,130,246,.8); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--card-border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ===== HERO ===== */
.hero { padding: 74px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cyan); font-weight: 600; margin-bottom: 16px;
  padding: 5px 12px; border: 1px solid rgba(56,189,248,.3); border-radius: 100px;
  background: rgba(56,189,248,.06);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -.5px; }
.grad { background: linear-gradient(120deg, var(--cyan), var(--blue-2) 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-dim); font-size: 1.12rem; margin: 20px 0 28px; max-width: 560px; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: "Sora"; font-size: 1.5rem; color: #fff; }
.hero-trust span { font-size: .8rem; color: var(--text-dim); }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.node-orbit {
  position: relative; width: 320px; height: 320px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(59,130,246,.14), transparent 62%);
}
.node-orbit::before, .node-orbit::after {
  content: ""; position: absolute; border: 1px dashed rgba(91,141,239,.35); border-radius: 50%;
}
.node-orbit::before { inset: 0; animation: spin 26s linear infinite; }
.node-orbit::after { inset: 42px; border-color: rgba(56,189,248,.25); animation: spin 18s linear infinite reverse; }
.hero-logo { width: 210px; height: 210px; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(59,130,246,.6); position: relative; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Secciones ===== */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.tag { display: inline-block; font-size: .78rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.15; letter-spacing: -.4px; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 1.05rem; }

/* ===== Cards ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.5); box-shadow: 0 20px 50px -20px rgba(59,130,246,.4); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: .96rem; }
.flow .flow-badge {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  background: rgba(59,130,246,.15); color: var(--blue-2); margin-bottom: 14px;
}
.flow-badge.olive { background: rgba(111,154,63,.16); color: #a3c96a; }
.flow-badge.blue { background: rgba(56,189,248,.15); color: var(--cyan); }

/* ===== Módulos ===== */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mod {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--card-border); font-weight: 500; font-size: .96rem;
  transition: border-color .2s, background .2s;
}
.mod:hover { border-color: rgba(59,130,246,.5); background: rgba(59,130,246,.07); }
.mod span { font-size: 1.25rem; }

/* ===== Bot ===== */
.bot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.bot-copy h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 14px; }
.bot-copy > p { color: var(--text-dim); margin-bottom: 22px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-dim); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%; font-size: .7rem; font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff;
}
.chat-mock {
  background: var(--navy-600); border: 1px solid var(--card-border); border-radius: 20px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
}
.chat-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--text-dim); padding-bottom: 10px; border-bottom: 1px solid var(--card-border); }
.chat-head img { width: 26px; height: 26px; border-radius: 7px; }
.bubble { max-width: 84%; padding: 11px 15px; border-radius: 14px; font-size: .92rem; }
.bubble.in { align-self: flex-start; background: rgba(255,255,255,.07); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; border-bottom-right-radius: 4px; }

/* ===== Seguridad ===== */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 22px; }
.mini-card b { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.mini-card span { color: var(--text-dim); font-size: .9rem; }

/* ===== Precios ===== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; background: var(--card); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(201,167,71,.08), var(--card)); box-shadow: 0 24px 60px -24px rgba(201,167,71,.4); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1206; font-size: .74rem; font-weight: 700; padding: 5px 14px; border-radius: 100px; white-space: nowrap; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.price { font-family: "Sora"; font-size: 2.6rem; font-weight: 800; line-height: 1; }
.price span { font-size: .95rem; font-weight: 600; color: var(--text-dim); margin-right: 4px; }
.price .per { font-size: 1rem; }
.price-sub { color: var(--text-dim); font-size: .88rem; margin: 8px 0 18px; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.price-card li { position: relative; padding-left: 24px; color: var(--text-dim); font-size: .93rem; }
.price-card li::before { content: "→"; position: absolute; left: 0; color: var(--blue-2); font-weight: 700; }
.price-note { text-align: center; color: var(--text-dim); font-size: .86rem; margin-top: 22px; }

/* ===== CTA ===== */
.cta-box {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
  border: 1px solid var(--card-border); border-radius: 24px; padding: 52px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% -20%, rgba(59,130,246,.25), transparent 60%); pointer-events: none; }
.cta-box h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); position: relative; }
.cta-box > p { color: var(--text-dim); margin: 12px 0 28px; position: relative; }
.cta-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 760px; margin: 0 auto; position: relative; }
.cta-form input {
  flex: 1 1 200px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--card-border);
  background: rgba(255,255,255,.05); color: var(--text); font-size: .95rem; font-family: inherit;
}
.cta-form input::placeholder { color: var(--text-dim); }
.cta-form input:focus { outline: none; border-color: var(--blue); }
.cta-alt { margin-top: 20px; color: var(--text-dim); position: relative; }
.cta-alt a { color: var(--cyan); font-weight: 600; }
.form-msg { margin-top: 14px; color: #86efac; font-weight: 600; min-height: 1.2em; position: relative; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--card-border); padding: 44px 0; background: var(--navy-900); }
.footer-inner { display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand b { font-family: "Sora"; font-size: 1.1rem; display: block; }
.footer-brand span { color: var(--text-dim); font-size: .82rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-dim); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { color: var(--text-dim); font-size: .82rem; }

/* ===== Panel / Dashboard KPIs ===== */
.dash {
  background: linear-gradient(180deg, var(--navy-600), var(--navy-700));
  border: 1px solid var(--card-border); border-radius: 20px; padding: 22px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-title { font-family: "Sora"; font-weight: 600; font-size: 1rem; }
.dash-live { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: #86efac; }
.dash-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden; }
.kpi-label { font-size: .78rem; color: var(--text-dim); }
.kpi-value { font-family: "Sora"; font-size: 1.5rem; font-weight: 700; }
.kpi-delta { font-size: .78rem; color: var(--text-dim); }
.kpi-delta.up { color: #86efac; }
.kpi-delta.warn { color: #fbbf24; }
.spark { width: 100%; height: 26px; margin-top: 6px; opacity: .9; }

.dash-charts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.chart-panel { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 16px; }
.chart-title { display: block; font-size: .85rem; color: var(--text-dim); margin-bottom: 12px; }
.bars { width: 100%; height: auto; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 130px; height: 130px; transform: rotate(-90deg); }
.donut-ring { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 4; }
.donut-seg { fill: none; stroke-width: 4; stroke-linecap: round; }
.donut-legend { list-style: none; display: grid; gap: 8px; font-size: .86rem; color: var(--text-dim); }
.donut-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }

/* ===== Bot agente · mesh de skills ===== */
.mesh {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px;
  align-items: center; justify-items: center;
}
.mesh-audience {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 20px; max-width: 300px; width: 100%;
}
.mesh-audience p { color: var(--text-dim); font-size: .92rem; margin-top: 8px; }
.mesh-audience.ceo { grid-column: 1 / 4; grid-row: 1; max-width: 420px; text-align: center; }
.mesh-audience.emp { grid-column: 1; grid-row: 2; }
.mesh-audience.cli { grid-column: 3; grid-row: 2; }
.aud-badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; background: rgba(59,130,246,.16); color: var(--blue-2); }
.aud-badge.olive { background: rgba(111,154,63,.18); color: #a3c96a; }
.aud-badge.blue { background: rgba(56,189,248,.16); color: var(--cyan); }
.mesh-core {
  grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 168px; height: 168px; border-radius: 50%; justify-content: center; text-align: center;
  background: radial-gradient(circle, rgba(59,130,246,.22), rgba(15,23,41,.9) 70%);
  border: 2px solid rgba(91,141,239,.5); box-shadow: 0 0 60px -10px rgba(59,130,246,.6);
}
.mesh-core img { width: 44px; height: 44px; border-radius: 11px; }
.mesh-core b { font-family: "Sora"; font-size: 1.15rem; margin-top: 4px; }
.mesh-core span { font-size: .74rem; color: var(--text-dim); }
.skill-cloud { grid-column: 1 / 4; grid-row: 3; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.skill {
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border); border-radius: 100px;
  padding: 9px 16px; font-size: .9rem; font-weight: 500; transition: border-color .2s, background .2s, transform .2s;
}
.skill:hover { border-color: rgba(59,130,246,.55); background: rgba(59,130,246,.1); transform: translateY(-2px); }

/* ===== Fusión datos + web + IA ===== */
.fusion { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.fusion-inputs { display: grid; gap: 14px; }
.fusion-in, .fusion-out {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 20px;
}
.fusion-in { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.fusion-ic { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(59,130,246,.14); }
.fusion-ic.gold { background: rgba(201,167,71,.16); }
.fusion-in b, .fusion-out b { font-size: 1.02rem; }
.fusion-in span, .fusion-out span { color: var(--text-dim); font-size: .88rem; }
.fusion-arrow { font-size: 2.4rem; color: var(--blue-2); text-align: center; }
.fusion-out { border-color: var(--gold); background: linear-gradient(180deg, rgba(201,167,71,.1), var(--card)); text-align: center; box-shadow: 0 20px 50px -24px rgba(201,167,71,.4); }
.fusion-out .fusion-ic { margin: 0 auto 12px; width: 56px; height: 56px; font-size: 1.7rem; }
.fusion-out b { display: block; font-size: 1.2rem; font-family: "Sora"; }
.fusion-out span { display: block; margin-top: 6px; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .node-orbit { width: 240px; height: 240px; }
  .hero-logo { width: 150px; height: 150px; }
  .cards-3, .cards-4, .pricing { grid-template-columns: 1fr; }
  .bot-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .dash-charts { grid-template-columns: 1fr; }
  .fusion { grid-template-columns: 1fr; }
  .fusion-arrow { transform: rotate(90deg); }
  .mesh { grid-template-columns: 1fr; justify-items: stretch; }
  .mesh-audience, .mesh-audience.ceo, .mesh-audience.emp, .mesh-audience.cli { grid-column: 1 !important; max-width: none; }
  .mesh-core { grid-column: 1; margin: 4px auto; }
  .skill-cloud { grid-column: 1; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 68px; right: 0; left: 0;
    flex-direction: column; gap: 6px; padding: 16px 22px 24px;
    background: rgba(8,12,24,.98); border-bottom: 1px solid var(--card-border);
    transform: translateY(-140%); transition: transform .3s ease; align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--card-border); }
  .nav-cta { text-align: center; border-bottom: 0 !important; }
  .lang-switch { align-self: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cards-4 { grid-template-columns: 1fr; }
  .hero-trust { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .node-orbit::before, .node-orbit::after { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
