:root {
  --page-bg: #fff;
  --text: #111;
  --muted: #777;
  --line: #e8e8e8;
  --gap: 14px;
  --page-pad: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 var(--page-pad);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  width: auto;
  height: 54px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.nav-link {
  position: relative;
  font-size: 11px;
  letter-spacing: .12em;
  transition: opacity .2s ease;
}
.nav-link:hover { opacity: .5; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
}

/* Justified homepage gallery. JavaScript creates rows and calculates the
   height/width of each row so every row fills the available width. */
.gallery-section {
  padding: 0 var(--gap);
}

.gallery {
  width: 100%;
}

.gallery-row {
  --row-gap: var(--gap);
  display: flex;
  width: 100%;
  gap: var(--row-gap);
  margin-bottom: var(--row-gap);
  align-items: stretch;
  overflow: hidden;
}

.project-card {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.project-card figure {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.project-card:hover img { transform: scale(1.025); }

.project-meta {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.project-card:hover .project-meta,
.project-card:focus-within .project-meta {
  opacity: 1;
  transform: translateY(0);
}

.project-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.project-category { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.contact-section {
  min-height: 70vh;
  padding: 18vh var(--page-pad) 14vh;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  margin: 0 0 22px;
  font-size: 10px;
  letter-spacing: .16em;
}
.contact-email {
  width: fit-content;
  font-size: clamp(30px, 6vw, 84px);
  line-height: .95;
  letter-spacing: -.04em;
  border-bottom: 1px solid currentColor;
}
.contact-copy {
  max-width: 520px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  min-height: 70px;
  padding: 0 var(--page-pad);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  letter-spacing: .12em;
}

/* contacto redes*/


/* Project page */
.project-intro {
  padding: 100px var(--page-pad) 70px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
  gap: 50px;
  align-items: end;
}
.project-title-large {
  margin: 0;
  font-size: clamp(48px, 9vw, 140px);
  line-height: .88;
  letter-spacing: -.055em;
  font-weight: 400;
}
.project-info {
  max-width: 340px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.project-info strong { color: var(--text); font-weight: 400; }
.project-gallery {
  padding: 0 var(--page-pad) 100px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.project-gallery img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  background: transparent;
}

/* Video section */
.video-section {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.video-grid { width: 100%; }
.video-project {
  width: 100%;
  margin: 0 auto 100px;
}
.portfolio-video {
  display: block;
  width: 100%;
  max-width: 1440px;
  height: auto;
  margin: 0 auto;
}
.video-project h2 {
  margin: 16px 0 5px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.video-project p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  :root { --page-pad: 14px; --gap: 8px; }

  .site-header {
    min-height: 62px;
    align-items: flex-start;
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .logo img { height: 42px; }
  .main-nav { gap: 12px; }
  .nav-link { font-size: 9px; }

  .gallery-section { padding: 0 var(--gap); }
  .gallery-row {
    gap: 8px;
    margin-bottom: 8px;
  }

  .project-intro {
    padding-top: 70px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .project-title-large { font-size: clamp(50px, 16vw, 100px); }
  .project-gallery { padding-bottom: 60px; }

  .video-section { padding: 40px 14px 70px; }
  .video-project { margin-bottom: 70px; }
}

@media (max-width: 520px) {
  .site-header {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
  }

  .gallery-row {
    gap: 6px;
    margin-bottom: 6px;
  }

  .project-meta { opacity: 1; transform: none; }
  .contact-email { font-size: clamp(28px, 9vw, 58px); }
}

@media (hover: none) {
  .project-meta { opacity: 1; transform: none; }
}
