:root {
  --navy: #0f2350;
  --navy-d: #0b1a3c;
  --teal: #1bb5ae;
  --teal-d: #149a94;
  --text: #2a3142;
  --muted: #5d6576;
  --line: #e1e4ea;
  --tint: #f4f6f9;
  --sans: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font: 400 17px/1.6 var(--sans); color: var(--text); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; font-weight: 600; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 600; }
.w { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.k { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-d); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border: 1px solid transparent; font: 500 15px/1 var(--sans); cursor: pointer; transition: background .15s, border-color .15s; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #1a3366; }
.btn--teal { background: var(--teal); color: var(--navy-d); }
.btn--teal:hover { background: #22c7bf; }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--tint); }
.btn:disabled { opacity: .6; cursor: default; }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; background: var(--navy-d); transition: box-shadow .2s; }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top__logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.top__nav { display: flex; align-items: center; gap: 32px; }
.top__nav a { color: rgba(255, 255, 255, .85); font-size: 15px; }
.top__nav a:not(.btn):hover { color: #fff; }
.top__nav .btn { padding: 11px 18px; font-size: 14px; color: var(--navy-d); }
.top__menu { display: none; background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; padding: 8px 14px; font: 500 14px var(--sans); cursor: pointer; }
.top.is-solid { box-shadow: 0 2px 12px rgba(11, 26, 60, .3); }

/* Portada */
.hero { position: relative; overflow: hidden; min-height: 700px; padding: 104px 0 80px; background: #fff; }
.hero .w { position: relative; z-index: 2; }
.hero__text { max-width: 560px; }
.hero__slides { position: absolute; inset: 0; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.hero__slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }

/* 1. Foto a sangre que se funde con el blanco detras del texto */
.hero__slide--foto img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 80%; }
.hero__slide--foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .95) 36%, rgba(255, 255, 255, .4) 56%, rgba(255, 255, 255, 0) 72%); }

/* 2 y 3. Composicion a la derecha, dentro del ancho del sitio */
.hero__viz { position: absolute; top: 104px; right: max(40px, calc((100% - 1240px) / 2 + 40px)); width: 580px; height: 540px; transform-origin: top right; }
/* 2. Panel de operaciones en perspectiva */
.hero__slide--sistema .hero__viz { z-index: 2; }
.tilt { position: absolute; z-index: 1; top: 0; right: 0; width: 520px; height: 520px; perspective: 1400px; }
.tilt__panel { position: absolute; left: 30px; top: 80px; width: 430px; background: #fff; box-shadow: 0 50px 90px rgba(15, 35, 80, .18), 0 0 0 1px #e6e9ef; transform: rotateY(-20deg) rotateX(9deg) rotateZ(1deg); transform-origin: left center; }
.tilt__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tilt__bar i { width: 8px; height: 8px; border-radius: 50%; background: #d5dae3; }
.tilt__bar b { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--navy); }
.tilt__row { display: grid; grid-template-columns: 80px 1fr 90px; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eef1f5; }
.tilt__row:last-child { border-bottom: 0; }
.tilt__row span { font: 11.5px var(--mono); color: var(--muted); }
.tilt__row em { height: 7px; background: #e6e9ef; }
.tilt__row strong { justify-self: start; padding: 4px 9px; font-size: 11px; font-weight: 500; }
.tilt__row .is-ok { background: #e3f4ea; color: #276a45; }
.tilt__row .is-sent { background: #e6ecf7; color: var(--navy); }
.tilt__row .is-wait { background: #fdf2dc; color: #8a5a00; }
.tilt__stat { position: absolute; right: 22px; bottom: 46px; width: 200px; padding: 16px 18px; background: var(--navy); color: #fff; box-shadow: 0 30px 60px rgba(15, 35, 80, .35); transform: rotateY(-20deg) rotateX(9deg); }
.tilt__stat small { white-space: nowrap; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.tilt__stat p { margin-top: 6px; font-size: 26px; font-weight: 600; line-height: 1.1; }
.tilt__bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 10px; }
.tilt__bars i { flex: 1; background: rgba(255, 255, 255, .22); }
.tilt__bars i:last-child { background: var(--teal); }

.hero__slide--mixta img { transform: scaleX(-1); object-position: 30% 40%; }
.drawer { position: absolute; z-index: 1; right: 40px; top: 220px; width: 340px; padding: 22px 24px 24px; background: #fff; border-left: 4px solid var(--navy); box-shadow: 0 40px 80px rgba(15, 35, 80, .35); }
.drawer__num { font: 12.5px var(--mono); color: var(--muted); }
.drawer__name { margin-top: 2px; font-size: 18px; font-weight: 500; color: var(--navy); letter-spacing: -.01em; }
.drawer__sec { margin: 18px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.drawer__row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 14px; color: var(--muted); }
.drawer__row b { font-weight: 500; color: var(--navy); }
.drawer__row strong { padding: 2px 9px; background: #e3f4ea; color: #276a45; font-size: 13px; font-weight: 600; }
.drawer__ok { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #276a45; font-weight: 500; }
.drawer__ok::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2e9e63; color: #fff; font-size: 12px; }
.drawer__btn { margin-top: 18px; padding: 12px 16px; border: 1px solid #c9d0db; font-size: 14px; font-weight: 500; color: var(--navy); }
.drawer__btn::before { content: "↗"; margin-right: 12px; color: var(--navy); }
.mini { position: absolute; z-index: 1; right: max(40px, calc((100% - 1240px) / 2 + 40px)); top: 380px; width: 340px; background: #fff; box-shadow: 0 30px 60px rgba(15, 35, 80, .28); }
.mini__row { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-top: 1px solid #eef1f5; font-size: 13.5px; }
.mini__row span { font: 11.5px var(--mono); color: var(--muted); }
.mini__row b { font-weight: 600; color: var(--navy); }
.mini__row--hi { background: #f3fbf6; }
.mini__row--hi strong { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #e3f4ea; color: #276a45; font-size: 12.5px; font-weight: 600; }
.mini__row--hi strong::before { content: "✓"; }
.mix__bar { position: absolute; z-index: 1; right: max(40px, calc((100% - 1240px) / 2 + 40px)); top: 520px; width: 380px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; box-shadow: 0 16px 36px rgba(15, 35, 80, .18); }
.mix__check { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; background: #e6f4ec; }
.mix__check::after { content: ""; position: absolute; left: 12px; top: 8px; width: 8px; height: 15px; border: solid #2e9e63; border-width: 0 2.6px 2.6px 0; transform: rotate(45deg); }
.mix__bar .mix__t { margin-top: 5px; }
.mix__k { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); }
.mix__t { margin-top: 7px; font-weight: 600; font-size: 15.5px; line-height: 1.3; color: var(--navy); }
.mix__s { margin-top: 6px; font-size: 13px; color: var(--muted); }
.mix__ok { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #276a45; }
.mix__ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2e9e63; }
.hero__dots { position: absolute; z-index: 3; top: 640px; right: max(40px, calc((100% - 1240px) / 2 + 40px)); display: flex; gap: 10px; }
.hero__dots button { width: 48px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dots button::before { content: ""; display: block; height: 5px; background: #a9b2c1; transition: background .2s; }
.hero__dots button[aria-pressed="true"]::before { background: var(--teal); }
.hero__dots button:hover::before { background: var(--navy); }
.hero__dots button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hero__slide, .hero__slide.is-on { transition: none; } }
@media (max-width: 1240px) and (min-width: 1001px) {
  .hero__text { max-width: 450px; }
  .hero__viz { transform: scale(.84); }
  .hero__dots { top: 560px; }
  .mini { top: 330px; }
  .drawer { top: 120px; }
}
.hero h1 { margin-top: 20px; max-width: 600px; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; font-weight: 600; }
.hero__lead { max-width: 480px; margin-top: 22px; color: var(--muted); font-size: 19px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__tags { display: flex; flex-wrap: nowrap; gap: 12px 24px; width: max-content; margin-top: 32px; font-size: 15px; white-space: nowrap; }
.hero__tags li::before { content: "✓ "; color: var(--teal-d); }

/* Secciones */
.sec { padding: 110px 0; }
.sec--tint { background: var(--tint); }
.ben { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.ben > li { padding-top: 24px; border-top: 3px solid var(--navy); }
.ben b { font-family: var(--mono); font-weight: 400; font-size: 14px; color: var(--teal-d); }
.ben h3 { margin: 10px 0; }
.ben p, .mods p { color: var(--muted); font-size: 16px; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.split-head p { color: var(--muted); font-size: 18px; }
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.mods > li { padding: 32px 30px; background: #fff; border: 1px solid var(--line); }
.mods p { margin-top: 10px; }

/* Nosotros */
.about { position: relative; overflow: hidden; padding: 120px 0; background: linear-gradient(90deg, rgba(11, 26, 60, .9) 0%, rgba(11, 26, 60, .72) 45%, rgba(11, 26, 60, .3) 100%), url("./assets/grua-silueta.jpg") center / cover, var(--navy-d); }
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about .k { color: var(--teal); }
.about h2 { margin-top: 14px; color: #fff; }
.about__lead { margin-top: 18px; color: rgba(255, 255, 255, .82); font-size: 18px; }
.vals > li { text-shadow: 0 1px 3px rgba(11, 26, 60, .7); padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.vals > li:first-child { border-top: 1px solid rgba(255, 255, 255, .18); }
.vals h3 { color: #fff; font-size: 19px; }
.vals p { margin-top: 6px; color: rgba(255, 255, 255, .74); font-size: 16px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact h2 { margin-top: 14px; }
.contact__lead { margin-top: 16px; color: var(--muted); font-size: 18px; }
.contact__list { margin-top: 28px; }
.contact__list li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
.contact__list li::before { content: "— "; color: var(--teal); }
.form { padding: 40px; background: var(--tint); }
.form h3 { font-size: 22px; }
.form__hint { color: var(--muted); font-size: 14px; }
.field { margin-top: 10px; }
.field label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; color: var(--navy); }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9d0db; border-radius: 0; background: #fff; font: 16px var(--sans); color: var(--text); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 35, 80, .12); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field__error { margin-top: 4px; font-size: 13px; color: #c0392b; }
.field__error:empty { display: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 16px; padding: 12px 14px; font-size: 15px; }
.form__status--ok { background: #e6f4ec; color: #276a45; }
.form__status--bad { background: #fbe9e7; color: #a5301f; }
.form .btn { margin-top: 20px; }

/* Pie */
.foot { padding: 64px 0 28px; background: var(--navy-d); color: rgba(255, 255, 255, .65); font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot__logo { height: 28px; width: auto; filter: brightness(0) invert(1); }
.foot h4 { margin-bottom: 12px; color: #fff; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.foot p, .foot li { margin-top: 6px; }
.foot a:hover { color: #fff; }
.foot__copy { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; }
.foot__copy a { text-decoration: underline; }

/* Responsive */
@media (max-width: 1000px) {
  .ben, .mods { grid-template-columns: 1fr 1fr; }
  .split-head, .about__grid, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 0; padding-bottom: 0; }
  .hero__slides { position: relative; height: 400px; margin-top: 48px; }
  .hero__slide--foto::after { display: none; }
  .hero__slide--foto img { object-position: 70% center; }
  .hero__viz { inset: 0; width: auto; height: auto; transform: none; }
  .tilt { width: 100%; height: 100%; }
  .tilt__panel { left: 50%; top: 48px; margin-left: -230px; width: 430px; }
  .tilt__row:nth-child(n+6) { display: none; }
  .mix__bar { top: auto; left: 24px; right: 24px; bottom: 24px; width: auto; }
  .mini { top: auto; right: 24px; bottom: 24px; width: 300px; }
  .hero__slides:has(.drawer.is-x) { height: 400px; }
  .drawer { top: 16px; right: 16px; width: 250px; padding: 14px 16px; transform: scale(.82); transform-origin: right top; }
  .mini__row { padding: 8px 14px; }
  .hero__dots { position: static; padding: 12px 40px 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .top__menu { display: block; }
  .top__nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: var(--navy-d); box-shadow: 0 10px 20px rgba(11, 26, 60, .3); }
  .top__nav.is-open { display: flex; }
  .top__nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: #fff; }
  .top__nav .btn { margin-top: 16px; }
}
@media (max-width: 600px) {
  .w { padding: 0 20px; }
  .top__in { height: 64px; }
  .top__nav { top: 64px; }
  .hero { padding-top: 88px; }
  .hero__slides { height: 360px; margin-top: 40px; }
  .tilt__panel { left: 22px; top: 34px; margin-left: 0; width: 300px; }
  .tilt__row { grid-template-columns: 68px 1fr 78px; gap: 8px; padding: 10px 12px; }
  .tilt__row:nth-child(n+5) { display: none; }
  .tilt__row span { font-size: 10px; }
  .tilt__row strong { font-size: 10px; padding: 3px 7px; }
  .tilt__stat { right: 14px; bottom: 26px; width: 164px; padding: 12px 14px; }
  .tilt__stat small { font-size: 9px; }
  .tilt__stat p { font-size: 21px; }
  .tilt__bars { height: 28px; }
  .mix__bar { left: 14px; right: 14px; bottom: 14px; gap: 12px; padding: 12px 14px; }
  .mix__bar .mix__k { font-size: 9.5px; }
  .mix__t { font-size: 14.5px; }
  .hero__dots { padding: 10px 20px 0; }
  .hero__lead { font-size: 17px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__tags { flex-direction: column; width: auto; white-space: normal; }
  .sec, .about { padding: 72px 0; }
  .ben, .mods { grid-template-columns: 1fr; gap: 20px; }
  .ben { gap: 32px; }
  .form { padding: 24px; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
}
