* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.page {
  width: 90%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 0 64px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e9e9e9;
  margin-bottom: 54px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

.brand-logo img {
  display: block;
  max-width: 190px;
  max-height: 54px;
  height: auto;
  object-fit: contain;
}

.brand-logo span {
  display: none;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 800;
}

.gallery-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #666;
}

.gallery-nav a {
  position: relative;
  padding-bottom: 5px;
  transition: color .2s ease;
}

.gallery-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #111;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s ease;
}

.gallery-nav a:hover,
.gallery-nav a.active {
  color: #111;
}

.gallery-nav a:hover::after,
.gallery-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.intro-block {
  max-width: 760px;
  margin-bottom: 38px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 800;
  margin-bottom: 22px;
}

.intro-block p {
  font-size: 18px;
  line-height: 1.58;
  color: #444;
  max-width: 690px;
}

/* AFICHES */
.gallery {
  margin-top: 36px;
}

.masonry {
  columns: 4 230px;
  column-gap: 18px;
}

.piece {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 18px;
  border: 1px solid #eee;
  background: #fafafa;
  box-shadow: 0 8px 24px rgba(0,0,0,.045);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.piece img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.98) contrast(1.02);
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}

.piece:hover img {
  transform: translateY(-2px) scale(1.018);
  filter: saturate(1.08) contrast(1.04);
  opacity: .96;
}

.piece::after {
  content: "ampliar";
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.76);
  color: #fff;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 7px 9px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.piece:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* LOGOS - estilo original que funcionaba */
.logotipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  column-gap: 55px;
  row-gap: 25px;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}

.logo-item {
  width: 300px;
  height: 300px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.logo-item:hover {
  transform: translateY(-4px);
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.footer-note {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid #e5e5e5;
  color: #777;
  font-size: 14px;
  line-height: 1.6;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.96);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1120px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  background: #fff;
}

.close {
  position: fixed;
  top: 24px;
  right: 28px;
  border: 0;
  background: #111;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 26px;
  line-height: 42px;
  text-align: center;
}

@media (max-width: 760px) {
  .page {
    width: 92%;
    padding-top: 24px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 38px;
  }

  .brand-logo img {
    max-width: 170px;
  }

  .gallery-nav {
    justify-content: flex-start;
  }

  .intro-block p {
    font-size: 16px;
  }

  .masonry {
    columns: 2 150px;
    column-gap: 12px;
  }

  .piece {
    margin-bottom: 12px;
  }

  .logotipos-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .logo-item {
    width: 100%;
    height: 240px;
    padding: 8px;
  }

  .lightbox {
    padding: 18px;
  }

  .close {
    top: 14px;
    right: 14px;
  }
}
