/* Identidad oficial: usar siempre el archivo entregado por la marca. */
.brand { gap: 0; }
.brand-logo {
  display: block;
  width: clamp(225px, 24vw, 302px);
  height: auto;
}
.logo-panel {
  min-height: 330px;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-panel img {
  width: min(100%, 604px);
  height: auto;
}
.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 2.25rem 0;
  background: #dce2e5;
  border: 1px solid #dce2e5;
}
.project-facts div {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.35rem;
  background: #fff;
}
.project-facts small {
  color: #68747b;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-facts strong { color: #20282d; font-size: .95rem; }
.project-facts-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-facts-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-facts-one { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
.project-divider {
  height: 1px;
  margin: clamp(4.5rem, 8vw, 7rem) 0;
  background: #dce2e5;
}
.portfolio-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}
.portfolio-intro h2 { margin-bottom: 1rem; }
.portfolio-intro > p:last-child { color: #667078; font-size: 1.08rem; }
.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  min-height: 540px;
  margin-bottom: 1.25rem;
  background: #fff;
  box-shadow: 0 22px 60px rgb(24 37 45 / 9%);
  overflow: hidden;
}
.featured-project > img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}
.featured-project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}
.featured-project-copy h2 { font-size: clamp(2.4rem, 4vw, 3.7rem); }
.featured-project-copy > p:not(.eyebrow) { color: #626d73; }
.featured-meta { display: grid; gap: .3rem; margin: .8rem 0 2rem; color: #445159; font-size: .88rem; font-weight: 700; }
.project-open,
.project-back {
  width: fit-content;
  border: 0;
  color: #fff;
  background: #064f80;
  padding: .95rem 1.2rem;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}
.project-open { display: inline-flex; gap: 2rem; align-items: center; }
.project-open:hover,
.project-open:focus-visible { background: #073b5b; }
.project-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 32px rgb(24 37 45 / 6%);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover,
.project-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 44px rgb(24 37 45 / 13%); }
.project-card:focus-visible { outline: 3px solid #f36c21; outline-offset: 3px; }
.project-card > img { width: 100%; height: 245px; object-fit: cover; transition: transform .4s ease; }
.project-card:hover > img { transform: scale(1.025); }
.project-card-copy { display: flex; flex: 1; flex-direction: column; padding: 1.35rem 1.4rem 1.5rem; }
.project-card-copy small { min-height: 2.2em; color: #db5c18; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-card-copy strong { margin: .55rem 0 .4rem; color: #20282d; font-size: 1.25rem; line-height: 1.18; }
.project-card-copy > span { color: #6a747a; font-size: .85rem; }
.project-card-copy b { margin-top: auto; padding-top: 1.35rem; color: #064f80; font-size: .78rem; }
.project-status { position: absolute; top: 1rem; right: 1rem; z-index: 2; padding: .45rem .65rem; color: #fff; background: #f36c21; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.project-details { scroll-margin-top: 110px; }
.project-detail { margin-top: clamp(4rem, 8vw, 7rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid #cfd7db; }
.project-detail[hidden] { display: none; }
.project-back { margin-bottom: 2.5rem; color: #064f80; background: transparent; border: 1px solid #91a7b5; }
.project-back:hover,
.project-back:focus-visible { color: #fff; background: #064f80; border-color: #064f80; }
.contact { align-items: start; }
.contact-panel { display: grid; gap: 1rem; }
.contact-form { display: grid; gap: 1rem; padding: clamp(1.35rem, 3vw, 2rem); background: #fff; color: #242a2e; }
.contact-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-form label { display: grid; gap: .4rem; font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; min-height: 48px; border: 1px solid #ccd4d8; border-radius: 0; background: #fff; padding: .75rem .8rem; color: #242a2e; font: inherit; font-size: .92rem; }
.contact-form textarea { min-height: 125px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid #f36c21; outline-offset: 1px; border-color: #f36c21; }
.contact-form button { display: inline-flex; justify-content: space-between; align-items: center; min-height: 50px; border: 0; padding: .9rem 1rem; color: #fff; background: #f36c21; font: inherit; font-weight: 850; cursor: pointer; }
.contact-form button:hover,
.contact-form button:focus-visible { background: #d95712; }
.contact-form .form-note { margin: 0; color: #68747b; font-size: .72rem; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-instagram { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid #586064; color: #fff; text-decoration: none; font-size: .82rem; }
.contact-instagram span { color: #bfc8cd; }
.contact-instagram strong { color: #ff9a61; }
.contact-instagram:hover { border-color: #f36c21; }
.thanks-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f4f6f7; }
.thanks-card { width: min(680px, 100%); padding: clamp(2rem, 7vw, 5rem); background: #fff; box-shadow: 0 24px 70px rgb(24 37 45 / 10%); }
.thanks-card img { width: min(302px, 100%); height: auto; margin-bottom: 4rem; }
.thanks-card h1 { color: #242a2e; font-size: clamp(2.6rem, 7vw, 4.8rem); }
.thanks-card > p:not(.eyebrow) { max-width: 540px; color: #667078; }
.thanks-card .button { margin-top: 1rem; }
.project-heading { margin-top: 0; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 235px;
  gap: .75rem;
}
.gallery-item {
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #e8ecee;
  cursor: zoom-in;
}
.gallery-feature { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.025); }
.gallery-item:focus-visible { outline: 3px solid #f36c21; outline-offset: 3px; }
.lightbox {
  width: min(94vw, 1280px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgb(8 15 20 / 88%); }
.lightbox img { display: block; width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  color: #fff;
  background: rgb(20 28 33 / 75%);
  font-size: 1.8rem;
  cursor: pointer;
}
@media (max-width: 600px) {
  .brand-logo { width: 210px; }
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .gallery-feature { grid-column: span 2; grid-row: span 1; }
  .featured-project { grid-template-columns: 1fr; min-height: 0; }
  .featured-project > img { min-height: 0; height: 300px; }
  .featured-project-copy { padding: 2rem 1.4rem 2.2rem; }
  .project-catalog { grid-template-columns: 1fr; }
  .project-card > img { height: 235px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-instagram { flex-direction: column; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .featured-project { grid-template-columns: 1fr; min-height: 0; }
  .featured-project > img { min-height: 0; height: 460px; }
  .project-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
