/* Colores tomados del logo: "simple" en grafito y "IT" en azul. */
:root {
  --ink: #202833;
  --ink-900: #151b24;
  --ink-800: #1c2430;
  --ink-700: #2a3443;
  --blue: #0866d9;
  --blue-600: #0754b3;
  --blue-300: #6ea8f0;
  --blue-50: #eaf2fd;
  --text: #2b3440;
  --muted: #5b6573;
  --line: #e3e8ef;
  --soft: #f5f8fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 27, 36, 0.08);
  --font-head: "Outfit", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }

/* Logo como texto: escala sin pérdida y cambia de color sobre fondos oscuros. */
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--blue); }
.logo--light { color: var(--white); }
.logo--light span { color: var(--blue-300); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: var(--blue-300); }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  border: 2px solid transparent;
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-600); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* Navegación */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu a:not(.btn) { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav__menu a:not(.btn):hover { color: var(--blue); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }

/* Inicio */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(8, 102, 217, 0.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(8, 102, 217, 0.18), transparent 60%),
    var(--ink-900);
  color: #c9d2de;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero h1 { color: var(--white); }
.hero .hl { color: var(--blue-300); }
.hero .lead { color: #b5c0ce; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.hero__facts strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--white); }

/* Maqueta de la bandeja de Simple CX */
.mock {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-size: 0.82rem;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--ink-900); border-bottom: 1px solid var(--ink-700); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4555; }
.mock__bar span { margin-left: 10px; color: #7d8896; font-size: 0.75rem; }
.mock__body { display: grid; grid-template-columns: 0.9fr 1.3fr; min-height: 340px; }
.mock__list { border-right: 1px solid var(--ink-700); padding: 8px; }
.mock__item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; }
.mock__item.is-active { background: rgba(8, 102, 217, 0.18); }
.mock__item b { display: block; color: #e6ebf2; font-weight: 600; }
.mock__item small { color: #8994a3; }
.dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; }
.dot--wa { background: #25d366; }
.dot--mail { background: var(--blue-300); }
.dot--shop { background: #a78bfa; }
.mock__chat { display: flex; flex-direction: column; gap: 9px; padding: 16px; }
.msg { max-width: 86%; padding: 8px 12px; border-radius: 12px; line-height: 1.4; }
.msg em { display: block; font-style: normal; font-size: 0.7rem; color: var(--blue-300); margin-bottom: 2px; }
.msg--in { align-self: flex-start; background: #2c3747; color: #e6ebf2; border-bottom-left-radius: 4px; }
.msg--bot { align-self: flex-start; background: rgba(8, 102, 217, 0.16); color: #dbe7f7; border: 1px solid rgba(110, 168, 240, 0.25); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.quote { align-self: flex-end; display: flex; gap: 10px; align-items: center; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 12px; }
.quote b { display: block; }
.quote small { color: var(--muted); }
.quote__icon { background: #e5484d; color: var(--white); font-weight: 700; font-size: 0.65rem; padding: 6px 5px; border-radius: 4px; }
.badge-won { align-self: center; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: rgba(37, 211, 102, 0.12); color: #6ee7a0; font-size: 0.74rem; text-align: center; }

/* Franja de canales */
.strip { border-bottom: 1px solid var(--line); background: var(--white); }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding: 22px 0; }
.strip span { font-family: var(--font-head); font-weight: 600; color: var(--muted); }

/* Secciones */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink-900); color: #c9d2de; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark .lead { color: #b5c0ce; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }
.subhead { margin: 72px 0 24px; font-size: 1.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 28px; border-radius: var(--radius); background: var(--soft); border-top: 4px solid var(--blue); }
.pillar:nth-child(2) { border-top-color: var(--ink); }
.pillar:nth-child(3) { border-top-color: var(--blue-300); }
.pillar__tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--blue); margin-bottom: 8px; }
.pillar p { color: var(--muted); margin: 0; }

.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.module { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow 0.2s, border-color 0.2s; }
.module:hover { box-shadow: var(--shadow); border-color: #cfdcef; }
.module__num { font-family: var(--font-head); font-weight: 700; color: var(--blue); }
.module h4 { margin-top: 6px; font-size: 1.15rem; }
.module p { color: var(--muted); font-size: 0.95rem; }
.module ul { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.module li { padding: 3px 0 3px 18px; position: relative; }
.module li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.modules__base { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }
.modules__base strong { color: var(--ink); }

.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: none; }
.journey li { padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.journey li.is-accent { background: var(--blue); border-color: var(--blue); }
.journey li.is-accent * { color: var(--white); }
.journey span { font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: 0.9rem; }
.journey h4 { margin: 4px 0 6px; }
.journey p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.roles div { border-left: 4px solid var(--ink); padding: 4px 0 4px 16px; }
.roles p { margin: 0; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 6px 0 6px 30px; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230866d9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks--light li::before { background-color: rgba(110, 168, 240, 0.18); }

.table-card { background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: var(--radius); padding: 8px; overflow-x: auto; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table-card caption { text-align: left; padding: 12px 14px; font-family: var(--font-head); font-weight: 600; color: var(--white); }
.table-card th, .table-card td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--ink-700); vertical-align: top; }
.table-card th { color: var(--blue-300); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table-card td:first-child { color: var(--white); font-weight: 500; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s; }
.service:hover { box-shadow: var(--shadow); border-color: #cfdcef; transform: translateY(-2px); }
.service svg { width: 44px; height: 44px; padding: 10px; margin-bottom: 16px; border-radius: 12px; background: var(--blue-50); fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.chips--soft { margin: 8px 0 28px; }
.chips--soft span { background: var(--soft); }

.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.process li { display: flex; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.process li > span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: var(--white); font-family: var(--font-head); font-weight: 700; }
.process h4 { margin: 4px 0; }
.process p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stats div { padding: 24px; border-radius: var(--radius); background: var(--soft); }
.stats strong { display: block; font-family: var(--font-head); font-size: 2.4rem; line-height: 1.1; color: var(--blue); }
.stats span { color: var(--muted); font-size: 0.95rem; }
.exp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.exp-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.exp-card h3 { margin-bottom: 12px; }

/* Contacto */
.contact { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact li { display: grid; grid-template-columns: 110px 1fr; color: var(--white); }
.contact span { color: #8994a3; }
.contact a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); justify-self: start; }
.contact a:hover { border-color: var(--white); }
.form { background: var(--white); border-radius: 18px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%;
  font: 400 1rem var(--font-body);
  color: var(--text);
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfd7e2;
  border-radius: 10px;
  background: var(--white);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 102, 217, 0.18); }
.form__error { margin: 0; color: #c0262d; font-size: 0.9rem; }
.form__note { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Pie */
.footer { background: var(--ink-900); color: #8994a3; border-top: 1px solid var(--ink-700); padding: 48px 0 24px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer__inner p { margin: 8px 0 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer nav a { color: #c9d2de; text-decoration: none; }
.footer nav a:hover { color: var(--white); }
.footer__copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ink-700); font-size: 0.85rem; }

/* Páginas de texto (privacidad, 404) */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 780px; }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page li { margin-bottom: 0.4em; }
.page__meta { color: var(--muted); }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* Adaptación a pantallas pequeñas */
@media (max-width: 1080px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 12px; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 56px 0 64px; }
  .hero__grid, .split, .exp-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars, .services, .roles { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .pillars, .services, .roles, .modules { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__list { display: none; }
  .stats strong { font-size: 2rem; }
  .contact li { grid-template-columns: 1fr; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.notfound__title { margin-top: 32px; }
.footer__link { color: #c9d2de; }
