/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}
.logo {
  font-family: var(--font-body);
  font-size: var(--fs-3);
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-tight);
}
.logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: var(--space-6);
}
.nav-links a {
  font-size: var(--fs-2);
  font-weight: var(--fw-light);
  color: var(--mid);
  letter-spacing: var(--ls-wide);
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--dark); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  margin-top: var(--nav-h);
  overflow: hidden;
  background: var(--hero-bg);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}
.hero-text {
  position: absolute;
  left: var(--gutter);
  bottom: var(--space-8);
  color: var(--bg);
  z-index: 2;
  max-width: 720px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--fs-9);
  font-weight: var(--fw-light);
  font-optical-sizing: auto;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}
.hero-location {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-1);
  font-weight: var(--fw-light);
  color: var(--accent);   /* sobre fondo oscuro, accent SÍ contrasta bien */
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

/* =========================================================
   SECCIONES (contenido con max-width)
   ========================================================= */
section { width: 100%; }

.work-section {
  width: 100%;
  padding: var(--space-9) var(--gutter) 0;
}
.work-section + .work-section {
  padding-top: var(--space-8);
}

/* =========================================================
   CAPTIONS
   ========================================================= */
.caption {
  padding: var(--space-5) 0 0;
}
.caption .title {
  font-family: var(--font-display);
  font-size: var(--fs-3);
  font-weight: var(--fw-light);
  font-optical-sizing: auto;
  color: var(--dark);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.caption .subtitle {
  margin-top: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--fs-1);
  font-weight: var(--fw-light);
  color: var(--accent-text);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

/* =========================================================
   DÍPTICOS / GRIDS DE IMAGEN
   ========================================================= */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.diptych .img-wrap {
  aspect-ratio: 1 / 1;
}
.diptych .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.diptych-asym {
  display: grid;
  grid-template-columns: 1.857fr 1fr;
  gap: var(--gap);
  aspect-ratio: 1200 / 700;
}
.diptych-asym .img-wrap {
  min-height: 0;
}
.diptych-asym .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.grid-3 figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.grid-3 .img-wrap {
  width: 100%;
  aspect-ratio: 390 / 560;
  overflow: hidden;
}
.grid-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-3 .caption { padding: var(--space-4) 0 0; }

/* =========================================================
   SINGLE IMAGE (full width)
   ========================================================= */
.single-img {
  width: 100%;
}
.single-img img {
  width: 100%;
  height: auto;
  display: block;
}
.single-img + .grid-3 {
  margin-top: var(--gap);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-11) var(--gutter);
  text-align: center;
}
.about-headline {
  font-family: var(--font-display);
  font-size: var(--fs-7);
  font-weight: var(--fw-light);
  font-optical-sizing: auto;
  color: var(--dark);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-display);
}
.about-body {
  max-width: 640px;
  margin: var(--space-6) auto 0;
  font-family: var(--font-body);
  font-size: var(--fs-3);
  font-weight: var(--fw-light);
  color: var(--mid);
  line-height: var(--lh-loose);
}
.about-tagline {
  margin-top: var(--space-7);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-4);
  font-weight: var(--fw-light);
  color: var(--dark);
  letter-spacing: var(--ls-tight);
}

/* =========================================================
   FOOTER / CONTACT
   ========================================================= */
.footer {
  background: var(--dark);
  color: var(--bg);
  padding: var(--space-9) var(--gutter) var(--space-7);
  border-top: 1px solid var(--hairline);   /* hairline sutil entre about y footer */
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-label {
  font-family: var(--font-body);
  font-size: var(--fs-2);
  font-weight: var(--fw-light);
  color: var(--accent);    /* sobre dark, OK */
  letter-spacing: var(--ls-uber);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-7);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  max-width: 800px;
  margin: 0 auto;
}
.footer-cols .col-right { text-align: right; }
.footer-row {
  font-family: var(--font-body);
  font-size: var(--fs-2);
  font-weight: var(--fw-light);
  color: var(--bg);
  margin-bottom: var(--space-2);
}
.footer-row a { transition: color 0.3s ease; }
.footer-row a:hover { color: var(--accent); }
.footer-name {
  font-size: var(--fs-3);
  margin-bottom: var(--space-3);
}
.social-icons {
  display: flex;
  gap: var(--space-5);
  justify-content: flex-end;
}
.social-icons a {
  color: var(--bg);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
}
.social-icons a:hover {
  opacity: 1;
}

/* =========================================================
   TABLET (769px - 1024px)
   ========================================================= */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-tagline { font-size: var(--fs-8); }
  .about-headline { font-size: var(--fs-7); }
  .caption .title { font-size: var(--fs-5); }
  .work-section { padding-top: var(--space-8); }
  .work-section + .work-section { padding-top: var(--space-7); }
  .about { padding: var(--space-10) var(--gutter); }
}

/* =========================================================
   MÓVIL (≤768px)
   ========================================================= */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
    height: 90px;
    padding: var(--space-3) var(--gutter-mobile);
  }
  .logo { font-size: var(--fs-2); }
  .nav-links { gap: var(--space-5); }
  .nav-links a { font-size: var(--fs-2); }

  .hero { height: 70vh; min-height: 460px; margin-top: 90px; }
  .hero-text { left: var(--gutter-mobile); bottom: var(--space-6); max-width: 90%; }
  .hero-tagline { font-size: var(--fs-6); line-height: var(--lh-snug); }
  .hero-location { font-size: var(--fs-0); margin-top: var(--space-2); }

  .work-section { padding: var(--space-7) var(--gutter-mobile) 0; }
  .work-section + .work-section { padding-top: var(--space-6); }

  /* Apilar dípticos y grid en columna única */
  .diptych,
  .diptych-asym,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  /* Imágenes en proporción NATURAL — sin recortes */
  .diptych,
  .diptych-asym {
    aspect-ratio: auto;
  }
  .diptych .img-wrap,
  .diptych-asym .img-wrap {
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
  }
  .diptych .img-wrap img,
  .diptych-asym .img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .grid-3 .img-wrap {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .grid-3 .img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .caption { padding: var(--space-4) 0 0; }
  .caption .title { font-size: var(--fs-5); }
  .caption .subtitle { font-size: var(--fs-0); }

  .about { padding: var(--space-8) var(--space-5); }
  .about-headline { font-size: var(--fs-6); }
  .about-body { font-size: var(--fs-2); margin-top: var(--space-5); }
  .about-tagline { font-size: var(--fs-3); margin-top: var(--space-6); }

  .footer { padding: var(--space-7) var(--space-5) var(--space-6); }
  .footer-label { font-size: var(--fs-1); margin-bottom: var(--space-7); }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }
  .footer-cols .col-right { text-align: center; }
  .footer-row { font-size: var(--fs-2); }
  .footer-name { font-size: var(--fs-3); }
}
