/* ===== Paleta MingaKo: negro, blanco y magenta ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f6;
  --surface: #ffffff;
  --text: #0d0d0f;
  --muted: #5f5f6b;
  --border: #e4e4ea;
  --primary: #e00a57;          /* magenta de marca (rellenos con texto blanco) */
  --primary-hover: #c20849;
  --primary-soft: #fde6ee;
  --accent: #ff4f8b;
  --ink: #0d0d0f;              /* bloques negros de marca (siempre oscuros) */
  --chart-ink: #2b2b33;        /* barras de datos neutras */
  --shadow: 0 20px 60px -24px rgba(0, 0, 0, .22);
  --radius: 14px;
  --font-display: Montserrat, Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b; --bg-alt: #141417; --surface: #18181c; --text: #f5f5f7;
    --muted: #9d9da8; --border: #2a2a31; --primary: #f0145f; --primary-hover: #ff3a78;
    --primary-soft: #3a0e1f; --chart-ink: #d6d6de; --shadow: 0 20px 60px -20px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --bg-alt: #141417; --surface: #18181c; --text: #f5f5f7;
  --muted: #9d9da8; --border: #2a2a31; --primary: #f0145f; --primary-hover: #ff3a78;
  --primary-soft: #3a0e1f; --chart-ink: #d6d6de; --shadow: 0 20px 60px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .15s; font-family: inherit;
}
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { filter: brightness(.97); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.full { width: 100%; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: .2s;
}
.nav.scrolled { border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.logo {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--primary); color: #fff;
  font-size: .8rem; font-weight: 800;
}
.logo.sm { width: 22px; height: 22px; border-radius: 6px; font-size: .6rem; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { background: var(--bg-alt); color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-btn {
  background: none; border: 1px solid var(--border); color: var(--text);
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer; font-size: 1rem;
}
.menu-btn { display: none; }

/* ===== Hero ===== */
.hero { padding: 72px 0 40px; text-align: center; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .85rem;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 1.05; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.025em; line-height: 1.15; font-weight: 800; }
.grad { background: var(--primary); color: #fff; padding: 0 .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin-top: 14px; }
.hero .lead { margin-inline: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ===== Mockup ===== */
.mockup {
  margin: 56px auto 0; max-width: 980px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.mock-bar i:nth-child(1) { background: #ff6b6b; } .mock-bar i:nth-child(2) { background: #ffc84a; } .mock-bar i:nth-child(3) { background: #4cd07d; }
.mock-bar span { margin-left: 12px; font-size: .8rem; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 230px 1fr; min-height: 380px; }
.mock-side { background: var(--bg-alt); padding: 14px 10px; border-right: 1px solid var(--border); font-size: .88rem; }
.ws { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 6px 8px 12px; }
.side-item { padding: 5px 8px; border-radius: 6px; color: var(--muted); cursor: default; }
.side-item:hover { background: var(--border); }
.side-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 8px 4px; }
.mock-page { padding: 28px 36px; }
.page-emoji { font-size: 2.4rem; }
.mock-page h3 { font-size: 1.6rem; margin: 6px 0 2px; }
.todo { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.todo li { display: flex; gap: 10px; align-items: center; }
.todo input { accent-color: var(--primary); width: 16px; height: 16px; }
.todo li:has(input:checked) { color: var(--muted); text-decoration: line-through; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.col { background: var(--bg-alt); border-radius: 10px; padding: 10px; font-size: .85rem; display: grid; gap: 8px; align-content: start; }
.col b { font-size: .78rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.tag-a { border-left: 3px solid var(--primary); }
.tag-b { border-left: 3px solid var(--accent); }

/* ===== Logos ===== */
.logos { padding: 48px 0; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; margin-top: 20px; font-weight: 800; font-size: 1.25rem; color: var(--muted); opacity: .7; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); font-size: 1.3rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ===== AI ===== */
.ai { background: var(--ink); color: #fff; }
.ai .lead { color: rgba(255,255,255,.8); }
.pill-dark { background: rgba(255,255,255,.15); color: #fff; }
.ai h2 { margin-top: 16px; }
.ai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 10px; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); margin-right: 10px; font-size: .75rem; }
.chat { background: var(--surface); color: var(--text); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; }
.chat-head { padding: 14px 18px; font-weight: 700; border-bottom: 1px solid var(--border); }
.chat-log { height: 260px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .93rem; white-space: pre-wrap; }
.msg.bot { background: var(--bg-alt); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input, .signup input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
.chat-form input:focus, .signup input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.chat-suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 14px; }
.chat-suggest button { border: 1px solid var(--border); background: none; color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: .8rem; cursor: pointer; font-family: inherit; }
.chat-suggest button:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Lynx ===== */
.molly-avatar {
  display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff8ea, #ffd6c4);
  color: #fff; font-weight: 800; box-shadow: 0 0 0 3px rgba(255,255,255,.25);
  overflow: hidden;
}
.molly-avatar img { width: 82%; height: 82%; object-fit: contain; margin-top: 8%; }
.molly-avatar.lg { width: 72px; height: 72px; font-size: 1.4rem; animation: glow 3s ease-in-out infinite; }
.molly-avatar.xs { width: 20px; height: 20px; font-size: .62rem; box-shadow: none; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(255,255,255,.1), 0 0 30px rgba(240,20,95,.55); } }
.pill-molly { display: inline-flex; align-items: center; gap: 8px; }
.molly-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.molly-id b { display: block; font-size: 1.2rem; }
.molly-id span { color: rgba(255,255,255,.75); font-size: .9rem; }
.ai { padding: 104px 0; }
.ai h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.ai .btn-lg { margin-top: 28px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.chat-head { display: flex; align-items: center; gap: 10px; }
.chat-head .molly-avatar { width: 32px; height: 32px; box-shadow: none; }
.chat-head b { display: block; line-height: 1.2; }
.online { font-size: .75rem; color: #22b864; font-weight: 500; }
.molly-skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.molly-skills > div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(6px); }
.molly-skills span { font-size: 1.5rem; }
.molly-skills b { display: block; margin: 8px 0 4px; font-size: 1.05rem; }
.molly-skills p { color: rgba(255,255,255,.78); font-size: .9rem; }
.molly-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 14px 40px -10px rgba(224,10,87,.6); transition: .2s;
}
.molly-fab:hover { transform: translateY(-2px); background: var(--primary-hover); }
.molly-fab.hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ===== Templates ===== */
.templates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.tpl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: grid; gap: 4px; transition: .2s; cursor: pointer; }
.tpl:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tpl span { color: var(--muted); font-size: .85rem; }
.tpl-cover { height: 120px; border-radius: 10px; display: grid; place-items: center; font-size: 2.4rem; margin-bottom: 8px; }
.c1 { background: linear-gradient(135deg, #ffe1ec, #ff9ec0); }
.c2 { background: linear-gradient(135deg, #f1f1f4, #d2d2da); }
.c3 { background: linear-gradient(135deg, #1c1c22, #3a3a44); }
.c4 { background: linear-gradient(135deg, #ffb3cd, #e00a57); }

/* ===== Quote ===== */
.quote { max-width: 820px; text-align: center; }
blockquote { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 16px; }

/* ===== Pricing ===== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.badge { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 18px; margin: 10px 0 18px; flex: 1; display: grid; gap: 6px; align-content: start; }

/* ===== Final CTA ===== */
.final-emoji { font-size: 3rem; margin-bottom: 10px; }
.signup { display: flex; gap: 10px; max-width: 480px; margin: 28px auto 10px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid > div { display: grid; gap: 8px; align-content: start; }
.foot-grid a:not(.brand) { color: var(--muted); font-size: .92rem; }
.foot-grid a:hover { color: var(--primary); }
.copy { margin-top: 36px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid, .pricing { grid-template-columns: 1fr 1fr; }
  .templates { grid-template-columns: 1fr 1fr; }
  .ai-inner { grid-template-columns: 1fr; }
  .molly-skills { grid-template-columns: 1fr 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .hide-sm { display: none; }
  .nav-cta .btn-primary { padding: 8px 12px; font-size: .85rem; }
  .grid, .pricing, .templates { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .fab-text { display: none; }
  .molly-fab { padding: 6px; }
  .mock-page { padding: 20px; }
  .signup { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}

/* ===== Estilo de marca: negro + magenta, tipografía gruesa, cortes diagonales ===== */
h1, h2, h3, .brand, .btn-lg, .stat b, .kpis .stat b { font-family: var(--font-display); }
h1, h2 { font-weight: 900; letter-spacing: -.01em; }
.brand { font-weight: 800; letter-spacing: .02em; }
.logo { border-radius: 0; clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%); width: 38px; font-weight: 900; }
.logo.sm { width: 26px; }

/* Botón principal inclinado */
.btn-primary { border-radius: 0; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-inline: 22px; font-weight: 700; }
.btn-primary.btn-lg { padding-inline: 30px; }
.btn-primary.btn-xs { padding-inline: 14px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.btn-lg { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; font-size: .92rem; }
.btn-soft { font-weight: 700; }

/* Barra de navegación negra (landing) */
.nav { background: rgba(10,10,11,.92); }
.nav.scrolled { border-color: rgba(255,255,255,.08); }
.nav .brand { color: #fff; }
.nav-links a { color: rgba(255,255,255,.72); text-transform: uppercase; font-size: .8rem; font-weight: 700; letter-spacing: .05em; }
.nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav .btn-ghost { color: #fff; }
.nav .btn-ghost:hover { background: rgba(255,255,255,.08); }
.nav .theme-toggle, .nav .menu-btn { color: #fff; border-color: rgba(255,255,255,.2); }

/* Portada negra con triángulos */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-bottom: 72px; }
.hero > .container { position: relative; z-index: 1; }
.hero::before, .hero::after, .ai::before, .auth-brand::before {
  content: ""; position: absolute; pointer-events: none; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.hero::before { width: 900px; height: 780px; left: 50%; top: 40px; transform: translateX(-50%); background: rgba(255,255,255,.05); }
.hero::after { width: 420px; height: 360px; right: -80px; top: 260px; background: rgba(240,20,95,.18); transform: rotate(18deg); }
.hero h1 { text-transform: uppercase; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.08; }
.hero .lead { color: rgba(255,255,255,.75); }
.hero .pill { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.hero .btn-soft { background: rgba(255,255,255,.1); color: #fff; }
.hero .btn-soft:hover { background: rgba(255,255,255,.18); filter: none; }
.hero .mockup { color: var(--text); }
.section h2 { text-transform: uppercase; }

/* Sección de Lynx: negro con triángulo */
.ai { position: relative; overflow: hidden; }
.ai > .container { position: relative; z-index: 1; }
.ai::before { width: 700px; height: 600px; left: -160px; bottom: -120px; background: rgba(240,20,95,.14); transform: rotate(-12deg); }
.ai h2 .grad, .ai h2 { text-transform: uppercase; }

/* Inicio de sesión */
.auth-brand::after { display: none; }
.auth-brand::before { width: 620px; height: 540px; right: -140px; top: 90px; background: rgba(240,20,95,.22); transform: rotate(14deg); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-pitch h1 { text-transform: uppercase; }
.auth-molly { border-radius: 0; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); padding-inline: 28px; }
/* Página de inicio: beneficios de la prueba gratis */
.trial-perks { margin: 14px 0 0; font-size: .9rem; color: var(--muted, #6b6f86); }


.signup { max-width: 720px; }
.signup input[name=email] { flex: 1.4 1 220px; min-width: 0; }
.signup input[name=company] { flex: 1 1 170px; min-width: 0; }
.signup .btn { flex: none; }

