@import url("fonts/fonts.css");

/* SSI Group concept: their navy and yellow, a confident corporate sans (Archivo standing in for Trasandina),
   few big blocks, each with one job: show the five fields, take an inquiry, hire people. */
:root {
  --navy: #002d59;
  --navy-2: #00274a;
  --navy-3: #0b3d70;
  --yel: #ffc72c;
  --ink: #0e1b2b;
  --ink-2: #4a5768;
  --line: #dfe5ec;
  --bg: #f4f6f9;
  --font: "Archivo", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .9, .2, 1);
  --gut: clamp(18px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: #fff; color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--yel); color: var(--navy); }
:focus-visible { outline: 3px solid var(--yel); outline-offset: 2px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; font-stretch: 88%; letter-spacing: -.015em; line-height: 1.05; text-wrap: balance; }
.wrap { width: min(1280px, 100% - 2 * var(--gut)); margin: 0 auto; }
.skip { position: fixed; z-index: 90; left: 16px; top: -80px; padding: 12px 18px; background: var(--yel); color: var(--navy); text-decoration: none; }
.skip:focus { top: 16px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a6700; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; font: 700 15px/1 var(--font); letter-spacing: .02em; text-decoration: none; color: var(--navy); background: #fff; border: 2px solid transparent; border-radius: 6px; cursor: pointer; transition: transform .3s var(--ease), background .3s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn.yel { background: var(--yel); }
.btn.yel:hover { background: #ffd65e; }
.btn.ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .45); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.line { color: var(--navy); background: transparent; border-color: var(--navy); }
.btn.line:hover { color: #fff; background: var(--navy); }
.btn.sm { padding: 11px 18px; font-size: 14px; }

/* header */
.head { position: sticky; top: 0; z-index: 40; display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 12px var(--gut); color: #fff; background: var(--navy); transition: box-shadow .3s; }
.head.solid { box-shadow: 0 8px 24px -12px rgba(0, 20, 40, .6); }
.logo { display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 400; letter-spacing: .08em; }
.logo img { width: 34px; height: auto; }
.logo b { font-weight: 700; }
.head nav { display: flex; gap: clamp(16px, 2.4vw, 34px); font-size: 15px; font-weight: 600; }
.head nav a { text-decoration: none; background: linear-gradient(var(--yel), var(--yel)) left bottom / 0 2px no-repeat; padding: 6px 0; transition: background-size .35s var(--ease); }
.head nav a:hover { background-size: 100% 2px; }
.head-r { display: flex; gap: 18px; align-items: center; }
.langs { display: inline-flex; gap: 10px; font-size: 13px; font-weight: 600; }
.langs a { opacity: .65; cursor: pointer; }
.langs a[aria-current] { opacity: 1; border-bottom: 2px solid var(--yel); }

/* hero */
.hero { position: relative; color: #fff; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #001b33 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -10% -40% 40%; height: 80%; background: radial-gradient(closest-side, rgba(255, 199, 44, .14), transparent); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(50px, 7vw, 100px) 0 clamp(40px, 5vw, 70px); }
.hero .eyebrow { color: var(--yel); }
.hero h1 { font-size: clamp(42px, 5.2vw, 78px); }
.hero .lead { max-width: 52ch; margin: 22px 0 30px; font-size: clamp(17px, 1.3vw, 19px); color: rgba(255, 255, 255, .85); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ph { position: relative; aspect-ratio: 5 / 4; border-radius: 10px; overflow: hidden; background: var(--navy-3); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.hero-ph figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-ph figure.on { opacity: 1; }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; scale: 1.06; transition: scale 6s linear; }
.hero-ph figure.on img { scale: 1; }
.hero-ph figcaption { position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; font-weight: 700; color: var(--navy); background: var(--yel); border-radius: 4px; }
.dots { position: absolute; right: 18px; bottom: 22px; display: flex; gap: 6px; }
.dots i { width: 22px; height: 3px; background: rgba(255, 255, 255, .45); border-radius: 2px; }
.dots i.on { background: var(--yel); }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 0; margin-bottom: 0; padding: 30px 0 clamp(40px, 5vw, 64px); border-top: 1px solid rgba(255, 255, 255, .15); }
.nums div { margin: 0; }
.nums dt { font-size: clamp(30px, 3.4vw, 50px); font-weight: 700; font-stretch: 88%; color: #fff; font-variant-numeric: tabular-nums; }
.nums dd { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .75); text-transform: uppercase; letter-spacing: .06em; }

/* services */
.svc { padding: clamp(70px, 9vw, 120px) 0; }
.sec-h { margin-bottom: clamp(28px, 4vw, 46px); }
.sec-h h2, .ask h2, .job h2 { font-size: clamp(32px, 3.8vw, 54px); color: var(--navy); max-width: 22ch; }
.sec-h.row { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.svc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.svc-c { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; background: var(--bg); border-radius: 10px; transition: transform .4s var(--ease), box-shadow .4s; }
.svc-c:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(0, 45, 89, .45); }
.svc-c .ph { aspect-ratio: 4 / 3.4; overflow: hidden; }
.svc-c img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.svc-c:hover img { scale: 1.06; }
.svc-c .t { display: grid; gap: 8px; padding: 18px; flex: 1; align-content: start; }
.svc-c h3 { font-size: 22px; color: var(--navy); }
.svc-c p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.svc-c span { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--navy); }
.svc-c span::after { content: " \2192"; transition: margin .3s; }
.svc-c:hover span::after { margin-left: 4px; }

/* inquiry */
.ask { padding: clamp(60px, 8vw, 110px) 0; background: var(--bg); }
.ask-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.ask-t p:not(.eyebrow) { color: var(--ink-2); max-width: 44ch; }
.cfg { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); background: #fff; border-radius: 10px; box-shadow: 0 20px 50px -30px rgba(0, 45, 89, .35); }
.cfg fieldset { margin: 0; padding: 0; border: 0; }
.cfg legend { margin-bottom: 10px; font-weight: 700; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--navy); border: 1.5px solid var(--line); border-radius: 999px; transition: background .2s, border-color .2s; }
.chips input:checked + span { background: var(--yel); border-color: var(--yel); }
.chips input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.row3 legend { grid-column: 1 / -1; }
.row3 label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.row3 input { font: 400 16px/1.4 var(--font); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 6px; }
.row3 input:focus { outline: none; border-color: var(--navy); }
.sum { margin: 0; padding: 12px 14px; font-size: 15px; color: var(--ink-2); background: var(--bg); border-left: 3px solid var(--yel); border-radius: 4px; }
.cfg .btn { justify-self: start; }
.done { margin: 0; padding: 14px; color: var(--navy); background: #fff6d6; border-radius: 6px; }
.done[hidden] { display: none; }

/* career + AI assistant */
.job { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(70px, 9vw, 120px) 0; }
.job-t > p:not(.eyebrow) { color: var(--ink-2); max-width: 44ch; }
.facts { display: grid; gap: 0; margin: 24px 0 28px; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts b { color: var(--navy); }
.facts a { font-weight: 700; color: var(--navy); text-decoration: none; }
.chat { display: grid; grid-template-rows: auto 1fr auto; height: 520px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -36px rgba(0, 45, 89, .5); }
.chat-h { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: #fff; background: var(--navy); }
.chat-h small { display: block; font-size: 12px; opacity: .8; }
.av { display: grid; place-items: center; width: 38px; height: 38px; font-weight: 700; color: var(--navy); background: var(--yel); border-radius: 50%; }
.tag { margin-left: auto; padding: 4px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: #fff; border-radius: 4px; }
.chat-b { display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; background: var(--bg); }
.msg { max-width: 82%; padding: 10px 14px; font-size: 15px; line-height: 1.45; border-radius: 14px; animation: pop .35s var(--ease); }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; color: #fff; background: var(--navy); border-bottom-right-radius: 4px; }
.msg.typing { color: var(--ink-2); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.chat-q { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); min-height: 64px; }
.chat-q button { padding: 9px 14px; font: 600 14px/1.2 var(--font); color: var(--navy); background: #fff; border: 1.5px solid var(--navy); border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.chat-q button:hover { color: #fff; background: var(--navy); }

/* news */
.news { padding: 0 0 clamp(70px, 9vw, 120px); }
.more { font-weight: 700; color: var(--navy); text-decoration: none; }
.more::after { content: " \2192"; }
.news-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-g article { display: grid; gap: 10px; align-content: start; }
.news-g .ph { aspect-ratio: 784 / 600; overflow: hidden; border-radius: 8px; }
.news-g img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.news-g article:hover img { scale: 1.04; }
.news-g time { font-size: 13px; font-weight: 700; color: #8a6700; }
.news-g h3 { font-size: 20px; font-stretch: 95%; line-height: 1.25; color: var(--navy); }
.news-g span { font-size: 13px; color: var(--ink-2); }

/* footer */
.foot { color: rgba(255, 255, 255, .8); background: var(--navy-2); padding: 56px 0 26px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .7fr; gap: 30px; }
.foot b { display: block; margin-bottom: 8px; color: #fff; }
.foot p { margin: 0; }
.foot a { text-decoration: none; }
.foot-big { margin-top: 18px !important; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.3; color: var(--yel); }
.foot .langs a { opacity: .7; }
.foot-b { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 18px; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .15); }

.rise { transition: opacity .9s var(--ease), translate 1s var(--ease); }
.js .rise:not(.in) { opacity: 0; translate: 0 22px; }

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .head nav { display: none; }
}
@media (max-width: 860px) {
  .hero-in, .ask-in, .job { grid-template-columns: 1fr; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: 1fr; }
  .news-g { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .head .langs { display: none; }
  .chat { height: 480px; }
}
@media (max-width: 520px) {
  .svc-grid { grid-template-columns: 1fr; }
  .sec-h.row { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .rise:not(.in) { opacity: 1; translate: none; }
}
