/* ===================================
   SHARED LIST CARDS STYLES
   =================================== */

/* Base card styles for mobile lists */
@media (max-width: 768px) {
  /* List card container */
  .list-card {
    border: 1px solid #e3e6f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
  }
  
  .list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #007bff, #6610f2);
  }
  
  /* Card header */
  .card-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .card-header-subtitle {
    font-size: 0.8rem;
    color: #fff;
    background: #6c757d;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  /* Card sections */
  .card-section {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
  }
  
  .card-section:not(:last-child) {
    border-bottom: 1px solid #f8f9fa;
  }
  
  .card-section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .card-section-content {
    color: #6c757d;
    line-height: 1.5;
  }
  
  /* Contact links */
  .card-contact-phone {
    display: block;
    margin: 0.25rem 0;
    padding: 0.25rem 0;
    font-weight: 600;
    color: #28a745;
    text-decoration: none;
  }
  
  .card-contact-email {
    display: block;
    margin: 0.25rem 0;
    padding: 0.25rem 0;
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
  }
  
  .card-contact-phone:hover,
  .card-contact-email:hover {
    text-decoration: underline;
  }
  
  /* Badge in cards */
  .card-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-block;
  }
  
  /* Action buttons */
  .card-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 2px solid #f8f9fa;
  }
  
  .card-action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid;
    background: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .card-action-btn:hover {
    transform: translateY(-4px) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  
  .card-action-btn--primary { 
    color: #007bff; 
    border-color: #007bff; 
  }
  .card-action-btn--primary:hover { 
    background: #007bff; 
    color: #fff; 
  }
  
  .card-action-btn--secondary { 
    color: #6c757d; 
    border-color: #6c757d; 
  }
  .card-action-btn--secondary:hover { 
    background: #6c757d; 
    color: #fff; 
  }
  
  .card-action-btn--success { 
    color: #28a745; 
    border-color: #28a745; 
  }
  .card-action-btn--success:hover { 
    background: #28a745; 
    color: #fff; 
  }
  
  .card-action-btn--warning { 
    color: #ffc107; 
    border-color: #ffc107; 
  }
  .card-action-btn--warning:hover { 
    background: #ffc107; 
    color: #212529; 
  }
  
  .card-action-btn--info { 
    color: #17a2b8; 
    border-color: #17a2b8; 
  }
  .card-action-btn--info:hover { 
    background: #17a2b8; 
    color: #fff; 
  }
}

/* ===================================
   COLLAPSIBLE FILTERS (MOBILE)
   =================================== */

.collapsible-filters .card-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.collapsible-filters .card-header .btn-link {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.collapsible-filters .card-header .btn-link:hover {
    color: #0d6efd;
}

.collapsible-filters .card-header .btn-link i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.collapsible-filters .card-header .btn-link[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

/* En desktop, asegurar que esté siempre visible y ocultar el header */
@media (min-width: 992px) {
    .collapsible-filters .card-header {
        display: none !important;
    }
}

