*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FBFAF8;
  color: #15140F;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #A65F3E; text-decoration: none; }
a:hover { color: #15140F; }
::selection { background: #E9DED5; }

.mono { font-family: 'IBM Plex Mono', monospace; }

@keyframes khipuFlow {
  0% { left: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes khipuFlowV {
  0% { top: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.shell { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,250,248,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E5E2DB;
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 32px; height: 68px;
  display: flex; align-items: center; gap: 40px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #15140F; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; background: #15140F; color: #FBFAF8;
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500;
  display: grid; place-items: center;
}
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand-name span { color: #6B6862; font-weight: 400; }

nav.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; flex-wrap: wrap; }
nav.site-nav a { font-size: 14px; color: #57544E; }
nav.site-nav a:hover { color: #15140F; }
.btn-nav {
  font-size: 14px !important; padding: 8px 16px; border-radius: 8px;
  background: #15140F; color: #FBFAF8 !important; font-weight: 500;
}
.btn-nav:hover { background: #33302A; }

/* Buttons */
.btn-dark, .btn-light {
  display: inline-block; font-size: 15px; padding: 13px 24px; border-radius: 9px;
  font-weight: 500; border: none; cursor: pointer; font-family: inherit;
}
.btn-dark { background: #15140F; color: #FBFAF8; }
.btn-dark:hover { background: #33302A; color: #FBFAF8; }
.btn-outline {
  display: inline-block; font-size: 15px; padding: 13px 24px; border-radius: 9px;
  border: 1px solid #D8D4CC; color: #15140F;
}
.btn-outline:hover { border-color: #15140F; color: #15140F; }
.btn-light { background: #FBFAF8; color: #15140F; }
.btn-light:hover { background: #E9DED5; color: #15140F; }

/* Layout helpers */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.section { max-width: 1120px; margin: 0 auto; padding: 88px 32px; }
.section-border-top { border-top: 1px solid #E5E2DB; }
.section-border-y { border-top: 1px solid #E5E2DB; border-bottom: 1px solid #E5E2DB; }
.bg-white { background: #FFFFFF; }
.bg-dark { background: #15140F; color: #FBFAF8; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #A65F3E; margin: 0 0 24px;
}
.kicker {
  font-size: 13px; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.08em;
  text-transform: uppercase; color: #6B6862; font-weight: 500; margin: 0 0 40px;
}

/* Hero */
.hero { padding: 104px 32px 88px; }
.hero h1 { font-size: 58px; line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin: 0; max-width: 15ch; }
.hero p.lead { font-size: 19px; line-height: 1.6; color: #4A4741; max-width: 60ch; margin: 28px 0 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.page-hero { padding: 88px 32px 56px; }
.page-hero h1 { font-size: 48px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0; max-width: 20ch; }
.page-hero p.lead { font-size: 18px; line-height: 1.6; color: #4A4741; max-width: 62ch; margin: 24px 0 0; }

/* Grid problem cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 56px; }
.grid-cards h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; }
.grid-cards p { font-size: 15px; line-height: 1.65; color: #57544E; margin: 0; }

/* Flow diagram */
.flow-box { border: 1px solid #E5E2DB; border-radius: 14px; background: #FFFFFF; padding: 44px 32px; }
.flow-row { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; }
.flow-node {
  flex: 1 1 150px; min-width: 150px; border: 1px solid #E5E2DB; border-radius: 11px;
  padding: 20px 18px; background: #FBFAF8;
}
.flow-node.dark { border-color: #15140F; background: #15140F; color: #FBFAF8; flex-basis: 170px; }
.flow-node p:first-child { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #6B6862; margin: 0 0 8px; }
.flow-node.dark p:first-child { color: #A99F94; }
.flow-node p.title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.flow-node p.desc { font-size: 13px; line-height: 1.5; color: #6B6862; margin: 0; }
.flow-node.dark p.desc { color: #B9B2A8; }
.flow-connector { flex: 0 0 56px; position: relative; align-self: center; height: 2px; background: #E5E2DB; margin: 0 4px; }
.flow-connector span, .flow-connector-v span {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #A65F3E;
  animation: khipuFlow 3.2s linear infinite;
}
.flow-connector span { top: -2px; }
.flow-caption { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #6B6862; margin: 32px 0 0; text-align: center; }

/* Vertical flow */
.flow-col { display: flex; flex-direction: column; align-items: center; }
.flow-v-item { width: 100%; max-width: 460px; }
.flow-v-box { border-radius: 11px; padding: 18px 22px; text-align: center; border: 1px solid; }
.flow-v-box p.title { font-size: 15.5px; font-weight: 600; margin: 0 0 4px; }
.flow-v-box p.desc { font-size: 13px; margin: 0; opacity: 0.8; }
.flow-connector-v { position: relative; width: 2px; height: 34px; background: #E5E2DB; margin: 0 auto; }
.flow-connector-v span { left: -2px; animation-name: khipuFlowV; animation-duration: 2.6s; }

/* Capacidades / componentes grid (bordered mosaic) */
.mosaic {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px;
  background: #E5E2DB; border: 1px solid #E5E2DB; border-radius: 12px; overflow: hidden;
}
.mosaic .cell { background: #FFFFFF; padding: 26px 24px; }
.mosaic .cell p.title { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.mosaic .cell p.desc { font-size: 14px; line-height: 1.55; color: #6B6862; margin: 0; }

/* Two-col tech/benefits */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; }
.two-col h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; }
.two-col p.desc { font-size: 15px; line-height: 1.65; color: #57544E; margin: 0 0 28px; max-width: 46ch; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; padding: 7px 12px;
  border: 1px solid #E5E2DB; border-radius: 7px; background: #FFFFFF; color: #4A4741;
}
.tag.sm { font-size: 12.5px; padding: 6px 11px; color: #57544E; }
.benefit-list { display: flex; flex-direction: column; gap: 20px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; }
.benefit-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 8px; border-radius: 2px; background: #A65F3E; }
.benefit-item p.title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.benefit-item p.desc { font-size: 14px; line-height: 1.6; color: #6B6862; margin: 0; }

/* CTA band */
.cta-band {
  padding: 76px 32px; display: flex; flex-wrap: wrap; gap: 32px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; max-width: 22ch; }
.cta-band p { font-size: 16px; line-height: 1.6; color: #B9B2A8; margin: 0; max-width: 52ch; }
.cta-band-simple { padding: 76px 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band-simple h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0; max-width: 26ch; }

/* Soluciones list */
.sol-item {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px;
  padding: 44px 0; border-bottom: 1px solid #E5E2DB;
}
.sol-item .n { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #A65F3E; margin: 0 0 12px; }
.sol-item h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.sol-item .body { grid-column: span 2; min-width: 0; }
.sol-item .body > p { font-size: 16px; line-height: 1.7; color: #4A4741; margin: 0 0 20px; max-width: 62ch; }

/* Modelo cards */
.modelo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.modelo-card { border: 1px solid #E5E2DB; border-radius: 12px; padding: 32px; }
.modelo-card .tag-label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #A65F3E; margin: 0 0 14px; }
.modelo-card h3 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.modelo-card p { font-size: 15px; line-height: 1.65; color: #57544E; margin: 0; }

/* Integraciones */
.integ-group h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.integ-group > p { font-size: 14.5px; line-height: 1.6; color: #6B6862; margin: 0 0 20px; }
.integ-list { display: flex; flex-direction: column; gap: 1px; background: #E5E2DB; border: 1px solid #E5E2DB; border-radius: 10px; overflow: hidden; }
.integ-list .row { background: #FBFAF8; padding: 13px 16px; display: flex; align-items: center; gap: 12px; }
.integ-list .dot { width: 5px; height: 5px; border-radius: 50%; background: #C6BFB5; }
.integ-list .row span.label { font-size: 14.5px; color: #33302A; }
.integ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }

/* Pasos mosaic */
.pasos-mosaic .cell p:first-child { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #A65F3E; margin: 0 0 12px; }
.pasos-mosaic .cell p.title { font-size: 15.5px; font-weight: 600; margin: 0 0 8px; }
.legal-note { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; line-height: 1.7; color: #6B6862; margin: 28px 0 0; max-width: 78ch; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; }
.contacto-info h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 20px; max-width: 16ch; }
.contacto-info > p.lead { font-size: 16px; line-height: 1.65; color: #4A4741; margin: 0 0 40px; max-width: 46ch; }
.contacto-fields { display: flex; flex-direction: column; gap: 22px; }
.contacto-fields .label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #6B6862; margin: 0 0 6px;
}
.contacto-fields .value { font-size: 15.5px; margin: 0; color: #33302A; }

.contacto-form-box { border: 1px solid #E5E2DB; border-radius: 14px; background: #FFFFFF; padding: 36px; }
.form-success { padding: 40px 0; text-align: center; }
.form-success p.title { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.form-success p.desc { font-size: 15px; line-height: 1.6; color: #6B6862; margin: 0; }
form.khipu-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 500; color: #33302A; }
.field input, .field textarea {
  font-family: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid #D8D4CC;
  border-radius: 8px; background: #FBFAF8; color: #15140F; outline: none;
}
.field input:focus, .field textarea:focus { border-color: #15140F; }
.field textarea { resize: vertical; }
.form-note { font-size: 12.5px; line-height: 1.6; color: #6B6862; margin: 0; }
.btn-submit {
  font-family: inherit; font-size: 15px; font-weight: 500; padding: 13px 24px; border: none;
  border-radius: 9px; background: #15140F; color: #FBFAF8; cursor: pointer;
}
.btn-submit:hover { background: #33302A; }

/* Nosotros */
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 44px; }
.mvv-grid .label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #A65F3E; margin: 0 0 12px;
}
.mvv-grid p.body { font-size: 16px; line-height: 1.7; color: #33302A; margin: 0; }

/* Seguridad list */
.seg-item { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(300px, 2.2fr); gap: 32px; padding: 40px 0; border-bottom: 1px solid #E5E2DB; }
.seg-item h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.seg-item p { font-size: 15px; line-height: 1.7; color: #4A4741; margin: 0; max-width: 62ch; }

/* Legal */
.legal-section { max-width: 860px; margin: 0 auto; padding: 88px 32px 96px; }
.legal-section h1 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 12px; }
.legal-updated { font-size: 14px; color: #A29B92; margin: 0 0 44px; }
.legal-sec { margin-bottom: 34px; }
.legal-sec h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.legal-sec p { font-size: 15.5px; line-height: 1.75; color: #33302A; margin: 0; }

/* Footer */
footer.site { border-top: 1px solid #E5E2DB; background: #FFFFFF; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 56px 32px 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .mark {
  width: 24px; height: 24px; border-radius: 6px; background: #15140F; color: #FBFAF8;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; display: grid; place-items: center;
}
.footer-brand .name { font-size: 14.5px; font-weight: 600; }
.footer-desc { font-size: 13.5px; line-height: 1.65; color: #6B6862; margin: 0; max-width: 34ch; }
.footer-col .label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #A29B92; margin: 0 0 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14px; color: #57544E; }
.footer-links a:hover { color: #15140F; }
.footer-company { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: #57544E; }
.footer-bottom {
  border-top: 1px solid #E5E2DB; margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}
.footer-bottom p { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #A29B92; margin: 0; }

@media (max-width: 640px) {
  .hero h1 { font-size: 38px; }
  .page-hero h1 { font-size: 34px; }
}
