/**
 * proyecto-page.css — Layout compartido para páginas de proyecto individual
 * Portafolio Andrés Galdino
 *
 * Usado por: universitario, victoria-regia, moda-week, chiper, farmalaxia, dreams
 * Cada página mantiene un <style> mínimo para overrides tipográficos específicos.
 */

html, body { height: 100%; overflow: hidden; background: #0d0d0f; }

/* ── Cursor blanco con difference sobre fondos oscuros ── */
.cursor { background: #fff !important; mix-blend-mode: difference !important; }

/* ── Stage: 2 columnas bajo el nav ── */
.vr-stage {
  position: fixed;
  inset: var(--nh) 0 0 0;
  display: grid;
  grid-template-columns: 480px 1fr;
}
@media (max-width: 900px) {
  .vr-stage { grid-template-columns: 1fr; }
  .vr-video-panel { display: none; }
}

/* ── Panel izquierdo ── */
.vr-info {
  background: #0d0d0f;
  border-right: .5px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
  padding: 48px 44px 40px;
  position: relative; overflow: hidden;
}

.vr-info::before { display: none; }

/* Número de proyecto esquina */
.vr-num {
  font-size: 10px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.14);
  margin-bottom: auto;
}

/* Bloque central — contenido anclado al fondo */
.vr-center { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; }

.vr-category {
  font-size: 9px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.28);
  margin-bottom: 18px;
}

/* Título — font-size se puede sobreescribir por página */
.vr-title {
  font-size: clamp(52px, 5.5vw, 80px);
  font-weight: 800; letter-spacing: -.04em;
  line-height: .95; color: #fff;
  margin-bottom: 10px;
}

/* Subtítulo opcional bajo el título */
.vr-subtitle {
  font-size: 10px; font-weight: 400; letter-spacing: .1em;
  color: rgba(255,255,255,.22); margin-bottom: 24px;
  text-transform: uppercase;
}

.vr-desc {
  font-size: 12.5px; color: rgba(255,255,255,.38);
  line-height: 1.85; margin-bottom: 20px; max-width: 320px;
}

/* Rol */
.vr-role {
  font-size: 10px; color: rgba(255,255,255,.22);
  letter-spacing: .04em; margin-bottom: 28px; line-height: 1.7;
}
.vr-role strong { color: rgba(255,255,255,.42); font-weight: 600; }

/* Herramientas */
.vr-tools-label {
  font-size: 8px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.18); margin-bottom: 10px;
}
.vr-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 36px; }

.tool-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,.05);
  border: .5px solid rgba(255,255,255,.09);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,.45);
  transition: background .15s;
}
/* hover solo en dispositivos con puntero real */

/* Botones */
.vr-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-primary {
  font-family: var(--font); font-size: 12px; font-weight: 600;
  color: #0d0d0f; background: #fff; border: none;
  border-radius: 999px; padding: 13px 24px;
  text-decoration: none; white-space: nowrap;
  transition: opacity .2s, transform .18s;
  cursor: none;
}
.btn-primary[aria-disabled="true"], .btn-primary.disabled {
  opacity: .35; pointer-events: none;
}

.btn-secondary {
  font-family: var(--font); font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.32); background: transparent;
  border: .5px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 12px 22px;
  text-decoration: none; white-space: nowrap;
  transition: color .15s, border-color .15s;
  cursor: none;
}

/* ── Panel derecho: video ── */
.vr-video-panel { position: relative; background: #000; overflow: hidden; }
.vr-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Viñeta inferior */
.vr-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

/* Controles de video */
.vr-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 24px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
}

.ctrl-btn {
  background: rgba(255,255,255,.09);
  border: .5px solid rgba(255,255,255,.13);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: none; color: #fff; flex-shrink: 0;
  transition: background .15s;
}
@media (hover: hover) {
  .tool-pill:hover    { background: rgba(255,255,255,.09); color: rgba(255,255,255,.7); }
  .btn-primary:hover  { opacity: .88; transform: scale(.97); }
  .btn-secondary:hover{ color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.24); }
  .ctrl-btn:hover     { background: rgba(255,255,255,.2); }
}

.ctrl-bar {
  flex: 1; height: 1.5px;
  background: rgba(255,255,255,.15);
  border-radius: 999px; overflow: hidden;
}
.ctrl-bar-fill {
  height: 100%; background: rgba(255,255,255,.8);
  width: 0%; border-radius: 999px;
  transition: width .3s linear;
}
