:root {
  --bg: var(--dana-ice, #f1f6fb);
  --bg-dark: var(--dana-navy, #114167);
  --bg-ink: var(--dana-ink-dark, #171720);
  --paper: var(--dana-white, #ffffff);
  --ink: var(--dana-charcoal, #1b1b1d);
  --muted: var(--dana-copy, #686868);
  --muted-on-dark: rgba(241, 246, 251, 0.78);
  --gold: var(--dana-blue, #2169a7);
  --gold-2: var(--dana-blue-light, #56a8db);
  --line: rgba(17, 65, 103, 0.12);
  --line-dark: rgba(241, 246, 251, 0.16);
  --header-h: 92px; /* concreto: evita ciclo con brand --dana-nav-h: var(--header-h) */
  --nav-h: var(--header-h);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 10000;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* —— Header —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 10px 22px;
  background: #ffffff;
  border-bottom: 1px solid #e2e2e2;
  color: var(--dana-charcoal, #1b1b1d);
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    backdrop-filter 0.28s ease,
    -webkit-backdrop-filter 0.28s ease;
}

/* Tras salir del hero: barra frosted blanca — logo oscuro + texto oscuro siempre */
.nav--scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(226, 226, 226, 0.65);
  color: var(--dana-charcoal, #1b1b1d);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

.nav--scrolled .nav-brand .logo {
  background: transparent;
}

.nav--scrolled .nav-menu a {
  color: var(--dana-charcoal, #1b1b1d);
}

.nav--scrolled .nav-menu a:hover,
.nav--scrolled .nav-menu a:focus-visible {
  color: var(--dana-blue-cta, #03508b);
}

.nav--scrolled .nav-years,
.nav--scrolled .nav-years__num {
  color: #8a9199;
}

.nav--scrolled .nav-toggle span {
  background: var(--dana-charcoal, #1b1b1d);
}

.nav--scrolled .nav-menu a.btn-promo,
.nav--scrolled .nav-menu a.btn-promo:hover,
.nav--scrolled .nav-menu a.btn-promo:focus-visible {
  background: var(--dana-promo, #03508b);
  color: #fff;
  border: 0;
}

.nav-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.nav-brand .logo {
  /* Match danacorp.cl header: width 202px → ~38px height (300×56 asset) */
  height: 38px;
  width: auto;
  max-width: min(202px, 56vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  background: transparent;
}

.nav-menu {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 11px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dana-charcoal, #1b1b1d);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--dana-blue-cta, #03508b);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--paper);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--dana-blue-deep, #0d4b95);
}

.btn-line {
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--paper);
}

.btn-line--dark {
  border-color: rgba(17, 65, 103, 0.28);
  color: var(--dana-navy, #114167);
}

.btn-line--dark:hover,
.btn-line--dark:focus-visible {
  border-color: var(--dana-blue-deep, #0d4b95);
  background: rgba(33, 105, 167, 0.06);
}

.btn-promo {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 2px;
  background: var(--dana-promo, #03508b);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu a.btn-promo,
.nav-menu a.btn-promo:hover,
.nav-menu a.btn-promo:focus-visible {
  color: #fff;
}

.btn-promo:hover,
.btn-promo:focus-visible {
  background: var(--dana-navy, #114167);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dana-charcoal, #1b1b1d);
}

/* —— Hero —— */
.hero {
  --hero-pad-x: clamp(1.25rem, 5vw, 4rem);
  --hero-pad-y: clamp(0.85rem, 2.8vh, 2.75rem);
  --hero-slide-ms: 7000ms;
  position: relative;
  height: calc(100dvh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  overflow: hidden;
  background: var(--dana-hero-shade, #212733);
  color: #fff;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(23, 23, 32, 0.42) 0%,
      rgba(23, 23, 32, 0.22) 38%,
      rgba(17, 65, 103, 0.45) 72%,
      rgba(17, 65, 103, 0.72) 100%
    ),
    linear-gradient(
      90deg,
      rgba(17, 65, 103, 0.55) 0%,
      rgba(23, 23, 32, 0.18) 48%,
      rgba(23, 23, 32, 0.08) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.hero-visual img,
.hero-visual__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.02);
  /* Prefer crisp decode over soft browser stretch; no blur filters */
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  filter: saturate(1.03) contrast(1.05);
  will-change: transform;
}

.hero-slide.is-active .hero-visual img,
.hero-slide.is-active .hero-visual__img {
  animation: heroDrift 22s ease-out forwards;
}

.hero-frame {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: var(--hero-pad-y) var(--hero-pad-x);
  box-sizing: border-box;
  pointer-events: none;
}

.hero-copy {
  width: min(100%, 38rem);
  margin-top: clamp(0.75rem, 5vh, 6.5rem);
  pointer-events: auto;
}

.hero-title {
  margin: 0 0 clamp(0.85rem, 1.8vh, 1.35rem);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(2.15rem, 2.1vh + 1.55rem, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
}

.hero-accent {
  font-style: normal;
  font-weight: 400;
  color: var(--dana-blue-light, #56a8db);
}

.hero-lede {
  margin: 0;
  max-width: 38ch;
  font-size: clamp(0.92rem, 0.4vh + 0.78rem, 1.05rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  pointer-events: auto;
}

.hero-foot__left {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.hero-project {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-project__name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
}

.hero-project__meta {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.68);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  position: relative;
  display: block;
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  overflow: hidden;
}

.hero-dot__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #fff;
}

.hero-dot[aria-selected="true"] .hero-dot__bar {
  animation: heroProgress var(--hero-slide-ms) linear forwards;
}

.hero.is-paused .hero-dot[aria-selected="true"] .hero-dot__bar,
.hero[data-reduce-motion] .hero-dot__bar {
  animation-play-state: paused;
}

.hero[data-reduce-motion] .hero-dot[aria-selected="true"] .hero-dot__bar {
  transform: scaleX(1);
  animation: none;
}

.hero-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(17, 65, 103, 0.28);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: rgba(17, 65, 103, 0.55);
  border-color: rgba(255, 255, 255, 0.65);
}

.hero-link {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

@keyframes heroProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: var(--dana-blue, #2169a7);
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--dana-blue-deep, #0d4b95);
}

.hero-cta svg {
  flex: 0 0 auto;
}

.hero-copy,
.hero-foot {
  animation: heroFadeUp 0.7s ease-out 0.12s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.055) translate3d(-0.45%, -0.25%, 0); }
}

@media (max-height: 760px) {
  .hero-copy {
    margin-top: clamp(0.75rem, 4vh, 2.5rem);
  }

  .hero-title {
    font-size: clamp(1.85rem, 1.6vh + 1.35rem, 3.1rem);
  }

  .hero-lede {
    font-size: 0.9rem;
    max-width: 42ch;
  }

  .hero-cta {
    min-height: 44px;
  }
}

@media (max-height: 620px) {
  .hero-title {
    font-size: clamp(1.55rem, 4.2vw, 2.2rem);
    margin-bottom: 0.55rem;
  }

  .hero-lede {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .hero-project__meta {
    display: none;
  }
}

/* —— Sections —— */
.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dana-blue-deep, #0d4b95);
  margin: 0 0 10px;
}

.kicker--on-dark {
  color: var(--gold-2);
}

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section--ice {
  background: var(--bg);
  color: var(--ink);
}

.section--navy {
  background:
    linear-gradient(165deg, var(--dana-navy, #114167) 0%, var(--dana-blue-cta, #03508b) 55%, var(--dana-ink-dark, #171720) 100%);
  color: var(--dana-ice, #f1f6fb);
}

.section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 16px;
  color: inherit;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  margin: 0;
  font-size: 1.02rem;
}

.lead--on-dark {
  color: var(--muted-on-dark);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 42rem;
}

/* —— Empresa pillars —— */
.empresa-intro {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(6, 1fr);
  }

  .pillar:nth-child(1),
  .pillar:nth-child(2),
  .pillar:nth-child(3) {
    grid-column: span 2;
  }

  .pillar:nth-child(4),
  .pillar:nth-child(5) {
    grid-column: span 3;
  }
}

.pillar {
  background: var(--paper);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.pillar:hover {
  background: #eaf2f9;
}

.pillar__n {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--dana-blue, #2169a7);
  margin-bottom: 14px;
}

.pillar h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.2;
  color: var(--ink);
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* —— Project cards —— */
.project-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.project-card {
  --project-stagger: calc(var(--i, 0) * 95ms);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(241, 246, 251, 0.18);
  overflow: hidden;
  isolation: isolate;
  will-change: clip-path, filter, opacity, transform;
  clip-path: inset(14% 10% 14% 10%);
  filter: blur(10px);
  opacity: 0;
  transform: translateY(36px) scale(0.965);
  transition:
    clip-path 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--project-stagger),
    filter 0.75s ease var(--project-stagger),
    opacity 0.65s ease var(--project-stagger),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--project-stagger),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.project-card.is-in-view {
  clip-path: inset(0 0 0 0);
  filter: blur(0);
  opacity: 1;
  transform: none;
}

.project-card__hit {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.project-card__hit:focus-visible {
  outline: 2px solid var(--gold-2, #56a8db);
  outline-offset: -2px;
}

.project-card.is-in-view:hover,
.project-card.is-in-view:focus-within {
  border-color: rgba(241, 246, 251, 0.42);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(86, 168, 219, 0.18);
  transform: translateY(-8px);
  transition-delay: 0s;
}

.project-card__media {
  display: block;
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--dana-hero-shade, #212733);
}

@media (min-width: 900px) {
  .project-card__media {
    aspect-ratio: 5 / 6;
  }
}

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(17, 65, 103, 0.08) 0%,
    transparent 32%,
    rgba(10, 18, 28, 0.55) 72%,
    rgba(8, 14, 22, 0.88) 100%
  );
  pointer-events: none;
}

.project-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card.is-in-view:hover .project-card__media > img,
.project-card.is-in-view:focus-within .project-card__media > img {
  transform: scale(1.08);
}

.project-card__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(241, 246, 251, 0.22) 48%,
    transparent 60%
  );
  transform: translateX(-130%) skewX(-12deg);
  opacity: 0;
}

.project-card.is-in-view:hover .project-card__shine,
.project-card.is-in-view:focus-within .project-card__shine {
  opacity: 1;
  animation: project-shine 0.85s ease forwards;
}

@keyframes project-shine {
  from {
    transform: translateX(-130%) skewX(-12deg);
  }
  to {
    transform: translateX(130%) skewX(-12deg);
  }
}

.project-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(241, 246, 251, 0.28);
  background: rgba(3, 80, 139, 0.92);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.project-card__badge--soft {
  background: rgba(17, 65, 103, 0.88);
  border-color: rgba(86, 168, 219, 0.35);
}

.project-card__logo {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: min(86%, 176px);
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid rgba(241, 246, 251, 0.12);
  background: rgba(10, 14, 20, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.project-card__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 152px;
  max-height: 46px;
  object-fit: contain;
  transition: none;
}

.project-card__logo--portrait {
  width: auto;
  min-width: 76px;
  padding: 8px 10px;
}

.project-card__logo--portrait img {
  max-width: 78px;
  max-height: 74px;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1.4rem 1.3rem 1.55rem;
  flex: 1;
  background: rgba(8, 22, 36, 0.35);
}

.project-card__loc {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.project-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
  color: var(--dana-ice, #f1f6fb);
}

.project-card__body > p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}

.chip-row li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(86, 168, 219, 0.28);
  background: rgba(33, 105, 167, 0.22);
  color: var(--dana-ice, #f1f6fb);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.project-card__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
  align-self: flex-start;
  transition: color 0.25s ease, gap 0.25s ease;
}

.project-card__cta span {
  transition: transform 0.25s ease;
}

.project-card__hit:hover .project-card__cta,
.project-card__hit:focus-visible .project-card__cta {
  color: #fff;
  gap: 12px;
}

.project-card__hit:hover .project-card__cta span,
.project-card__hit:focus-visible .project-card__cta span {
  transform: translateX(3px);
}

/* —— Contact —— */
.contact {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 0.95fr 1.15fr;
    align-items: start;
    gap: 3rem;
  }
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.contact__grid {
  display: grid;
  gap: 14px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.3rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  border-color: rgba(33, 105, 167, 0.35);
  box-shadow: 0 10px 28px rgba(17, 65, 103, 0.08);
}

.contact-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
}

.contact-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card a {
  color: var(--dana-blue-cta, #03508b);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
}

/* —— Footer —— */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer-brand .logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.footer-copy {
  margin: 0;
  flex: 1 1 220px;
}

.footer-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer a {
  color: var(--dana-navy, #114167);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--dana-blue-cta, #03508b);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* —— Responsive nav / hero —— */
@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
    margin-left: 0;
  }

  .nav-years {
    order: 2;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dana-white, #fff);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 22px 24px;
    border-bottom: 1px solid rgba(27, 27, 29, 0.08);
    box-shadow: 0 16px 32px rgba(17, 65, 103, 0.1);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .nav-menu a {
    font-size: 0.82rem;
    padding: 10px 0;
  }

  .nav-menu .btn-promo {
    margin-top: 8px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  /* Menú móvil siempre legible: panel blanco + texto oscuro */
  .nav--scrolled .nav-menu {
    background: var(--dana-white, #fff);
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Con menú abierto: barra sólida para no perder contraste detrás del panel */
  body.nav-open .nav.nav--scrolled {
    background: #ffffff;
    border-bottom-color: #e2e2e2;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: var(--dana-charcoal, #1b1b1d);
  }

  body.nav-open .nav.nav--scrolled .nav-toggle span {
    background: var(--dana-charcoal, #1b1b1d);
  }

  body.nav-open .nav.nav--scrolled .nav-years,
  body.nav-open .nav.nav--scrolled .nav-years__num {
    color: #8a9199;
  }

  body.nav-open .nav.nav--scrolled .nav-brand .logo {
    background: transparent;
  }

  .hero-copy {
    width: min(100%, 34rem);
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3.35rem);
  }
}

@media (max-width: 767px) {
  .nav-brand .logo {
    /* Match danacorp.cl ≤767px: width 123px → ~23px height */
    height: 23px;
    max-width: min(123px, 56vw);
  }
}

@media (max-width: 860px) {
  .hero {
    --hero-pad-x: 1.1rem;
    --hero-pad-y: 1.1rem;
  }

  .hero-copy {
    width: 100%;
    margin-top: clamp(0.5rem, 4vh, 3rem);
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.65rem);
  }

  .hero-lede {
    max-width: none;
    font-size: 0.92rem;
  }

  .hero-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
  }

  .hero-cta {
    width: 100%;
    min-height: 46px;
  }

  .hero-controls {
    gap: 0.65rem;
  }

  .hero-dot {
    width: 22px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav {
    transition: none !important;
  }

  .hero-visual img,
  .hero-visual__img,
  .hero-slide.is-active .hero-visual img,
  .hero-slide.is-active .hero-visual__img,
  .hero-copy,
  .hero-foot,
  .hero-dot__bar {
    animation: none !important;
  }

  .hero-visual img,
  .hero-visual__img {
    transform: none;
  }

  .hero-slide {
    transition: none !important;
  }

  .hero-copy,
  .hero-foot {
    opacity: 1;
    transform: none;
  }

  .project-card,
  .project-card__media > img,
  .pillar,
  .contact-card,
  .reveal {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .project-card {
    clip-path: none;
    filter: none;
    opacity: 1;
    transform: none;
    will-change: auto;
  }

  .project-card.is-in-view:hover,
  .project-card.is-in-view:focus-within {
    transform: none;
    box-shadow: none;
  }

  .project-card__shine {
    display: none;
  }
}
