/* ========================================
   ESTILOS ANTI-BLOQUEO INTENSIVOS
   100% enfocado en CERRAR TAREAS
======================================== */

/* Navbar Anti-Bloqueo */
.navbar-anti-bloqueo {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-bottom: 4px solid #7f1d1d;
  color: white;
}

.navbar-anti-bloqueo .navbar-logo {
  color: white;
}

.navbar-anti-bloqueo .nav-link {
  color: white;
  font-weight: 700;
}

.mensaje-anti-bloqueo {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  animation: pulso 2s infinite;
}

.mensaje-anti-bloqueo strong {
  color: #fef3c7;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

@keyframes pulso {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Banner Anti-Bloqueo */
.anti-bloqueo-banner {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  text-align: center;
  border: 4px solid #dc2626;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.anti-bloqueo-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.anti-bloqueo-banner p {
  font-size: 1.25rem;
}

.anti-bloqueo-banner strong {
  color: #fef3c7;
  font-size: 1.5rem;
}

/* Gap Meter CRÍTICO */
.gap-meter-critical {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 3rem;
  color: white;
  border: 4px solid #3b82f6;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.alerta-gap {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  background-color: rgba(239, 68, 68, 0.2);
  padding: 2rem;
  border-radius: 12px;
  border: 3px solid #ef4444;
}

.icon-alerta {
  font-size: 5rem;
  animation: sacudir 1s infinite;
}

@keyframes sacudir {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.gap-mensaje h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fca5a5;
}

.gap-numero {
  font-size: 3.5rem;
  font-weight: bold;
  color: #fee2e2;
  margin: 0;
}

.gap-texto {
  font-size: 1.25rem;
  color: #fecaca;
}

.stat-item.gap-critical {
  background-color: rgba(239, 68, 68, 0.3);
  border: 3px solid #fca5a5;
  padding: 1.5rem;
  border-radius: 12px;
}

.btn-update-ingresos {
  margin-top: 1.5rem;
}

/* Contador de Tareas Cerradas */
.cierre-counter {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  border: 4px solid #10b981;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

.counter-hero h2 {
  color: #d1fae5;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.counter-numero {
  font-size: 8rem;
  font-weight: bold;
  color: white;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.counter-mensaje {
  font-size: 1.5rem;
  color: #d1fae5;
  font-weight: 600;
}

/* Proyectos con Enfoque en Acción */
.section-header-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.accion-rapida {
  background-color: #fef3c7;
  padding: 1rem 2rem;
  border-radius: 8px;
  border-left: 6px solid #f59e0b;
}

.texto-urgente {
  font-weight: 700;
  color: #92400e;
  font-size: 1.125rem;
}

.proyecto-card-action {
  border: 3px solid var(--border-color);
  transition: all 0.3s;
}

.proyecto-card-action:hover {
  border-color: #3b82f6;
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
}

/* Progreso Real */
.progreso-real {
  margin-bottom: 1.5rem;
}

.progreso-bar {
  height: 12px;
  background-color: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progreso-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.5s ease;
}

.progreso-texto {
  font-weight: 700;
  color: #16a34a;
  font-size: 0.875rem;
}

/* Stats Anti-Bloqueo */
.stats-anti-bloqueo .cerradas-box {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 3px solid #22c55e;
}

.stats-anti-bloqueo .cerradas-box .value {
  font-size: 3rem;
  color: #065f46;
}

.stats-anti-bloqueo .abiertas-box {
  background-color: #fee2e2;
  border: 2px solid #fca5a5;
}

.stats-anti-bloqueo .abiertas-box .value {
  color: #991b1b;
}

/* Mensajes Proyecto */
.mensaje-proyecto {
  margin: 1.5rem 0;
}

.alerta-critica {
  background-color: #fef2f2;
  border: 3px solid #dc2626;
  border-radius: 8px;
  padding: 1rem;
  color: #991b1b;
  font-weight: 600;
  animation: parpadeo 2s infinite;
}

@keyframes parpadeo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.alerta-warning {
  background-color: #fef3c7;
  border: 3px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem;
  color: #92400e;
  font-weight: 600;
}

.mensaje-ok {
  background-color: #d1fae5;
  border: 2px solid #10b981;
  border-radius: 8px;
  padding: 1rem;
  color: #065f46;
  font-weight: 500;
}

/* Botones de Acción */
.btn-action {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-action:hover {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6);
}

.btn-full-width {
  width: 100%;
}

/* Reglas Destacadas */
.reglas-destacadas {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: white;
  border: 4px solid #6366f1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.reglas-destacadas h2 {
  color: #e0e7ff;
  font-size: 2rem;
  text-align: center;
}

.reglas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.regla-critica {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 6px solid #fbbf24;
}

.regla-numero {
  background-color: #fbbf24;
  color: #1e1b4b;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.regla-texto {
  font-size: 1.125rem;
  line-height: 1.6;
}

.regla-texto strong {
  color: #fef3c7;
}

/* Objetivo Destacado */
.objetivo-destacado {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left: 6px solid #f59e0b;
  padding: 1.5rem;
  font-size: 1.125rem;
  color: #92400e;
}

/* Responsive */
@media (max-width: 767px) {
  .mensaje-anti-bloqueo {
    display: none;
  }
  
  .gap-numero {
    font-size: 2rem;
  }
  
  .counter-numero {
    font-size: 5rem;
  }
  
  .section-header-action {
    flex-direction: column;
    gap: 1rem;
  }
}
