/* Menú de especialidades para la galería */
.gallery-v2 {
  background: var(--cream);
}

.gallery-v2-heading {
  max-width: 860px;
  margin-bottom: 26px;
}

.gallery-v2-heading h2 {
  max-width: 760px;
  margin-bottom: 14px;
}

.gallery-v2-heading > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
}

.gallery-v2-dropdown {
  position: relative;
  display: inline-block;
  z-index: 5;
  margin-bottom: 25px;
}

.gallery-v2-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-width: 230px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--ink2);
  border-left: 4px solid var(--gold2);
  border-radius: 3px;
  background: var(--ink2);
  color: #fff;
  font: 700 .9rem Inter, Arial, sans-serif;
  cursor: pointer;
  list-style: none;
}

.gallery-v2-toggle::-webkit-details-marker {
  display: none;
}

.gallery-v2-toggle::marker {
  content: "";
}

.gallery-v2-chevron {
  width: 18px;
  height: 18px;
  color: var(--gold2);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform .18s ease;
}

.gallery-v2-dropdown[open] .gallery-v2-chevron {
  transform: rotate(180deg);
}

.gallery-v2-toggle:focus-visible,
.gallery-v2-menu button:focus-visible {
  outline: 3px solid rgba(200, 155, 60, .65);
  outline-offset: 2px;
}

.gallery-v2-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  width: min(900px, calc(100vw - 32px));
  max-height: min(72vh, 610px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #d9d4ca;
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(17, 23, 28, .2);
}

.gallery-v2-menu-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.gallery-v2-group-title {
  margin: 0 0 3px;
  padding: 5px 3px 9px;
  border-bottom: 1px solid #e4ded3;
  color: #9b7428;
  font: 800 .68rem Montserrat, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-v2-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 7px 6px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 600 .7rem/1.2 Inter, Arial, sans-serif;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.gallery-v2-menu button:hover,
.gallery-v2-menu button.is-selected {
  background: #f5f0e6;
  color: #735319;
  transform: translateX(2px);
}

.gallery-v2-service-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #ad8028;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.gallery-v2-empty {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 176px;
  padding: clamp(25px, 4vw, 40px);
  border: 1px solid rgba(200, 155, 60, .3);
  border-left: 4px solid var(--gold);
  background: var(--ink2);
  color: #fff;
}

.gallery-v2-empty[hidden],
.gallery-v2-project[hidden] {
  display: none;
}

.gallery-v2-panel {
  width: 100%;
}

.gallery-v2-project {
  overflow: hidden;
  border: 1px solid #ded9cf;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(17, 23, 28, .11);
}

.gallery-v2-project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 3vw, 34px);
  background: var(--ink2);
  color: #fff;
}

.gallery-v2-project-kicker {
  margin: 0 0 6px;
  color: var(--gold2);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.gallery-v2-project-head h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.gallery-v2-project-head div > p:last-child {
  margin: 0;
  color: #d0d4d6;
  font-size: .82rem;
}

.gallery-v2-project-tag {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(224, 182, 91, .38);
  border-radius: 3px;
  color: #f2d18a;
  font-size: .76rem;
  font-weight: 700;
}

.gallery-v2-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.3vw, 28px);
  padding: clamp(16px, 2.5vw, 28px);
}

.gallery-v2-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(16px, 2.5vw, 28px);
}

.gallery-v2-triple .gallery-v2-photo-frame {
  height: clamp(300px, 30vw, 430px);
}

.gallery-v2-montage {
  display: grid;
  justify-items: center;
  padding: clamp(16px, 2.5vw, 28px);
}

.gallery-v2-montage .gallery-v2-photo {
  width: min(100%, 720px);
}

.gallery-v2-montage .gallery-v2-photo-frame {
  height: clamp(360px, 44vw, 620px);
}

.gallery-v2-subproject {
  border-top: 1px solid #e3ded5;
}

.gallery-v2-subproject .gallery-v2-project-head {
  padding: 18px clamp(20px, 3vw, 34px);
}

.gallery-v2-subproject .gallery-v2-project-head h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
}

.gallery-v2-subproject .gallery-v2-pair {
  padding-top: 18px;
}

.gallery-v2-phases {
  padding: 0 clamp(18px, 3vw, 34px);
  background: #fff;
}

.gallery-v2-phase {
  padding: 23px 0 26px;
}

.gallery-v2-phase + .gallery-v2-phase {
  border-top: 1px solid #e3ded5;
}

.gallery-v2-phase-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gallery-v2-phase-heading .gallery-v2-photo-label {
  margin: 0;
}

.gallery-v2-phase-heading p,
.gallery-v2-phase-photos figcaption p {
  margin: 0;
  color: #69737b;
  font-size: .82rem;
  line-height: 1.45;
}

.gallery-v2-phase-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.3vw, 28px);
}

.gallery-v2-phase-photo-frame {
  display: grid;
  place-items: center;
  height: clamp(280px, 32vw, 420px);
  overflow: hidden;
  border-radius: 4px;
  background: #ece9e2;
}

.gallery-v2-phase-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-v2-phase-photos figcaption {
  padding: 10px 2px 0;
}

.gallery-v2-photo {
  min-width: 0;
  margin: 0;
}

.gallery-v2-photo-frame {
  display: grid;
  place-items: center;
  height: clamp(390px, 42vw, 550px);
  overflow: hidden;
  border-radius: 4px;
  background: #ece9e2;
}

.gallery-v2-photo-frame img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.gallery-v2-photo figcaption {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 2px 0;
}

.gallery-v2-photo-label {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 2px;
  background: var(--ink2);
  color: #fff;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.gallery-v2-photo-label-after {
  background: var(--gold);
  color: #171717;
}

.gallery-v2-photo figcaption p {
  margin: 4px 0 0;
  color: #69737b;
  font-size: .79rem;
  line-height: 1.45;
}

.gallery-v2-project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 3vw, 34px);
  border-top: 1px solid #e3ded5;
  background: #faf9f6;
}

.gallery-v2-project-footer p {
  margin: 0;
  color: var(--ink);
  font: 700 .9rem Montserrat, Arial, sans-serif;
}

.gallery-v2-project-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 3px;
  background: var(--gold);
  color: #171717;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.gallery-v2-project-cta:hover {
  transform: translateY(-1px);
  background: var(--gold2);
}

.gallery-v2-project-cta:focus-visible {
  outline: 3px solid rgba(200, 155, 60, .65);
  outline-offset: 3px;
}

.gallery-v2-empty-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 1px solid rgba(224, 182, 91, .52);
  color: var(--gold2);
  font: 800 1.05rem Montserrat, sans-serif;
  letter-spacing: .04em;
}

.gallery-v2-empty-label {
  margin: 0 0 8px;
  color: var(--gold2);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.gallery-v2-empty h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
}

.gallery-v2-empty div > p:last-child {
  margin: 0;
  color: #c9cdd0;
  font-size: .88rem;
}

.gallery-v2-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin-left: auto;
  padding: 0 17px;
  border: 1px solid #25d366;
  background: #25d366;
  color: #102219;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.gallery-v2-whatsapp[hidden] {
  display: none;
}

.gallery-v2-whatsapp:hover {
  border-color: #1fb956;
  background: #1fb956;
  color: #102219;
  transform: translateY(-1px);
}

.gallery-v2-whatsapp:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.gallery-v2-whatsapp svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

@media (max-width: 780px) {
  .gallery-v2-menu {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(390px, calc(100vw - 24px));
  }

  .gallery-v2-menu button {
    min-height: 44px;
  }

  .gallery-v2-triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-v2-triple .gallery-v2-photo-frame {
    height: clamp(320px, 55vw, 420px);
  }

  .gallery-v2-empty {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 16px 18px;
  }

  .gallery-v2-photo-frame {
    height: clamp(360px, 65vw, 500px);
  }

  .gallery-v2-phase-photo-frame {
    height: clamp(300px, 55vw, 420px);
  }

  .gallery-v2-whatsapp {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .gallery-v2-heading {
    margin-bottom: 22px;
  }

  .gallery-v2-menu {
    grid-template-columns: 1fr;
    width: min(390px, calc(100vw - 24px));
  }

  .gallery-v2-empty {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .gallery-v2-project-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .gallery-v2-project-tag {
    align-self: flex-start;
  }

  .gallery-v2-pair {
    grid-template-columns: 1fr;
  }

  .gallery-v2-triple {
    grid-template-columns: 1fr;
  }

  .gallery-v2-triple .gallery-v2-photo-frame {
    height: min(112vw, 500px);
    min-height: 330px;
  }

  .gallery-v2-montage .gallery-v2-photo-frame {
    height: min(112vw, 500px);
    min-height: 330px;
  }

  .gallery-v2-phase-photos {
    grid-template-columns: 1fr;
  }

  .gallery-v2-phase-photo-frame {
    height: min(112vw, 500px);
    min-height: 330px;
  }

  .gallery-v2-photo-frame {
    height: min(112vw, 500px);
    min-height: 330px;
  }

  .gallery-v2-project-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-v2-whatsapp {
    margin-left: 0;
    white-space: normal;
  }
}
