/* Vitrina de proyectos. Usa variables de /landing/styles.css.
   El amarillo solo como fondo, borde o barra, nunca como texto sobre blanco.
   Titulos de seccion como en la portada (.sec-head__title): mayusculas y la
   barra amarilla DEBAJO, nunca al lado del texto. */
.opa2 { background: var(--c-bg, #f0f4f8); }
.opa2 main { display: block; }

.v-h2, .ban__h1, .v-cta__t {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
  color: var(--c-ink);
}
.v-h2 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem); }
.v-h2::after, .ban__h1::after, .v-cta__t::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: var(--sp-3);
  background: var(--c-accent);
}

/* ---------- 1. Banner: tres columnas de foto ----------
   El menu de la pagina (header--hero) queda transparente encima. Sin lineas ni
   recuadros: el texto va sobre la foto con un velo oscuro abajo. */
.ban { position: relative; background: var(--c-darkest); }
/* Ocupa siempre todo el alto de la pantalla, sin tope. */
.ban__cols { display: flex; height: 100vh; height: 100svh; min-height: 560px; }
.ban__p {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; text-decoration: none;
  transition: flex-grow .6s var(--ease-suave, cubic-bezier(.16,1,.3,1));
}
.ban__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease-suave, cubic-bezier(.16,1,.3,1)); }
.ban__p::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: -1;
  background: linear-gradient(to top, rgba(10,4,60,.92), rgba(10,4,60,.55) 55%, rgba(10,4,60,0));
}
.ban__p:hover, .ban__p:focus-visible { flex-grow: 1.4; }
.ban__p:hover .ban__img, .ban__p:focus-visible .ban__img { transform: scale(1.05); }
.ban__p:focus-visible { outline: 3px solid var(--c-accent); outline-offset: -6px; }
.ban__txt { display: flex; flex-direction: column; gap: 14px; padding: 0 36px 40px; }
.ban__kick { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); }
.ban__tit { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.5rem, 1rem + 1.2vw, 1.875rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.ban__tit::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 10px; background: var(--c-accent); }
.ban__sub { max-width: 340px; font-size: .9375rem; line-height: 1.5; color: #e4e2fa; }
.ban__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 6px; }
.ban__logos { display: flex; align-items: center; gap: 12px; }
.ban__logos img { height: 36px; width: auto; max-width: 64px; object-fit: contain; }
.ban__go {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--c-accent); border-radius: 999px; font-size: .875rem; font-weight: 700; white-space: nowrap;
  transition: background .25s, color .25s;
}
.ban__p:hover .ban__go, .ban__p:focus-visible .ban__go { background: var(--c-accent); color: var(--c-navy); }

/* Titulo de la pagina, bajo el menu. El velo de arriba lo hace legible sobre
   cualquiera de las tres fotos. */
.ban__intro { position: absolute; top: 0; left: 0; right: 0; padding-top: 112px; pointer-events: none; }
.ban__intro::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 300px; z-index: 0; background: linear-gradient(to bottom, rgba(10,4,60,.75), rgba(10,4,60,0)); }
.ban__intro .container { position: relative; }
/* El menu trae su propio velo azul (160 px, z-index 100) que aqui caia encima
   del titulo y lo tenia de lila. En esta pagina ya lo da .ban__intro::before. */
.header--hero:not(.header--scrolled)::before { opacity: 0; }
.ban__h1 { color: #fff; font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem); }
.ban__lead { margin: var(--sp-3) 0 0; font-size: 1.0625rem; color: #e4e2fa; }

/* ---------- 2. Proyecto destacado ---------- */
.v-feat { background: #fff; padding: 88px 0; }
.v-feat__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-top: 40px; }
.v-feat__media { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--c-darkest); }
.v-feat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-feat__body { display: flex; flex-direction: column; gap: 20px; }
.v-feat__marca { display: flex; align-items: center; gap: 16px; }
.v-feat__logo { flex: none; width: 72px; height: 72px; border-radius: 16px; background: var(--c-darkest); display: grid; place-items: center; }
.v-feat__logo img { height: 48px; width: auto; object-fit: contain; }
.v-feat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-feat__nombre { margin: 0; font-family: var(--font-title); font-weight: 900; font-size: clamp(2rem, 1.4rem + 1.8vw, 2.875rem); line-height: 1.05; color: var(--c-ink); }
.v-feat__nombre a { color: inherit; text-decoration: none; }
.v-feat__nombre a:hover { text-decoration: underline; text-underline-offset: 4px; }
.v-feat__txt { margin: 0; font-size: 1.0625rem; font-weight: 300; line-height: 1.65; color: var(--c-muted); }
.v-feat__datos { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v-feat__datos div { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--c-bg); }
.v-feat__datos dt { font-size: .8125rem; color: var(--c-muted); }
.v-feat__datos dd { margin: 0; font-weight: 600; color: var(--c-ink); }
.v-feat__datos .v-feat__num { font-family: var(--font-title); font-weight: 800; font-size: 1.25rem; }
.v-feat__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.v-btn-amarillo { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--c-accent); color: var(--c-navy); font-weight: 700; text-decoration: none; white-space: nowrap; }
.v-btn-amarillo:hover { background: #FFC433; color: var(--c-navy); }
.v-btn-borde { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--c-darkest); color: var(--c-darkest); background: transparent; font-weight: 600; text-decoration: none; }
.v-btn-borde:hover { background: var(--c-darkest); color: #fff; }

/* ---------- 3. Catalogo ---------- */
.v-list { padding: 80px 0 56px; }
.v-bar {
  position: relative; margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 14px; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(19,0,140,.06);
}
.v-q { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1.5px solid #cfd6e4; border-radius: 12px; color: var(--c-muted); }
.v-q:focus-within { border-color: var(--c-primary); }
.v-q input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: .9375rem; color: var(--c-ink); background: transparent; }
.v-zchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--c-bg); border-radius: 12px; }
.v-zc { font: inherit; font-size: .875rem; font-weight: 600; min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--c-ink); cursor: pointer; transition: background var(--tr), color var(--tr); }
.v-zc:hover { background: #fff; }
.v-zc.is-on { background: var(--c-darkest); color: #fff; }
.v-zc__n { opacity: .65; }
.v-nota { margin: 24px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--c-muted); }
.v-count { margin: 0 0 0 auto; font-size: .875rem; color: var(--c-muted); }
.v-filtro { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: .875rem; color: var(--c-muted); }
.v-filtro[hidden] { display: none; }
.v-filtro__x { font: inherit; font-weight: 600; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--c-darkest); border-radius: 999px; background: #fff; color: var(--c-darkest); cursor: pointer; }
.v-filtro__x:hover { background: var(--c-darkest); color: #fff; }

.v-grupo { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.v-grupo[hidden] { display: none; }
.v-grupo__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.v-grupo__head h3 { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; color: var(--c-ink); }
.v-grupo__head h3 span { font-family: var(--font-body, Inter, sans-serif); font-weight: 500; font-size: .9375rem; text-transform: none; letter-spacing: 0; color: var(--c-muted); }
.v-grupo__n { margin: 0; font-size: .875rem; color: var(--c-muted); }

/* Tarjeta de "Disponibles ahora": la foto ocupa toda la tarjeta y el texto va
   encima, sobre un velo azul abajo. La cinta diagonal sale solo en lo
   excepcional (ultimos lotes, destacado): "en venta" es lo normal en esta
   seccion y no lleva nada. El destacado lleva ademas marco dorado, estrella y
   boton amarillo. "Imagen referencial" va una sola vez en .v-nota. */
.v-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.vc { position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 20px; overflow: hidden; background: var(--c-darkest); isolation: isolate; box-shadow: 0 12px 32px rgba(19,0,140,.16); transition: transform .35s var(--ease-suave, ease), box-shadow .35s var(--ease-suave, ease); }
.vc[hidden] { display: none; }
.vc:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(19,0,140,.22); }
.vc__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-suave, ease); }
.vc:hover .vc__img { transform: scale(1.04); }
.vc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,6,64,.96) 0%, rgba(11,6,64,.82) 50%, rgba(11,6,64,0) 82%); }
.vc__logo { position: absolute; top: 28px; left: 50%; z-index: -2; width: 44%; height: 120px; transform: translateX(-50%); object-fit: contain; opacity: .9; }

/* Centrada en su franja: right/top ponen la cinta, translate(50%,-50%) lleva su
   centro a 50 px de los dos bordes (sobre la diagonal de la esquina) y luego
   gira. El text-indent compensa el letter-spacing tras la ultima letra. */
.vc__cinta { position: absolute; top: 50px; right: 50px; z-index: 1; width: 240px; padding: 8px 0; transform: translate(50%, -50%) rotate(45deg); text-align: center; text-indent: .14em; font-size: .6875rem; font-weight: 800; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(11,6,64,.3); }
.vc__cinta--ultimos { background: #dc2626; color: #fff; }
.vc__cinta--dest { background: var(--c-accent); color: var(--c-navy); }
.vc--dest { box-shadow: 0 0 0 3px var(--c-accent), 0 16px 40px rgba(255,180,0,.28); }
.vc--dest:hover { box-shadow: 0 0 0 3px var(--c-accent), 0 24px 48px rgba(255,180,0,.36); }

/* El padding de arriba es la franja de foto que queda libre sobre el texto:
   las fotos son horizontales y una tarjeta de proporcion fija mostraba cielo. */
.vc__body { display: flex; flex-direction: column; gap: 16px; padding: 200px 22px 22px; min-width: 0; color: #fff; }
.vc__cej { margin: 0 0 -6px; display: flex; align-items: center; gap: 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.vc__name, .vc__desc, .vc__datos dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc__name { margin: 0 0 -12px; font-family: var(--font-title); font-weight: 800; font-size: 1.625rem; line-height: 1.15; color: #fff; }
.vc__name a { color: inherit; text-decoration: none; }
.vc__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vc__name a:focus-visible, .vc__ver:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
.vc__desc { margin: 0; font-size: .8125rem; color: #e4e2fa; }
.vc__datos { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.vc__datos div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vc__datos div:first-child { padding-right: 12px; border-right: 1px solid rgba(255,255,255,.22); }
.vc__datos div:last-child { padding-left: 14px; }
.vc__datos dt { font-size: .75rem; color: #e4e2fa; }
.vc__datos dd { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: 1.1875rem; color: #fff; }
.vc__ver { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; background: #fff; color: var(--c-navy); font-weight: 700; text-decoration: none; transition: background var(--tr), color var(--tr); }
.vc__ver:hover { background: var(--c-accent); color: var(--c-navy); }
.vc--dest .vc__ver { background: var(--c-accent); }
.vc--dest .vc__ver:hover { background: #fff; }

.v-empty { margin-top: 32px; padding: var(--sp-6); background: #fff; border-radius: var(--radius); }

/* Etiquetas y aviso de imagen del bloque "Proyecto destacado" (.v-feat). */
.vc__note { position: absolute; right: 12px; bottom: 12px; font-size: .6875rem; color: #fff; background: rgba(19,0,140,.8); padding: 4px 9px; border-radius: 999px; }
.vc__tag { background: var(--c-accent); color: var(--c-navy); font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
.vc__tag--suave { background: var(--c-primary-soft); }

/* ---------- 4. Nuestra trayectoria ---------- */
.v-tray { padding: 0 0 56px; }
.v-tray__band { padding: 56px 48px 64px; border-radius: 24px; background: #13008C; color: #fff; }
.v-tray__t { margin: 0; font-family: var(--font-title); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; color: #fff; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem); }
.v-tray__t::after { content: ""; display: block; width: 60px; height: 4px; margin-top: var(--sp-3); background: var(--c-accent); }
.v-tray__sub { margin: 16px 0 0; font-size: 1.0625rem; line-height: 1.5; color: #d6dcff; }
.v-tray__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; margin-top: 40px; }
.vt { display: flex; flex-direction: column; border-radius: 14px; background: #fff; transition: transform .35s var(--ease-suave, ease), box-shadow .35s var(--ease-suave, ease); }
.vt:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,.25); }
.vt__media { position: relative; height: 130px; border-radius: 14px 14px 0 0; background: radial-gradient(120% 90% at 50% 20%, #3D1FE0 0%, #2300BF 55%, #1C00A6 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); display: grid; place-items: center; }
.vt__logo { position: absolute; top: 14px; left: 20%; width: 60%; height: calc(100% - 46px); object-fit: contain; filter: drop-shadow(0 2px 6px rgba(10,0,70,.35)); }
.vt__ph { position: absolute; left: 10px; bottom: 8px; font-size: .625rem; color: #fff; background: rgba(13,0,90,.45); padding: 4px 9px; border-radius: 999px; }
.vt__sello { position: absolute; right: 12px; bottom: -22px; z-index: 1; width: 64px; height: 64px; box-sizing: border-box; border: 3px solid #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 900; line-height: 1; }
.vt__sello span { font-size: 9px; font-weight: 900; letter-spacing: .02em; }
.vt__sello--ent { background: #13008C; color: #fff; gap: 3px; }
.vt__sello--ven { background: #FFB400; color: #13008C; gap: 2px; }
.vt__sello--ven strong { font-family: var(--font-title); font-size: 1.1875rem; font-weight: 900; }
.vt__body { padding: 32px 16px 18px; min-width: 0; }
.vt__name { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: 1.125rem; line-height: 1.2; color: var(--c-ink); }
.vt__name a { color: inherit; text-decoration: none; }
.vt__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vt__name a:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
.vt__zona { margin: 4px 0 0; font-size: .875rem; color: var(--c-muted); }

.v-cierre { padding: 0 0 96px; }

.v-cta { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; border-radius: 20px; background: var(--c-darkest); color: #fff; }
.v-cta > div { max-width: 620px; }
.v-cta__t { color: #fff; font-size: 1.625rem; }
.v-cta p { margin: var(--sp-3) 0 0; line-height: 1.6; color: #d6d3f5; }

@media (max-width: 980px) {
  .ban__cols { flex-direction: column; height: auto; max-height: none; padding-top: 220px; }
  .ban__p { flex: none; min-height: 360px; }
  .ban__p:hover, .ban__p:focus-visible { flex-grow: 0; }
  .v-feat__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-tray__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ban__txt { padding: 0 20px 28px; }
  .ban__intro { padding-top: 96px; }
  .v-feat { padding: 64px 0; }
  .v-list { padding: 64px 0 40px; }
  .v-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .v-count { margin-left: 0; }
  .v-tray__band { padding: 40px 20px 44px; border-radius: 20px; }
  .v-tray__grid { gap: 28px 12px; }
  .vt__media { height: 120px; }
  .vt__body { padding: 32px 12px 16px; }
  .vt__name { font-size: 1rem; }
  .v-cierre { padding-bottom: 64px; }
  .v-cta { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ban__p, .ban__img, .ban__go, .vc, .vc__img, .vt, .v-zc { transition: none; }
  .vc:hover, .vt:hover, .vc:hover .vc__img { transform: none; }
}
