/* Layout: the Atlas carries the opening; inner pages are a single dark page head. One family throughout: hierarchy from size and weight only. */
:root {
  --night: #0b1016;
  --night-line: rgba(208, 216, 224, 0.14);
  --stone: #e6e8ea;
  --white: #ffffff;
  --light-line: rgba(15, 23, 32, 0.14);
  --ink: #0f1720;
  --ink-soft: #4a5560;
  --navy: #223a52;
  --silver: #a8b0b9;
  --silver-hi: #e3e6ea;
  --on-night: #e3e6ea;
  --on-night-soft: rgba(227, 230, 234, 0.66);
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --gutter: max(20px, 5vw);
  --ease: cubic-bezier(0.25, 0.6, 0.15, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--on-night);
  font: 400 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 300; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--silver-hi); color: var(--ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.wrap {
  width: 100%; max-width: 1320px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.split { display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(40px, 7vw, 120px); row-gap: 48px; align-items: start; }
.split > * { min-width: 0; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--silver-hi); color: var(--ink); padding: 10px 16px; }
.skip:focus { left: 12px; }

/* type scale: 15 / 18 / 22-30 / 38-64 / 46-84 */
.label { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink-soft); }
.label-dark { color: var(--on-night-soft); }
.sc { font-variant-caps: small-caps; letter-spacing: 0.06em; }
.h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
.h2-ink { color: var(--ink); }
.lede { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.36; text-wrap: pretty; }
.prose { color: var(--ink-soft); max-width: 62ch; }

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 32px;
  background: var(--silver-hi); color: var(--ink);
  border: 1px solid var(--silver-hi); border-radius: 0;
  font: 600 16px/1 var(--serif); letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--silver-hi); }
.btn:disabled { opacity: 0.55; cursor: progress; }

.mark {
  display: block; width: 26px; height: 32px; background: currentColor; flex: none;
  -webkit-mask: url(/assets/atlas.png) center / contain no-repeat;
  mask: url(/assets/atlas.png) center / contain no-repeat;
}

/* header */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
}
.bar.scrolled { background: var(--night); border-color: var(--night-line); }
.bar-in {
  display: flex; align-items: center; gap: 12px; height: 72px;
  max-width: 1320px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--silver-hi); min-width: 0; }
.brand-name { font-size: 18px; font-weight: 600; line-height: 1.2; }
.menu-btn {
  display: inline-flex; align-items: center; margin-left: auto; height: 42px; padding: 0 18px; flex: none;
  background: transparent; color: var(--on-night); border: 1px solid var(--night-line); border-radius: 0;
  font: 600 15px/1 var(--serif); cursor: pointer; position: relative; z-index: 60; transition: border-color 0.3s;
}
.menu-btn:hover { border-color: var(--silver); }
.bar-cta { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; background: var(--silver-hi); color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; flex: none; }
.bar-cta:hover { background: #fff; }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--night); overflow-y: auto;
  padding: calc(104px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.menu nav { display: flex; flex-direction: column; }
.menu nav { max-width: 1320px; margin-inline: auto; }
.menu nav a { font-size: 30px; font-weight: 300; line-height: 1.15; padding: 14px 0; border-bottom: 1px solid var(--night-line); }
.menu nav a[aria-current="page"] { color: var(--silver); }

/* atlas */
.atlas {
  position: absolute; z-index: -1;
  right: 6vw; top: 11%; height: 70%;
  aspect-ratio: 719 / 900; max-width: 100%;
  -webkit-mask: url(/assets/atlas.png) center / contain no-repeat;
  mask: url(/assets/atlas.png) center / contain no-repeat;
  background: linear-gradient(180deg, #2c3746 0%, #1c2531 60%, #121922 100%);
}
.atlas-light {
  position: absolute; inset: 0;
  background: linear-gradient(102deg, transparent 32%, rgba(220, 226, 232, 0.14) 43%, rgba(236, 240, 244, 0.7) 50%, rgba(220, 226, 232, 0.14) 57%, transparent 68%);
  background-size: 280% 100%;
  background-position: 62% 0;
  animation: rake 20s var(--ease) infinite alternate;
}
@keyframes rake {
  from { background-position: 108% 0; }
  to { background-position: -8% 0; }
}

/* home hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 128px 0;
  background: radial-gradient(70% 80% at 76% 34%, #18212c 0%, var(--night) 70%);
}
.hero-in { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: clamp(48px, 7svh, 96px); }
.hero-title { max-width: 15ch; font-size: clamp(46px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.hero-motto { margin-top: 24px; font-size: 20px; line-height: 1.35; color: var(--on-night-soft); }
.hero-actions { margin-top: 36px; }
.hero-row-label { font-size: 15px; font-weight: 600; color: var(--on-night-soft); padding-bottom: 14px; }
.hero-row-label a:hover { color: var(--on-night); }
.ramos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--night-line);
  background: rgba(11, 16, 22, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ramo { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; height: 100%; padding: 26px 28px 30px 0; }
.ramos li + li .ramo { padding-left: 28px; border-left: 1px solid var(--night-line); }
.ramo-name { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; font-weight: 300; }
.ramo-go { font-size: 20px; color: var(--on-night-soft); transition: color 0.3s, transform 0.4s var(--ease); }
.ramo:hover .ramo-go, .ramo:focus-visible .ramo-go { color: var(--on-night); transform: translateX(4px); }
.ramo:focus-visible { outline-offset: -4px; }

/* bands */
.stone { background: var(--stone); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.stone ::selection, .white ::selection { background: var(--ink); color: var(--stone); }
.agencia, .beneficios, .respaldo, .contacto { padding-block: clamp(96px, 12vw, 168px); }

/* sobre nosotros + mision */
.years { position: sticky; top: 120px; display: flex; align-items: flex-end; gap: 14px; }
.years-num { font-size: clamp(150px, 19vw, 290px); line-height: 0.78; font-weight: 300; letter-spacing: -0.05em; color: var(--silver); }
.years-word { font-size: clamp(32px, 3.6vw, 52px); line-height: 1; color: var(--navy); padding-bottom: 0.14em; }
.agencia-text { display: flex; flex-direction: column; gap: 22px; }
.agencia-text .h2 { margin-bottom: 8px; }
.label-gap { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--light-line); margin-bottom: -6px; }

/* beneficios */
.beneficios-title { margin-top: 14px; }
.links { border-bottom: 1px solid var(--night-line); }
.links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-block: 24px; border-top: 1px solid var(--night-line);
  font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; line-height: 1.2;
}
.links a span:last-child { color: var(--on-night-soft); transition: color 0.3s, transform 0.4s var(--ease); }
.links a:hover span:last-child, .links a:focus-visible span:last-child { color: var(--on-night); transform: translateX(4px); }
.statement {
  margin-top: clamp(96px, 12vw, 160px); max-width: 22ch;
  font-size: clamp(34px, 4.4vw, 62px); line-height: 1.12; font-weight: 300; letter-spacing: -0.02em; text-wrap: balance;
}

/* respaldo */
.logos {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 8px;
}
.logos li { height: clamp(100px, 9vw, 136px); display: grid; place-items: center; padding-inline: 10%; }
.logos img { width: auto; height: auto; max-width: min(100%, 190px); max-height: 72px; }

/* contacto */
.contacto-in { display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(40px, 7vw, 120px); row-gap: 48px; }
.form { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; color: var(--on-night-soft); }
.req { color: var(--silver); }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--on-night);
  border: 0; border-bottom: 1px solid var(--night-line); border-radius: 0;
  padding: 10px 0 12px; font: 400 19px/1.4 var(--serif);
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--silver-hi); }
.field [aria-invalid="true"] { border-color: #c79a9a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.f-status { font-size: 16px; color: var(--on-night-soft); }
.f-status.ok { color: var(--on-night); }
.f-status.err { color: #e2b0b0; }

/* inner pages */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88svh, 860px);
  padding-block: 168px clamp(96px, 12vw, 160px);
  background: radial-gradient(70% 80% at 80% 30%, #151d27 0%, var(--night) 70%);
}
.atlas-still { opacity: 0.55; top: 14%; height: 72%; }
.page-head-in { display: flex; flex-direction: column; gap: 36px; }
.page-title { max-width: 16ch; font-size: clamp(44px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.page-lede { max-width: 34ch; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.38; color: var(--on-night-soft); }
.page-intro { font-size: 20px; color: var(--on-night-soft); }
.bullets { max-width: 62ch; margin-top: -12px; border-bottom: 1px solid var(--night-line); }
.bullets li { position: relative; padding: 22px 0 22px 28px; border-top: 1px solid var(--night-line); font-size: 19px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 6px; height: 6px; border-radius: 50%; background: var(--silver); }
.page-statement {
  max-width: 24ch; padding-top: 36px; border-top: 1px solid var(--night-line);
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; font-weight: 300; letter-spacing: -0.015em; text-wrap: balance;
}
.productos-list { border-bottom: 1px solid var(--night-line); max-width: 760px; }
.productos-list li { padding-block: 26px; border-top: 1px solid var(--night-line); font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; line-height: 1.1; }

/* footer */
.foot { border-top: 1px solid var(--night-line); padding-block: 72px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.foot-logo { width: 120px; height: auto; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 4vw, 64px); }
.foot-cols > div { display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: var(--on-night-soft); }
.foot-cols a { font-variant-numeric: tabular-nums; transition: color 0.3s; }
.foot-cols a:hover, .foot-cols a[aria-current="page"] { color: var(--on-night); }
.foot-h { font-size: 15px; font-weight: 600; color: var(--on-night); margin-bottom: 8px; }

/* responsive */
@media (max-width: 1280px) {
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .bar-cta { display: none; }
  .split, .contacto-in { grid-template-columns: minmax(0, 1fr); }
  .years { position: static; }
  .atlas { right: -16vw; top: 12%; height: 56%; opacity: 0.7; }
  .atlas-still { opacity: 0.35; }
  .ramos { grid-template-columns: minmax(0, 1fr); }
  .ramo { flex-direction: row; align-items: baseline; padding: 20px 0; }
  .ramos li + li .ramo { padding-left: 0; border-left: 0; border-top: 1px solid var(--night-line); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand-name { font-size: 15px; }
  .hero { padding-top: 120px; }
  .atlas { right: -40vw; opacity: 0.55; }
  .f-row { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ramo-name { font-size: 24px; }
  .hero-motto { font-size: 17px; }
  .page-head { padding-top: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atlas-light { animation: none; }
}
