/* ═══════════════════════════════════════════════════════════════════
   LS DOMÓTICA — project-detail.css
   ------------------------------------------------------------------
   Overlay full-screen de detalle de proyecto.
   Se activa quitando la clase .hidden de #pd-overlay.
   Prefijo: .pd-
═══════════════════════════════════════════════════════════════════ */

/* Overlay */
.pd-overlay {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(7, 9, 15, 0.97);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  backdrop-filter: blur(4px);
}
.pd-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

/* Close button */
.pd-close {
  position: fixed;
  top: 22px; right: 22px;
  z-index: 10;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #eef2ff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, transform .15s;
  backdrop-filter: blur(8px);
}
.pd-close:hover {
  background: rgba(255, 255, 255, .12);
  transform: scale(1.06);
}

/* Inner layout: 2 columns on desktop */
.pd-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 100vh;
}

/* Media panel (left) */
.pd-media {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #0a0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-media video,
.pd-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
.pd-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info panel (right) */
.pd-info {
  padding: 72px 52px 52px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Badges */
.pd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(0, 149, 255, .12);
  border: 1px solid rgba(0, 149, 255, .25);
  border-radius: 999px;
  color: var(--accent, #0095ff);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Title */
.pd-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
}
.pd-subtitle {
  font-size: 1.05rem;
  color: rgba(220, 228, 255, .6);
  margin: 0;
}

/* Meta chips */
.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pd-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .84rem;
  color: rgba(220, 228, 255, .65);
}
.pd-meta-chip svg { color: var(--accent, #0095ff); }

/* Description */
.pd-description {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pd-description p {
  font-size: .97rem;
  color: rgba(220, 228, 255, .75);
  line-height: 1.75;
  margin: 0;
}
.pd-description p:last-child {
  color: #eef2ff;
  font-weight: 600;
}

/* Gallery */
.pd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.pd-gallery img {
  width: 100%; height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: transform .18s, border-color .18s;
}
.pd-gallery img:hover {
  transform: scale(1.02);
  border-color: rgba(0, 149, 255, .35);
}

/* proj-badge class (legacy — used by portfolio.js inline) */
.proj-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(0, 149, 255, .12);
  border: 1px solid rgba(0, 149, 255, .25);
  border-radius: 999px;
  color: #0095ff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* proj-featured-desc (legacy — used by portfolio.js inline) */
.proj-featured-desc {
  font-size: .95rem;
  color: rgba(220, 228, 255, .75);
  line-height: 1.75;
  margin-bottom: 14px;
}
.proj-featured-desc.highlight {
  color: #eef2ff;
  font-weight: 600;
}
#project-description {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .pd-inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .pd-media {
    position: relative;
    height: 55vw;
    min-height: 260px;
    max-height: 420px;
  }
  .pd-info {
    padding: 32px 24px 48px;
  }
}
@media (max-width: 540px) {
  .pd-close { top: 14px; right: 14px; }
  .pd-title  { font-size: 1.6rem; }
  .pd-gallery { grid-template-columns: 1fr; }
}

/* ─── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pd-overlay { transition: none; }
  .pd-close   { transition: none; }
}
