/* ibcaribe.com — estilo "Sala de control" (opción 3 del lienzo de diseño)
   Colores de marca: verde #4AB051 · azul #448DCB · naranja #EF7A1E · negro #030405 */

:root {
  --bg: #0B0E12;
  --surface: #131920;
  --surface-2: #1F2731;
  --line: #27303B;
  --line-strong: #56616E;
  --switch-off: #3A4552;
  --text: #E8ECF1;
  --text-2: #C6CED8;
  --muted: #A3ADB9;
  --white: #FFFFFF;
  --ink: #030405;
  --green: #4AB051;
  --blue: #448DCB;
  --orange: #EF7A1E;
  --blue-light: #7FB6E6;
  --blue-lighter: #B5D6F2;
  --bar: #2B4E6E;
  --chat-out: #1E4D2B;
  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1280px;
  --font-display: Michroma, "Arial Black", sans-serif;
  --font-body: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-light); }
a:hover { color: var(--blue-lighter); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4, h5, p { margin: 0; }

.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; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* Tipografía */
.h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; color: var(--white); margin-bottom: 24px; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: var(--white); max-width: 780px; }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--white); margin-bottom: 16px; }
.h4 { font-size: 21px; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.h5 { font-size: 18px; font-weight: 500; color: var(--white); margin-bottom: 8px; line-height: 1.35; }
.lead { font-size: 19px; font-weight: 300; color: var(--text-2); max-width: 520px; margin-bottom: 36px; }
.body { color: var(--text-2); margin-bottom: 20px; }
.body.muted { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.eyebrow.c-green { color: var(--green); margin-bottom: 14px; }
.eyebrow.c-orange { color: var(--orange); margin-bottom: 14px; }
.eyebrow.c-blue { color: var(--blue-light); margin-bottom: 14px; }
.eyebrow.ink { color: var(--ink); font-weight: 500; margin-bottom: 16px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mb-36 { margin-bottom: 36px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

/* Cuadros de color (piezas del logo) */
.sq { width: 10px; height: 10px; display: block; flex: none; }
.sq-lg { width: 12px; height: 12px; margin-bottom: 16px; }
.sq-green, .bg-green { background: var(--green); }
.sq-blue, .bg-blue { background: var(--blue); }
.sq-orange, .bg-orange { background: var(--orange); }
.sq-white { background: var(--white); }
.bg-grey { background: var(--line-strong); }

/* Botones y enlaces */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius); font-family: inherit; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { background: var(--blue); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--white); border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); min-height: 54px; padding: 0 26px; }
.btn-dark:hover { background: var(--surface-2); color: var(--white); border-color: var(--white); }
.btn-whatsapp { background: var(--green); color: var(--ink); }
.btn-whatsapp:hover { background: #5FC266; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 14, 18, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 12px; padding-bottom: 12px; }
.brand-link { display: inline-flex; align-items: center; min-height: 44px; }
.brand-link img { height: 38px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; }
.nav-link { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav-link:hover { color: var(--white); }
.main-nav .nav-link { font-family: var(--font-mono); font-size: 14px; }
.menu-toggle { display: none; background: transparent; color: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.hero .hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); padding-top: 88px; padding-bottom: 96px; }
.chip { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; margin-bottom: 24px; }

/* Paneles y maquetas ilustrativas */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.panel.pad { padding: 22px; }
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-bar .mono { margin-left: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.mock-erp-body { display: flex; }
.mock-side { width: 168px; flex: none; border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.mock-side span { padding: 8px 10px; border-radius: 4px; }
.mock-side .is-active { background: var(--surface-2); color: var(--white); }
.mock-main { flex: 1; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi i { display: block; margin-top: 10px; height: 12px; }
.bars { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 0; height: 150px; display: flex; align-items: flex-end; gap: 8px; }
.bars i { flex: 1; background: var(--bar); transform-origin: bottom; }
.bars i.hi { background: var(--blue); }
.js .bars i { animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .bars i:nth-child(2) { animation-delay: .05s; } .js .bars i:nth-child(3) { animation-delay: .1s; } .js .bars i:nth-child(4) { animation-delay: .15s; }
.js .bars i:nth-child(5) { animation-delay: .2s; } .js .bars i:nth-child(6) { animation-delay: .25s; } .js .bars i:nth-child(7) { animation-delay: .3s; } .js .bars i:nth-child(8) { animation-delay: .35s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .js .bars i { animation: none; } }
.rows { display: flex; flex-direction: column; font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row span { color: var(--text-2); }
.row i { height: 8px; width: 28%; background: var(--line); display: block; }
.tag { font-family: var(--font-mono); font-size: 11px; font-weight: 400; border: 1px solid; border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.tag-green { color: var(--green); border-color: var(--green); }
.tag-blue { color: var(--blue-light); border-color: var(--blue); }
.tag-orange { color: var(--orange); border-color: var(--orange); }

.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 14px; }
.module { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.module.off { color: var(--muted); }
.switch { width: 34px; height: 18px; background: var(--switch-off); border-radius: 9px; display: flex; padding: 2px; flex: none; }
.switch::after { content: ""; width: 14px; height: 14px; background: var(--muted); border-radius: 7px; display: block; }
.switch.on { background: var(--green); justify-content: flex-end; }
.switch.on::after { background: var(--white); }

.mock-qr { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; padding: 28px; }
.phone { width: 210px; background: var(--bg); border: 2px solid var(--switch-off); border-radius: 26px; padding: 18px 14px 22px; }
.phone-notch { width: 56px; height: 6px; background: var(--switch-off); border-radius: 3px; margin: 0 auto 16px; }
.phone-title { font-size: 13px; font-weight: 500; color: var(--white); text-align: center; margin-bottom: 10px; }
.qr { background: var(--white); padding: 12px; border-radius: var(--radius); }
.qr svg { width: 100%; height: auto; display: block; }
.phone-cta { margin-top: 14px; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; padding: 10px; border-radius: var(--radius); }
.steps { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.steps span { font-family: var(--font-mono); color: var(--orange); }

.chat-bar { gap: 12px; padding: 14px 18px; }
.avatar { width: 32px; height: 32px; background: var(--blue); border-radius: 16px; display: block; flex: none; }
.chat-name { font-size: 14px; font-weight: 500; color: var(--white); }
.chat-bar .push { margin-left: auto; }
.chat { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.msg { border-radius: var(--radius-lg); }
.msg.out { align-self: flex-end; max-width: 78%; background: var(--chat-out); color: var(--white); padding: 10px; }
.msg.out span { display: block; margin-top: 8px; }
.attach { background: var(--bg); border-radius: var(--radius); height: 92px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.msg.in { align-self: flex-start; max-width: 84%; background: var(--surface-2); color: var(--text); padding: 12px 14px; }
.msg.in strong { display: block; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 0; border-bottom: 1px solid #323C48; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv i { height: 8px; background: var(--switch-off); display: block; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks span { display: flex; align-items: center; gap: 8px; }

/* Secciones */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-tight { padding-top: 48px; padding-bottom: 48px; }
.section-end { padding-bottom: 96px; }
.section.alt { background: var(--surface); }
.bt { border-top: 1px solid var(--line); }
.bb { border-bottom: 1px solid var(--line); }
#productos { padding-bottom: 0; }
.section-head { padding-bottom: 40px; }
.product { padding-top: 48px; padding-bottom: 48px; }
.product-last { padding-bottom: 104px; }
#clientes { padding-bottom: 48px; }

/* Oferta de diagnóstico */
.offer { background: var(--blue); color: var(--ink); border-radius: var(--radius-lg); padding: 48px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
.offer-title { color: var(--ink); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; margin-bottom: 20px; }
.offer-text { font-size: 18px; max-width: 560px; margin-bottom: 28px; }
.findings { background: var(--bg); border-radius: 8px; padding: 20px; color: var(--text); font-size: 14px; display: flex; flex-direction: column; gap: 14px; }
.findings > div span { display: block; margin-bottom: 6px; }
.findings > div i { display: block; height: 10px; }
.services { margin-top: 20px; gap: 20px; align-items: stretch; }

/* Tarjetas */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card p { color: var(--text-2); }
.card .text-link { margin-top: 8px; }
#nosotros .card { background: var(--surface); border-radius: 8px; padding: 24px; }
#nosotros .card p { font-size: 15px; }

/* Clientes */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.clients li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-height: 112px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.clients strong { font-size: 18px; font-weight: 700; line-height: 1.3; }
.clients span { font-size: 13px; margin-top: 4px; }

/* Tecnología */
.tech { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 14px; color: var(--text-2); }
.tech li { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }

/* Contacto */
.contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--text-2); }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font-family: inherit; font-size: 16px; color: var(--white); width: 100%; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A3ADB9' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(68, 141, 203, .35); }
.field [aria-invalid="true"] { border-color: var(--orange); }
.field .error { font-size: 13px; color: #F4A261; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; color: var(--text-2); }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px; font-size: 16px; }
.form-status.ok { background: #16321D; border: 1px solid var(--green); color: var(--white); }
.form-status.err { background: #3A2210; border: 1px solid var(--orange); color: var(--white); }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.contact-card .label { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.contact-card .value { display: block; margin-top: 4px; color: var(--white); }
.value-link { display: block; padding: 6px 0 2px; color: var(--white); word-break: break-word; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand { max-width: 380px; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand .slogan { margin-top: 18px; font-family: var(--font-display); font-size: 13px; color: var(--white); letter-spacing: .02em; }
.footer-brand p:last-child { margin-top: 8px; font-size: 15px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: flex-start; font-size: 15px; }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.footer-bottom .nav-link { text-decoration: underline; }

/* Responsive */
@media (max-width: 980px) {
  .grid-2, .hero .hero-grid, .offer, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-2-mobile { order: 2; }
  .hero .hero-grid { padding-top: 56px; padding-bottom: 64px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .product { padding-top: 32px; padding-bottom: 32px; }
  .product-last { padding-bottom: 64px; }
  .mock-side { display: none; }
  .offer { padding: 32px 24px; }
}
@media (max-width: 860px) {
  .js .menu-toggle { display: inline-flex; }
  .js .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
  .js .main-nav.is-open { display: flex; }
  .js .main-nav .nav-link { border-bottom: 1px solid var(--line); font-size: 16px; }
  .js .main-nav .btn { margin-top: 12px; }
}
@media (max-width: 560px) {
  .grid-4, .clients, .form { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .contact-card { padding: 24px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* Maquetas de IntegraMobile e IntegraMobile TMS */
.panel-bar { flex-wrap: wrap; }
.panel-bar .push { margin-left: auto; }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.meter-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.meter-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.meter-head b { color: var(--white); font-weight: 400; }
.meter { margin-top: 10px; height: 12px; background: var(--surface-2); }
.meter i { display: block; height: 100%; background: var(--blue); }
.kpis.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tag-muted { color: var(--muted); border-color: var(--line-strong); }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 11px; }
.flow li { border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; color: var(--muted); background: var(--bg); }
.flow li.done { color: var(--green); border-color: var(--green); }
.flow li.now { color: var(--white); border-color: var(--blue); background: var(--bar); }
