/* ── Variables (mismas que styles.css) ── */
:root {
  --navy: #1B2A4A;
  --navy-light: #2A3F6F;
  --navy-muted: #E8EDF5;
  --accent: #2563EB;
  --text: #111827;
  --muted: #6B7280;
  --bg: #F5F6F8;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Navbar ── */
.proj-nav-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 246, 248, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #E5E7EB;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s;
}

.proj-back:hover { background: var(--navy-muted); }
.proj-back svg { width: 16px; height: 16px; }

.proj-nav-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Contenedor principal ── */
.proj-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ── Hero ── */
.proj-hero {
  margin-bottom: 48px;
}

.proj-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.proj-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.proj-title-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.proj-summary {
  font-size: 17px;
  color: #374151;
  line-height: 1.75;
}

/* ── Meta (rol, herramientas, período) ── */
.proj-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #E5E7EB;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 56px;
}

.proj-meta-item {
  background: var(--white);
  padding: 20px 24px;
}

.proj-meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #F48B60;
  margin-bottom: 8px;
}

.proj-meta-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.proj-meta-value em {
  display: block;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Bloques de contenido ── */
.proj-section {
  margin-bottom: 56px;
}

.proj-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
}

.proj-text {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
}

.proj-text + .proj-text {
  margin-top: 16px;
}

/* ── Imágenes ── */
.proj-images {
  margin-bottom: 56px;
}

.proj-images-grid {
  display: grid;
  gap: 16px;
}

.proj-images-grid.cols-1 { grid-template-columns: 1fr; }
.proj-images-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
/* Para fotos de celu en portrait, las 3 columnas no ocupan todo el ancho */
.proj-images-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

.proj-img {
  width: 100%;
  border-radius: 20px;
  background: var(--navy-muted);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  position: relative;
}

/* Formato retrato — screenshots de celu */
.proj-img.tall {
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}

.proj-img.square { aspect-ratio: 1; }
.proj-img.wide { aspect-ratio: 16 / 9; border-radius: 16px; }
.proj-img.wide img { object-position: center; }

.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s ease;
}

.proj-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.18);
  transition: opacity .5s ease;
  z-index: 1;
  pointer-events: none;
}

.proj-img:hover::after {
  opacity: 0;
}

.proj-img:hover img {
  transform: scale(1.04);
}

.proj-img-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* ── Resultados ── */
.proj-results {
  background: #1C1C1E;
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 56px;
}

.proj-results .proj-section-label {
  color: rgba(255,255,255,.4);
  border-bottom-color: rgba(255,255,255,.1);
}

.proj-metrics {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 24px;
  align-items: flex-start;
}

.proj-metrics li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proj-metric-value {
  font-size: 36px;
  font-weight: 800;
  color: #F48B60;
  line-height: 1;
}

.proj-metric-label {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* ── Navegación entre proyectos ── */
.proj-nav-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid #E5E7EB;
}

.proj-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}

.proj-nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
}

.proj-nav-link.next { text-align: right; }

.proj-nav-dir {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.proj-nav-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

/* ── CTA wrapper ── */
.proj-cta-wrapper {
  text-align: center;
  margin-bottom: 56px;
}

/* ── Métricas como lista ── */
.proj-metrics {
  list-style: none;
  padding: 0;
}

/* ── CTA ── */
.proj-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F48B60;
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.proj-cta:hover {
  background: #e07a50;
  transform: translateY(-1px);
}

.proj-cta svg { width: 16px; height: 16px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .proj-title { font-size: 28px; }
  .proj-meta { grid-template-columns: 1fr; }
  .proj-images-grid.cols-2,
  .proj-images-grid.cols-3 { grid-template-columns: 1fr; }
  .proj-nav-bottom { grid-template-columns: 1fr; }
  .proj-metrics { gap: 24px; }
  .proj-container { padding: 32px 16px 64px; }
}
