/* ===========================================
PARA BOTONES DE IR PAGINA, IR ADMINISTRADOR DE PAGINA
==============================================*/
.modern-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #986ce3ff 0%, #670c59ff 100%);
  color: white;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.modern-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  color: white;
}

.modern-button:hover::before {
  left: 100%;
}

.modern-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(185, 126, 234, 0.6);
  color: white;
}

.modern-button:active {
  transform: translateY(0px);
}

.modern-button .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===========================================
PARA CARDS DE CUMPLEAÑOS
==============================================*/

.cards-grid {
  display: grid;
  gap: 25px;
  margin-bottom: 30px;
}

/* Diseño responsivo - 4 cards por fila en pantallas grandes */
@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 3 cards por fila en tablets */
@media (max-width: 1199px) and (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 cards por fila en móviles grandes */
@media (max-width: 767px) and (min-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 card por fila en móviles pequeños */
@media (max-width: 479px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.birthday-card {
  background: linear-gradient(145deg, #5a4e03, #e9cb09);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(125, 136, 3, 0.451);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.birthday-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.birthday-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(117, 129, 3, 0.4);
}

.birthday-card:hover::before {
  animation: shine 0.8s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 0;
  margin-bottom: 15px;
  text-align: center;
}

.birthday-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #020102, #181818);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 24px;
  box-shadow: 0 15px 25px rgba(187, 172, 8, 0.3);
}

.client-name {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  flex: 1;
}

.birthday-date {
  background: rgba(255, 255, 255, 0.9);
  color: #8f965a;
  padding: 8px 15px;
  border-radius: 25px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  font-size: 0.95rem;
}

.days-counter {
  background: rgba(255, 255, 255, 0.9);
  color: #8f965a;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.days-counter.urgent {
  background: linear-gradient(135deg, #ffaa00, #fe6c0b);
  color: white;
  animation: urgentPulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(233, 217, 1, 0.4);
}

@keyframes urgentPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(246, 255, 0, 0.6);
  }
}

.days-counter.urgent::before {
  content: "⚠️";
  margin-right: 5px;
}

.phone-number {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.phone-icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #20b954);
  color: white !important;
  border: none;
  padding: 8px 8px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  width: 100%;
  text-decoration: none !important;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #20b954, #1ea149);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  text-decoration: none !important;
  color: white !important;
}

.whatsapp-btn:visited,
.whatsapp-btn:link,
.whatsapp-btn:active {
  text-decoration: none !important;
  color: white !important;
}

.whatsapp-icon {
  font-size: 1.2rem;
}

/* Animación de entrada para las cards */
.birthday-card {
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.birthday-card:nth-child(1) {
  animation-delay: 0.1s;
}
.birthday-card:nth-child(2) {
  animation-delay: 0.2s;
}
.birthday-card:nth-child(3) {
  animation-delay: 0.3s;
}
.birthday-card:nth-child(4) {
  animation-delay: 0.4s;
}
.birthday-card:nth-child(5) {
  animation-delay: 0.5s;
}
.birthday-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Efectos adicionales */
.celebration-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  animation: float 3s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

/* =======================================
ESTILOS PARA CAJA CHICA
==================================== */
.header {
  background: linear-gradient(135deg, #655d04 0%, #a0a231 100%);
  color: white;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.24);
  border: none;
  border-radius: 10px;
}

/* .table thead th {
  background-color: #495057;
  color: white;
  border: none;
  font-weight: 600;
} */

.badge-egreso {
  background-color: #dc3545;
}

.badge-reposicion {
  background-color: #28a745;
}

.total-section {
  background-color: #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.saldo-actual {
  font-size: 1.2rem;
  font-weight: bold;
}

.text-egreso {
  color: #dc3545;
}

.text-reposicion {
  color: #28a745;
}

.table tbody tr:hover {
  background-color: #f1f3f4;
}

/* ===========================================
PAR EL CARD DE INFORMACION DEL NEGOCIO 
================================================*/
.business-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 500px;
  width: 100%;
}

.business-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.card-header2 {
  background: linear-gradient(135deg, #474307 0%, #EDC126 100%);
  height: 90px;
  position: relative;
  overflow: hidden;
}

.card-header2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>');
}

.logo-container {
  position: absolute;
  bottom: -50px;
  left: 30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border: 4px solid white;
}

.logo-container img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-placeholder {
  font-size: 40px;
  color: #bcb90c;
}

.card-body {
  padding: 30px 30px 30px;
}

.company-name {
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.company-tagline {
  color: #7f8c8d;
  font-size: 16px;
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 16px;
  color: white;
}

.phone-icon {
  background: linear-gradient(135deg, #00b894, #00a085);
}

.email-icon {
  background: linear-gradient(135deg, #e17055, #d63031);
}

.address-icon {
  background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.web-icon {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.nit-icon {
  background: linear-gradient(135deg, #fd79a8, #fdcb6e);
}

.instagram-icon {
  background: linear-gradient(135deg, #fd1d1d, #fcb045);
}

.info-text {
  flex: 1;
}

.info-label {
  font-size: 14px;
  color: #95a5a6;
  margin-bottom: 2px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 16px;
  color: #2c3e50;
  font-weight: 500;
}

.info-value a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-value a:hover {
  color: #667eea;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  font-size: 20px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
  color: white;
}

.instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.facebook {
  background: linear-gradient(135deg, #3b5998, #8b9dc3);
}

.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

@media (max-width: 576px) {
  .company-name {
    font-size: 24px;
  }

  .card-body {
    padding: 60px 20px 20px;
  }

  .logo-container {
    left: 20px;
  }
}
