/* ═══════════════════════════════════════════════════════════
   PÁGINA DE DETALLE DE PROYECTO (pd-)
   Se carga ADEMÁS de main.css — reutiliza variables, nav,
   buttons, footer y cursor del sistema base.
   ═══════════════════════════════════════════════════════════ */

/* ── HEADER GRANATE (solo en páginas de proyecto) ── */
#nav { background: var(--maroon); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
#nav.scrolled {
  background: var(--maroon-d);
  box-shadow: 0 6px 22px -10px rgba(0,0,0,.5);
}
#nav .nav-logo { color: var(--bg); }
#nav .nav-links a { color: rgba(250,248,244,.72); }
#nav .nav-links a:hover { color: #fff; }
#nav .nav-links a.nav-active { color: var(--gold); }
#nav .nav-cta { color: var(--gold); border-color: rgba(255,205,0,.55); }
#nav .nav-cta:hover { background: var(--gold); color: var(--maroon); border-color: var(--gold); }

.pd-main { max-width: 920px; margin-inline: auto; padding: 0 2rem; }

/* ── HERO ── */
.pd-hero { padding: 8.5rem 0 2.5rem; }
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--fu);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  transition: color .2s, gap .2s;
}
.pd-back:hover { color: var(--maroon); gap: .8rem; }

.pd-badge {
  display: inline-block;
  font-family: var(--fu);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--maroon);
  padding: .28rem .7rem;
  margin-bottom: 1.25rem;
}
.pd-title {
  font-family: var(--fd);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--maroon);
  margin-bottom: 1.25rem;
}
.pd-lead {
  font-family: var(--fu);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 640px;
}
.pd-lead strong { color: var(--maroon); }

/* meta + ctas */
.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.pd-meta-item { display: flex; flex-direction: column; gap: .35rem; }
.pd-meta-k {
  font-family: var(--fu);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.pd-meta-v {
  font-family: var(--fu);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
}
.pd-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.5rem; }

/* ── FIGURE (imagen marco navegador) ── */
.pd-figure {
  margin: 1rem 0 4rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -28px rgba(85,0,0,.35);
}
.pd-figure-chrome {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .8rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.pd-figure-chrome .pvc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.pd-figure img { width: 100%; height: auto; display: block; }

/* ── BLOQUES DE CONTENIDO ── */
.pd-block { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.pd-block:first-of-type { border-top: none; }
.pd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 3.5rem;
}
.pd-block-label {
  font-family: var(--fu);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.pd-block-label::before { content: ''; width: 16px; height: 1px; background: var(--maroon); }
.pd-h {
  font-family: var(--fs);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text);
}
.pd-h em { font-style: italic; color: var(--maroon); }
.pd-p {
  font-size: .98rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--muted);
  margin-top: .9rem;
}
.pd-p strong { color: var(--text); font-weight: 400; }
@media (min-width: 760px) {
  .pd-grid { grid-template-columns: 220px 1fr; }
  .pd-p:first-of-type { margin-top: 0; }
}

/* lista de features */
.pd-list { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.pd-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
}
.pd-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--maroon);
  font-weight: 700;
}
.pd-list strong { font-weight: 600; }

/* chips de stack */
.pd-stack { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.25rem; }
.pd-chip {
  font-family: var(--fu);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 100px;
  transition: border-color .2s, color .2s;
}
.pd-chip:hover { border-color: var(--maroon); color: var(--maroon); }

/* ── TESTIMONIO ── */
.pd-quote {
  margin: 1rem 0;
  padding: 3rem 2rem;
  background: var(--maroon);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.pd-quote::before {
  content: '\201C';
  position: absolute;
  top: -1.5rem; left: 1rem;
  font-family: var(--fd);
  font-size: 9rem;
  color: rgba(255,205,0,.14);
  line-height: 1;
  pointer-events: none;
}
.pd-quote blockquote {
  font-family: var(--fs);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1.45;
  color: var(--bg);
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.pd-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-top: 1.75rem;
}
.pd-quote-name { font-family: var(--fu); font-weight: 700; font-size: .9rem; color: var(--gold); }
.pd-quote-role { font-family: var(--fu); font-weight: 500; font-size: .72rem; color: rgba(255,205,0,.55); }
.pd-quote-todo {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--fu);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250,248,244,.45);
}

/* ── CTA FINAL ── */
.pd-cta {
  text-align: center;
  padding: 5rem 0 4rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.pd-cta-h {
  font-family: var(--fd);
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.pd-cta-h .accent { color: var(--maroon); font-style: italic; }
.pd-cta .btn-fill { justify-content: center; }

/* ── PAGINADOR prev/next ── */
.pd-pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,205,0,.18);   /* fina línea dorada entre celdas */
}
.pd-pager a {
  background: var(--maroon);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: background .25s;
}
.pd-pager a:hover { background: var(--maroon-d); }
.pd-pager-k {
  font-family: var(--fu);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,205,0,.65);
}
.pd-pager-v {
  font-family: var(--fs);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--bg);
}
.pd-pager .next { text-align: right; align-items: flex-end; }
@media (min-width: 640px) { .pd-pager { grid-template-columns: 1fr 1fr; } }
