/* =====================================
   PROJECTS
   Grid – Project Page – Gallery – Details
===================================== */


/* ========= PROJECT GRID ========= */

.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 40px 100px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.project-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #d9d6cf;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.project-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: grayscale(100%) contrast(95%);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.project-card:hover .project-image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* ========= PROJECT HERO ========= */

.project-hero {
  position: relative;
  width: 100%;
  height: 82vh;
  overflow: hidden;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ========= HERO TEXT OVER IMAGE ========= */

.project-hero-text {
  position: absolute;
  bottom: 40px;
  left: 100px;

  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);

  padding: 18px 28px;
  max-width: 420px;
}

.project-hero-text h1 {
  font-family: var(--font-secondary);
  font-size: 2rem;
  margin-bottom: 5px;
}

.project-hero-text p {
  letter-spacing: 2px;
  font-size: 0.8rem;
}


/* ========= PROJECT DETAILS ========= */

.project-details {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 80px;

  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 120px;
}

.project-description p {
  margin-bottom: 25px;
  line-height: 1.7;
  color: #444;
}

.project-description span,
.project-meta span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  display: block;
  margin-bottom: 6px;
}

.project-description p,
.project-meta p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 28px;
}

/* ========= PROJECT GALLERY ========= */

.project-gallery {
  max-width: 1400px;
  margin: 80px auto 120px;
  padding: 0 80px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-gallery img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  cursor: pointer;
}


/* ========= DRAWINGS SLIDER ========= */

.drawings-gallery {
  max-width: 800px;
  margin: 60px auto 0;
  overflow: hidden;
  position: relative;
}

.drawings-gallery-track {
  display: flex;
  transition: transform 0.8s ease;
}

.drawings-gallery img {
  min-width: 100%;
  height: 420px;
  object-fit: cover;
  cursor: pointer;
}

.drawings-dots {
  display: flex;
  justify-content: center;
  margin: 20px auto 80px;
  gap: 8px;
}

.drawings-dots span {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.drawings-dots span.active {
  background: #444;
}


/* ========= RESPONSIVE ========= */

@media (max-width: 1100px) {

  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 50px;
  }

}

@media (max-width: 900px) {

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-details {
    grid-template-columns: 1fr;
    padding: 0 40px;
    gap: 60px;
  }

}

@media (max-width: 600px) {

  .projects-grid,
  .project-gallery {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .project-hero-text {
    left: 20px;
  }

}

/* ========= ARCHIVE PAGE (Arquitectura / Interiorismo) ========= */

.page-hero {
  padding: 90px 30px 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.page-intro {
  max-width: 560px;
  margin: 0 auto 60px;
  padding: 0 20px;
  text-align: center;
}

.page-intro p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: #666;
}

/* ========= PROJECT CARD ========= */

.project-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card h3 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.8px;
  margin-top: 8px;
  transition: opacity 0.3s ease;
}

.project-card:hover h3 {
  opacity: 0.7;
}

/* ========= DRAWINGS TITLE ========= */

.drawings-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 120px auto 30px;
  max-width: 1400px;
  padding: 0 80px;
}

.drawings-title::before,
.drawings-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.drawings-title span {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
}

/* ========= LIGHTBOX ========= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  z-index: 3000;
  transition: opacity 0.3s ease;
}

.lightbox .prev:hover,
.lightbox .next:hover {
  opacity: 0.6;
}

.lightbox .prev {
  left: 40px;
}

.lightbox .next {
  right: 40px;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 35px;
  color: white;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.lightbox .close:hover {
  opacity: 0.6;
}

.project-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #f2f2f2; /* opcional mientras carga */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========= INTERACTIVE CONFIGURATOR ========= */

.interactive-project{
margin-top:80px;
margin-bottom:120px;
}

.viewer-wrapper{
max-width:900px;
margin:40px auto;
padding:0 20px;
}

.viewer-wrapper iframe{
width:100%;
height:55vh;
border:none;
border-radius:6px;
}

.section-divider{
max-width:1200px;
margin:120px auto 80px;
display:flex;
align-items:center;
gap:30px;
color:#999;
font-size:0.7rem;
letter-spacing:2px;
text-transform:uppercase;
}

.section-divider::before,
.section-divider::after{
content:"";
flex:1;
height:1px;
background:#e5e5e5;
}