
.counter-pulse {
    animation: counterPulse 0.5s ease-in-out;
    will-change: transform;
}

.fade-in {
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* ANIMACIONES */
@keyframes counterPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
}

.animate-scale {
    animation: counterPulse 0.5s ease-in-out;
    will-change: transform;
}

/* BANNER OCULTO/VISIBLE */
.hidden-banner {
    opacity: 0;
    transform: translateY(40px) scaleY(0.95);
    max-height: 0;
    transition: all 0.5s ease-in-out;
    overflow: hidden;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.show-banner {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    max-height: 500px;
    margin-bottom: 1rem;
}

/* ÍCONO CARRITO */
.cart-icon-container {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: 3px;
    right: 0;
    background: linear-gradient(45deg, #3c8dbc, #357ca5);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.cart-icon {
    width: 65px;
    height: 65px;
    background: #fdfdfd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a65a;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.05);
}

/* BANNER HEADER */
.banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.banner-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* STATS BOX - Sistema con Variables CSS */
.stats-box {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid var(--color, #3c8dbc);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.stats-box:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
    background: var(--bg, #e3f2fd);
    color: var(--color, #3c8dbc);
}

.stats-content h4 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--color, #3c8dbc);
}

.stats-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.value-animation {
    transition: all 0.3s ease;
}

.value-animation.updating {
    transform: scale(1.1);
    color: var(--color) !important;
}

/* Tamaño consistente para todos los badges usando clases nativas de AdminLTE */
.label-consistent {
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    min-width: 60px !important;
    text-align: center !important;
    display: inline-block !important;
}

/* Estilos específicos para el módulo de sector salud */
.health-sector-enabled {
  border-left: 4px solid #00a65a !important;
}

.health-sector-button.active {
  background-color: #00a65a !important;
  border-color: #008d4c !important;
}

#health_sector_modal .modal-header {
  background-color: #3c8dbc;
  color: white;
}

#health_sector_modal .modal-header .close {
  color: white;
  opacity: 0.8;
}

#health_sector_modal .modal-header .close:hover {
  opacity: 1;
}

#health_sector_modal h5 {
  color: #3c8dbc;
  margin-top: 20px;
  margin-bottom: 10px;
}

#health_sector_modal hr {
  border-top: 1px solid #3c8dbc;
  margin-top: 5px;
  margin-bottom: 15px;
}

.text-red {
  color: #dd4b39 !important;
}

#person_data_section {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
}

.form-group.has-error .form-control {
  border-color: #dd4b39;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
}

.help-block {
  color: #dd4b39;
  font-size: 12px;
  margin-top: 5px;
}

/* Animaciones suaves */
#person_data_section {
  transition: all 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #health_sector_modal .modal-dialog {
    margin: 10px;
  }

  #health_sector_modal .col-md-3,
  #health_sector_modal .col-md-4,
  #health_sector_modal .col-md-6 {
    margin-bottom: 10px;
  }
}