/* Colaboradores - Redesign Elegant (Clean & Modern) */

:root {
    --colab-primary: #212529;
    --colab-secondary: #6c757d;
    --colab-accent: #17a2b8; /* Teal/Cyan */
    --colab-bg: #f4f6f8;
    --colab-card-bg: #ffffff;
    --colab-border: #e1e5ea;
}

/* === HERO === */
.colaboradores-hero {
    background: #ffffff;
    color: var(--colab-primary);
    padding: 4rem 0 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--colab-border);
    text-align: center;
}

.colaboradores-hero h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #000;
}

.colaboradores-hero p {
    color: var(--colab-secondary);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* === FILTROS === */
.filtros-colaboradores {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 3rem;
}

.filtros-colaboradores .form-label {
    color: var(--colab-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.filtros-colaboradores .form-control,
.filtros-colaboradores .form-select {
    border-radius: 10px;
    border: 1px solid #ced4da;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

.filtros-colaboradores .form-control:focus,
.filtros-colaboradores .form-select:focus {
    border-color: var(--colab-accent);
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.15);
}

.filtros-colaboradores .btn-secondary {
    background: #f1f3f5;
    color: var(--colab-primary);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}

.filtros-colaboradores .btn-secondary:hover {
    background: #e9ecef;
    color: #000;
}

/* === CARDS === */
.colaborador-card {
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    will-change: transform;
}

.colaborador-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 3px solid var(--colab-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.colaborador-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(23, 162, 184, 0.20);
}

.colaborador-card:hover::before {
    opacity: 1;
}

.colaborador-card .card-header-custom {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    padding: 1.5rem 1.25rem;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.colaborador-card .card-header-custom::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Avatar - Rounded Square */
.avatar-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    position: relative;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.colaborador-card:hover .avatar-container img {
    transform: scale(1.05);
}

.colaborador-card .card-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.tipo-cuenta-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    color: #0c7489;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.colaborador-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Stats Box - Cleaner */
.stats-box {
    text-align: center;
    padding: 1.25rem 1rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #e9f7f9 0%, #d4eff3 100%);
    border-radius: 12px;
    border: 2px solid rgba(23, 162, 184, 0.1);
    transition: all 0.3s ease;
}

.stats-box:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 162, 184, 0.3);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}

.stats-box .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--colab-accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stats-box .label {
    color: var(--colab-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Contact Info */
.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    color: var(--colab-secondary);
    font-size: 0.9rem;
}

.contact-info .contact-item i {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--colab-accent) 0%, #138496 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.2);
}

.contact-info a {
    color: var(--colab-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: var(--colab-accent);
}

/* Button - Solid Teal */
.btn-ver-animales {
    background: linear-gradient(135deg, var(--colab-accent) 0%, #138496 100%);
    border: none;
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: auto;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-ver-animales::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ver-animales:hover::before {
    width: 300px;
    height: 300px;
}

.btn-ver-animales:hover {
    background: linear-gradient(135deg, #138496 0%, #0e6674 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.45);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--colab-border);
}

.empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--colab-primary);
    font-weight: 700;
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .colaboradores-hero {
        padding: 2rem 0;
    }
    
    .stats-box .number {
        font-size: 1.5rem;
    }
    
    .avatar-container {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }
}

/* === FILTROS COLAPSABLES === */
.filtros-box {
    background: #ffffff;
    border: 1px solid var(--colab-border);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
}

.filtros-header {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.35rem;
}

.filtros-header:hover {
    box-shadow: none;
    transform: none;
}

.filtros-header h4 {
    color: var(--colab-primary);
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.toggle-icon {
    color: var(--colab-secondary);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.filtros-header:focus {
    outline: none;
    box-shadow: 0 0 0 6px rgba(23,162,184,0.06);
}

/* Rotación suave del icono cuando está colapsado */
.toggle-icon.bi-chevron-up {
    transform: rotate(180deg);
}

.filtros-content {
    max-height: 420px;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 1;
    padding: 0 0.9rem 0.9rem 0.9rem;
}

.filtros-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding: 0;
}

/* Compact mode for form elements */
.filtros-compact .form-label.small {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.filtros-compact .form-control-sm,
.filtros-compact .form-select-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.92rem;
    height: calc(1.8rem + 1rem);
}

.filtros-compact .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
}

/* Mobile-first adjustments */
@media (max-width: 767.98px) {
    .filtros-compact .row.g-2 > [class*='col-'] {
        margin-bottom: 0.5rem;
    }

    .filtros-box {
        padding: 0.4rem;
    }

    .filtros-header h4 {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .filtros-content {
        padding: 0.9rem;
    }
}
