/* ============================================
   SELLO N — Project Detail Page Styles
   Add this to your main style.css or link separately
   ============================================ */

/* picture element transparent to layout */
picture { display: contents; }

/* ── Override body color inheritance in white sections ── */
.project-header,
.project-meta,
.project-hero,
.project-tabs,
.project-gallery {
  color: #161619;
}

/* Project Header */
.project-header {
  padding: 140px 60px 40px;
  background: #fff;
}

.project-header .back-link {
  display: inline-block;
  font-family: 'function_pro', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #161619;
  text-decoration: none;
  margin-bottom: 30px;
  transition: opacity 0.3s;
}

.project-header .back-link:hover {
  opacity: 0.6;
}

.project-header h1 {
  font-family: 'function_pro', sans-serif;
  font-size: 52px;
  font-weight: 500;
  color: #161619;
  letter-spacing: -1px;
  margin: 0;
}

/* Project Meta Table */
.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 40px 60px;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.project-meta .meta-item {
  padding: 0 20px;
  border-right: 1px solid #e5e5e5;
}

.project-meta .meta-item:first-child {
  padding-left: 0;
}

.project-meta .meta-item:last-child {
  border-right: none;
}

.project-meta .meta-label {
  font-family: 'function_pro', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}

.project-meta .meta-value {
  font-family: 'function_pro', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #161619;
}

/* Hero Image */
.project-hero {
  width: 100%;
  padding: 0 60px;
  background: #fff;
}

.project-hero img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
}

/* Tabs — two-column layout (vertical nav + content) */
.project-tabs {
  padding: 60px;
  background: #fff;
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: start;
  gap: 0;
}

.tabs-nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e5e5;
  margin-bottom: 0;
  padding-right: 0;
}

.tabs-nav button {
  font-family: 'function_pro', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
  background: none;
  border: none;
  padding: 14px 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}

.tabs-nav button.active,
.tabs-nav button:hover {
  color: #161619;
}

.tabs-nav button.active::before {
  content: "— ";
}

.tabs-content {
  padding-left: 60px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ── Tab content: garantizar texto oscuro en todas las variantes ── */
.tab-content {
  color: #444;
}

.tab-content p {
  color: #444;
}

.tab-content ul,
.tab-content ol {
  color: #444;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.tab-content ul li,
.tab-content ol li {
  color: #444;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.tab-content ul li:last-child,
.tab-content ol li:last-child {
  border-bottom: none;
}

.tab-content ol li {
  list-style: decimal;
  list-style-position: inside;
}

.tab-content strong {
  color: #161619;
  font-weight: 500;
}

/* team-list variante */
.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-list li {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  font-size: 16px;
}

.team-list li:last-child {
  border-bottom: none;
}

.team-list .role {
  min-width: 180px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  padding-top: 2px;
}

.team-list .name {
  color: #161619;
  font-weight: 400;
}

/* inspiracion-block variante */
.inspiracion-block {
  margin-bottom: 30px;
}

.inspiracion-block h3 {
  font-size: 20px;
  font-weight: 500;
  color: #161619;
  margin-bottom: 10px;
}

.inspiracion-block p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

/* Tab: Intervención */
.intervencion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intervencion-list li {
  font-family: 'function_pro', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #161619;
  line-height: 1.8;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.intervencion-list li:last-child {
  border-bottom: none;
}

/* Tab: Contexto / Inspiración */
.tab-text {
  max-width: 800px;
}

.tab-text h3 {
  font-family: 'function_pro', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #161619;
  margin: 0 0 20px;
}

.tab-text p {
  font-family: 'function_pro', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.tab-text .highlight {
  font-size: 22px;
  font-weight: 400;
  color: #161619;
  font-style: italic;
}

/* Tab: Equipo */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 40px;
}

.equipo-grid .equipo-item {
  font-family: 'function_pro', sans-serif;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.equipo-item .equipo-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}

.equipo-item .equipo-name {
  font-size: 16px;
  font-weight: 400;
  color: #161619;
}

/* Gallery Grid */
.project-gallery {
  padding: 0 60px 80px;
  background: #fff;
}

.gallery-title {
  font-family: 'function_pro', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s, opacity 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* ===== LIGHTBOX ===== */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lb-overlay.lb-active {
  opacity: 1;
  visibility: visible;
}

.lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 100px;
  box-sizing: border-box;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
  user-select: none;
}

.lb-img.lb-loading {
  opacity: 0.3;
}

/* Close button */
.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 1;
}

.lb-close:hover { opacity: 1; }
.lb-close svg { width: 26px; height: 26px; }

/* Prev / Next buttons */
.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity 0.2s;
  z-index: 1;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-prev svg, .lb-next svg { width: 40px; height: 40px; }

.lb-overlay.lb-single .lb-prev,
.lb-overlay.lb-single .lb-next {
  opacity: 0;
  pointer-events: none;
}

/* Counter */
.lb-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-family: 'function_pro', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .lb-stage {
    padding: 56px 16px 48px;
  }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-prev svg, .lb-next svg { width: 30px; height: 30px; }
}

/* Unified Project Site Footer (4 Columns) */
.project-site-footer {
  background: #161619;
  color: #e1e1e4;
  padding: 80px 60px;
  border-top: 1.5px solid #222;
}

.project-site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.project-site-footer .footer-column {
  flex: 1;
}

.project-site-footer .footer-col-1 {
  flex: 1.5;
}

.project-site-footer .footer-col-1 h2 {
  font-family: 'function_pro', 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.project-site-footer .footer-col-2 h3 {
  font-family: 'function_pro', 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-site-footer .footer-col-2 p {
  font-size: 13px;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 4px;
}

.project-site-footer .footer-col-2 .footer-subtext {
  font-size: 12px;
  color: #666;
  margin-top: 16px;
}

.project-site-footer .footer-col-3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-site-footer .footer-col-3 .footer-email a {
  font-family: 'function_pro', 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
}

.project-site-footer .footer-col-3 .footer-email a:hover {
  opacity: 0.7;
}

.project-site-footer .footer-col-3 .footer-socials {
  margin-top: 16px;
  font-size: 13px;
  color: #aaa;
  display: flex;
  gap: 8px;
  align-items: center;
}

.project-site-footer .footer-col-3 .footer-socials a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-site-footer .footer-col-3 .footer-socials a:hover {
  color: #fff;
}

.project-site-footer .footer-col-4 {
  text-align: right;
}

.project-site-footer .footer-col-4 a {
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.project-site-footer .footer-col-4 a:hover {
  color: #fff;
  border-color: #fff;
}

/* Site Header overridden by main style.css to keep layouts normalized */

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .project-header {
    padding: 120px 40px 30px;
  }
  .project-header h1 {
    font-size: 40px;
  }
  .project-meta {
    padding: 30px 40px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .project-meta .meta-item {
    border-right: none;
    padding: 0;
  }
  .project-hero {
    padding: 0 40px;
  }
  .project-tabs {
    padding: 40px;
    grid-template-columns: 130px 1fr;
  }
  .tabs-content {
    padding-left: 40px;
  }
  .project-gallery {
    padding: 0 40px 60px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-site-footer {
    padding: 60px 40px;
  }
  /* Site Header padding handled by main style.css */
}

@media (max-width: 768px) {
  .project-header {
    padding: 100px 20px 20px;
  }
  .project-header h1 {
    font-size: 32px;
  }
  .project-meta {
    padding: 25px 20px;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .project-hero {
    padding: 0 20px;
  }
  .project-hero img {
    height: 40vh;
  }
  .project-tabs {
    padding: 30px 20px;
    grid-template-columns: 1fr;
  }
  .tabs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
    padding-bottom: 0;
  }
  .tabs-nav button {
    padding: 10px 15px;
    font-size: 11px;
    border-bottom: 2px solid transparent;
  }
  .tabs-nav button.active,
  .tabs-nav button:hover {
    border-bottom-color: #161619;
  }
  .tabs-nav button.active::before {
    content: "";
  }
  .tabs-content {
    padding-left: 0;
  }
  .equipo-grid {
    grid-template-columns: 1fr;
  }
  .project-gallery {
    padding: 0 20px 40px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid img {
    height: 250px;
  }
  .project-site-footer {
    padding: 60px 20px;
  }
  .project-site-footer .footer-container {
    flex-direction: column;
    gap: 30px;
  }
  .project-site-footer .footer-column {
    width: 100%;
    text-align: left;
  }
  .project-site-footer .footer-col-3 {
    align-items: flex-start;
  }
  .project-site-footer .footer-col-4 {
    text-align: left;
  }
  /* Site Header responsive menu handled by main style.css */
}

:where(
  .project-header h1,
  .inspiracion-block h3,
  .tab-text h3,
  .gallery-title,
  .project-site-footer .footer-col-1 h2,
  .project-site-footer .footer-col-2 h3
) {
  font-family: 'Six Caps', 'function_pro', sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.project-header h1,
.inspiracion-block h3,
.tab-text h3,
.gallery-title,
.project-site-footer .footer-col-1 h2,
.project-site-footer .footer-col-2 h3 {
  font-family: 'Six Caps', 'function_pro', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em;
}

.gallery-title {
  font-size: 30px !important;
  line-height: 1;
}

.inspiracion-block h3,
.tab-text h3,
.project-site-footer .footer-col-2 h3 {
  font-size: 36px !important;
  line-height: 1.05;
}

.project-header h1,
.project-site-footer .footer-col-1 h2 {
  font-size: 64px !important;
  line-height: 0.95;
}

@media (max-width: 768px) {
  .project-header h1,
  .project-site-footer .footer-col-1 h2 {
    font-size: 48px !important;
  }

  .inspiracion-block h3,
  .tab-text h3,
  .project-site-footer .footer-col-2 h3 {
    font-size: 32px !important;
  }
}
