:root{
  --navy-950:#081222;
  --navy-900:#0A2540;
  --navy-800:#123356;
  --navy-700:#1C4E80;
  --steel-500:#5B7C99;
  --steel-200:#C7D6E4;
  --amber-500:#E8A33D;
  --amber-400:#F0B85C;
  --green-600:#2F7A56;
  --green-100:#DCEFE4;
  --paper:#F5F8FA;
  --paper-2:#FFFFFF;
  --ink:#0E1B2A;
  --ink-soft:#4A5A6A;
  --line:#DCE4EA;
  --radius:14px;
  --maxw:1180px;
  --ease:cubic-bezier(.22,.68,0,1);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter',sans-serif;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Space Grotesk',sans-serif;
  letter-spacing:-0.01em;
  margin:0;
}
.mono{font-family:'IBM Plex Mono',monospace; letter-spacing:.02em;}
a{color:inherit;text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--amber-500); font-weight:500;
}
.eyebrow::before{content:""; width:18px; height:1.5px; background:var(--amber-500); display:inline-block;}
section{padding:96px 0;}
@media(max-width:720px){ section{padding:64px 0;} .wrap{padding:0 20px;} }

/* ---------- Topbar ---------- */
.topbar{background:var(--navy-950); color:#AFC2D4; font-size:13px;}
.topbar .wrap{display:flex; justify-content:space-between; align-items:center; padding:9px 32px; flex-wrap:wrap; gap:6px;}
.topbar a{color:#AFC2D4;}
.topbar a:hover{color:var(--amber-400);}
.topbar .contact-line{display:flex; gap:22px;}

/* ---------- Nav ---------- */
header.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(10,37,64,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
nav.wrap{display:flex; align-items:center; justify-content:space-between; height:74px;}
.logo{display:flex; align-items:center; gap:10px; color:#fff; font-weight:700; font-size:20px;}
.logo img{
  height:40px;
  width:auto;
  display:block;
}
.logo .mark{
  width:34px; height:34px; border-radius:8px;
  background:linear-gradient(135deg,var(--amber-500),var(--amber-400));
  display:flex; align-items:center; justify-content:center;
  color:var(--navy-950); font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:16px;
}
.logo .full span{color:var(--amber-400);}
.navlinks{display:flex; gap:32px; align-items:center;}
.navlinks a{color:#CBD8E4; font-size:14.5px; font-weight:500; transition:color .2s;}
.navlinks a:hover{color:#fff;}
.nav-cta{
  background:var(--amber-500); color:var(--navy-950)!important; font-weight:700;
  padding:10px 20px; border-radius:999px; font-size:14px;
  transition:transform .2s var(--ease), background .2s;
}
.nav-cta:hover{background:var(--amber-400); transform:translateY(-1px);}
.navtoggle{display:none;}
@media(max-width:920px){
  .navlinks{display:none;}
  .navtoggle{display:block; background:none; border:none; color:#fff; font-size:22px; cursor:pointer;}
}

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background:radial-gradient(120% 140% at 78% -10%, #163A61 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color:#fff; padding:120px 0 80px;
}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; position:relative; z-index:2;}
@media(max-width:960px){ .hero-grid{grid-template-columns:1fr;} }
.hero h1{font-size:clamp(34px,5vw,56px); line-height:1.06; font-weight:600;}
.hero h1 em{font-style:normal; color:var(--amber-400);}
.hero p.lead{font-size:18px; color:#B9CBDA; max-width:520px; margin:22px 0 32px; line-height:1.6;}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 24px; border-radius:999px; font-weight:700; font-size:15px;
  transition:transform .2s var(--ease), box-shadow .2s, background .2s;
  border:1.5px solid transparent; cursor:pointer;
}
.btn-primary{background:var(--amber-500); color:var(--navy-950);}
.btn-primary:hover{background:var(--amber-400); transform:translateY(-2px); box-shadow:0 12px 24px -8px rgba(232,163,61,.5);}
.btn-ghost{border-color:rgba(255,255,255,.35); color:#fff;}
.btn-ghost:hover{border-color:#fff; background:rgba(255,255,255,.06); transform:translateY(-2px);}
.btn-dark{background:var(--navy-900); color:#fff;}
.btn-dark:hover{background:var(--navy-800); transform:translateY(-2px);}

.hero-stats{display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin-top:56px; border-top:1px solid rgba(255,255,255,.14); padding-top:28px;}
.hero-stats div{border-left:1px solid rgba(255,255,255,.14); padding-left:18px;}
.hero-stats div:first-child{border-left:none; padding-left:0;}
.hero-stats .num{font-family:'Space Grotesk',sans-serif; font-size:clamp(22px,3vw,30px); font-weight:700; color:var(--amber-400);}
.hero-stats .lbl{font-size:12.5px; color:#9FB4C6; margin-top:4px;}
@media(max-width:640px){ .hero-stats{grid-template-columns:repeat(2,1fr); row-gap:20px;} .hero-stats div:nth-child(3){border-left:none;} }

/* Hero visual: integration diagram */
.hero-visual{position:relative; aspect-ratio:1/1; max-width:460px; margin:0 auto;}
.hero-visual svg{width:100%; height:100%;}

/* ---------- Tech marquee ---------- */
.marquee-band{background:var(--navy-800); overflow:hidden; padding:20px 0; border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08);}
.marquee-track{display:flex; gap:64px; white-space:nowrap; animation:scroll 26s linear infinite; width:max-content;}
.marquee-track span{color:#AFC2D4; font-family:'IBM Plex Mono',monospace; font-size:13.5px; letter-spacing:.12em; display:flex; align-items:center; gap:10px;}
.marquee-track span::before{content:"◆"; color:var(--amber-500); font-size:8px;}
@keyframes scroll{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
@media (prefers-reduced-motion: reduce){ .marquee-track{animation:none;} }

/* ---------- Section headers ---------- */
.sec-head{max-width:640px; margin-bottom:52px;}
.sec-head h2{font-size:clamp(26px,3.4vw,38px); font-weight:600; margin-top:14px; line-height:1.16;}
.sec-head p{color:var(--ink-soft); font-size:16.5px; margin-top:14px; line-height:1.6;}
.center{text-align:center; margin-left:auto; margin-right:auto;}

/* ---------- Enfoque (3 columnas) ---------- */
.approach{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
@media(max-width:860px){ .approach{grid-template-columns:1fr;} }
.approach .card{
  background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 26px; position:relative;
}
.approach .step{
  font-family:'Space Grotesk',sans-serif; font-size:13px; color:var(--steel-500); font-weight:600;
  margin-bottom:16px;
}
.approach h3{font-size:19px; font-weight:600; margin-bottom:10px;}
.approach p{color:var(--ink-soft); font-size:15px; line-height:1.6; margin:0;}

/* ---------- Productos ---------- */
.products-wrap{display:flex; flex-direction:column; gap:24px;}
.product-card{
  display:grid; grid-template-columns:1fr 1fr; border-radius:20px; overflow:hidden;
  border:1px solid var(--line); background:var(--paper-2);
}
.product-card.reverse{grid-template-columns:1fr 1fr;}
.product-card.reverse .p-media{order:2;}
@media(max-width:860px){
  .product-card, .product-card.reverse{grid-template-columns:1fr;}
  .product-card.reverse .p-media{order:0;}
}
.p-media{position:relative; min-height:280px; background-size:cover; background-position:center;}
.p-media .tag{
  position:absolute; top:18px; left:18px; background:rgba(8,18,34,.72); backdrop-filter:blur(6px);
  color:#fff; font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase;
  padding:7px 12px; border-radius:999px;
}
.p-body{padding:44px 40px; display:flex; flex-direction:column; justify-content:center;}
.p-body h3{font-size:25px; font-weight:600; margin-bottom:12px;}
.p-body p.desc{color:var(--ink-soft); font-size:15.5px; line-height:1.65; margin-bottom:20px;}
.p-list{list-style:none; margin:0 0 26px; padding:0; display:flex; flex-direction:column; gap:11px;}
.p-list li{display:flex; gap:10px; font-size:14.5px; color:var(--ink); align-items:flex-start;}
.p-list li .dot{width:7px; height:7px; border-radius:2px; margin-top:6px; flex-shrink:0;}
.p-actions{display:flex; gap:12px; flex-wrap:wrap;}

.product-cargo .p-body{background:var(--navy-900); color:#fff;}
.product-cargo .p-body p.desc{color:#B9CBDA;}
.product-cargo .p-list li{color:#E6EEF5;}
.product-cargo .dot{background:var(--amber-500);}
.product-cargo .p-media .tag{background:rgba(232,163,61,.9); color:var(--navy-950); font-weight:700;}

.product-inv .dot{background:var(--steel-500);}
.product-inv .p-media .tag{background:rgba(28,78,128,.85);}

.product-sgsst .dot{background:var(--green-600);}
.product-sgsst .p-media .tag{background:rgba(47,122,86,.9);}

/* ---------- Crecimiento (signature) ---------- */
.growth{background:var(--navy-950); color:#fff;}
.growth .sec-head p{color:#AFC2D4;}
.growth .sec-head .eyebrow{color:var(--amber-400);}
.stair-wrap{display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center;}
@media(max-width:900px){ .stair-wrap{grid-template-columns:1fr;} }
.stair-copy ul{list-style:none; padding:0; margin:28px 0 0; display:flex; flex-direction:column; gap:20px;}
.stair-copy li{display:flex; gap:14px; align-items:flex-start;}
.stair-copy .idx{
  font-family:'Space Grotesk',sans-serif; font-weight:700; color:var(--navy-950); background:var(--amber-500);
  width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0;
}
.stair-copy h4{font-size:16px; font-weight:600; margin:0 0 4px;}
.stair-copy p{margin:0; color:#AFC2D4; font-size:14.5px; line-height:1.55;}
.stair-svg{width:100%; height:auto;}

/* ---------- Experiencia / stack ---------- */
.exp-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
@media(max-width:900px){ .exp-grid{grid-template-columns:1fr;} }
.exp-stats{display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:30px;}
.exp-stats .stat{background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px;}
.exp-stats .num{font-family:'Space Grotesk',sans-serif; font-size:28px; font-weight:700; color:var(--navy-800);}
.exp-stats .lbl{font-size:13.5px; color:var(--ink-soft); margin-top:4px;}
.stack-tags{display:flex; flex-wrap:wrap; gap:10px; margin-top:22px;}
.stack-tags span{
  font-family:'IBM Plex Mono',monospace; font-size:12.5px; background:#fff; border:1px solid var(--line);
  padding:8px 14px; border-radius:999px; color:var(--navy-800);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.tech-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}
.tech-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgba(10,37,64,0.1);
  border-color: var(--steel-200);
}
.tech-icon {
  width: 32px;
  height: 32px;
  background-color: var(--ink-soft);
  opacity: 0.65;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}
.tech-card:hover .tech-icon {
  background-color: var(--brand-color);
  opacity: 1;
}
.tech-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.tech-card:hover .tech-name {
  color: var(--ink);
}
.exp-media{border-radius:18px; overflow:hidden; aspect-ratio:4/3.1; background-size:cover; background-position:center;}

/* ---------- Servicios secundarios ---------- */
.services-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
@media(max-width:960px){ .services-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:560px){ .services-grid{grid-template-columns:1fr;} }
.service-card{border:1px solid var(--line); border-radius:12px; padding:24px; background:#fff; transition:transform .2s var(--ease), box-shadow .2s;}
.service-card:hover{transform:translateY(-4px); box-shadow:0 16px 30px -18px rgba(10,37,64,.25);}
.service-card .ic{
  width:38px; height:38px; border-radius:9px; background:var(--paper); display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.service-card h4{font-size:16px; font-weight:600; margin-bottom:8px;}
.service-card p{font-size:13.5px; color:var(--ink-soft); line-height:1.55; margin:0;}

/* ---------- CTA banda ---------- */
.cta-band{background:linear-gradient(120deg,var(--navy-900),var(--navy-800)); color:#fff; border-radius:24px;}
.cta-band .wrap{padding:0;}
.cta-inner{max-width:var(--maxw); margin:0 auto; padding:60px 48px; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;}
.cta-inner h2{font-size:clamp(22px,3vw,30px); font-weight:600; max-width:520px;}
.cta-inner p{color:#AFC2D4; margin-top:10px; font-size:15px;}
.cta-section{padding:0 0 96px;}
.cta-band-outer{padding:0 32px;}

/* ---------- Contacto ---------- */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:48px;}
@media(max-width:860px){ .contact-grid{grid-template-columns:1fr;} }
.contact-card{background:#fff; border:1px solid var(--line); border-radius:16px; padding:34px;}
.contact-row{display:flex; gap:16px; padding:16px 0; border-bottom:1px solid var(--line);}
.contact-row:last-child{border-bottom:none;}
.contact-row .ic{width:36px; height:36px; border-radius:9px; background:var(--paper); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.contact-row .label{font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-soft); font-family:'IBM Plex Mono',monospace;}
.contact-row .value{font-size:15px; font-weight:600; margin-top:2px;}
.contact-map{border-radius:16px; overflow:hidden; background:var(--navy-900); position:relative; min-height:280px; display:flex; align-items:flex-end;}
.contact-map img{width:100%; height:100%; object-fit:cover; position:absolute; inset:0; opacity:.55;}
.contact-map .overlay{position:relative; z-index:1; padding:26px; color:#fff;}
.contact-map .overlay .mono{color:var(--amber-400);}

/* ---------- Formulario ---------- */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
}
.contact-form-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy-900);
}
.contact-form-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.form-group {
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media(max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy-900);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--steel-500);
  box-shadow: 0 0 0 3px rgba(91,124,153,0.15);
  background: #fff;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5A6A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 40px;
}
.form-status-msg {
  padding: 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 15px;
  line-height: 1.4;
}
.form-status-msg.success {
  background: var(--green-100);
  color: var(--green-600);
  border: 1px solid rgba(47, 122, 86, 0.2);
}
.form-status-msg.error {
  background: #FCE8E6;
  color: #C5221F;
  border: 1px solid rgba(197, 34, 31, 0.2);
}

/* ---------- Footer ---------- */
footer{background:var(--navy-950); color:#8FA3B5; padding:52px 0 28px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.1);}
@media(max-width:760px){ .foot-grid{grid-template-columns:1fr 1fr;} }
.foot-grid h5{color:#fff; font-size:13px; letter-spacing:.08em; text-transform:uppercase; font-family:'IBM Plex Mono',monospace; margin-bottom:16px; font-weight:500;}
.foot-grid a{display:block; font-size:14px; margin-bottom:10px; color:#8FA3B5; transition:color .2s;}
.foot-grid a:hover{color:#fff;}
.foot-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:13px; flex-wrap:wrap; gap:10px;}

/* reveal */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
.reveal.in{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1; transform:none; transition:none;} }

:focus-visible{outline:2px solid var(--amber-500); outline-offset:3px;}
