/* Componente de Notificación - Countdown */
.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Source Sans Pro', sans-serif;
}

.notification-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  min-width: 320px;
  max-width: 380px;
  overflow: hidden;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideIn 0.6s ease-out forwards;
}

.notification-card.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes slideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.notification-header {
  background: linear-gradient(135deg, #122b40 0%, #1a3d5c 100%);
  padding: 12px 18px;
  position: relative;
  overflow: hidden;
}

.notification-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/overlay.png');
  opacity: 0.2;
}

.notification-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  width: 28px;
  height: 28px;
  background: #BC921C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon i {
  font-size: 14px;
  color: #fff;
}

.notification-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 3;
  line-height: 1;
  min-width: 16px;
  min-height: 16px;
}

.notification-close:hover {
  color: #fff;
  background: transparent !important;
  transform: scale(1.05);
}

.notification-close i {
  cursor: pointer;
}

.notification-body {
  padding: 16px 18px;
}

.countdown-section {
  text-align: center;
  margin-bottom: 16px;
}

.countdown-label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-display {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.countdown-item {
  text-align: center;
  min-width: 45px;
}

.countdown-number {
  background: #122b40;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 6px;
  min-width: 45px;
  display: block;
  line-height: 1;
}

.countdown-label-item {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
}

.countdown-separator {
  color: #BC921C;
  font-size: 20px;
  font-weight: 700;
  align-self: center;
  margin-top: -6px;
}

.results-section {
  text-align: center;
  display: none;
}

.results-section.show {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-message {
  color: #059669;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.results-message i {
  font-size: 16px;
}

.results-button {
  background: #BC921C;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(188, 146, 28, 0.3);
}

.results-button:hover {
  background: #a67c17;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(188, 146, 28, 0.4);
}

.results-button:active {
  transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .notification-container {
    bottom: 15px;
    right: 15px;
    left: 15px;
  }
  
  .notification-card {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
  
  .notification-header {
    padding: 14px 18px;
  }
  
  .notification-body {
    padding: 18px;
  }
  
  .countdown-display {
    gap: 6px;
  }
  
  .countdown-item {
    min-width: 40px;
  }
  
  .countdown-number {
    font-size: 16px;
    min-width: 40px;
    padding: 6px 2px;
  }
  
  .countdown-label-item {
    font-size: 9px;
  }
  
  .countdown-separator {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .notification-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  
  .notification-header {
    padding: 12px 16px;
  }
  
  .notification-body {
    padding: 16px;
  }
  
  .countdown-display {
    gap: 4px;
  }
  
  .countdown-item {
    min-width: 35px;
  }
  
  .countdown-number {
    font-size: 14px;
    min-width: 35px;
    padding: 5px 2px;
  }
  
  .countdown-label-item {
    font-size: 8px;
  }
  
  .countdown-separator {
    font-size: 16px;
  }
  
  .results-button {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Animación de pulso para cuando faltan menos de 24 horas */
.notification-card.urgent .countdown-number {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Estado oculto */
.notification-card.hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
} 