/* ==========================================================================
   EXPO LOGÍSTICA 2026 — Brand Guidelines
   Editorial brand-book layout inspired by the Brandguide template structure,
   built on the official Expo Logística 2026 brand system.
   ========================================================================== */

:root {
  /* Brand core */
  --prussian: #002B49;
  --lagoon:   #00AAD2;
  --teal:     #005F6B;
  --orange:   #FF5E00;

  /* Neutrals / ink */
  --ink:      #11202b;
  --ink-soft: #41525d;
  --muted:    #76828c;
  --line:     #e6eaef;
  --card:     #f3f5f8;
  --card-2:   #eef1f5;
  --white:    #ffffff;

  --sidebar-w: 264px;
  --col: 600px;

  --f-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--orange); color: #fff; }

/* ===== Typography helpers ===== */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .96;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--prussian);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hero::before { /* faint brand atmosphere */
  content: "";
  position: absolute; inset: 0;
  background: url('../img/hero-cubes.jpg') center/cover no-repeat;
  opacity: .20;
  mix-blend-mode: luminosity;
  z-index: -2;
}
.hero::after { /* navy vignette for depth + legibility */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(0,170,210,.16), transparent 55%),
    linear-gradient(180deg, rgba(0,43,73,.55) 0%, rgba(0,43,73,.30) 40%, rgba(0,30,52,.92) 100%);
  z-index: -1;
}
.hero__deco {
  position: absolute;
  top: -14%; right: -6%;
  width: 70vw; max-width: 1000px;
  pointer-events: none;
  opacity: .55;
  z-index: -1;
}
.hero__deco path, .hero__deco circle, .hero__deco line { vector-effect: non-scaling-stroke; }

.hero__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px clamp(22px, 5vw, 64px);
}
.hero__logo { display: flex; align-items: center; gap: 12px; }
.hero__logo img { height: 34px; width: auto; }
.hero__meta {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.62); font-weight: 600;
}
.hero__body {
  margin-top: auto;
  padding: clamp(22px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: flex-end;
  text-align: right;
}
.hero__kicker {
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--lagoon); font-weight: 700; margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(58px, 12vw, 168px);
  font-weight: 800; letter-spacing: -.04em; line-height: .9;
}
.hero__title span { display: block; }
.hero__scroll {
  position: absolute; bottom: 26px; right: clamp(22px,5vw,64px);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 38px;
  background: linear-gradient(rgba(255,255,255,.7), transparent);
  animation: scrollpulse 2s var(--ease) infinite;
}
@keyframes scrollpulse { 0%,100%{ transform: scaleY(.5); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ==========================================================================
   LAYOUT  (sticky sidebar + content)
   ========================================================================== */
.layout { display: flex; align-items: flex-start; }

.sidebar {
  position: sticky; top: 0;
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--white);
  display: flex; flex-direction: column;
  padding: 34px 30px;
  z-index: 20;
}
.sidebar__logo img { height: 30px; width: auto; }
.sidebar__nav { margin-top: 52px; display: flex; flex-direction: column; gap: 2px; }
.sidebar__nav a {
  position: relative;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 0 8px 20px;
  transition: color .25s var(--ease);
}
.sidebar__nav a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%) scale(0);
  transition: transform .3s var(--ease);
}
.sidebar__nav a:hover { color: var(--ink); }
.sidebar__nav a.active { color: var(--prussian); font-weight: 600; }
.sidebar__nav a.active::before { transform: translateY(-50%) scale(1); }
.sidebar__foot {
  margin-top: auto; font-size: 12px; color: var(--muted);
  letter-spacing: .04em; line-height: 1.5;
}

.content { flex: 1; min-width: 0; }
.content-inner { max-width: var(--col); margin: 0 auto; padding: 0 32px; }

/* ===== Section scaffolding ===== */
.section { padding: clamp(80px, 12vh, 160px) 0 0; }
.section:last-child { padding-bottom: 160px; }
.section__index {
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: var(--orange); text-transform: uppercase; margin-bottom: 18px;
}
.section__title { font-size: clamp(34px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.section__intro { color: var(--ink-soft); font-size: 16px; margin-top: 22px; max-width: 46ch; }

.block { margin-top: 64px; }
.block__title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.block__sub { font-size: 14px; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px; color: var(--ink); }
.block__text { color: var(--ink-soft); font-size: 15px; margin-top: 12px; max-width: 52ch; }
.caption { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ===== Cards ===== */
.frame {
  background: var(--card);
  border-radius: 14px;
  display: grid; place-items: center;
  padding: 56px 32px;
  min-height: 220px;
}
.frame img { width: auto; max-height: 110px; }
.frame--tall { min-height: 300px; }
.frame--dark { background: var(--prussian); }
.frame--teal { background: var(--teal); }
.frame--lagoon { background: var(--lagoon); }
.frame--photo { padding: 0; overflow: hidden; }
.frame--photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }

/* Feature card (brand values) */
.feature {
  position: relative; overflow: hidden;
  background: var(--prussian); color: #fff;
  border-radius: 16px; padding: 40px;
  min-height: 420px; display: flex; flex-direction: column;
  isolation: isolate;
}
.feature__top { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.feature__title { margin-top: auto; font-size: clamp(28px, 3.8vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.feature__title b { color: var(--lagoon); font-weight: 800; }
.feature__foot { margin-top: 26px; font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .1em; }
.feature__deco { position: absolute; top: -30%; right: -12%; width: 60%; opacity: .5; z-index: -1; }

/* ===== Logo usage grid ===== */
.usage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.usage .cell .caption { margin-top: 10px; }
.usage--full { grid-template-columns: 1fr; }

/* ===== Downloads ===== */
.downloads { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl { }
.dl__art { background: var(--card); border-radius: 12px; display:grid; place-items:center; min-height: 150px; overflow:hidden; }
.dl__art img { max-height: 64px; width:auto; }
.dl__art.dark { background: var(--prussian); }
.dl__art.teal { background: var(--teal); }
.dl__label { font-size: 13px; font-weight: 700; margin: 12px 0 8px; }
.dl__btn {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 11px; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: all .2s var(--ease); background: #fff;
}
.dl__btn:hover { border-color: var(--prussian); color: var(--prussian); }
.dl__btn svg { width: 15px; height: 15px; }

/* ===== Typography specimen ===== */
.type-card {
  background: var(--card); border-radius: 16px; padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin-top: 22px;
}
.type-card__meta { font-size: 13px; }
.type-card__meta dt { color: var(--lagoon); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 18px; }
.type-card__meta dt:first-child { margin-top: 0; }
.type-card__meta dd { color: var(--ink); margin-top: 4px; }
.type-card__glyphs { font-size: 15px; color: var(--ink-soft); letter-spacing: .01em; word-break: break-word; line-height: 1.9; }
.type-card__name { font-size: clamp(64px, 9vw, 116px); font-weight: 700; letter-spacing: -.04em; color: var(--prussian); line-height: .9; }
.type-scale { margin-top: 22px; border-top: 1px solid var(--line); }
.type-scale__row { display: flex; align-items: baseline; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.type-scale__row .lab { flex: 0 0 92px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.type-scale__row .spec { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-weights { display:flex; flex-wrap:wrap; gap: 18px 26px; margin-top: 22px; }
.w-weights span { color: var(--ink); }
.w-weights .x300 { font-weight: 300 } .w-weights .x400 { font-weight: 400 } .w-weights .x500 { font-weight: 500 }
.w-weights .x600 { font-weight: 600 } .w-weights .x700 { font-weight: 700 } .w-weights .x800 { font-weight: 800 } .w-weights .x900 { font-weight: 900 }

/* ===== Colors ===== */
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.swatch { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.swatch__chip { height: 150px; position: relative; }
.swatch__chip span { position:absolute; top:14px; left:16px; color:#fff; font-weight:700; font-size:14px; letter-spacing:.01em; }
.swatch__chip span.dark { color: var(--prussian); }
.swatch__body { padding: 16px; display: grid; grid-template-columns: 52px 1fr; gap: 6px 10px; font-size: 12.5px; }
.swatch__body dt { color: var(--muted); font-weight: 700; }
.swatch__body dd { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.ramp { margin-top: 30px; }
.ramp__name { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.ramp__row { display: grid; grid-template-columns: repeat(9, 1fr); border-radius: 10px; overflow: hidden; }
.ramp__cell { aspect-ratio: 1 / 1.5; padding: 10px 8px; display: flex; flex-direction: column; justify-content: space-between; }
.ramp__cell b { font-size: 11px; font-weight: 700; }
.ramp__cell small { font-size: 8.5px; letter-spacing: -.01em; opacity: .85; font-variant-numeric: tabular-nums; }

/* ===== Imagery mosaic ===== */
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; margin-top: 22px; height: 420px; }
.mosaic > div { border-radius: 14px; overflow: hidden; }
.mosaic > div img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .big { grid-row: 1 / 3; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.dd { border-radius: 12px; padding: 22px; font-size: 14px; }
.dd h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.dd--do { background: rgba(0,170,210,.08); }
.dd--do h4 { color: var(--teal); }
.dd--dont { background: rgba(255,94,0,.07); }
.dd--dont h4 { color: var(--orange); }
.dd ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.dd li { color: var(--ink-soft); padding-left: 20px; position: relative; }
.dd li::before { position: absolute; left: 0; }
.dd--do li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.dd--dont li::before { content: "✕"; color: var(--orange); font-weight: 700; }

/* ===== Brand voice ===== */
.voice-values { text-align: center; margin: 8px 0 34px; }
.voice-values .eyebrow { display:block; margin-bottom: 14px; }
.voice-values .q { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.voice-card { border-radius: 16px; padding: 32px 28px; min-height: 290px; }
.voice-card h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 26px; }
.voice-card ul { list-style: none; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.voice-card li { font-size: 19px; font-weight: 500; color: var(--ink); }
.voice-card--a { background: #f6ddc9; }
.voice-card--b { background: #c3cdd6; }

/* ===== Applications ===== */
.apps { display: grid; gap: 16px; margin-top: 22px; }
.apps .frame--photo { border-radius: 16px; min-height: 260px; }
.apps__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== Footer ===== */
.foot {
  background: var(--prussian); color: #fff; margin-top: 120px;
  padding: 80px clamp(24px,6vw,90px) 50px;
  position: relative; overflow: hidden;
}
.foot__logo img { height: 40px; width: auto; }
.foot__big { font-size: clamp(40px, 8vw, 96px); font-weight: 800; letter-spacing: -.04em; line-height: .95; margin: 40px 0; }
.foot__big b { color: var(--orange); font-weight: 800; }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; font-size: 13px; color: rgba(255,255,255,.6); }
.foot__row a:hover { color: #fff; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .sidebar {
    position: fixed; top: 0; left: 0; right: 0;
    width: 100%; height: auto; flex-basis: auto;
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-right: none; border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  }
  .sidebar__nav {
    margin: 0; flex-direction: row; gap: 2px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; max-width: 64vw;
  }
  .sidebar__nav a { padding: 6px 12px; white-space: nowrap; font-size: 13px; }
  .sidebar__nav a::before { display: none; }
  .sidebar__nav a.active { background: var(--card); border-radius: 20px; }
  .sidebar__foot { display: none; }
  .content { padding-top: 64px; }
}
@media (max-width: 720px) {
  .type-card { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr; }
  .voice-grid, .apps__row, .do-dont, .usage, .downloads { grid-template-columns: 1fr; }
  .ramp__cell small { display: none; }
  .ramp__cell { padding: 8px 5px; }
  .mosaic { grid-template-columns: 1fr 1fr; height: auto; }
  .mosaic .big { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 16/9; }
  .mosaic > div { aspect-ratio: 1; }
  .mosaic .big { aspect-ratio: 16/9; }
}
@media (max-width: 520px) {
  .hero__nav-meta { display: none; }
  .content-inner { padding: 0 20px; }
}
