/* ==========================================================================
   MAR Evolutions — estilos
   ========================================================================== */

:root {
  --navy: #102033;
  --navy-deep: #081526;
  --bg: #F4F7FB;
  --white: #FFFFFF;
  --text: #0B1A2C;
  --text-2: #5D6A78;
  --blue: #3277F5;
  --blue-dark: #235ED0;
  --gold: #C9A96A;
  --border: #DCE3EC;
  --green: #2E8B67;

  --on-dark: #E8EEF6;
  --on-dark-2: #A9B6C6;
  --line-dark: rgba(255, 255, 255, 0.10);

  --font: Inter, Manrope, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --section-y: clamp(80px, 10vw, 136px);
  --header-h: 78px;

  --shadow-soft: 0 18px 50px -24px rgba(16, 32, 51, 0.35);
  --shadow-card: 0 1px 2px rgba(16, 32, 51, 0.04), 0 12px 32px -18px rgba(16, 32, 51, 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; color: inherit; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
figure { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.section-dark :focus-visible,
.section-deep :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía compartida ---------- */
.eyebrow {
  margin-bottom: 18px;
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-light { color: #7FA8FF; }
.eyebrow-gold { color: var(--gold); }
.eyebrow-hero span { white-space: nowrap; }

h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.35rem);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-2);
}

.section { padding-block: var(--section-y); }
.section-white { background: var(--white); }
.section-light { background: var(--bg); }
.section-dark  { background: var(--navy); color: var(--on-dark); }
.section-deep  { background: var(--navy-deep); color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-sub { margin-top: 18px; color: var(--text-2); font-size: 1.0625rem; }
.section-dark .section-sub,
.section-deep .section-sub { color: var(--on-dark-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
    color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px -12px rgba(50, 119, 245, 0.75);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 16px 34px -14px rgba(35, 94, 208, 0.85); transform: translateY(-1px); }

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: #B8C4D3; box-shadow: var(--shadow-card); transform: translateY(-1px); }

.btn-ghost-light {
  min-height: 44px;
  padding: 10px 20px;
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  font-weight: 600;
}
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }

.btn-lg { min-height: 58px; padding-inline: 34px; font-size: 1.0625rem; }

/* ---------- Navegación ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; }
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-size: 1.1rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-name span { font-weight: 500; letter-spacing: 0.08em; color: #D7DEE8; }
.brand-sub {
  margin-top: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #9DAABB;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav ul { display: flex; gap: 30px; list-style: none; }
.site-nav ul a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  color: #D3DBE6;
  font-size: 0.975rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav ul a:hover { color: var(--white); }
.site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 1.6px;
  margin-left: -9px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars { top: 50%; margin-top: -0.8px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899.98px) {
  :root { --header-h: 68px; }
  html { scroll-padding-top: 12px; }

  .js .nav-toggle { display: inline-block; }

  .js .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 14px var(--gutter) 26px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.55);
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: block;
    padding: 14px 2px;
    font-size: 1.0625rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .site-nav ul a::after { display: none; }
  .nav-cta { align-self: flex-start; }

  /* Sin JS: navegación visible en flujo normal */
  html:not(.js) .nav-bar { flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 12px; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  html:not(.js) .site-nav ul a { border: 0; padding: 4px 0; }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 104px) clamp(72px, 9vw, 128px);
  background:
    radial-gradient(900px 480px at 85% 20%, rgba(50, 119, 245, 0.07), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 52fr 48fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero h1 {
  font-size: clamp(2.75rem, 1.2rem + 5.3vw, 5.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
}
.hero-lead {
  max-width: 560px;
  margin-top: 30px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-media {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 80px -40px rgba(8, 21, 38, 0.6), 0 2px 6px rgba(8, 21, 38, 0.08);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(8, 21, 38, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.chip .dot,
.status-dot {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
}
.chip-top { top: 24px; right: 24px; }
.chip-bottom { bottom: 24px; left: 24px; }

/* ---------- Visión ---------- */
.vision-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
}
.vision-intro h2 { max-width: 640px; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  list-style: none;
}
.principle {
  padding: 34px 30px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.principle:hover { box-shadow: var(--shadow-card); border-color: #CBD5E1; transform: translateY(-2px); }
.principle-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--gold);
}
.principle-icon svg { width: 26px; height: 26px; }
.principle h3 { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.01em; }
.principle p { margin-top: 10px; color: var(--text-2); font-size: 1rem; line-height: 1.6; }

/* ---------- Portafolio ---------- */
.section-dark {
  background:
    radial-gradient(1100px 600px at 100% 0%, rgba(50, 119, 245, 0.10), transparent 60%),
    var(--navy);
}
.section-dark h2 { color: var(--white); }

.project {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.project:hover {
  border-color: rgba(201, 169, 106, 0.38);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.7);
}
.project-media { position: relative; overflow: hidden; background: var(--navy-deep); }
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.project:hover .project-media img { transform: scale(1.02); }

.project-body { padding: clamp(26px, 3vw, 40px); }
.project-cat {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.project h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
}
.title-sep { color: var(--gold); font-weight: 400; }
.title-alt { font-weight: 500; color: #C9D3DF; }
.project-body > p:not(.project-cat):not(.status) {
  margin-top: 14px;
  color: var(--on-dark-2);
  font-size: 1rem;
  line-height: 1.65;
}

.capabilities {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  list-style: none;
}
.capabilities li {
  position: relative;
  padding-left: 22px;
  color: var(--on-dark);
  font-size: 0.975rem;
  line-height: 1.5;
}
.capabilities li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.6em;
  width: 8px; height: 1.5px;
  background: var(--gold);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.status-next .status-dot { background: #7FA8FF; }

/* Destacado */
.project-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(201, 169, 106, 0.28);
}
.project-featured .project-media { min-height: 100%; }
.project-featured .project-media img { position: absolute; inset: 0; object-position: 45% 50%; }
.project-featured .project-body { padding: clamp(28px, 4vw, 52px); align-self: center; }
.project-featured .capabilities { grid-template-columns: 1fr; }

/* Filas */
.project-row {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
.row-a { grid-template-columns: 5fr 7fr; }
.row-b { grid-template-columns: 7fr 5fr; }

.project-card { display: flex; flex-direction: column; }
.project-card .project-media { aspect-ratio: 3 / 2; }
.project-card .project-body { display: flex; flex-direction: column; flex: 1; }
.project-card .status { margin-top: auto; align-self: flex-start; }
.project-card .project-body > p:not(.project-cat):not(.status) { margin-bottom: 26px; }

/* ECOZ: imagen vertical */
.project-portrait .project-media { aspect-ratio: 4 / 3; }
.project-portrait .project-media img { object-position: 50% 22%; }
.project-portrait figcaption {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(8, 21, 38, 0.72);
  color: #D3DBE6;
  font-size: 0.78rem;
  line-height: 1.4;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Entornos MAR: tarjeta textual con visual modular */
.project-text { display: flex; flex-direction: column; }
.project-text .project-body { display: flex; flex-direction: column; flex: 1; }
.project-text .status { margin-top: auto; align-self: flex-start; }
.project-text .capabilities { margin-bottom: 26px; }
.modules-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: clamp(26px, 3vw, 40px) clamp(26px, 3vw, 40px) 0;
}
.modules-visual span {
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
}
.modules-visual .is-gold { border-color: rgba(201, 169, 106, 0.55); background: linear-gradient(160deg, rgba(201, 169, 106, 0.22), rgba(201, 169, 106, 0.04)); }
.modules-visual .is-blue { border-color: rgba(50, 119, 245, 0.55); background: linear-gradient(160deg, rgba(50, 119, 245, 0.28), rgba(50, 119, 245, 0.05)); }

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
}
.service {
  position: relative;
  padding: 32px 28px 36px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.service:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.service-num {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.service-num::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 28px; height: 1px;
  margin-left: 12px;
  background: var(--gold);
}
.service h3 { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.service p { margin-top: 12px; color: var(--text-2); font-size: 1rem; line-height: 1.6; }

/* ---------- Cómo trabajamos ---------- */
.section-deep h2 { color: var(--white); }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 169, 106, 0.15));
}
.step { position: relative; padding-top: 38px; }
.step-dot {
  position: absolute;
  top: 0; left: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 1.5px solid var(--gold);
}
.step-dot::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--gold);
}
.step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.step h3 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--white);
}
.statement {
  max-width: 900px;
  margin: clamp(64px, 8vw, 104px) 0 0;
  padding-left: clamp(20px, 3vw, 32px);
  border-left: 2px solid var(--gold);
}
.statement p {
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* ---------- Modelo previsto ---------- */
.model-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.model-grid .section-head { margin-bottom: 0; }
.model { list-style: none; border-top: 1px solid var(--border); }
.model-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.model-item h3 {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.model-item h3::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 7px; height: 7px;
  margin: -3px 12px 0 0;
  border-radius: 50%;
  background: var(--gold);
}
.model-item p { color: var(--text-2); font-size: 1rem; }

/* ---------- Cierre ---------- */
.closing {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--radius-lg);
  color: var(--on-dark);
  background:
    radial-gradient(600px 360px at 100% 100%, rgba(50, 119, 245, 0.22), transparent 70%),
    radial-gradient(500px 300px at 0% 0%, rgba(201, 169, 106, 0.10), transparent 70%),
    var(--navy);
  box-shadow: 0 40px 80px -48px rgba(8, 21, 38, 0.8);
}
.closing h2 { color: var(--white); }
.closing-copy > p:last-child { margin-top: 20px; max-width: 560px; color: var(--on-dark-2); font-size: 1.125rem; }
.closing-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.closing-mail { color: var(--on-dark-2); font-size: 0.975rem; }
.closing-mail a { color: var(--white); text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 48px;
  background: var(--navy-deep);
  color: var(--on-dark-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 40px;
}
.footer-brand img { width: 200px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; list-style: none; }
.footer-nav a { color: #C3CDD9; font-size: 0.95rem; text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-copy { font-size: 0.875rem; }

/* ---------- Animación de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .project:hover .project-media img,
  .btn:hover, .principle:hover, .service:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .project-featured { grid-template-columns: 1fr; }
  .project-featured .project-media { aspect-ratio: 16 / 9; min-height: 0; }
  .model-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 899.98px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 11; }
  .hero-lead { max-width: 640px; }

  .vision-grid { grid-template-columns: 1fr; align-items: start; }
  .principles { grid-template-columns: 1fr; gap: 14px; }

  .row-a, .row-b { grid-template-columns: 1fr; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .step { padding-top: 0; padding-left: 32px; }
  .step-dot { top: 4px; }

  .model-grid { grid-template-columns: 1fr; }

  .closing { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 599.98px) {
  body { font-size: 1rem; }
  .hero h1 { letter-spacing: -0.03em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .hero-media { aspect-ratio: 4 / 5; border-radius: 26px; }
  .chip { font-size: 0.8125rem; padding: 8px 13px; }
  .chip-top { top: 16px; right: 16px; }
  .chip-bottom { bottom: 16px; left: 16px; }

  .project { border-radius: var(--radius-md); }
  .project-featured .project-media { aspect-ratio: 4 / 3; }
  .project-featured .capabilities { grid-template-columns: 1fr; }
  .project-portrait .project-media { aspect-ratio: 4 / 5; }

  .services { grid-template-columns: 1fr; gap: 14px; }
  .service-num { margin-bottom: 22px; }

  .steps { grid-template-columns: 1fr; row-gap: 28px; }

  .closing { border-radius: var(--radius-md); }
  .closing-actions .btn { width: 100%; }
}
