/* proyecto.css — individual project page styles */

/* ===== PROJECT HERO ===== */
.project-hero {
  position: relative;
  min-height: 72vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
}
.project-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 60px 5% 60px;
  color: #fff;
}
.project-category-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.project-hero-content h1 {
  font-size: clamp(30px, 4.5vw, 58px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #e4e4e4;
  padding: 13px 0;
}
.breadcrumb-bar .container { padding: 0 40px; }
.breadcrumb {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #ccc; font-size: 12px; }

/* ===== SHARED SECTION INNER ===== */
.project-section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== DESCRIPTION ===== */
.project-description {
  padding: 80px 0;
  background: #fff;
}
.project-description .project-section-inner p {
  font-size: 16.5px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 28px;
}
.project-description .project-section-inner p:last-child { margin-bottom: 0; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

/* ===== GALLERY ===== */
.project-gallery {
  padding: 80px 0 0;
  background: #f8f8f8;
}
.project-gallery .project-section-inner { max-width: 1200px; }

/* ===== PROJECT GALLERY CAROUSEL ===== */
.proj-carousel {
  position: relative;
  overflow: hidden;
  background: #111;
  margin-top: 32px;
}
.proj-carousel-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.proj-carousel-slide {
  min-width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}
.proj-carousel-slide img {
  max-width: 100%;
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
  display: block;
}
.proj-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 22px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
  border-radius: 2px;
  line-height: 1;
  padding: 0;
}
.proj-carousel-btn:hover { background: rgba(0,0,0,0.8); }
.proj-prev { left: 16px; }
.proj-next { right: 16px; }
.proj-carousel-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.55);
  padding: 5px 12px;
  border-radius: 2px;
  font-family: inherit;
}
.proj-carousel-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #1a1a1a;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #555 #1a1a1a;
}
.proj-carousel-thumbs::-webkit-scrollbar { height: 4px; }
.proj-carousel-thumbs::-webkit-scrollbar-thumb { background: #555; }
.proj-thumb {
  min-width: 80px;
  height: 56px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-thumb.active { border-color: var(--accent, #C2974C); opacity: 1; }
.proj-thumb:hover { opacity: 0.85; }

/* Video slide & thumbnail */
.proj-carousel-slide video {
  max-width: 100%;
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
  display: block;
}
.proj-thumb--video {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-thumb-play {
  color: rgba(255,255,255,0.85);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

/* ===== FICHA TÉCNICA ===== */
.project-ficha {
  padding: 80px 0;
  background: #fff;
}
.ficha-table-wrapper {
  overflow-x: auto;
}
.ficha-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.ficha-table-wrapper tr {
  border-bottom: 1px solid #eee;
}
.ficha-table-wrapper tr:first-child { border-top: 2px solid #ddd; }
.ficha-table-wrapper td {
  padding: 14px 0;
  vertical-align: top;
  line-height: 1.6;
  border: none;
}
.ficha-table-wrapper td:first-child {
  font-weight: 600;
  color: #222;
  width: 38%;
  padding-right: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.ficha-table-wrapper td:last-child { color: #555; }

/* ===== CTA ===== */
.project-cta {
  background: var(--navy);
  padding: 80px 40px;
  text-align: center;
}
.project-cta p {
  font-size: 20px;
  font-weight: 500;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
}
.project-cta .btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 38px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s;
  font-family: inherit;
}
.project-cta .btn-primary:hover { background: #4a4e4e; }
.project-cta .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 13px 36px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.25s;
  font-family: inherit;
}
.project-cta .btn-outline-light:hover { border-color: #fff; }
.ms-2 { margin-left: 14px; }

/* ===== FOOTER (project pages) ===== */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}
.footer-top {
  padding: 60px 40px 50px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
}
.footer-logo { height: 34px; margin-bottom: 16px; display: block; filter: brightness(0) invert(1); }
.footer-col p { line-height: 1.7; font-size: 13px; color: rgba(255,255,255,0.45); margin: 0 0 4px; }
.footer-kit { height: 28px; margin-top: 20px; display: block; filter: brightness(0) invert(1) opacity(0.4); }
.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li h5 {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 4px;
}
.footer-contact li a { color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none; }
.footer-contact li a:hover { color: #fff; }
.footer-contact li { margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 40px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .proj-carousel-slide { max-height: 60vh; }
  .proj-carousel-slide img { max-height: 60vh; }
}

@media (max-width: 767px) {
  .project-hero { min-height: 55vh; }
  .project-hero-content { padding: 40px 6% 48px; }
  .project-section-inner { padding: 0 20px; }
  .project-description { padding: 56px 0; }
  .project-gallery { padding: 48px 0 0; }
  .project-ficha { padding: 56px 0; }
  .proj-carousel-slide { max-height: 50vw; }
  .proj-carousel-slide img { max-height: 50vw; }
  .proj-carousel-btn { width: 38px; height: 38px; font-size: 18px; }
  .proj-thumb { min-width: 60px; height: 42px; }
  .project-cta { padding: 60px 20px; }
  .project-cta .ms-2 { margin-left: 0; margin-top: 12px; display: inline-block; }
  .footer-top { grid-template-columns: 1fr; padding: 40px 20px 30px; }
  .footer-bottom { padding: 16px 20px; }
}
