/* Ficha B — misma base visual que la versión final; copy y fotos de semana */
:root {
  --bg: #ffffff;
  --bg-soft: var(--st-bg-soft);
  --bg-dark: var(--st-blue-deep);
  --ink: var(--st-ink);
  --ink-dim: rgba(62, 62, 62, .78);
  --accent: var(--st-blue);
  --accent-dark: var(--st-blue-dark);
  --deep: var(--st-blue-deep);
  --cta: var(--st-orange);
  --cta-soft: var(--st-orange-soft);
  --line: rgba(62, 62, 62, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); font-family: var(--font-sans); }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Fondo claro: velo azul suave + watermark del logo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(44vw 44vw at 84% 10%, rgba(0, 139, 201, .08), transparent 62%),
    radial-gradient(38vw 38vw at 6% 82%, rgba(0, 139, 201, .06), transparent 65%),
    radial-gradient(26vw 26vw at 58% 46%, rgba(255, 105, 0, .04), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../../shared/assets/logo.png") center / min(54vw, 760px) no-repeat;
  opacity: .04;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.label {
  font-size: .68rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.label::before { content: ""; width: 34px; height: 1px; background: var(--accent-dark); opacity: .5; }

.section-title {
  font-weight: 100;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-top: 1.2rem;
  color: var(--deep);
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--cta);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-dark);
  display: grid;
  place-items: center;
}
.loader-logo { height: 32px; filter: brightness(0) invert(1); }

/* ---------- Nav: transparente sobre el hero; barra azul al bajar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem clamp(1.4rem, 5vw, 4rem);
  color: #fff;
  background: transparent;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), background .45s, box-shadow .45s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid {
  background: var(--st-blue);
  box-shadow: 0 2px 14px rgba(11, 34, 51, .18);
}
.nav.is-solid .nav-links a { text-shadow: none; }
.nav-logo { position: relative; z-index: 1; display: flex; align-items: center; }
.nav-logo img {
  height: clamp(36px, 4.2vw, 52px);
  filter: brightness(0) invert(1);
  transition: filter .45s;
}
.nav-links { position: relative; z-index: 1; display: flex; align-items: center; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(11, 34, 51, .85), 0 2px 14px rgba(11, 34, 51, .55);
  transition: color .45s, border-color .45s, background .35s;
}
.nav-links a:not(.nav-cta) {
  padding: 0 .85rem;
  border-right: 1px solid rgba(255,255,255,.45);
}
.nav-links a:not(.nav-cta):first-child { padding-left: 0; }
.nav-cta {
  margin-left: .95rem;
  border: 1.5px solid #fff;
  padding: .52rem 1.1rem;
  border-radius: 99px;
  display: inline-block;
  text-shadow: none;
}
.nav-cta:hover { background: var(--cta); border-color: var(--cta); color: #fff; }

/* ---------- Hero: foto a pantalla completa (referencia) ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-reel {
  position: absolute;
  inset: -6%;
  will-change: transform;
  pointer-events: none;
}
.hero-reel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.4s ease, scale .9s cubic-bezier(.22, 1, .36, 1);
}
.hero-reel img.is-active { opacity: 1; z-index: 1; }
.hero-reel.is-live img.is-active { animation: kenBurns 7.4s ease-out forwards; }
.hero-reel.is-live img.is-active.is-alt { animation-name: kenBurnsAlt; }
@keyframes kenBurns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes kenBurnsAlt {
  from { transform: scale(1.07) translate3d(-0.9%, 0.6%, 0); }
  to   { transform: scale(1.02) translate3d(0.8%, -0.4%, 0); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 34, 51, .78) 0%, rgba(11, 34, 51, .42) 48%, rgba(11, 34, 51, .26) 100%),
    linear-gradient(180deg, rgba(11, 34, 51, .58) 0%, rgba(11, 34, 51, .18) 38%, rgba(11, 34, 51, .78) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.4rem, 5vw, 4rem) clamp(3.5rem, 10vh, 6rem);
}
.hero-title {
  font-weight: 100;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(11, 34, 51, .7), 0 8px 32px rgba(11, 34, 51, .5);
}
.hero-title .mask { display: block; overflow: hidden; padding-bottom: .1em; }
.hero-title .txt { display: inline-block; will-change: transform; }
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--cta-soft);
  text-shadow: 0 2px 16px rgba(11, 34, 51, .85);
}
.hero-title b {
  font-style: italic;
  font-weight: 700;
  color: var(--cta);
}
.hero-kicker {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 12px rgba(11, 34, 51, .7);
  margin-bottom: 1.05rem;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  flex-wrap: wrap;
}
.mask-p { display: block; overflow: hidden; max-width: 540px; }
.mask-p .txt { display: inline-block; }
.hero-sub { color: rgba(255, 255, 255, .94); line-height: 1.8; font-size: .95rem; text-shadow: 0 1px 12px rgba(11, 34, 51, .7); }
.hero-now-line {
  margin-top: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: .7rem;
  flex-wrap: wrap;
}
.hero-now-line strong {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(11, 34, 51, .7);
}
.hero-now-line em {
  font-style: normal;
  font-size: .78rem;
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 10px rgba(11, 34, 51, .7);
}
.hero-dots { display: flex; gap: .35rem; margin-top: .85rem; }
.hero-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(255,255,255,.35); cursor: pointer;
  transition: width .35s, background .35s;
}
.hero-dots button.is-active { width: 22px; background: var(--cta); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border-radius: 99px;
  transition: background .35s, box-shadow .35s;
}
.btn-pill svg { width: 15px; height: 15px; transition: transform .35s; }
.btn-pill:hover { background: var(--cta-soft); box-shadow: 0 14px 34px -12px rgba(255, 105, 0, .55); }
.btn-pill:hover svg { transform: translateX(4px); }

/* ---------- Franja azul de comunas ---------- */
.marquee {
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  padding: 1.05rem 0;
}
.marquee-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  will-change: transform;
  align-items: baseline;
}
.marquee-track span {
  font-weight: 100;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  white-space: nowrap;
}
.marquee-track i { font-style: normal; opacity: .55; }

/* ---------- Proyectos: acordeón fluido ---------- */
.proyectos {
  padding: clamp(5rem, 13vh, 8rem) 0 clamp(4rem, 10vh, 6rem);
  color: var(--ink);
}
.proyectos .section-title { color: var(--deep); }
.proyectos .label { color: var(--cta); }
.proyectos .label::before { background: var(--cta); }
.proyectos .section-sub { color: var(--ink-dim); }
.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  padding-inline: clamp(1.4rem, 5vw, 4rem);
}
.section-sub { margin-top: 1.4rem; color: var(--ink-dim); line-height: 1.8; }

.accord {
  display: flex;
  gap: clamp(.55rem, 1vw, .85rem);
  height: min(78vh, 680px);
  padding-inline: clamp(1.4rem, 5vw, 4rem);
}
.acard {
  position: relative;
  flex: 1 1 0%;
  width: 0;
  min-width: 110px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #12283d;
  isolation: isolate;
  cursor: pointer;
  transition:
    flex .45s cubic-bezier(.22, 1, .36, 1),
    width .45s cubic-bezier(.22, 1, .36, 1),
    min-width .45s cubic-bezier(.22, 1, .36, 1),
    box-shadow .4s;
}
/* Tiras laterales anchas para poder elegirlas; la activa toma el resto */
.accord:has(.acard:hover) .acard,
.accord:has(.acard:focus-visible) .acard,
.accord.has-open .acard {
  flex: 0 0 clamp(110px, 9vw, 132px);
  width: clamp(110px, 9vw, 132px);
  min-width: clamp(110px, 9vw, 132px);
}
.accord:has(.acard:hover) .acard:hover,
.accord:has(.acard:focus-visible) .acard:focus-visible,
.accord.has-open .acard.is-open {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.acard:hover,
.acard:focus-visible,
.acard.is-open {
  box-shadow: 0 42px 84px -32px rgba(11, 34, 51, .45);
  z-index: 2;
}

.acard > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: none;
  filter: none;
  transition: scale .9s cubic-bezier(.22, 1, .36, 1);
}
.acard:hover > img,
.acard:focus-visible > img {
  scale: 1.06;
}
.acard[data-id="beat"] > img { object-position: center 32%; }
.acard[data-id="novus-g"] > img { object-position: center 28%; }
.acard[data-id="novus"] > img { object-position: center 30%; }
.acard[data-id="eleuterio"] > img { object-position: 42% 38%; }
.acard[data-id="ho"] > img { object-position: center 52%; }
.acard[data-id="espuela"] > img { object-position: center 48%; }
.acard[data-id="vicuna"] > img { object-position: center 22%; }
.acard-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 34, 51, .42) 0%, rgba(11, 34, 51, .2) 42%, rgba(11, 34, 51, .78) 100%);
  transition: opacity .7s;
}
.acard:hover .acard-shade,
.acard:focus-visible .acard-shade,
.acard.is-open .acard-shade { opacity: 1; }

.acard-idx {
  position: absolute;
  top: 1rem;
  left: 1.05rem;
  z-index: 3;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(11, 34, 51, .75);
}
.acard-badge {
  position: absolute;
  top: .95rem;
  right: .95rem;
  z-index: 3;
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .34rem .62rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(11, 34, 51, .72);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .45s .3s, transform .45s .3s;
}
.acard-badge.hot { background: var(--cta); border-color: var(--cta); }
.acard:hover .acard-badge,
.acard:focus-visible .acard-badge,
.acard.is-open .acard-badge { opacity: 1; transform: none; }

/* Nombre vertical cuando la franja está contraída */
.acard-label {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  z-index: 3;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 2px 14px rgba(11, 34, 51, .75);
  transition: opacity .4s;
}
.acard:hover .acard-label,
.acard:focus-visible .acard-label,
.acard.is-open .acard-label { opacity: 0; }

/* Panel de info al expandir */
.acard-info {
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .85rem;
  z-index: 4;
  max-width: 34rem;
  border-radius: 18px;
  background: rgba(11, 34, 51, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  padding: 1.05rem 1.2rem 1.1rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .45s .28s, transform .55s cubic-bezier(.22, 1, .36, 1) .28s;
}
.acard:hover .acard-info,
.acard:focus-visible .acard-info,
.acard.is-open .acard-info { opacity: 1; transform: none; }
.acard-place {
  display: block;
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cta-soft);
  margin-bottom: .3rem;
}
.acard-name {
  font-weight: 700;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.1;
}
.acard-meta {
  margin-top: .35rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .92);
}
.acard-blurb {
  margin-top: .55rem;
  font-size: .88rem;
  line-height: 1.55;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.acard-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .7rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cta-soft);
}
.acard-cta svg { width: 14px; height: 14px; stroke: var(--cta-soft); }

.acard-logo-strip {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 3;
  transform: translateX(-50%);
  width: auto;
  max-width: calc(100% - 1.3rem);
  background: #fff;
  border: 1.5px solid #fff;
  border-radius: 10px;
  padding: .2rem .24rem;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .35s, transform .45s;
}
.acard-logo-strip img {
  position: static;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 3.55rem;
  object-fit: contain;
  display: block;
  filter: none;
}
.acard:hover .acard-logo-strip,
.acard:focus-visible .acard-logo-strip,
.acard.is-open .acard-logo-strip {
  opacity: 0;
  pointer-events: none;
}
.acard-logo {
  display: block;
  width: auto;
  max-width: min(168px, 58%);
  max-height: 72px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1.5px solid #fff;
  border-radius: 10px;
  padding: .22rem .3rem;
  margin-bottom: .7rem;
  box-shadow: none;
  filter: none;
}
.acard-info:has(.acard-logo) .acard-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Otra vida: no al lado de Novus ---------- */
.otra-vida {
  padding: 0 0 clamp(4rem, 10vh, 6rem);
}
.otra-vida .section-title { color: var(--deep); }
.otra-vida .label { color: var(--ink-dim); }
.otra-vida .label::before { background: var(--ink-dim); }
.vida-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.7rem, 1.2vw, 1rem);
  height: min(56vh, 520px);
  padding-inline: clamp(1.4rem, 5vw, 4rem);
}
.vida-grid .acard {
  flex: none;
  width: auto;
  min-width: 0;
  height: 100%;
}
.vida-grid .acard-label { display: none; }
.vida-grid .acard-logo-strip { display: none; }
.vida-grid .acard-info,
.vida-grid .acard-badge {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- Estándar ---------- */
.estandar { padding: clamp(5rem, 13vh, 8rem) clamp(1.4rem, 5vw, 4rem); border-block: 1px solid var(--line); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(1.4rem, 3vw, 2.5rem);
}
.feature {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: grid;
  gap: .8rem;
  align-content: start;
}
.feature-num {
  position: absolute;
  top: 1.4rem; right: 0;
  font-style: italic;
  font-weight: 300;
  color: var(--accent-dark);
  font-size: .9rem;
}
.feature-icon { width: 30px; height: 30px; color: var(--accent); }
.feature h3 { font-weight: 400; font-size: 1.25rem; line-height: 1.25; max-width: 240px; color: var(--deep); }
.feature p { font-size: .86rem; color: var(--ink-dim); line-height: 1.75; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 80vh; scroll-margin-top: 72px; }
.contacto-media { position: relative; overflow: hidden; min-height: 340px; }
.contacto-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  image-rendering: auto;
  transform: none;
}
.contacto-media-tag {
  position: absolute;
  left: 1.4rem; bottom: 1.4rem;
  background: rgba(11, 34, 51, .78);
  color: #fff;
  backdrop-filter: blur(6px);
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: .5rem 1rem;
  border-radius: 99px;
}
.contacto-body { padding: clamp(3rem, 8vh, 5.5rem) clamp(1.4rem, 5vw, 4.5rem); }
.contacto-lead { max-width: 42ch; margin-top: 1rem; }

/* Ficha de proyecto: solo formulario, sin columna de foto */
.contacto--form {
  grid-template-columns: 1fr;
  min-height: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.contacto--form .contacto-body {
  max-width: 40rem;
  width: 100%;
  margin-inline: auto;
}

.form { margin-top: 2.4rem; display: grid; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .64rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-dim); }
.field input, .field select {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 300;
  padding: .95rem 1.1rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field select option { background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 139, 201, .18); background: #fff; }
.field input::placeholder { color: rgba(62, 62, 62, .72); }

.btn-dark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: var(--cta);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 1.05rem 2rem;
  border-radius: 99px;
  cursor: pointer;
  transition: background .35s, box-shadow .35s;
}
.btn-dark svg { width: 15px; height: 15px; transition: transform .35s; }
.btn-dark:hover { background: var(--cta-soft); box-shadow: 0 14px 30px -12px rgba(255, 105, 0, .5); }
.btn-dark:hover svg { transform: translateX(4px); }
.form-ok { display: none; color: var(--accent-dark); font-size: .88rem; font-weight: 700; }
.form-ok.show { display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 2.6rem clamp(1.4rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.footer-logo { height: 36px; }
.footer-mid { font-size: .85rem; display: grid; gap: .3rem; }
.footer-dim { color: var(--ink-dim); font-size: .76rem; }
.back-hub { color: var(--accent-dark); text-decoration: none; font-size: .78rem; letter-spacing: .08em; }
.back-hub:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contacto { grid-template-columns: 1fr; }
  .contacto-media { min-height: 300px; }
  .vida-grid { grid-template-columns: 1fr; height: auto; }
  .vida-grid .acard { height: 420px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  /* Acordeón en vertical: bandas que se expanden al tocar */
  .accord { flex-direction: column; height: auto; gap: .7rem; }
  .accord:has(.acard:hover) .acard,
  .accord:has(.acard:focus-visible) .acard,
  .accord.has-open .acard {
    flex: none;
    width: auto;
    min-width: 0;
    height: 76px;
  }
  .acard {
    flex: none;
    width: auto;
    min-width: 0;
    height: 76px;
    transition: height .7s cubic-bezier(.22, 1, .36, 1), box-shadow .5s;
  }
  .accord.has-open .acard.is-open,
  .acard.is-open { height: 420px; }
  .acard-label {
    left: 1.15rem;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: horizontal-tb;
    font-size: .92rem;
  }
  .acard-logo-strip {
    left: 1rem;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: min(48%, 200px);
    height: auto;
    padding: .16rem .2rem;
  }
  .acard-logo-strip img {
    width: auto;
    max-width: 100%;
    max-height: 38px;
    height: auto;
  }
  .acard-idx { top: auto; bottom: .9rem; left: 1.15rem; }
}
/* Zoom suave al hover: CSS scale, sin pan/tilt que siga el puntero */
.hero:hover .hero-reel.is-live img.is-active,
.hero:hover .hero-reel.is-live img.is-active.is-alt {
  animation-play-state: paused;
}
.hero:hover .hero-reel img.is-active { scale: 1.06; }
.phero > img {
  transition: scale .9s cubic-bezier(.22, 1, .36, 1);
}
.phero:hover > img { scale: 1.06; }
.vcard-tilt { transform: none; }
.vcard img {
  transition: scale .9s cubic-bezier(.22, 1, .36, 1);
}
.vcard:hover img { scale: 1.06; }

@media (prefers-reduced-motion: reduce) {
  .hero-reel.is-live img.is-active,
  .hero-reel.is-live img.is-active.is-alt { animation: none; transform: scale(1.02); }
  .acard, .acard img, .acard-info, .acard-badge, .acard-label, .acard-logo-strip { transition: none; }
  .hero-reel img,
  .acard > img,
  .phero > img,
  .vcard img {
    scale: 1;
    transition: none;
  }
  .hero:hover .hero-reel img.is-active,
  .acard:hover > img,
  .acard:focus-visible > img,
  .phero:hover > img,
  .vcard:hover img {
    scale: 1;
  }
}

/* ---------- Frase + límite: card del landing y ficha de proyecto ---------- */
.acard-frase {
  margin-top: .5rem;
  font-size: .98rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(11, 34, 51, .45);
}
.acard-limit {
  margin-top: .55rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
  font-size: .78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
}
.acard-info { max-width: 36rem; }

body.theme-p3::before,
body.theme-p3::after { content: none; }

.theme-p3 {
  --p-dim: rgba(62, 62, 62, .78);
}
.theme-p3 .phero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 34, 51, .74) 0%, rgba(11, 34, 51, .34) 55%, rgba(11, 34, 51, .22) 100%),
    linear-gradient(180deg, rgba(11, 34, 51, .5) 0%, rgba(11, 34, 51, .12) 40%, rgba(11, 34, 51, .8) 100%);
}
.theme-p3 .phero.is-edificio .phero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 34, 51, .7) 0%, rgba(11, 34, 51, .3) 48%, rgba(11, 34, 51, .18) 72%),
    linear-gradient(180deg, rgba(11, 34, 51, .46) 0%, rgba(11, 34, 51, .1) 42%, rgba(11, 34, 51, .82) 100%);
}
.theme-p3 .phero h1 { text-shadow: 0 8px 32px rgba(11, 34, 51, .72); }
.theme-p3 .phero-meta {
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 14px rgba(11, 34, 51, .65);
}
.theme-p3 .ptitle { color: var(--deep); }
.theme-p3 .pinfo-grid span { color: var(--ink-dim); }
.theme-p3 .plabel { color: var(--accent); }
.theme-p3 .plabel::before { background: var(--accent); }
.theme-p3 .ptitle em,
.theme-p3 .pcta em { color: var(--cta); }
.theme-p3 .pplan-more {
  color: var(--cta);
  border-color: rgba(255, 105, 0, .45);
}
.theme-p3 .pplan-total { color: var(--cta); }
.theme-p3 .ppl-dot.is-on .ppl-dot-big { color: var(--cta); }
.theme-p3 .ppl-arrow:hover { color: var(--cta); border-color: var(--cta); }
.theme-p3 .pbtn-main:hover { background: var(--cta-soft); }
.theme-p3 .pamen-card figcaption,
.theme-p3 .pcerca-card figcaption,
.theme-p3 .vcard-copy {
  background: linear-gradient(180deg, transparent, rgba(11, 34, 51, .88));
  text-shadow: 0 1px 8px rgba(11, 34, 51, .45);
}
.theme-p3 .vcard.is-plan .vcard-tag { color: var(--accent-dark); }
.theme-p3 .vcard.is-plan .vcard-copy em { color: rgba(62, 62, 62, .78); }
.theme-p3 .pfoot { color: rgba(255, 255, 255, .88); }

.pdesc-text > #pDesc {
  color: var(--p-dim, var(--ink-dim));
  line-height: 1.9;
  max-width: 560px;
}
.pvoz-limit {
  margin-top: 1.7rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--p-line, var(--line));
  max-width: 560px;
}
.pvoz-limit .plabel { margin-bottom: .55rem; color: var(--cta); }
.pvoz-limit .plabel::before { background: var(--cta); }
.pvoz-limit p:last-child {
  color: var(--p-ink, var(--ink));
  line-height: 1.7;
  font-size: 1.05rem;
}

.pdia,
.pquien {
  padding: clamp(3.2rem, 8vh, 5.5rem) clamp(1.4rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  max-width: 1280px;
  margin-inline: auto;
}
.pdia[hidden],
.pquien[hidden] { display: none; }
.pdia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2vw, 1.8rem);
  margin-top: .4rem;
}
.pdia-item b {
  display: block;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--cta);
  margin-bottom: .7rem;
}
.pdia-item p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 36ch;
}
.pquien-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: .2rem;
}
.pquien-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.pquien-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--ink-dim);
}
.pquien-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pquien-list-no li::before { background: var(--cta); }

@media (max-width: 900px) {
  .accord.has-open .acard.is-open,
  .acard.is-open { height: 500px; }
  .vida-grid .acard { height: 500px; }
  .pdia-grid,
  .pquien-grid { grid-template-columns: 1fr; }
}
