/* Monge Solutions — estilos del sitio institucional */
:root {
  --ink: #0E1A33;
  --ink-2: #14244A;
  --ink-line: #253A63;
  --navy: #182A4B;
  --orange: #F7830C;
  --orange-text: #C25E00;
  --sky: #27AEDE;
  --sky-light: #4FC3F0;
  --link: #0B6E9E;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #F9FAFC;
  --line: #E2E7EE;
  --text: #1B2638;
  --text-2: #3A4659;
  --muted: #4F5B6E;
  --on-dark: #C4CEDC;
  --on-dark-2: #9FB0C8;
  --radius: 14px;
  --container: 1200px;
  --font-head: "Poppins", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); }
a:hover { color: #084F72; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky-light); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 10; }
.skip:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #FFFFFF; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--orange-text); margin-bottom: 14px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--sky-light); }
.h2 { font-size: clamp(2rem, 1.5vw + 1.4rem, 2.75rem); line-height: 1.2; color: var(--ink); text-wrap: balance; max-width: 760px; }
.section--dark .h2 { color: #FFFFFF; }
.lead { font-size: 17px; color: var(--text-2); text-wrap: pretty; }
.section--dark .lead { color: var(--on-dark); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-body); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: #FF9A2E; color: var(--ink); }
.btn--ghost { border: 1.5px solid #3A4B6B; color: #FFFFFF; }
.btn--ghost:hover { border-color: var(--sky-light); color: #FFFFFF; }

/* Cabecera */
.hero { background: var(--ink); color: #FFFFFF; position: relative; overflow: hidden; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.nav__logo img { height: 44px; width: auto; }
.nav__toggle { display: none; background: none; border: 1.5px solid #3A4B6B; border-radius: 8px; width: 48px; height: 48px; color: #FFFFFF; cursor: pointer; align-items: center; justify-content: center; }
.nav__menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav__menu a { color: #D6DEEA; text-decoration: none; }
.nav__menu a:hover { color: #FFFFFF; }
.nav__menu .btn { color: var(--ink); min-height: 44px; padding: 0 20px; font-size: 15px; }

.hero__body { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 104px; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-weight: 700; font-size: clamp(2.4rem, 3vw + 1.2rem, 3.9rem); line-height: 1.12; letter-spacing: -0.5px; text-wrap: balance; }
.hero h1 span { color: var(--orange); }
.hero__lead { margin-top: 24px; font-size: 19px; line-height: 1.65; color: var(--on-dark); max-width: 600px; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.orbit { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; }
.orbit__disc { position: absolute; inset: 6%; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--ink-line); }
.orbit__ring { position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed #2E4673; }
.orbit__mark { position: absolute; left: 27%; top: 27%; width: 46%; height: 46%; }
.chip { position: absolute; background: #FFFFFF; color: var(--ink); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.chip--a { right: 0; top: 10%; }
.chip--b { left: 0; bottom: 12%; }
.chip img, .chip svg { width: 30px; height: 30px; flex-shrink: 0; }
.chip strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.2; }
.chip small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.brandbar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; display: flex; }
.brandbar::before { content: ""; flex: 3; background: var(--orange); }
.brandbar::after { content: ""; flex: 2; background: var(--sky); }

/* Tecnologías */
.stack { background: var(--surface); border-bottom: 1px solid var(--line); }
.stack ul { list-style: none; margin: 0; padding: 26px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 36px; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--muted); max-width: var(--container); margin: 0 auto; }
.stack .stack__label { font-family: var(--font-body); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }

/* Nosotros */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 440px; min-width: 0; }
.stack-p > * + * { margin-top: 16px; }
.cards-2 { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }
.pillars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.pillar__n { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; background: #FFF1E3; color: var(--orange-text); }
.pillar:nth-child(even) .pillar__n { background: #E3F5FC; color: var(--link); }
.pillar h3 { font-size: 17px; color: var(--ink); }
.pillar p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.label { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* Servicios */
.services { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface-2); display: flex; flex-direction: column; }
.service svg { width: 40px; height: 40px; }
.service h3 { margin: 18px 0 12px; font-size: 20px; line-height: 1.3; color: var(--ink); }
.service ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.service__meta { margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--muted); }
.service__meta strong { color: var(--text); }

/* Productos */
.products { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 24px; }
.product { flex: 1 1 420px; min-width: 0; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.product--wide { flex-basis: 520px; }
.product p { font-size: 16px; color: var(--on-dark); }
.product ul { margin: 0; padding-left: 18px; font-size: 15px; color: #D6DEEA; display: flex; flex-direction: column; gap: 8px; }
.product__logo { height: 64px; width: auto; align-self: flex-start; }
.product__head { display: flex; align-items: center; gap: 16px; }
.product__head img { width: 56px; height: 56px; }
.product__head h3 { font-size: 26px; line-height: 1.15; }
.product__head p { margin-top: 2px; font-size: 14px; color: var(--sky-light); font-weight: 600; }
.product__meta { margin-top: auto; font-size: 13px; color: var(--on-dark-2); }
.product__meta strong { color: #FFFFFF; }
.label--dark { color: var(--on-dark-2); margin-bottom: 10px; }
.product .verticals { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.verticals li { font-family: var(--font-head); font-weight: 500; font-size: 14px; padding: 6px 14px; border-radius: 6px; color: #FFFFFF; }
.v-health { background: #1E7D46; } .v-business { background: #2F6FD0; } .v-build { background: #F2994A; color: var(--ink) !important; font-weight: 600 !important; } .v-tech { background: #8A45CC; }

/* Trayectoria */
.case { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.case::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--orange) 0 60%, var(--sky) 60% 100%); }
.case h3 { margin-top: 12px; font-size: 26px; color: var(--ink); }
.case p { margin-top: 16px; font-size: 16px; color: var(--text-2); }
.people { display: flex; flex-direction: column; gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; display: flex; gap: 18px; align-items: flex-start; }
.avatar { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 18px; overflow: hidden; }
.avatar--orange { background: var(--orange-text); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 18px; color: var(--ink); }
.person .role { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--link); }
.person p:last-child { margin-top: 8px; font-size: 15px; color: var(--muted); }
.mt-48 { margin-top: 48px; }

/* Principios */
.principles { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px 40px; list-style: none; padding: 0; }
.principles li { border-top: 2px solid var(--orange); padding-top: 18px; }
.principles li:nth-child(even) { border-top-color: var(--sky); }
.principles h3 { font-size: 18px; color: var(--ink); }
.principles p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Contacto */
.contact dl { margin: 36px 0 0; display: grid; gap: 18px; font-size: 16px; }
.contact dt { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--on-dark-2); }
.contact dd { margin: 4px 0 0; }
.contact dd a { color: #FFFFFF; }
.form { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: #D6DEEA; }
.field input, .field textarea { min-height: 46px; border-radius: 8px; border: 1px solid #3A4B6B; background: var(--ink); color: #FFFFFF; padding: 12px 14px; font-size: 15px; font-family: var(--font-body); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--sky-light); outline: none; }
.form .btn { grid-column: 1 / -1; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--on-dark-2); }

/* Pie */
.footer { background: #0A1328; color: var(--on-dark-2); border-top: 1px solid #1C2B4D; }
.footer .container { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; }
.footer img { height: 36px; width: auto; }
.footer a { color: var(--on-dark); }

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 24px; background: var(--ink); color: #FFFFFF; }
.notfound img { height: 44px; width: auto; }
.notfound h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.notfound p { color: var(--on-dark); }

/* Responsive */
@media (max-width: 880px) {
  .nav { flex-wrap: wrap; }
  .nav__toggle { display: inline-flex; }
  .nav__menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 8px; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { display: block; padding: 12px 4px; }
  .nav__menu .btn { margin-top: 8px; }
  .hero__body { padding-top: 24px; padding-bottom: 80px; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .cards-2, .form { grid-template-columns: minmax(0, 1fr); }
  .product, .case { padding: 26px; }
  .chip { padding: 10px 12px; }
  .chip strong { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
