* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f7f5;
  color: #2f3135;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: 100%;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dededb;
  background: #f7f7f5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.main-nav a {
  color: #555;
}

.main-nav a:hover {
  color: #111;
}

main {
  width: 100%;
}

.hero {
  padding: 96px 40px 80px;
  border-bottom: 1px solid #dededb;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
  margin-bottom: 28px;
}

.hero-text {
  max-width: 620px;
  font-size: 22px;
  color: #555;
}

.projects-section,
.about-section,
.contact-section {
  padding: 80px 40px;
  border-bottom: 1px solid #dededb;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.section-heading p {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #777;
}

.section-heading h2 {
  max-width: 850px;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 22px;
}

.project-card {
  display: block;
}

.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #d9d9d4;
  margin-bottom: 14px;
  transition: opacity 0.25s ease;
}
.project-card:hover .project-image {
  opacity: 0.78;
}

.placeholder {
  background:
    linear-gradient(135deg, #d8d8d2 0%, #eeeeeb 100%);
  border: 1px solid #d2d2ce;
}

.project-info h3 {
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-info p {
  font-size: 15px;
  color: #666;
}

.project-card:hover .project-info h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.about-text {
  max-width: 740px;
  margin-left: 228px;
  font-size: 22px;
  color: #555;
}

.contact-section {
  background: #2f3135;
  color: #f7f7f5;
}

.contact-section .section-heading p {
  color: #bdbdb9;
}

.contact-links {
  margin-left: 228px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 22px;
}

.contact-links a:hover {
  opacity: 0.65;
}

.site-footer {
  padding: 24px 40px;
  background: #2f3135;
  color: #bdbdb9;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .main-nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero,
  .projects-section,
  .about-section,
  .contact-section {
    padding: 60px 20px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-text,
  .contact-links {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-text,
  .about-text,
  .contact-links {
    font-size: 18px;
  }

  .site-footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 8px;
  }
}
/* ==============================
   PÁGINAS INDIVIDUALES DE PROYECTO
   ============================== */

.project-page {
  padding: 80px 40px 100px;
  background: #f7f7f5;
  min-height: 100vh;
}

.project-title-block {
  margin-bottom: 64px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  color: #777;
}

.back-link:hover {
  color: #111;
}

.project-title-block h1 {
  font-size: clamp(64px, 10vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 700;
  color: #2f3135;
}

.project-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 160px;
  align-items: start;
  border-top: 1px solid #dededb;
  padding-top: 44px;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.project-meta h2 {
  font-size: 26px;
  line-height: 1;
  font-style: italic;
  font-weight: 400;
  color: #4c4c4c;
  margin-bottom: 14px;
}

.project-meta p {
  font-size: 20px;
  color: #555;
}

.project-description {
  max-width: 720px;
  font-size: 24px;
  line-height: 1.42;
  color: #555;
  text-align: justify;
  text-justify: inter-word;
}

.project-description p {
  margin-bottom: 34px;
}


/* ==============================
   GALERÍA DE IMÁGENES DE PROYECTO
   ============================== */

.project-gallery {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1400px;
  margin: 96px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.gallery-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #d9d9d4;
}


/* ==============================
   VERSIÓN CELULAR
   ============================== */

@media (max-width: 900px) {
  .site-header {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .main-nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero,
  .projects-section,
  .about-section,
  .contact-section {
    padding: 60px 20px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-text,
  .contact-links {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-text,
  .about-text,
  .contact-links {
    font-size: 18px;
  }

  .site-footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 8px;
  }

  .project-page {
    padding: 56px 20px 80px;
  }

  .project-title-block {
    margin-bottom: 44px;
  }

  .project-title-block h1 {
    font-size: 64px;
  }

  .project-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-meta {
    gap: 28px;
  }

  .project-meta h2 {
    font-size: 22px;
  }

  .project-meta p {
    font-size: 18px;
  }

  .project-description {
    font-size: 20px;
  }

  .project-gallery {
  grid-template-columns: 1fr;
  margin-top: 64px;
  gap: 18px;
}

.gallery-image {
  width: 100%;
  height: auto;
}