/* Estilos del directorio profesional - Frontend */
.dp-directorio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dp-directorio-header {
    margin-bottom: 40px;
}

.dp-titulo {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    text-align: center;
}

/* Filtros */
.dp-filtros {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.dp-search-input,
.dp-filter-select {
    padding: 12px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.dp-search-input {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.dp-filter-select {
    min-width: 200px;
}

.dp-search-input:focus,
.dp-filter-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Grid de tarjetas */
.dp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Tarjeta de profesional */
.dp-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.dp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dp-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.dp-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.dp-card-info {
    flex: 1;
    min-width: 0;
}

.dp-card-nombre {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-card-tipo {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4f8;
    color: #4a5568;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.dp-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dp-card-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 14px;
}

.dp-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #667eea;
}

.dp-card-correo {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}

.dp-card-correo:hover {
    color: #667eea;
}

.dp-card-ciudad {
    color: #4a5568;
}

.dp-card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.dp-btn-contactar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px 20px;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dp-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dp-btn-email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.dp-btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.dp-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    cursor: pointer;
}

.dp-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Mensaje de sin resultados */
.dp-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    color: #6b7280;
}

.dp-no-results p {
    font-size: 16px;
    margin: 0;
}

/* Estado oculto para filtros */
.dp-card.dp-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .dp-directorio-container {
        padding: 30px 15px;
    }
    
    .dp-titulo {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .dp-filtros {
        flex-direction: column;
    }
    
    .dp-search-input,
    .dp-filter-select {
        width: 100%;
        max-width: none;
    }
    
    .dp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dp-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .dp-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .dp-card-nombre {
        font-size: 16px;
    }
    
    .dp-card-tipo {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dp-card {
    animation: fadeInUp 0.5s ease-out;
}

.dp-card:nth-child(1) { animation-delay: 0.05s; }
.dp-card:nth-child(2) { animation-delay: 0.1s; }
.dp-card:nth-child(3) { animation-delay: 0.15s; }
.dp-card:nth-child(4) { animation-delay: 0.2s; }
.dp-card:nth-child(5) { animation-delay: 0.25s; }
.dp-card:nth-child(6) { animation-delay: 0.3s; }
