/* ════════════════════════════════════════════════
   AMASHIFT — proyecto.css
   Estilos para páginas de caso de éxito / proyecto
   ════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.pj-hero {
  position: relative;
  padding: 148px 0 80px;
  overflow: hidden;
}

.pj-hero-glow {
  position: absolute;
  top: 0;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,163,255,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.pj-hero > .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.pj-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #3F3F46;
  margin-bottom: 28px;
}
.pj-breadcrumb a {
  color: #52525B;
  transition: color var(--transition);
}
.pj-breadcrumb a:hover { color: #A1A1AA; }
.pj-breadcrumb span:last-child { color: #71717A; }

/* Título principal */
.pj-hero-title {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.0;
  color: #FFFFFF;
  margin: 14px 0 52px;
}

/* Meta grid */
.pj-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0;
  border-top: 1px solid #1C1C1E;
  padding-top: 32px;
}

.pj-meta-item {
  padding: 0 48px 0 0;
  border-right: 1px solid #1C1C1E;
  margin-right: 48px;
}
.pj-meta-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.pj-meta-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3F3F46;
  margin-bottom: 6px;
}

.pj-meta-value {
  font-size: 0.875rem;
  color: #71717A;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 7px;
}

.pj-meta-accent { color: var(--accent); }

.pj-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pjPulseLive 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pjPulseLive {
  0%,100% { box-shadow: 0 0 0 0   rgba(34,197,94,0.55); }
  60%      { box-shadow: 0 0 0 5px rgba(34,197,94,0);    }
}

/* ════════════════════════════════════════════════
   MOCKUP VISUAL
   ════════════════════════════════════════════════ */
.pj-visual { padding: 0 0 100px; }

.pj-mockup-frame {
  border-radius: 12px;
  border: 1px solid #27272A;
  overflow: hidden;
  background: #111318;
  /* Sombra sutil para dar profundidad */
  box-shadow:
    0 40px 100px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04);
}

.pj-mockup-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  /* Fade-in suave mientras carga la imagen */
  opacity: 0;
  transition: opacity 0.8s ease;
}
.pj-mockup-img.loaded { opacity: 1; }

/* ════════════════════════════════════════════════
   RETO Y SOLUCIÓN
   ════════════════════════════════════════════════ */
.pj-story { padding: 0 0 120px; }

.pj-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid #1C1C1E;
  padding-top: 80px;
}

.pj-story-col { display: flex; flex-direction: column; gap: 20px; }

.pj-story-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.pj-story-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #E4E4E7;
}

.pj-story-body {
  font-size: 1rem;
  color: #A1A1AA;
  line-height: 1.85;
}

.pj-story-body strong {
  color: #D4D4D8;
  font-weight: 600;
}

/* ════════════════════════════════════════════════
   RESULTADOS
   ════════════════════════════════════════════════ */
.pj-results {
  padding: 80px 0 120px;
  border-top: 1px solid #1C1C1E;
  border-bottom: 1px solid #1C1C1E;
}

.pj-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pj-result-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 48px 0 0;
  border-right: 1px solid #1C1C1E;
  margin-right: 48px;
}
.pj-result-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.pj-result-value {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #FFFFFF;
}

.pj-result-label {
  font-size: 0.875rem;
  color: #52525B;
  line-height: 1.5;
  max-width: 200px;
}

/* ════════════════════════════════════════════════
   CTA FINAL
   ════════════════════════════════════════════════ */
.pj-cta { padding: 100px 0 120px; }

.pj-cta-inner {
  position: relative;
  background: #0F1117;
  border: 1px solid #1C1C1E;
  border-radius: 16px;
  padding: 100px 64px;
  text-align: center;
  overflow: hidden;
}

.pj-cta-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,163,255,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.pj-cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
}

.pj-cta-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 20px;
  position: relative;
}

.pj-cta-note {
  font-size: 0.95rem;
  color: #52525B;
  line-height: 1.7;
  margin-bottom: 40px;
  position: relative;
}

.pj-cta-btn { position: relative; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pj-meta {
    grid-template-columns: repeat(2, auto);
    row-gap: 28px;
  }

  .pj-meta-item:nth-child(2) { border-right: none; margin-right: 0; }
  .pj-meta-item:nth-child(3) { border-right: 1px solid #1C1C1E; margin-right: 48px; }

  .pj-story-grid { gap: 52px; }

  .pj-results-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 52px;
  }

  .pj-result-item:nth-child(2) { border-right: none; margin-right: 0; }
  .pj-result-item:nth-child(3) {
    grid-column: 1 / -1;
    border-right: none;
    margin-right: 0;
    border-top: 1px solid #1C1C1E;
    padding-top: 52px;
  }
}

@media (max-width: 768px) {
  .pj-hero { padding: 120px 0 60px; }

  .pj-hero-title { margin-bottom: 36px; }

  .pj-meta {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
    column-gap: 0;
  }

  .pj-meta-item { padding-right: 24px; margin-right: 24px; }
  .pj-meta-item:nth-child(2) { border-right: none; margin-right: 0; padding-right: 0; }
  .pj-meta-item:nth-child(3) { border-right: none; margin-right: 0; padding-right: 0; }

  .pj-visual { padding-bottom: 72px; }

  .pj-story-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 52px;
  }

  .pj-results { padding: 60px 0 80px; }

  .pj-results-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pj-result-item {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid #1C1C1E;
    padding-bottom: 40px;
  }
  .pj-result-item:last-child { border-bottom: none; padding-bottom: 0; }

  .pj-cta-inner { padding: 64px 28px; }
  .pj-cta-br    { display: none; }
}

@media (max-width: 480px) {
  .pj-breadcrumb { font-size: 0.72rem; gap: 8px; }

  .pj-meta { grid-template-columns: 1fr; row-gap: 20px; }

  .pj-meta-item {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #1C1C1E;
  }
  .pj-meta-item:last-child { border-bottom: none; padding-bottom: 0; }

  .pj-cta-inner { padding: 48px 20px; border-radius: 12px; }
  .pj-cta-title { font-size: clamp(2rem, 8vw, 2.8rem); }
}
