/* =========================================================
   Advansys SRL — Design System
   Type:  Schibsted Grotesk (display) · Public Sans (body) · Space Mono (labels)
   ========================================================= */

:root{
  /* brand */
  --navy:      #0B2A4A;
  --navy-700:  #0F3358;
  --brand:     #2A6FDB;
  --brand-deep:#1B4F9C;
  --brand-light:#5B9BE6;

  /* logo isotype — tri-color (must not change) */
  --logo-blue:   #2A6FDB;
  --logo-orange: #F2911B;
  --logo-green:  #37A845;

  /* ink */
  --ink:       #0B2540;
  --ink-2:     #45566B;
  --ink-3:     #6E7E92;

  /* surfaces */
  --paper:     #FFFFFF;
  --paper-2:   #F4F7FB;
  --paper-3:   #EAF0F8;
  --line:      #E1E8F1;
  --line-2:    #D2DCEA;

  /* tints */
  --tint:      #E8F0FB;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  --r: 10px;
  --r-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(11,37,64,.05), 0 1px 1px rgba(11,37,64,.04);
  --shadow-md: 0 18px 40px -22px rgba(11,37,64,.30);

  --ff-display: "Schibsted Grotesk", system-ui, sans-serif;
  --ff-body:    "Public Sans", system-ui, sans-serif;
  --ff-mono:    "Space Mono", ui-monospace, monospace;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--ff-body);
  color:var(--ink);
  background:var(--paper);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--ff-display); font-weight:700; color:var(--navy); margin:0; line-height:1.04; letter-spacing:-.018em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

/* ---------- layout ---------- */
.wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut); }
.section{ padding-block:clamp(72px,9vw,128px); position:relative; }
.section--alt{ background:var(--paper-2); }
.section--navy{ background:var(--navy); color:#fff; }

/* ---------- eyebrow / kicker ---------- */
.kicker{
  font-family:var(--ff-mono);
  font-size:12.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--brand);
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-weight:700;
}
.kicker .num{ color:var(--ink-3); }
.kicker::before{
  content:"";
  width:26px; height:0;
  border-top:1.5px solid var(--brand);
  display:inline-block;
}
.section--navy .kicker{ color:var(--brand-light); }
.section--navy .kicker .num{ color:#7f95b3; }
.section--navy .kicker::before{ border-color:var(--brand-light); }

.section-head{ max-width:760px; }
.section-head h2{
  font-size:clamp(30px,4.4vw,52px);
  margin-top:22px;
}
.section-head .lead{
  margin-top:20px;
  font-size:clamp(17px,1.4vw,19px);
  color:var(--ink-2);
  max-width:62ch;
}
.section--navy .section-head h2{ color:#fff; }
.section--navy .section-head .lead{ color:#B7C6DC; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--ff-body); font-weight:600; font-size:15.5px;
  padding:14px 24px; border-radius:var(--r-sm);
  border:1.5px solid transparent; transition:.22s ease;
  letter-spacing:.005em;
}
.btn svg{ width:17px; height:17px; transition:transform .22s ease; }
.btn--primary{ background:var(--brand); color:#fff; box-shadow:0 10px 24px -12px rgba(42,111,219,.7); }
.btn--primary:hover{ background:var(--brand-deep); transform:translateY(-1px); }
.btn--primary:hover svg{ transform:translateX(3px); }
.btn--ghost{ border-color:var(--line-2); color:var(--navy); background:transparent; }
.btn--ghost:hover{ border-color:var(--navy); background:#fff; }
.section--navy .btn--ghost{ border-color:rgba(255,255,255,.28); color:#fff; }
.section--navy .btn--ghost:hover{ border-color:#fff; background:rgba(255,255,255,.06); }

/* ============================================================
   HEADER
   ============================================================ */
.header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  transition:background .3s ease, box-shadow .3s ease, border-color .3s ease;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--line);
}
/* transparent-over-dark-hero variant (home page) */
.header--hero:not(.is-stuck){
  background:transparent;
  backdrop-filter:none; -webkit-backdrop-filter:none;
  border-bottom-color:transparent;
  box-shadow:none;
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  height:74px;
}
.header.is-stuck{
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom-color:var(--line);
  box-shadow:0 1px 0 rgba(11,37,64,.02);
}
.brand{ display:flex; align-items:center; gap:0; }
.brand svg{ height:30px; width:auto; }
.logo .st0{ fill:var(--navy); transition:fill .3s ease; }
.logo .st1{ fill:var(--logo-blue); }    /* trazo superior */
.logo .st2{ fill:var(--logo-green); }   /* trazo inferior */
.logo .st3{ fill:var(--logo-orange); }  /* centro */
/* logo on transparent dark hero top */
.header--hero:not(.is-stuck) .logo .st0{ fill:#fff; }

.nav{ display:flex; align-items:center; gap:6px; }
.nav a{
  font-size:15px; font-weight:500; color:var(--ink-2);
  padding:9px 14px; border-radius:var(--r-sm); transition:.18s ease;
  position:relative;
}
.nav a:hover{ color:var(--navy); }
.nav a.is-active{ color:var(--brand); }
.nav a.is-active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:3px;
  height:2px; background:var(--brand); border-radius:2px;
}
.header--hero:not(.is-stuck) .nav a{ color:rgba(255,255,255,.8); }
.header--hero:not(.is-stuck) .nav a:hover{ color:#fff; }
.header--hero:not(.is-stuck) .nav a.is-active{ color:#fff; }
.header--hero:not(.is-stuck) .nav a.is-active::after{ background:var(--brand-light); }

.header__cta{ display:flex; align-items:center; gap:14px; }
.header .btn{ padding:10px 18px; font-size:14.5px; }
.header--hero:not(.is-stuck) .btn--primary{ background:#fff; color:var(--navy); box-shadow:none; }
.header--hero:not(.is-stuck) .btn--primary:hover{ background:var(--tint); }

.burger{
  display:none; width:44px; height:44px; border:1px solid var(--line-2);
  background:rgba(255,255,255,.7); border-radius:var(--r-sm);
  align-items:center; justify-content:center; flex-direction:column; gap:5px;
}
.burger span{ width:18px; height:2px; background:var(--navy); border-radius:2px; transition:.25s ease; }
.header--hero:not(.is-stuck) .burger{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.3); }
.header--hero:not(.is-stuck) .burger span{ background:#fff; }

/* mobile menu */
.mobile-menu{
  position:fixed; inset:0; z-index:99; background:var(--navy);
  display:flex; flex-direction:column; justify-content:center; gap:6px;
  padding:0 var(--gut);
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:.32s ease;
}
.mobile-menu.is-open{ opacity:1; visibility:visible; transform:none; }
.mobile-menu a{
  font-family:var(--ff-display); font-size:clamp(28px,7vw,42px); font-weight:700;
  color:#fff; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:space-between;
}
.mobile-menu a .mm-num{ font-family:var(--ff-mono); font-size:13px; color:var(--brand-light); }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; background:var(--navy); color:#fff; overflow:hidden;
  padding-top:148px; padding-bottom:clamp(80px,10vw,130px);
}
.hero__grid{
  display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center;
}
.hero__eyebrow{ color:var(--brand-light); }
.hero__eyebrow::before{ border-color:var(--brand-light); }
.hero h1{
  color:#fff; font-size:clamp(40px,6vw,76px); line-height:.98; margin-top:26px;
  letter-spacing:-.025em;
}
.hero h1 em{ font-style:normal; color:var(--brand-light); }
.hero__lead{
  margin-top:26px; font-size:clamp(17px,1.5vw,20px); color:#B9C7DC; max-width:50ch;
  line-height:1.62;
}
.hero__actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:38px; }

.hero__stats{
  display:grid; grid-template-columns:repeat(3,1fr);
  margin-top:56px; border-top:1px solid rgba(255,255,255,.14);
}
.stat{ padding-top:24px; padding-right:18px; }
.stat__num{
  font-family:var(--ff-display); font-weight:700; font-size:clamp(34px,4vw,48px);
  color:#fff; letter-spacing:-.02em; line-height:1;
}
.stat__num .suf{ color:var(--brand-light); }
.stat__label{ margin-top:8px; font-size:13.5px; color:#9FB1CA; letter-spacing:.01em; }

/* hero geometry (abstract chevron motif) */
.hero__art{ position:relative; min-height:360px; }
.hero__art svg{ width:100%; height:auto; overflow:visible; }
.chev{ fill:none; stroke-linejoin:round; stroke-linecap:round; }

.hero__bg{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:54px 54px;
  -webkit-mask-image:radial-gradient(120% 90% at 80% 20%, #000 0%, transparent 65%);
          mask-image:radial-gradient(120% 90% at 80% 20%, #000 0%, transparent 65%);
}
.hero .wrap{ position:relative; z-index:1; }

/* ============================================================
   EMPRESA (Misión / Visión)
   ============================================================ */
.mv{ display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(40px,6vw,90px); margin-top:56px; align-items:start; }
.mv__tabs{ display:flex; flex-direction:column; gap:4px; border-left:1px solid var(--line); }
.mv__tab{
  text-align:left; background:none; border:0; padding:18px 0 18px 26px; position:relative;
  display:flex; flex-direction:column; gap:4px; color:var(--ink-3); transition:.2s ease;
}
.mv__tab::before{
  content:""; position:absolute; left:-1px; top:50%; transform:translateY(-50%);
  width:2px; height:0; background:var(--brand); transition:height .3s ease;
}
.mv__tab.is-active::before{ height:64%; }
.mv__tab .t-k{ font-family:var(--ff-mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; }
.mv__tab .t-h{ font-family:var(--ff-display); font-weight:700; font-size:26px; color:var(--ink-3); transition:.2s ease; letter-spacing:-.01em; }
.mv__tab.is-active{ color:var(--brand); }
.mv__tab.is-active .t-h{ color:var(--navy); }
.mv__panel{ position:relative; }
.mv__copy{ display:none; }
.mv__copy.is-active{ display:block; animation:fade .4s ease; }
.mv__copy .big{
  font-family:var(--ff-display); font-weight:500; font-size:clamp(22px,2.5vw,30px);
  line-height:1.32; color:var(--navy); letter-spacing:-.01em; text-wrap:pretty;
}
@keyframes fade{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none;} }

/* ============================================================
   SERVICIOS
   ============================================================ */
.svc-grid{
  margin-top:56px; display:grid; grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line); border-radius:var(--r); overflow:hidden; background:var(--line);
  gap:1px;
}
.svc{
  background:var(--paper); padding:30px 26px 34px; position:relative;
  display:flex; flex-direction:column; gap:16px; min-height:212px;
  transition:.24s ease;
}
.svc:hover{ background:#fff; box-shadow:inset 0 0 0 1px var(--brand); z-index:2; }
.svc__top{ display:flex; align-items:center; justify-content:space-between; }
.svc__ico{
  width:46px; height:46px; border-radius:var(--r-sm); display:grid; place-items:center;
  background:var(--tint); color:var(--brand); transition:.24s ease;
}
.svc__ico svg{ width:23px; height:23px; }
.svc:hover .svc__ico{ background:var(--brand); color:#fff; }
.svc__n{ font-family:var(--ff-mono); font-size:12px; color:var(--ink-3); letter-spacing:.06em; }
.svc__cat{ font-family:var(--ff-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--brand-deep); }
.svc h3{ font-size:19px; letter-spacing:-.01em; margin-top:auto; }
.svc p{ font-size:14px; color:var(--ink-2); line-height:1.5; }

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.why-grid{ margin-top:56px; display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,2.5vw,34px); }
.why{
  padding:34px 30px; background:var(--paper); border:1px solid var(--line);
  border-radius:var(--r); transition:.24s ease; position:relative; overflow:hidden;
}
.why::after{
  content:""; position:absolute; left:0; top:0; height:3px; width:0; background:var(--brand);
  transition:width .3s ease;
}
.why:hover{ border-color:var(--line-2); box-shadow:var(--shadow-md); transform:translateY(-3px); }
.why:hover::after{ width:100%; }
.why__ico{
  width:50px; height:50px; border-radius:var(--r-sm); display:grid; place-items:center;
  background:var(--navy); color:#fff; margin-bottom:22px;
}
.why__ico svg{ width:24px; height:24px; }
.why h3{ font-size:21px; letter-spacing:-.01em; }
.why p{ margin-top:12px; font-size:15.5px; color:var(--ink-2); line-height:1.55; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,5vw,72px); margin-top:56px; align-items:start; }
.cinfo{ display:flex; flex-direction:column; gap:30px; }
.cblock{ display:flex; gap:18px; align-items:flex-start; padding-bottom:30px; border-bottom:1px solid rgba(255,255,255,.12); }
.cblock:last-child{ border-bottom:0; padding-bottom:0; }
.cblock__ico{
  width:46px; height:46px; border-radius:var(--r-sm); display:grid; place-items:center; flex:none;
  background:rgba(91,155,230,.16); color:var(--brand-light);
}
.cblock__ico svg{ width:22px; height:22px; }
.cblock h4{ color:#fff; font-size:13px; font-family:var(--ff-mono); letter-spacing:.12em; text-transform:uppercase; font-weight:700; }
.cblock p, .cblock a{ color:#C7D5E8; font-size:16.5px; line-height:1.5; }
.cblock a{ transition:.18s ease; }
.cblock a:hover{ color:#fff; }
.cmap{ border-radius:var(--r); overflow:hidden; border:1px solid rgba(255,255,255,.12); min-height:380px; background:#0e2c4d; }
.cmap iframe{ width:100%; height:100%; min-height:380px; border:0; filter:grayscale(.2) contrast(1.05); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background:#081d33; color:#9FB1CA; padding-block:56px 34px; }
.footer__top{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; align-items:flex-start; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer .logo .st0{ fill:#fff; }
.footer__nav{ display:flex; gap:28px; flex-wrap:wrap; }
.footer__nav a{ font-size:15px; color:#9FB1CA; transition:.18s ease; }
.footer__nav a:hover{ color:#fff; }
.footer__bottom{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-top:26px; font-size:13.5px; }
.footer__bottom a{ color:var(--brand-light); }
.footer__tag{ max-width:38ch; margin-top:18px; font-size:14.5px; line-height:1.55; }

/* ---------- reveal ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .svc-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:920px){
  .nav, .header__cta .btn{ display:none; }
  .burger{ display:flex; }
  .hero__grid{ grid-template-columns:1fr; gap:8px; }
  .hero__art{ display:none; }
  .mv{ grid-template-columns:1fr; gap:34px; }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
}
@media (max-width:620px){
  body{ font-size:16px; }
  .why-grid{ grid-template-columns:1fr; }
  .svc-grid{ grid-template-columns:1fr; }
  .hero__stats{ grid-template-columns:1fr; gap:0; }
  .stat{ padding-block:18px; border-bottom:1px solid rgba(255,255,255,.1); }
  .footer__top{ flex-direction:column; }
}
@media (prefers-reduced-motion:reduce){
  *{ scroll-behavior:auto !important; }
  .reveal{ opacity:1 !important; transform:none !important; }
}
