:root {
  --cream: var(--dana-ice, #f1f6fb);
  --cream-2: var(--dana-paper, #f4f4f4);
  --ink: var(--dana-navy, #114167);
  --heading: var(--dana-heading, #202020);
  --navy: var(--dana-ink-dark, #171720);
  --blue: var(--dana-blue, #2169a7);
  --blue-deep: var(--dana-blue-deep, #0d4b95);
  --blue-light: var(--dana-blue-light, #56a8db);
  --paper: var(--dana-white, #ffffff);
  --muted: var(--dana-muted, #707070);
  --glass: rgba(241, 246, 251, 0.62);
  /* Concrete px — never var(--dana-nav-h): brand sets --dana-nav-h: var(--header-h), which would cycle and invalidate height/padding. */
  --header-h: 92px;
  --nav-h: var(--header-h);
}

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

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--cream);
  color: var(--heading);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

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

.skip:focus {
  top: 12px;
}

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

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--blue);
  margin: 0 0 12px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 226, 226, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--heading);
}

.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: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.btn-navy {
  background: var(--blue-deep);
  color: var(--cream);
}

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

.btn-ice {
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
}

.btn-ghost-light {
  border: 1px solid rgba(241, 246, 251, 0.35);
  background: transparent;
  color: var(--cream);
}

.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(--navy);
}

.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(--heading);
}

.immerse {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: stretch;
  grid-template-rows: minmax(0, 1fr);
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  background: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 900px) {
  .immerse {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
    grid-template-rows: minmax(0, 1fr);
  }
}

/* Mobile: una sola viewport, imagen + copy apilados al mismo bloque */
@media (max-width: 899px) {
  .immerse {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.immerse-media {
  --immerse-slide-ms: 7000ms;
  position: relative;
  margin: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
  outline: none;
}

.immerse-slides {
  position: absolute;
  inset: 0;
}

.immerse-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  /* Definition only — keep split-hero crop/encaje as-is */
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  filter: contrast(1.04) saturate(1.02);
  backface-visibility: hidden;
}

.immerse-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  animation: p3ImgReveal 1.2s ease-out both;
}

.immerse-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(17, 24, 32, 0.08) 0%,
      rgba(17, 24, 32, 0.05) 45%,
      rgba(17, 24, 32, 0.55) 100%
    );
}

.immerse-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.1rem 1.15rem;
  color: #fff;
  pointer-events: none;
}

.immerse-caption__name {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.immerse-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  pointer-events: auto;
}

.immerse-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.immerse-dot {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  overflow: hidden;
}

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

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

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

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

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

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

.immerse-arrow:hover,
.immerse-arrow:focus-visible {
  background: rgba(17, 65, 103, 0.6);
  border-color: rgba(255, 255, 255, 0.7);
}

.immerse-link {
  align-self: flex-start;
  pointer-events: auto;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

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

.immerse-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 56px);
  color: var(--heading);
  background: var(--cream);
  box-sizing: border-box;
  overflow: auto;
}

.immerse-cta {
  align-self: flex-start;
  margin-top: 24px;
}

.immerse .eyebrow {
  animation: p3FadeUp 0.6s ease-out 0.2s both;
}
.immerse h1 {
  animation: p3FadeUp 0.8s ease-out 0.4s both;
}
.immerse .lede {
  animation: p3FadeUp 0.7s ease-out 0.6s both;
}
.immerse .btn-navy {
  animation: p3FadeUp 0.6s ease-out 0.75s both;
}

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

@keyframes p3ImgReveal {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

.immerse h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
  max-width: 16ch;
  margin: 0 0 20px;
}

.immerse h1 em {
  font-style: italic;
  color: var(--blue-deep);
}

.immerse .lede {
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

.p3-acc-section {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--navy);
  scroll-margin-top: var(--header-h);
  overflow: hidden;
}

.p3-acc-head {
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.p3-acc-section.is-visible .p3-acc-head {
  opacity: 1;
  transform: none;
}

.p3-acc-head .eyebrow {
  color: var(--blue-light);
}

.p3-acc-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 500;
  color: var(--paper);
  margin: 0;
  max-width: 22ch;
}

.p3-acc {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
  height: clamp(520px, 78vh, 720px);
}

.p3-acc[data-group="end"] {
  justify-content: flex-end;
}

.p3-acc[data-group="start"] {
  justify-content: flex-start;
}

.p3-acc__card {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 72px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  background: #0b1520;
  isolation: isolate;
  transition:
    flex-grow 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.35s ease,
    transform 0.35s ease;
}

/* gallery cascade — wipe up + soft scale (stagger via --i) */
.p3-acc__card[data-scroll-panel] {
  opacity: 0;
  transform: translateY(42px) scale(0.97);
  clip-path: inset(0 0 72% 0 round 16px);
  filter: brightness(0.82);
  will-change: transform, opacity, clip-path, filter;
  transition:
    flex-grow 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
  transition-delay: calc((2 - var(--i, 0)) * 75ms);
}

.p3-acc-section.is-visible .p3-acc__card[data-scroll-panel] {
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0 round 16px);
  filter: none;
  transition-delay: calc(var(--i, 0) * 110ms);
}

.p3-acc.has-active .p3-acc__card:not(.is-active) {
  flex-grow: 0.72;
}

.p3-acc__card.is-active {
  flex-grow: 5.4;
}

.p3-acc__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.6s ease, filter 0.35s ease;
}

.p3-acc__card:not(.is-active):hover .p3-acc__photo,
.p3-acc__card:not(.is-active):focus-visible .p3-acc__photo {
  filter: brightness(1.12);
  transform: scale(1.04);
}

.p3-acc__card.is-active .p3-acc__photo {
  filter: brightness(1.05);
}

.p3-acc__card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(23, 23, 32, 0.82) 0%, rgba(23, 23, 32, 0.28) 46%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.p3-acc__num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.p3-acc__plate {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 6px;
  width: min(92%, 220px);
  padding: 10px 12px;
  border-radius: 10px;
  background: #0a0e14;
  color: #f1f6fb;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

a.p3-acc__plate:hover,
a.p3-acc__plate:focus-visible {
  transform: translateX(-50%) translateY(-2px) scale(1.03);
  background: #121821;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
}

a.p3-acc__plate:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

.p3-acc__plate--portrait {
  width: auto;
  min-width: 88px;
  padding: 10px;
}

.p3-acc__logo {
  display: block;
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  max-width: 148px;
  max-height: 48px;
  object-fit: contain;
  filter: none !important;
  transform: none !important;
  transition: none;
}

.p3-acc__plate--portrait .p3-acc__logo {
  max-width: 78px;
  max-height: 72px;
}

.p3-acc__name {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 600;
  line-height: 1.15;
}

.p3-acc__loc {
  display: none;
  margin-top: 0;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: rgba(241, 246, 251, 0.72);
  line-height: 1.35;
}

.p3-acc__card.is-active .p3-acc__loc {
  display: block;
}

.p3-acc__card.is-active .p3-acc__plate {
  width: min(92%, 280px);
  z-index: 6;
}

.p3-acc__cta {
  display: none;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.p3-acc__card.is-active .p3-acc__cta {
  display: block;
}

.p3-acc__card:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

.chapters {
  display: grid;
  gap: 72px;
  padding: clamp(4rem, 8vw, 8rem) 24px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.chapter {
  display: grid;
  gap: 32px 56px;
  width: min(1080px, 100%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.chapter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 860px) {
  .chapter {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .chapter--flip {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .chapter--flip .chapter-media {
    order: 2;
  }

  .chapter-media {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
}

.chapter-media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
}

.chapter-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center 35%;
}

.chapter-text {
  max-width: 42ch;
  padding-top: 8px;
}

.chapter-text h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 18px;
}

.chapter-text p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.chapter-text p:last-child {
  margin-bottom: 0;
}

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

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  margin: 0 0 28px;
}

.frame-grid {
  display: grid;
  gap: 18px;
}

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

.frame {
  position: relative;
  background: var(--paper);
  border-radius: 20px;
  padding: 22px 22px 26px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(17, 65, 103, 0.06), 0 16px 32px rgba(17, 65, 103, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.frame-photo {
  border-radius: 14px;
  overflow: hidden;
  height: 160px;
  margin-bottom: 18px;
  clip-path: inset(8% 8% 8% 8%);
  transition: clip-path 0.55s ease;
}

.frame-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.12);
  transition: transform 0.7s ease;
}

.frame:hover,
.frame:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 22px 40px rgba(17, 65, 103, 0.14);
}

.frame:hover .frame-photo,
.frame:focus-within .frame-photo {
  clip-path: inset(0 0 0 0);
}

.frame:hover .frame-photo img,
.frame:focus-within .frame-photo img {
  transform: scale(1);
}

.frame-line {
  width: 42px;
  height: 42px;
  color: var(--blue-deep);
  margin-bottom: 10px;
}

.frame-line path,
.frame-line circle {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 0.6s ease;
}

.frame:hover .frame-line path,
.frame:hover .frame-line circle,
.frame:focus-within .frame-line path,
.frame:focus-within .frame-line circle {
  stroke-dashoffset: 0;
}

.frame h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0 0 8px;
}

.frame .more {
  max-height: none;
  overflow: visible;
  opacity: 1;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

/* —— Contacto: recorrido de visita (accordion-lite) —— */
.cta.visit {
  position: relative;
  z-index: 1;
  color: var(--cream);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  scroll-margin-top: var(--nav-h);
  background:
    radial-gradient(ellipse 90% 70% at 12% 0%, rgba(86, 168, 219, 0.18), transparent 55%),
    linear-gradient(165deg, #0d4b95 0%, #114167 48%, #171720 100%);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.cta.visit.is-visible {
  opacity: 1;
  transform: none;
}

.cta.visit.is-visible .visit-panel {
  animation: visitPanelIn 0.55s ease-out both;
}

.cta.visit.is-visible .visit-panel:nth-child(2) {
  animation-delay: 0.06s;
}

.cta.visit.is-visible .visit-panel:nth-child(3) {
  animation-delay: 0.12s;
}

.cta.visit.is-visible .visit-panel:nth-child(4) {
  animation-delay: 0.18s;
}

@keyframes visitPanelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cta.visit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 246, 251, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 246, 251, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 72%);
  pointer-events: none;
}

.visit__intro {
  position: relative;
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.visit__intro .eyebrow {
  color: var(--blue-light);
}

.visit__intro h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 18ch;
}

.cta-lead {
  margin: 0;
  max-width: 42ch;
  color: rgba(241, 246, 251, 0.78);
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.cta-actions .btn {
  border-radius: 6px;
  min-width: 168px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cta-actions .btn-ice:hover,
.cta-actions .btn-ice:focus-visible {
  background: #fff;
  transform: translateY(-2px);
}

.cta-actions .btn-ghost-light:hover,
.cta-actions .btn-ghost-light:focus-visible {
  background: rgba(241, 246, 251, 0.1);
  border-color: rgba(241, 246, 251, 0.7);
}

.visit-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 900px) {
  .visit-rail {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-height: 320px;
    border: 1px solid rgba(241, 246, 251, 0.14);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(23, 23, 32, 0.35);
  }
}

.visit-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid rgba(241, 246, 251, 0.14);
  border-radius: 4px;
  background: rgba(23, 23, 32, 0.28);
  overflow: hidden;
  transition:
    flex-grow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    border-color 0.35s ease;
}

@media (min-width: 900px) {
  .visit-panel {
    border: 0;
    border-radius: 0;
    border-right: 1px solid rgba(241, 246, 251, 0.12);
    flex: 1 1 18%;
    background: transparent;
  }

  .visit-panel:last-child {
    border-right: 0;
  }

  .visit-panel.is-open {
    flex: 1 1 52%;
    background: rgba(241, 246, 251, 0.06);
  }
}

.visit-panel__trigger {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 20px 18px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.visit-panel__trigger:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: -4px;
}

.visit-panel__step {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-light);
  padding-top: 4px;
}

.visit-panel__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.visit-panel__kicker {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 246, 251, 0.55);
}

.visit-panel__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
}

.visit-panel__hint {
  font-size: 0.84rem;
  color: rgba(241, 246, 251, 0.62);
  margin-top: 2px;
}

.visit-panel__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  padding: 0 18px;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    padding 0.35s ease;
}

.visit-panel__inner {
  overflow: hidden;
  min-height: 0;
}

.visit-panel.is-open .visit-panel__body {
  grid-template-rows: 1fr;
  opacity: 1;
  padding: 0 18px 22px;
}

.visit-panel__addr,
.visit-panel__hours {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(241, 246, 251, 0.88);
}

.visit-panel__hours {
  color: var(--blue-light);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.visit-panel__lines {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.visit-panel__lines a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 246, 251, 0.28);
  font-size: 0.92rem;
}

.visit-panel__lines a:hover,
.visit-panel__lines a:focus-visible {
  border-bottom-color: #fff;
}

@media (min-width: 900px) {
  .visit-panel:not(.is-open) .visit-panel__hint {
    opacity: 0.7;
  }

  .visit-panel.is-open .visit-panel__name {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
  }
}

.visit-schedule {
  position: relative;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(241, 246, 251, 0.14);
}

.visit-schedule__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.visit-schedule__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
  color: rgba(241, 246, 251, 0.78);
  line-height: 1.5;
}

.footer {
  padding: 40px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  color: var(--blue);
}

.footer--after-visit {
  background: var(--dana-footer, #232323);
  color: rgba(241, 246, 251, 0.55);
  padding: 28px 0 32px;
  border-top: 1px solid rgba(241, 246, 251, 0.06);
}

.footer--after-visit a {
  color: rgba(241, 246, 251, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 246, 251, 0.22);
}

.footer--after-visit a:hover,
.footer--after-visit a:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
}

.footer__brand,
.footer__links,
.footer__copy {
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.footer__copy {
  flex: 1 1 100%;
  font-size: 0.82rem;
  opacity: 0.85;
}

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

@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;
    padding: 12px 22px 24px;
    align-items: flex-start;
    gap: 4px;
    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;
  }

  body.nav-open {
    overflow: hidden;
  }

  .immerse-copy {
    max-width: none;
    padding: clamp(28px, 5vw, 40px) 22px;
  }

  .p3-acc {
    width: calc(100% - 32px);
    height: clamp(420px, 68vh, 560px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .p3-acc__card {
    flex: 0 0 28%;
    min-width: 86px;
    scroll-snap-align: start;
  }

  .p3-acc.has-active .p3-acc__card:not(.is-active) {
    flex: 0 0 14%;
  }

  .p3-acc__card.is-active {
    flex: 0 0 62%;
  }
}

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

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

  .p3-acc__card,
  .p3-acc__photo,
  .p3-acc-section,
  .p3-acc-head,
  .cta,
  .visit-panel,
  .visit-panel__body,
  .frame,
  .frame-photo,
  .frame-photo img,
  .frame .more,
  .frame-line path,
  .frame-line circle {
    animation: none !important;
    transition: none !important;
  }

  .frame:hover,
  .frame:focus-within {
    transform: none;
  }

  .p3-acc-section,
  .p3-acc-head,
  .p3-acc__card[data-scroll-panel],
  .cta {
    opacity: 1;
    transform: none;
    clip-path: none;
    filter: none;
    will-change: auto;
  }

  .cta-actions .btn-ice:hover,
  .cta-actions .btn-ice:focus-visible {
    transform: none;
  }

  .immerse .eyebrow,
  .immerse h1,
  .immerse .lede,
  .immerse .btn-navy,
  .immerse-slide.is-active,
  .immerse-dot__bar {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

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

  .chapter {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

}
