/* LOCALAB · proyectos.php */


header.loca-proyectos_intro {
  padding: 48px 40px 0;
  position: static;
  overflow: visible;
  background: #000;
  text-align: left;
}

.loca-proyectos_intro {
  background: #000;
  color: #fff;
}

.loca-proyectos_intro_inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.loca-proyectos_lead {
  max-width: 560px;
  margin: 0;
  font-family: var(--loca-font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  text-align: left;
  color: rgba(255, 255, 255, 0.6);
}

.loca-proyectos {
  padding: 50px 40px 40px;
  background: #000;
  color: #fff;
}

.loca-proyectos_inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.loca-proyectos_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.loca-proyectos_card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  min-height: 160px;
  aspect-ratio: 1 / 1;
}

.loca-proyectos_card[data-col="1"] {
  grid-column: span 1;
  aspect-ratio: 1 / 1;
}

.loca-proyectos_card[data-col="2"],
.loca-proyectos_card[data-col="3"],
.loca-proyectos_card[data-col="4"] {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.loca-proyectos_card[data-col="5"],
.loca-proyectos_card[data-col="6"] {
  grid-column: span 4;
  aspect-ratio: 4 / 1;
}

.loca-proyectos_card[data-row="2"] {
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}

.loca-proyectos_card[data-col="5"][data-row="2"],
.loca-proyectos_card[data-col="6"][data-row="2"] {
  aspect-ratio: 2 / 1;
}

.loca-proyectos_media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loca-proyectos_link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}

.loca-proyectos_card.has-pdf {
  cursor: zoom-in;
}

.loca-proyectos_badge--pdf {
  letter-spacing: 0.12em;
}

.loca-proyectos_pdf-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #f4f4f4;
}

.loca-proyectos_pdf-canvas.is-loading {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    #1a1a1a;
  background-size: 200% 100%, auto;
  animation: loca-pdf-preview-shine 1.2s linear infinite;
}

.loca-proyectos_pdf-canvas.is-error {
  background: #222;
}

@keyframes loca-pdf-preview-shine {
  0% {
    background-position: 100% 0, 0 0;
  }
  100% {
    background-position: -100% 0, 0 0;
  }
}

.loca-proyectos_img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loca-proyectos_placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.loca-proyectos_badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  font-family: var(--loca-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

button.loca-proyectos_badge.loca-proyectos_pdf-trigger {
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.loca-proyectos_caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.loca-proyectos_cat {
  margin: 0;
  font-family: var(--loca-font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.loca-proyectos_title {
  margin: 6px 0 0;
  font-family: var(--loca-font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
}

.loca-proyectos_cta {
  padding: 40px 40px 130px;
  background: #000;
  color: #fff;
}

.loca-proyectos_cta_inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.loca-proyectos_cta_title {
  margin: 0;
  font-family: var(--loca-font-display);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.2;
  color: #fff;
}

.loca-proyectos_cta_text {
  max-width: 440px;
  margin: 10px 0 0;
  font-family: var(--loca-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.loca-proyectos_cta_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid #fff;
  border-radius: 100px;
  background: #fff;
  font-family: var(--loca-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  transition: background 0.25s ease, color 0.25s ease;
}

.loca-proyectos_cta_btn:hover,
.loca-proyectos_cta_btn:focus-visible {
  background: transparent;
  color: #fff;
}

@media (max-width: 991px) {
  .loca-proyectos_intro,
  .loca-proyectos,
  .loca-proyectos_cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  .loca-proyectos_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loca-proyectos_card[data-col="1"],
  .loca-proyectos_card[data-col="2"],
  .loca-proyectos_card[data-col="3"],
  .loca-proyectos_card[data-col="4"],
  .loca-proyectos_card[data-col="5"],
  .loca-proyectos_card[data-col="6"] {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
  }

  .loca-proyectos_card[data-col="2"][data-row="2"] {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1;
  }

  .loca-proyectos_cta_inner {
    padding: 28px;
  }
}

@media (max-width: 575px) {
  .loca-proyectos_grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .loca-proyectos_card[data-col="1"],
  .loca-proyectos_card[data-col="2"],
  .loca-proyectos_card[data-col="3"],
  .loca-proyectos_card[data-col="4"],
  .loca-proyectos_card[data-col="5"],
  .loca-proyectos_card[data-col="6"],
  .loca-proyectos_card[data-col="2"][data-row="2"] {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
  }

  .loca-proyectos_cta_btn {
    width: 100%;
  }
}

/* Modal PDF de proyectos */
body.loca-pdf-modal-open {
  overflow: hidden;
}

.loca-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.loca-pdf-modal[hidden] {
  display: none;
}

.loca-pdf-modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.loca-pdf-modal_panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  height: min(88vh, 900px);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.loca-pdf-modal_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.loca-pdf-modal_title {
  margin: 0;
  font-family: var(--loca-font-body);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.loca-pdf-modal_close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.loca-pdf-modal_body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #1a1a1a;
}

.loca-pdf-modal_pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 12px;
}

.loca-pdf-modal_pages.is-loading::before,
.loca-pdf-modal_pages.is-error {
  display: block;
  width: 100%;
  padding: 28px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.loca-pdf-modal_pages.is-loading::before {
  content: "Cargando PDF…";
}

.loca-pdf-modal_page {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 575px) {
  .loca-pdf-modal {
    padding: 10px;
  }

  .loca-pdf-modal_panel {
    height: min(92vh, 900px);
    border-radius: 10px;
  }

  .loca-pdf-modal_pages {
    gap: 8px;
    padding: 8px;
  }
}
